BSfilter - a preprocessor for printPS
- Source code: BSfilter.c
-
Purpose:
On many Unix machines, man pages produce highligted text by repetitive overprinting
using backspaces. If a character is overprinted by a different one, on the
screen only the top character shows. Apparently due to this feature,
authors didn't bother to remove especially from many of the HP Unix man
pages (e.g. from the one for ksh) characters that are invisible on the screen, but
show up in the output printed by printPS. The purpose of this filter is
to remove such unwanted characters, that may create confusion in the
printed output (to print only those characters that actually appear
on the screen). Exception are the underline characters that are never
removed even if "overprinted" by something else.
- Usage:
man command | BSfilter | printPS -port2 -noh -bxoff -lines66 - | lpr ...
or simply:
BSfilter < input_file > output_file