--- konwert-1.8.orig/doc/en/filters
+++ konwert-1.8/doc/en/filters
@@ -194,6 +194,12 @@
 
 toupper, tolower - Self-explanatory. Currently ASCII only.
 
+prn7pl - Converts polish chars to control sequences for EPSON-compatible
+printer. Using only 7-bit chars, backspacing printer's head and vertical
+positioning chars ,.'` it creates pseudo-polish gryphs. You can specify
+options: /nlq (default) which optimalizes output for better quality
+printers and /draft - useful for ex. for 9-nails printer.
+
 
 	ADDITIONAL FILTERS FOR FILTERM
 
--- konwert-1.8.orig/doc/pl/filtry
+++ konwert-1.8/doc/pl/filtry
@@ -200,6 +200,12 @@
 toupper, tolower - Zamienia tekst na du¿e / ma³e litery. Na razie tylko
 ASCII.
 
+prn7pl - Konwertuje polskie znaki na sekwencje sterujêce drukarki zgodnej
+z EPSON wykorzystuj±c jedynie podstawowe znaki 7-bitowe, cofaj±c g³owicê
+drukarki i drukuj±c na odpowiedniej wysoko¶ci ,.'` daj±ce w sumie pseudo-
+polskie znaki. Przyjmuje opcje: /nlq (domy¶lne) optymalizowane do drukarek
+o lepszej rozdzielczo¶ci i /draft - np. dla trybu draft 9-ig³ówki.
+
 
 	DODATKOWE FILTRY DLA FILTERMA
 
