[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HP printer tool
The program
http://www.cl.cam.ac.uk/~mgk25/download/hpp.c
is a quite simple but nice tool to print a fixed-width plaintext file on
a HP LaserJet or DeskJet using the built-in PCL fonts.
The encoding of the plaintext file is determined by the locale, so for
instance write something like
LANG=en_GB.UTF-8 hpp filename.txt | lpr -Pljet
to print a UTF-8 file.
"hpp" switches automatically between several HP fonts to cover a broader
repertoire than any 8-bit font could provide. It covers ISO 8859-1,2,9,
CP437, CP850, CP1252, Mac Roman, PostScript Standard, PostScript Symbol,
and a few more things. Unavailable characters and illegal multi-byte
sequences are represented by different italic question marks.
The program is written in portable standard ISO C 99.
Enjoy ...
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/