[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Printing text

Quoting Stephen E. Hargrove (stephen@virtual-attorney.com):

> I'm still chasing my text problem.  I've installed magicfilter, and it
> prints postscript files just fine.  However, text files suffer from the
> dreaded stair-step problem.  Following is my printcap file.  Any
> suggestions would be most appreciated.
> # This file was generated by /usr/sbin/magicfilterconfig.
> #
> lp|lp|HP Laserjet 4L:\
>         :lp=:sd=/var/spool/lpd/lp:rm=\
>         :sh:pw#80:pl#66:px#1440:mx#0:\
>         :if=/etc/magicfilter/ljet4l-filter:\
>         :af=/var/log/lp-acct:lf=/var/log/lp-errs:

Three ways:

1) Look at the last line of ljet4l-filter and find out why it
doesn't fix the problem. Some of the filters use "text" instead
of "cat" which may make the filter do something special (as my
modified Epson filters do). Obviously I don't have a clue what
cat     \eE\e&k2G\e(0N  \eE
is meant to do.

2) Use a2ps to turn the text file into postscript (and much, much
more of course). I never print text files as is.

3) Some printers have a "text" queue as well as a "raw" queue so that
you can have a separate entry in printcap:

    :rp=raw:\                  groks PS

    :rp=text:\                 groks text with any old line-ending char


Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.

Reply to: