Mailinglist Archive: opensuse (3644 mails)

< Previous Next >
Re: [SLE] Printing HTML Source
  • From: "Jason A.Van Cleve" <jason@xxxxxxxxxxxx>
  • Date: Tue, 12 Mar 2002 23:46:37 -0800
  • Message-id: <20020312234637.6f03e5f8.jason@xxxxxxxxxxxx>
As I mentioned to someone (maybe a different list), I really wanted a text-mode
solution, as I'm trying to approach Linux from that direction. I did, however,
print it from my IDE, Visual SlickEdit, but that just uses lpr, so the output
was the same. Luckily, SlickEdit let's me configure the print command, so I
was able to tell it to use -Plp-ascii from now on.

Sounds like the KDE editor is configured that way by default? Personally, I
run Enlightenment alone, so loading kedit would be overkill.

--Jason


On Mon, 11 Mar 2002 21:32:56 +0100, Jim Hatridge
<James.Hatridge@xxxxxxxx> wrote:


HI all....


I'm glad to see that you've got it printing. But a simpler idea, why
not try to open the html file in the KDE text editor? I did that
with a html file and it showed the coding. Then print from there.

What do you think?

JIM


On Monday 11 March 2002 08:24, Jason A.Van Cleve wrote:
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

--
Jim Hatridge
Linux User #88484
------------------------------------------------------
BayerWulf
Linux System # 129656
The Recycled Beowulf Project
Looking for throw-away or obsolete computers and parts
to recycle into a Linux super computer

--
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 >