source code printPS.c (Nov. 2012)
(check the beginning of the source file for the compilation details
under UNIX, VMS or DOS).
Most recent addition is the Cyrillic (ISO-8859-5) encoding. Earlier versions
used only the Standard, ISO Latin1 and ISO Latin2 postscript encodings.
Relatively new are also the command line arguments -y2 and -yA
controlling in the printed file header the number of digits in the year
in the Last Modification Time.
Primary purpose (and my
main use) of printPS is to produce condensed (paper saving,
tree-friendly) listings of ASCII files (programs).
To get a feeling how printPS treats control characters, an old test text file
that has to be treated as a plain US-ASCII file, printPStest.txt,
containing backspaces and other control characters and sub/superscripts
(and also some accented Czech text - with accents placed on top of unaccented characters
using backspaces - obsolete), is provided.
Try to print this file using various options, such as -shAll, -sh, -sp and -ssOn.
But always with -encStandard!
Note that backspace in printPS actually goes back a little bit
less than the full width of the preceding character: when
overprinting the same character, this will produce bold
appearance. This is useful when printing some Unix (HP) man pages where bold
characters are simulated by overprinting by up to four times,
which apparently worked fine on the old line printers but not in
PostScript unless one uses the above trick.
printPS preprocessor (backspace filter) mainly for HP Unix man pages