--- konwert-1.8.orig/Makefile +++ konwert-1.8/Makefile @@ -181,6 +181,9 @@ ############################################################################### +$(srcbindir)/filterm: $(srcbindir)/filterm.cc + $(CXX) $(CXXFLAGS) $< -lutil -o $@ + $(installbindir)/konwert: $(srcbindir)/konwert sed 's|/usr/share/konwert/filters|$(filtersdir)|g' $< >$@ chmod +x $@ --- 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 due / mae litery. Na razie tylko ASCII. +prn7pl - Konwertuje polskie znaki na sekwencje sterujce drukarki zgodnej +z EPSON wykorzystujc jedynie podstawowe znaki 7-bitowe, cofajc gowic +drukarki i drukujc na odpowiedniej wysokoci ,.'` dajce w sumie pseudo- +polskie znaki. Przyjmuje opcje: /nlq (domylne) optymalizowane do drukarek +o lepszej rozdzielczoci i /draft - np. dla trybu draft 9-igwki. + 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/rtf-8bit +++ konwert-1.8/filters/rtf-8bit @@ -1,130 +1,130 @@ #!/usr/bin/trs -f - '\\80 \x80 - '\\81 \x81 - '\\82 \x82 - '\\83 \x83 - '\\84 \x84 - '\\85 \x85 - '\\86 \x86 - '\\87 \x87 - '\\88 \x88 - '\\89 \x89 - '\\8a \x8A - '\\8b \x8B - '\\8c \x8C - '\\8d \x8D - '\\8e \x8E - '\\8f \x8F - '\\90 \x90 - '\\91 \x91 - '\\92 \x92 - '\\93 \x93 - '\\94 \x94 - '\\95 \x95 - '\\96 \x96 - '\\97 \x97 - '\\98 \x98 - '\\99 \x99 - '\\9a \x9A - '\\9b \x9B - '\\9c \x9C - '\\9d \x9D - '\\9e \x9E - '\\9f \x9F - '\\a0 \xA0 - '\\a1 \xA1 - '\\a2 \xA2 - '\\a3 \xA3 - '\\a4 \xA4 - '\\a5 \xA5 - '\\a6 \xA6 - '\\a7 \xA7 - '\\a8 \xA8 - '\\a9 \xA9 - '\\aa \xAA - '\\ab \xAB - '\\ac \xAC - '\\ad \xAD - '\\ae \xAE - '\\af \xAF - '\\b0 \xB0 - '\\b1 \xB1 - '\\b2 \xB2 - '\\b3 \xB3 - '\\b4 \xB4 - '\\b5 \xB5 - '\\b6 \xB6 - '\\b7 \xB7 - '\\b8 \xB8 - '\\b9 \xB9 - '\\ba \xBA - '\\bb \xBB - '\\bc \xBC - '\\bd \xBD - '\\be \xBE - '\\bf \xBF - '\\c0 \xC0 - '\\c1 \xC1 - '\\c2 \xC2 - '\\c3 \xC3 - '\\c4 \xC4 - '\\c5 \xC5 - '\\c6 \xC6 - '\\c7 \xC7 - '\\c8 \xC8 - '\\c9 \xC9 - '\\ca \xCA - '\\cb \xCB - '\\cc \xCC - '\\cd \xCD - '\\ce \xCE - '\\cf \xCF - '\\d0 \xD0 - '\\d1 \xD1 - '\\d2 \xD2 - '\\d3 \xD3 - '\\d4 \xD4 - '\\d5 \xD5 - '\\d6 \xD6 - '\\d7 \xD7 - '\\d8 \xD8 - '\\d9 \xD9 - '\\da \xDA - '\\db \xDB - '\\dc \xDC - '\\dd \xDD - '\\de \xDE - '\\df \xDF - '\\e0 \xE0 - '\\e1 \xE1 - '\\e2 \xE2 - '\\e3 \xE3 - '\\e4 \xE4 - '\\e5 \xE5 - '\\e6 \xE6 - '\\e7 \xE7 - '\\e8 \xE8 - '\\e9 \xE9 - '\\ea \xEA - '\\eb \xEB - '\\ec \xEC - '\\ed \xED - '\\ee \xEE - '\\ef \xEF - '\\f0 \xF0 - '\\f1 \xF1 - '\\f2 \xF2 - '\\f3 \xF3 - '\\f4 \xF4 - '\\f5 \xF5 - '\\f6 \xF6 - '\\f7 \xF7 - '\\f8 \xF8 - '\\f9 \xF9 - '\\fa \xFA - '\\fb \xFB - '\\fc \xFC - '\\fd \xFD - '\\fe \xFE - '\\ff \xFF + \\'80 \x80 + \\'81 \x81 + \\'82 \x82 + \\'83 \x83 + \\'84 \x84 + \\'85 \x85 + \\'86 \x86 + \\'87 \x87 + \\'88 \x88 + \\'89 \x89 + \\'8a \x8A + \\'8b \x8B + \\'8c \x8C + \\'8d \x8D + \\'8e \x8E + \\'8f \x8F + \\'90 \x90 + \\'91 \x91 + \\'92 \x92 + \\'93 \x93 + \\'94 \x94 + \\'95 \x95 + \\'96 \x96 + \\'97 \x97 + \\'98 \x98 + \\'99 \x99 + \\'9a \x9A + \\'9b \x9B + \\'9c \x9C + \\'9d \x9D + \\'9e \x9E + \\'9f \x9F + \\'a0 \xA0 + \\'a1 \xA1 + \\'a2 \xA2 + \\'a3 \xA3 + \\'a4 \xA4 + \\'a5 \xA5 + \\'a6 \xA6 + \\'a7 \xA7 + \\'a8 \xA8 + \\'a9 \xA9 + \\'aa \xAA + \\'ab \xAB + \\'ac \xAC + \\'ad \xAD + \\'ae \xAE + \\'af \xAF + \\'b0 \xB0 + \\'b1 \xB1 + \\'b2 \xB2 + \\'b3 \xB3 + \\'b4 \xB4 + \\'b5 \xB5 + \\'b6 \xB6 + \\'b7 \xB7 + \\'b8 \xB8 + \\'b9 \xB9 + \\'ba \xBA + \\'bb \xBB + \\'bc \xBC + \\'bd \xBD + \\'be \xBE + \\'bf \xBF + \\'c0 \xC0 + \\'c1 \xC1 + \\'c2 \xC2 + \\'c3 \xC3 + \\'c4 \xC4 + \\'c5 \xC5 + \\'c6 \xC6 + \\'c7 \xC7 + \\'c8 \xC8 + \\'c9 \xC9 + \\'ca \xCA + \\'cb \xCB + \\'cc \xCC + \\'cd \xCD + \\'ce \xCE + \\'cf \xCF + \\'d0 \xD0 + \\'d1 \xD1 + \\'d2 \xD2 + \\'d3 \xD3 + \\'d4 \xD4 + \\'d5 \xD5 + \\'d6 \xD6 + \\'d7 \xD7 + \\'d8 \xD8 + \\'d9 \xD9 + \\'da \xDA + \\'db \xDB + \\'dc \xDC + \\'dd \xDD + \\'de \xDE + \\'df \xDF + \\'e0 \xE0 + \\'e1 \xE1 + \\'e2 \xE2 + \\'e3 \xE3 + \\'e4 \xE4 + \\'e5 \xE5 + \\'e6 \xE6 + \\'e7 \xE7 + \\'e8 \xE8 + \\'e9 \xE9 + \\'ea \xEA + \\'eb \xEB + \\'ec \xEC + \\'ed \xED + \\'ee \xEE + \\'ef \xEF + \\'f0 \xF0 + \\'f1 \xF1 + \\'f2 \xF2 + \\'f3 \xF3 + \\'f4 \xF4 + \\'f5 \xF5 + \\'f6 \xF6 + \\'f7 \xF7 + \\'f8 \xF8 + \\'f9 \xF9 + \\'fa \xFA + \\'fb \xFB + \\'fc \xFC + \\'fd \xFD + \\'fe \xFE + \\'ff \xFF --- 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: +# +# [w gore/dol][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 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 #include #include -#include +#include #include #include +#include #define _(String) (String) +using namespace std; + #define WERSJA "1.8" #define WLKSLOWA 64*1024 // Maksymalna dugo sowa do zamiany // albo sowa, na ktre 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/bin/filterm.cc +++ konwert-1.8/bin/filterm.cc @@ -10,16 +10,16 @@ #include #include #include +#include #define WERSJA "1.8" char *nazwaprogramu; char *shell; int master; -int slave; +int slave = -1; struct termios tt; struct winsize win; -char line[] = "/dev/ptyXX"; void uzycie (int status) { @@ -54,36 +54,31 @@ exit (0); } -void getmaster() +static char linedata[PATH_MAX]; +char *line = linedata; + +int getpty(void) { + if (openpty(&master, &slave, line, NULL, NULL)) { + return -1; + } return master; +} + + +void getmasterslave() { - char *pty = &line[strlen ("/dev/ptyp")]; - for (char *bank = "pqrs"; *bank; bank++) - { - line[strlen ("/dev/pty")] = *bank; - *pty = '0'; - struct stat stb; - if (stat (line, &stb) < 0) break; - for (char *cp = "0123456789abcdef"; *cp; cp++) - { - *pty = *cp; - if ((master = open (line, O_RDWR)) >= 0) - { - char *tp = &line[strlen("/dev/")]; - *tp = 't'; - int ok = !access (line, R_OK|W_OK); - *tp = 'p'; - if (ok) - { - tcgetattr (0, &tt); - ioctl (0, TIOCGWINSZ, (char *) &win); - return; - } - close (master); - } - } + int r; + r = getpty(); + if (r==-1) { + cerr << "Error opening pty\n"; + exit (1); } - cerr << "Out of pty's\n"; - exit (1); + + tcgetattr (0, &tt); + ioctl (0, TIOCGWINSZ, (char *) &win); + tcsetattr (slave, TCSAFLUSH, &tt); + ioctl (slave, TIOCSWINSZ, (char *) &win); + setsid(); + ioctl (slave, TIOCSCTTY, 0); } void terminalsurowy() @@ -114,24 +109,8 @@ exit (1); } -void getslave() -{ - line[strlen ("/dev/")] = 't'; - slave = open (line, O_RDWR); - if (slave < 0) - { - perror (line); - exit (1); - } - tcsetattr (slave, TCSAFLUSH, &tt); - ioctl (slave, TIOCSWINSZ, (char *) &win); - setsid(); - ioctl (slave, TIOCSCTTY, 0); -} - void komenda (int argc, char *argv[]) { - getslave(); dup2 (slave, 0); dup2 (slave, 1); dup2 (slave, 2); @@ -181,7 +160,7 @@ } if (argc < 3) uzycie (0); - getmaster(); + getmasterslave(); signal (SIGCHLD, koniec); if (strcmp (argv[2], "-")) --- 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 due / mae litery. Na razie tylko ASCII. +.TP +.B prn7pl +Konwertuje polskie znaki na sekwencje sterujce drukarki zgodnej +z EPSON wykorzystujc jedynie podstawowe znaki 7-bitowe, cofajc gowic +drukarki i drukujc na odpowiedniej wysokoci ,.'` dajce w sumie pseudo- +polskie znaki. Przyjmuje opcje: +.B /nlq +(domylne) optymalizowane do drukarek +o lepszej rozdzielczoci i +.B /draft +- np. dla trybu draft 9-igwki. .SH PLIKI .TP .PD 0 --- konwert-1.8.orig/debian/README.debian +++ konwert-1.8/debian/README.debian @@ -0,0 +1,10 @@ +The Debian Package `konwert' +---------------------------- + +There are no shipped manpages in this version, but the 3 user-level +programs (konvert, filterm, trs) are documented in english and polish +in the subdirs of this directory. + +These should surely be converted into manpages. + +Yann Dirson , Mon, 22 Jun 1998 09:19:36 +0200 --- konwert-1.8.orig/debian/changelog +++ konwert-1.8/debian/changelog @@ -0,0 +1,132 @@ +konwert (1.8-9) unstable; urgency=low + + * Fixed rtf-8bit to recognize the good escape sequences (Closes: #182439). + * Include bash-completion script for konwert(1) from Vitalij K. Lysoff. + * Fixed dh_buildinfo call to occur in binary-arch; ship a docdir in + konwert package instead of a symlink to allow this; create symlinks to + en and pl docdirs to leave docs easily found. + * Reworked debian/rules a bit: added an install target to help + accomodating for this change. + * Updated my email in README.Debian and copyright; updated upstream URL + in copyright. + + -- Yann Dirson Thu, 29 Apr 2004 00:30:26 +0200 + +konwert (1.8-8) unstable; urgency=low + + * Applied longstanding patch from Radovan Garabik to use UNIX98 ptys + (Closes: #108583, #195451). Link filterm with libutil. + * Avoid redifinition of PATH_MAX in filterm.cc. + * Use dh-buildinfo. + + -- Yann Dirson Fri, 9 Jan 2004 16:31:57 +0100 + +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 Sun, 8 Jun 2003 16:32:09 +0200 + +konwert (1.8-6) unstable; urgency=low + + * Converted bin/trc.cc to use since g++ 3.3 dropped + (Closes: #194942). + * Fixed konwert-filters short desc (lintian). + + -- Yann Dirson 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 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 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 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 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 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 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 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 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 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 Tue, 7 Jul 1998 21:42:02 +0200 + +konwert (1.5-1) unstable; urgency=low + + * Initial Release. + * Passed lintian 0.4.8. + + -- Yann Dirson Mon, 22 Jun 1998 09:19:36 +0200 --- konwert-1.8.orig/debian/copyright +++ konwert-1.8/debian/copyright @@ -0,0 +1,8 @@ +This package was debianized by Yann Dirson , +from sources available from: + +http://qrczak.ids.net.pl/programy/linux/konwert/ + +Upstream author is Marcin 'Qrczak' Kowalczyk . + +Copyright: GPL (see /usr/share/common-licenses/GPL). --- konwert-1.8.orig/debian/lintian-override +++ konwert-1.8/debian/lintian-override @@ -0,0 +1 @@ +konwert-filters: package-contains-hardlink --- konwert-1.8.orig/debian/konwert-filters.files +++ konwert-1.8/debian/konwert-filters.files @@ -0,0 +1,3 @@ +usr/share/konwert/aux +usr/share/konwert/filters +usr/share/doc --- konwert-1.8.orig/debian/konwert-dev.files +++ konwert-1.8/debian/konwert-dev.files @@ -0,0 +1 @@ +usr/share/konwert/devel --- konwert-1.8.orig/debian/control +++ konwert-1.8/debian/control @@ -0,0 +1,41 @@ +Source: konwert +Section: text +Priority: optional +Maintainer: Yann Dirson +Standards-Version: 3.5.10 +Build-Depends: debhelper (>= 2), dh-buildinfo + +Package: konwert +Architecture: any +Depends: ${shlibs:Depends}, ${perl:Depends}, konwert-filters +Suggests: konwert-dev +Description: Charset conversion for files or terminal I/O + `konwert' is yet another charset converter. Some particular features are: + * one-to-many conversions + * context-dependent conversions + * approximations of some unavailable characters + * (as a result) ability to transcript e.g. Russian Cyrillic into Polish + phonetic equivalent + . + `filterm' applies filter conversion to a terminal's I/O, to get on-the-fly + charset conversion, and customized input methods. + +Package: konwert-filters +Architecture: all +Depends: ${perl:Depends} +Recommends: konwert +Description: Filters used by konwert for charset conversion + These files are needed by konwert. + . + They are also probably useless without konwert itself. + +Package: konwert-dev +Architecture: all +Priority: extra +Depends: konwert +Suggests: g++ +Description: Tools to define new charset conversion for konwert + This package contains sources for some filters, and the scripts used to + build those filters from them. + . + The `512bold' filter is a C++ program. --- konwert-1.8.orig/debian/rules +++ konwert-1.8/debian/rules @@ -0,0 +1,112 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Made with the aid of dh_make, by Craig Small +# Uses debhelper, GNU copyright 1997 by Joey Hess. +# Some lines taken from debmake, by Cristoph Lameter. + +export LC_ALL=C + +topdir=$(shell pwd) +debdir=${topdir}/debian +tmpdir=${debdir}/tmp +docdir=${debdir}/konwert-filters/usr/share/doc + +build: build-stamp +build-stamp: + dh_testdir + + chmod +x filters/UTF8-prn7pl + make CXXFLAGS="-O2 -g -Wall" prefix=/usr + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -${MAKE} clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + ${MAKE} install prefix=${tmpdir}/usr nofixmanconfig=1 \ + mandir=${tmpdir}/usr/share/man + + mkdir -p ${tmpdir}/usr/share/doc + mv ${tmpdir}/usr/doc/* ${tmpdir}/usr/share/doc/ + rmdir ${tmpdir}/usr/doc + + dh_movefiles + + cd debian/konwert-filters/usr/share/konwert/filters/ && \ + mv 512bold 512bold1 ${tmpdir}/usr/share/konwert/filters + +# test -z "`find ${tmpdir} -not -type d | tee /dev/fd/2`" + +binary-indep: install + dh_testdir -i + dh_testroot -i + + cd ${debdir}/konwert-dev/usr/share/doc && \ + ln -s konwert konwert-dev + + # override hardlinks warnings + mkdir -p ${debdir}/konwert-filters/usr/share/lintian/overrides/ + cp debian/lintian-override \ + ${debdir}/konwert-filters/usr/share/lintian/overrides/konwert-filters + + # remove symlink to binary-arch filter (could be improved - is it worth ?) +# (cd ${debdir}/konwert-filters/usr/share/konwert/filters/ && \ +# ( test -L 512bold && rm 512bold ; \ +# test -L 512bold1 && rm 512bold1 ) ) + + # rename docdir + cd ${docdir} && mv konwert-* konwert-filters + + # remove GPL and redundant files + cd ${docdir}/konwert-filters && rm */COPYING en/CHANGES pl/ZMIANY + + dh_installdocs -pkonwert-filters + dh_installchangelogs -pkonwert-filters doc/en/CHANGES + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_perl -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: install + dh_testdir -a + dh_testroot -a + + install -d ${tmpdir}/etc/bash_completion.d/ + install -m644 debian/konwert.bash-completion ${tmpdir}/etc/bash_completion.d/konwert + + # what is this empy dir for ? + rmdir ${tmpdir}/usr/lib/konwert/devel/ + + rm -rf ${tmpdir}/usr/share/doc/konwert-1.8 + dh_installdocs -a + ln -s ../konwert-filters/en ../konwert-filters/pl ${tmpdir}/usr/share/doc/konwert/ + dh_buildinfo -a + dh_installchangelogs -a + + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_perl -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- konwert-1.8.orig/debian/konwert.bash-completion +++ konwert-1.8/debian/konwert.bash-completion @@ -0,0 +1,39 @@ +# Debian GNU/Linux konwert completion. +# Copyright (c) 2003 Vitalij K. Lysoff + +have konwert && +_konwert() +{ + local cur prev special i + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + filters=`ls /usr/share/konwert/filters/` + #filters="$COMP_CWORD "$filters + + if [[ $COMP_CWORD > 1 ]]; then + _filedir + return 0 + fi + + case "$prev" in + -o) + _filedir + return 0 + ;; + esac + + if [[ "$cur" == -* ]]; then + + COMPREPLY=( $( compgen -W '-o -O --help --version' -- $cur ) ) + else + + COMPREPLY=( $( compgen -W '$filters' -- $cur ) ) + + fi + + + return 0 +} +[ -n "${have:-}" ] && complete -F _konwert $filenames konwert --- konwert-1.8.orig/debian/konwert-dev.dirs +++ konwert-1.8/debian/konwert-dev.dirs @@ -0,0 +1 @@ +usr/share/doc --- konwert-1.8.orig/konwert.conffiles +++ konwert-1.8/konwert.conffiles @@ -0,0 +1 @@ +/etc/bash_completion.d/konwert