Mailinglist Archive: opensuse (3644 mails)

< Previous Next >
Re: [SLE] Printing HTML Source
  • From: "Jason A.Van Cleve" <jason@xxxxxxxxxxxx>
  • Date: Sun, 10 Mar 2002 23:24:39 -0800
  • Message-id: <20020310232439.7d29ff7f.jason@xxxxxxxxxxxx>
Thank you Anders, -Plp-ascii did the trick! -Plp-raw didn't work--nothing
printed. And -Plp-ascii still interprets the file as containing HTML and takes
several liberties with fonts, highlighting things according to whether they are
tags, attributes, strings, etc. I wish it would leave well enough alone and
just give me monospaced, but I can live with the formatting.

Appreciatively,

--Jason Van Cleve


On Mon, 11 Mar 2002 05:19:10 +0100, Anders Johansson
<andjoh@xxxxxxxxxxxxxxxxxxxxx> wrote:

On Monday 11 March 2002 05.15, Jason A.Van Cleve wrote:
### BEGIN apsfilter: ### /etc/gs.upp/y2prn_lp.upp lp ###
# Warning: Configured for apsfilter, do not edit the labels!
# apsfilter setup Sun Dec 9 23:31:52 PST 2001
#
lp-ascii|lp1|y2prn_lp.upp--ascii-lp|y2prn_lp.upp ascii:\

:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_lp.upp--ascii-lp:\
:lf=/var/spool/lpd/y2prn_lp.upp--ascii-lp/log:\
:af=/var/spool/lpd/y2prn_lp.upp--ascii-lp/acct:\
:if=/var/lib/apsfilter/bin/y2prn_lp.upp--ascii-lp:\
:la@:mx#0:\
:tr=:cl:sh:

#
lp|lp2|y2prn_lp.upp--auto-lp|y2prn_lp.upp auto:\

:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_lp.upp--auto-lp:\
:lf=/var/spool/lpd/y2prn_lp.upp--auto-lp/log:\
:af=/var/spool/lpd/y2prn_lp.upp--auto-lp/acct:\
:if=/var/lib/apsfilter/bin/y2prn_lp.upp--auto-lp:\
:la@:mx#0:\
:tr=:cl:sh:

#
lp-mono|lp3|y2prn_lp.upp--auto-lp|y2prn_lp.upp auto:\

:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_lp.upp--auto-lp:\
:lf=/var/spool/lpd/y2prn_lp.upp--auto-lp/log:\
:af=/var/spool/lpd/y2prn_lp.upp--auto-lp/acct:\
:if=/var/lib/apsfilter/bin/y2prn_lp.upp--auto-lp:\
:la@:mx#0:\
:tr=:cl:sh:

#
lp-raw|lp4|y2prn_lp.upp--raw-lp|y2prn_lp.upp raw:\

:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_lp.upp--raw-lp:\
:lf=/var/spool/lpd/y2prn_lp.upp--raw-lp/log:\
:af=/var/spool/lpd/y2prn_lp.upp--raw-lp/acct:\
:if=/var/lib/apsfilter/bin/y2prn_lp.upp--raw-lp:\
:la@:mx#0:\
:tr=:cl:sh:

#
### END apsfilter: ### /etc/gs.upp/y2prn_lp.upp lp ###

I've tried cat'ting the file strait to /dev/lp0, but nothing
happened. I'd sure like to know why this one is so difficult, for
I don't see why lpr should be doing this conversion in the first
place, especially on a .txt file.

Printing to printer lp -Plp is 1) completely unnecessary, since lp
is the default, and 2) a synonym for "auto" which if you look at
apsfilter's sources will try to parse your code and create
postscript out of it and send it through ghostscript to print.

What you should do is print it through either printer raw (-Plp-raw)
or printer ascii (-Plp-ascii). With lp-raw there is no conversion,
and with lp-ascii it is assumed to be ascii text.

regards
Anders

--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/support/faq and
the archives at http://lists.suse.com



< Previous Next >
Follow Ups