--- konwert-1.8.orig/aux/charsets/mik
+++ konwert-1.8/aux/charsets/mik
@@ -0,0 +1,129 @@
+	~	~
+	€	Ð�
+	�	Ð‘
+	‚	Ð’
+	ƒ	Ð“
+	„	Ð”
+	…	Ð•
+	†	Ð–
+	‡	Ð—
+	ˆ	Ð˜
+	‰	Ð™
+	Š	Ðš
+	‹	Ð›
+	Œ	Ðœ
+	�	Ð�
+	Ž	Ðž
+	�	ÐŸ
+	�	Ð 
+	‘	Ð¡
+	’	Ð¢
+	“	Ð£
+	”	Ð¤
+	•	Ð¥
+	–	Ð¦
+	—	Ð§
+	˜	Ð¨
+	™	Ð©
+	š	Ðª
+	›	Ð«
+	œ	Ð¬
+	�	Ð­
+	ž	Ð®
+	Ÿ	Ð¯
+	 	Ð°
+	¡	Ð±
+	¢	Ð²
+	£	Ð³
+	¤	Ð´
+	¥	Ðµ
+	¦	Ð¶
+	§	Ð·
+	¨	Ð¸
+	©	Ð¹
+	ª	Ðº
+	«	Ð»
+	¬	Ð¼
+	­	Ð½
+	®	Ð¾
+	¯	Ð¿
+	°	Ñ€
+	±	Ñ�
+	²	Ñ‚
+	³	Ñƒ
+	´	Ñ„
+	µ	Ñ…
+	¶	Ñ†
+	·	Ñ‡
+	¸	Ñˆ
+	¹	Ñ‰
+	º	ÑŠ
+	»	Ñ‹
+	¼	ÑŒ
+	½	Ñ�
+	¾	ÑŽ
+	¿	Ñ�
+	À	â””
+	Á	â”´
+	Â	â”¬
+	Ã	â”œ
+	Ä	â”€
+	Å	â”¼
+	Æ	â•£
+	Ç	â•‘
+	È	â•š
+	É	â•”
+	Ê	â•©
+	Ë	â•¦
+	Ì	â• 
+	Í	â•�
+	Î	â•¬
+	Ï	â”�
+	Ð	â–‘
+	Ñ	â–’
+	Ò	â–“
+	Ó	â”‚
+	Ô	â”¤
+	Õ	â„–
+	Ö	Â§
+	×	â•—
+	Ø	â•�
+	Ù	â”˜
+	Ú	â”Œ
+	Û	â–ˆ
+	Ü	â–„
+	Ý	â–Œ
+	Þ	â–�
+	ß	â–€
+	à	Î±
+	á	Î²
+	â	Î“
+	ã	Ï€
+	ä	Î£
+	å	Ïƒ
+	æ	Î¼
+	ç	Ï„
+	è	Î¦
+	é	Î˜
+	ê	Î©
+	ë	Î´
+	ì	âˆž
+	í	âˆ…
+	î	âˆˆ
+	ï	âˆ©
+	ð	â‰¡
+	ñ	Â±
+	ò	â‰¥
+	ó	â‰¤
+	ô	âŒ 
+	õ	âŒ¡
+	ö	Ã·
+	÷	â‰ˆ
+	ø	Â°
+	ù	âˆ™
+	ú	Â·
+	û	âˆš
+	ü	â�¿
+	ý	Â²
+	þ	â– 
+	ÿ	Â 
--- konwert-1.8.orig/filters/UTF8-prn7pl
+++ konwert-1.8/filters/UTF8-prn7pl
@@ -0,0 +1,64 @@
+#!/bin/bash -
+#
+# Wykorzystuje standardowe mozliwosci drukarki zgodnej ze standardem
+# EPSON do emulacji polskich znaczkow. Dziala na zasadzie sekwencji:
+#
+# <literka_podstawowa><cofnij>[w gore/dol]<znaczek ,`.>[w dol/gore]
+#
+# Sekwencje zostaly przetestowane na starej 9-iglowej drukarce
+# Star NL-10 we wszystkich jakosciach/czcionkach na niej dostepnych,
+# a takze w trybie NLQ.
+#
+# Wersja domyslna z parametrem 'nlq' wyglada lepiej w lepszej jakosci
+# czy rozdzielczosci wydruku, natomiast 'draft' w gorszej/nizszej.
+#
+# (c) by Grzegorz B. Prokopski 2003 <gadek@debian.org> licencja GPL2
+#
+
+# rozpoznajemy parametry ARG: domyslny 'nlq' i 'draft'
+P_WAY=nlq
+for A in $ARG; do
+	case $A in
+		nlq) P_WAY=nlq;;
+		draft) P_WAY=draft;;
+	esac
+done
+
+# domyslnie ustawiamy zmienne dla DRAFTu
+P_MOGN=\\b\\e\\112\\004,\\e\\152\\004
+P_MAKC=\\b\\'`'
+P_MKRP=\\b\\e\\152\\021.\\e\\112\\021
+P_DOGN=\\b\\e\\112\\004,\\e\\152\\004
+P_DAKC=\\b\\e\\152\\010\\'`'\\e\\112\\010
+P_DKRP=\\b\\e\\152\\027.\\e\\112\\027
+P_UKN=\\b/
+
+# zmieniamy dla NLQ
+if [ $P_WAY == nlq ]; then
+P_MAKC=\\b\\e\\152\\025,\\e\\112\\025
+P_MKRP=\\b\\e\\152\\023.\\e\\112\\023
+P_DAKC=\\b\\e\\152\\033,\\e\\112\\033
+P_DKRP=\\b\\e\\152\\031.\\e\\112\\031
+fi
+
+trs -e "
+		Ä…		a$P_MOGN
+		Ä‡		c$P_MAKC
+		Ä™		e$P_MOGN
+		Å‚		l$P_UKN
+		Å„		n$P_MAKC
+		Ã³		o$P_MAKC
+		Å›		s$P_MAKC
+		Åº		z$P_MAKC
+		Å¼		z$P_MKRP
+		Ä„		A$P_DOGN
+		Ä†		C$P_DAKC
+		Ä˜		E$P_DOGN
+		Å�		L$P_UKN
+		Åƒ		N$P_DAKC
+		Ã“		O$P_DAKC
+		Åš		S$P_DAKC
+		Å¹		Z$P_DAKC
+		Å»		Z$P_DKRP
+"
+
--- konwert-1.8.orig/filters/UTF8-mik
+++ konwert-1.8/filters/UTF8-mik
@@ -0,0 +1,3 @@
+APPROX='
+' APPROX1='
+' REPLACE='?' "${0%/*}/../aux/UTF8-charset" -rf "${0%/*}/../aux/charsets/mik"
--- konwert-1.8.orig/bin/trs.cc
+++ konwert-1.8/bin/trs.cc
@@ -10,11 +10,14 @@
 #include <string.h>
 #include <iostream.h>
 #include <fstream.h>
-#include <strstream.h>
+#include <sstream>
 #include <ctype.h>
 #include <unistd.h>
+#include <stdlib.h>
 #define _(String) (String)
 
+using namespace std;
+
 #define WERSJA "1.8"
 #define WLKSLOWA 64*1024	// Maksymalna d³ugo¶æ s³owa do zamiany
 				// albo s³owa, na które zamieniamy
@@ -133,7 +136,7 @@
 
 struct zmienna
 {
-	int zmienna, wartosc;
+	int zmienna2, wartosc;
 	zmienna *nast;
 };
 
