If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From: Jean-Pierre Radley <jpr@jpr.com> Subject: lprpp Date: Sat, 17 Mar 2001 16:49:01 GMT In the HPLaserJet interface script, output is piped through /usr/lib/lprpp *unless* the -oraw option has been passed to the lp command. SCO didn't provide the man page for this filter, but it exists on other Unix distributions:
lprpp
This is a filter that converts backspace overstrike to line overprint
with horizontal print positioning to enhance bold print. This
functionality is required on printers such as the LaserJet, which
cannot produce bold print by overstriking.
Options:
-i Converts <ANYCHAR> to <ANYCHAR><BACKSPACE>_ to
italicize ANYCHAR. Also properly italicizes
overstruck (bold) characters. Does not work
correctly for "hashed-overstrike" such as
<ANYCHAR><BACKSPACE><DIFFERENTCHAR><BACKSPACE>_.
-o Print only the odd numbered pages. Used with -e
for double-sided printing.
-e Print only the even numbered pages. Used with -o
for double sided printing.
-lnn Specifies the page length in lines. Default is 60
unless -n or -p is selected, in which case it is
66.
-n Specifies nroff mode for printing output of the
nroff command. Prints 66 lines per page with the
first line appearing on logical line 4 of the
printer.
-p Specifies pr mode for printing output from the pr
command. Prints 66 lines per page with the first
line appearing on logical line 3 of the printer.
There are some side effects not mentioned in that description:
a formfeed character is introduced every 'page lentgh' lines,
tabs are converted to spaces,
trailing carriage returns are suppressed.
That last effect bit badly when substituting an HP2100 for an older
LaserJet. That printer has no control panel, and does not offer a way
to make it supply CRs upon seeing LFs; so text that was produced with an
LF/CR pair by an application reached the printer without the CRs, and
the text stair-stepped itself clear off the page.
This can be cured by editing the script not to use the lprpp filter, or
by piping the final do/done loop through lponlcr.
One of these days, I *might* play with the possibilities offered by the
-e/-o options of lprpp. :-)
--
JP
/Bofcusm/1049.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar