On Wed, 30 Aug 2000, Paul Lussier wrote:
> I seem to be having problems with LF->CR/LF translation with printing.
> Ironically, printing postscript files works just fine.
This would likely be because PostScript jobs contain an exact description of
the page in a formal language -- in other words, it should print correctly or
not at all. Contrast this with text, which is simply printed "as is" by the
printer.
> I installed 'printtool' under Debian, and it's the RH printtool. The
> printcap file is identical to that under other RH6.1 systems, except it
> doesn't work.
Minor difference, that. ;-) Red Hat's printing subsystem passes everything
through a filter script, which is controlled by a number of files in the
/var/spool/lpd/<printer_name>/ directory. For example:
$ ls -l /var/spool/lpd/lp
total 15
-rwxr-xr-x 1 root root 9443 Jun 27 1999 filter*
-rwxr-xr-x 1 root root 190 Jun 27 1999 general.cfg*
-rw-r--r-- 1 root root 4 Aug 30 21:17 lock
-rwxr-xr-x 1 root root 342 Jun 27 1999 postscript.cfg*
-rw-rw-r-- 1 root root 25 May 9 23:24 status
-rwxr-xr-x 1 root root 147 Jun 27 1999 textonly.cfg*
Things you may be interested in would be the "textonly.cfg" file, which has
an entry "CRLFTRANS=1" on my computer, and the "general.cfg" file, which has
an entry "ASCII_TO_PS=NO" for me. Enabling either option will likely fix your
problem.
You might also look for a DIP switch (or similar option) on your printer to
tell it to use Unix style EOL markers, as opposed to MS-DOS style. My old
dot-matrix printer had such a feature.
> I tried looking for where I'd change LF->CR/LF translation under
> printtool ...
On my RHL 6.2 box, at least, you select the printer, click "Edit", click
"Select" next to "Input Filter", and enable the "Fix stair-stepping text?"
option under the "Printing Options" section. (Got that? :)
> Any ideas? Is the LF->CR/LF translation something tweakable in the printcap
> file, or is it a filter thing?
The latter.
HTH,
--
Ben Scott <[EMAIL PROTECTED]>
| Linux: Something better then MS-Windows, for free! http://www.linux.com |
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************