@@ -315,7 +318,7 @@
 					)
 					{
 						*zmienne = new zmienna;
-						(*zmienne)->zmienna =
+						(*zmienne)->zmienna2 =
 							s1[0] >= 'A' && s1[0] <= 'Z' ?
 								s1[0] - 'A'
 							:
@@ -474,7 +477,7 @@
 
 void regulyzarg (char *s)
 {
-	istrstream f (s);
+	istringstream f (s);
 	czytajreguly (f);
 }
 
@@ -542,7 +545,7 @@
 					zmienna *z = r->warunki;
 					while (z)
 					{
-						if (zmienne[z->zmienna] != z->wartosc)
+						if (zmienne[z->zmienna2] != z->wartosc)
 							goto niepasuje;
 						z = z->nast;
 					}
@@ -572,7 +575,7 @@
 					z = r->zmienne;
 					while (z)
 					{
-						zmienne[z->zmienna] = z->wartosc;
+						zmienne[z->zmienna2] = z->wartosc;
 						z = z->nast;
 					}
 					goto zamienione;
--- konwert-1.8.orig/man/man1/konwert.1
+++ konwert-1.8/man/man1/konwert.1
@@ -533,6 +533,17 @@
 .B tolower
 .PD
 Self-explanatory. Currently ASCII only.
+.TP
+.B prn7pl
+Converts polish chars to control sequences for EPSON-compatible
+printer. Using only 7-bit chars, backspacing printer's head and vertical
+positioning chars ,.'` it creates pseudo-polish gryphs. You can specify
+options:
+.B /nlq
+(default) which optimalizes output for better quality
+printers and
+.B /draft
+- useful for ex. for 9-nails printer.
 .SH FILES
 .TP
 .PD 0
--- konwert-1.8.orig/man/pl/man1/konwert.1
+++ konwert-1.8/man/pl/man1/konwert.1
@@ -531,6 +531,17 @@
 .B tolower
 .PD
 Zamienia tekst na du¿e / ma³e litery. Na razie tylko ASCII.
+.TP
+.B prn7pl
+Konwertuje polskie znaki na sekwencje sterujêce drukarki zgodnej
+z EPSON wykorzystuj±c jedynie podstawowe znaki 7-bitowe, cofaj±c g³owicê
+drukarki i drukuj±c na odpowiedniej wysoko¶ci ,.'` daj±ce w sumie pseudo-
+polskie znaki. Przyjmuje opcje:
+.B /nlq
+(domy¶lne) optymalizowane do drukarek
+o lepszej rozdzielczo¶ci i
+.B /draft
+- np. dla trybu draft 9-ig³ówki.
 .SH PLIKI
 .TP
 .PD 0
--- konwert-1.8/Makefile	Thu Jul 30 18:43:04 1998
+++ konwert-1.8/Makefile	Sun Feb  1 03:14:22 2004
@@ -46,9 +46,9 @@
 
 # Dokumentacja:
 
-mydocdir = $(prefix)/doc/konwert-$(version)
+mydocdir = $(sharedir)/doc/konwert
 srcdocdir = doc
-mandir = $(prefix)/man
+mandir = $(sharedir)/man
 srcmandir = man
 
 # Wersje z poprawionymi ¶cie¿kami w #!, gotowe do zainstalowania:
@@ -335,16 +335,16 @@
 	$(INSTALL) -m755 -s $(installbindir)/trs     $(bindir)
 	$(INSTALL) -m755    $(installbindir)/konwert $(bindir)
 	$(INSTALL) -m755 -s $(installbindir)/filterm $(bindir)
-	cp -dRf $(installfiltersdir)/* $(filtersdir)
+	/bin/cp -Rf $(installfiltersdir)/* $(filtersdir)
 	$(perl) $(srcdeveldir)/mkaliases $(srcdeveldir)/aliases \
 		$(installfiltersdir) $(filtersdir)
-	cp -dRf $(installauxdir)/* $(auxdir)
+	/bin/cp -Rf $(installauxdir)/* $(auxdir)
 	$(perl) $(srcdeveldir)/mkaliases $(srcdeveldir)/aliases \
 		$(installauxdir)/charsets $(auxdir)/charsets
-	cp -dRf $(installlibauxdir)/* $(libauxdir)
-	cp -dRf $(installdeveldir)/* $(develdir)
-	cp -dRf $(installdocdir)/* $(mydocdir)
-	cp -dRf $(installmandir)/* $(mandir)
+	/bin/cp -Rf $(installlibauxdir)/* $(libauxdir)
+	/bin/cp -Rf $(installdeveldir)/* $(develdir)
+	/bin/cp -Rf $(installdocdir)/* $(mydocdir)
+	/bin/cp -Rf $(installmandir)/* $(mandir)
 	if [ -z "$(nofixmanconfig)" ]; then $(srcauxdir)/fixmanconfig; fi
 
 ###############################################################################
--- konwert-1.8.orig/debian/changelog
+++ konwert-1.8/debian/changelog
@@ -0,0 +1,109 @@
+konwert (1.8-7) unstable; urgency=low
+
+  * Added support for mik from Kaloian Doganov (Closes: #196510).
+  * Added filters/UTF8-prn7pl and associated documentation from Grzegorz
+    B. Prokopski (Closes: #195908).
+  * Bumped Standards-Version from 3.0.1 to 3.5.10 (no change).
+
+ -- Yann Dirson <dirson@debian.org>  Sun,  8 Jun 2003 16:32:09 +0200
+
+konwert (1.8-6) unstable; urgency=low
+
+  * Converted bin/trc.cc to use <sstream> since g++ 3.3 dropped
+    <strstream.h> (Closes: #194942).
+  * Fixed konwert-filters short desc (lintian).
+
+ -- Yann Dirson <dirson@debian.org>  Thu, 29 May 2003 23:23:48 +0200
+
+konwert (1.8-5) unstable; urgency=low
+
+  * Rebuild for g++-3.2.
+  * Removed manually-inserted /usr/doc/-symlinks logic from maintainer
+    scripts.
+
+ -- Yann Dirson <dirson@debian.org>  Mon, 13 Jan 2003 16:03:50 +0100
+
+konwert (1.8-4) unstable; urgency=low
+
+  * Fix typos in package descriptions (Closes: #124848, #146488).  Ran
+    ispell and found a couple more.
+  * Added a lintian override for hardlinks usage.  Nothing forbids
+    hardlinks here, and they don't break anything.
+
+ -- Yann Dirson <dirson@debian.org>  Fri, 24 May 2002 00:55:17 +0200
+
+konwert (1.8-3) unstable; urgency=medium
+
+  * Include stdlib.h in trs.cc (Closes: #105180).
+  * Aknowledge previous NMU (Closes: #105304).
+  * Updated path to GPL in debian/copyright.
+
+ -- Yann Dirson <dirson@debian.org>  Wed,  1 Aug 2001 00:26:07 +0200
+
+konwert (1.8-2.1) unstable; urgency=low
+
+  * NMU
+  * Add build-depends header.  Closes: #105304
+
+ -- LaMont Jones <lamont@smallone.fc.hp.com>  Sat, 14 Jul 2001 22:52:34 -0600
+
+konwert (1.8-2) unstable; urgency=low
+
+  * Moved doc and man to /usr/share, as per FHS.
+  * Manually added handling of /usr/doc symlinks to konwert{,-dev}
+    packages.
+  * Changed the name of zmienna member in struct zmienna in trs.cc to
+    allow compilation.
+  * Bumped Standards-Version to 3.0.1.
+
+ -- Yann Dirson <dirson@debian.org>  Sun, 24 Oct 1999 19:32:48 +0200
+
+konwert (1.8-1) unstable; urgency=low
+
+  * New upstream release.
+  * Closes: Bug#38463 by recompilation.
+  * Make use of dh_perl for perl dependencies.
+
+ -- Yann Dirson <dirson@debian.org>  Tue,  6 Jul 1999 00:52:24 +0200
+
+konwert (1.7-3) frozen unstable; urgency=low
+
+  * Made konwert-filters to Recommend konwert because it is mostly
+    useless without the latter, and it makes an excuse for a lintian
+    override on "E: konwert-filters: trs-script-but-no-konwert-dep"
+    stuff.
+  * Recompiled against libstdc++-2.9 (Fixes: Bug#29044).
+  * Passed lintian 0.9.3 (well, with the restriction stated above...).
+
+ -- Yann Dirson <dirson@debian.org>  Thu, 12 Nov 1998 20:48:33 +0100
+
+konwert (1.7-2) unstable; urgency=low
+
+  * Incorporated patch from upstream to `512bold' filter so that
+    colors aren't reversed after dselect exists.
+
+ -- Yann Dirson <dirson@debian.org>  Fri, 31 Jul 1998 16:28:49 +0200
+
+konwert (1.7-1) unstable; urgency=low
+
+  * New upstream release:
+  * Install `CHANGES' as `changelog'.
+  * Passed lintian 0.6.0.
+
+ -- Yann Dirson <dirson@debian.org>  Fri, 24 Jul 1998 23:28:35 +0200
+
+konwert (1.6-1) unstable; urgency=low
+
+  * New upstream release:
+  ** Provides english manpages.
+  ** Uses /usr/share/ upstream.
+  ** Charset aliases.
+
+ -- Yann Dirson <dirson@debian.org>  Tue,  7 Jul 1998 21:42:02 +0200
+
+konwert (1.5-1) unstable; urgency=low
+
+  * Initial Release.
+  * Passed lintian 0.4.8.
+
+ -- Yann Dirson <dirson@debian.org>  Mon, 22 Jun 1998 09:19:36 +0200
