-----Original Message-----
From: Bret Hughes [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 11, 2000 7:22 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Hp print anomoly (SOLVED but whew!)


Jose-

Thanks for the tip and sorry I did not thank you earlier, I thought that
I had.

Anyway the problem was that I had the "fast text printing" box checked
in the printtool for this printer.

Still trying to figure out what all goes on here.  This is what I have
come up with so far and it can't be right, can it?

(lp is a remote hp5si using jetdirect card and lj4 filter)

When I do:
#man autorpm |lpr

man somehow knows that the standard output is not the destination and
groff is used to format output (not sure where groff fits but I know it
is there somewhere) I believe the page footer is here at this point
since it is there when I do a man autorpm > autorpm.man and less
autorpm.man

---

Correct, but for even prettier output, try the following...

#man autorpm -t | lpr

You might have to hit the continue button on the printer... do so..
---


lpr spools its input to the default printer lp

the /var/spool/lpd/lp/filter script is used to try and determine what
type of file it is.
if fast ascii text is on then the asc-to-printer.fpi script is called
and after changing the CR to CR/LF using sed the data is dumped straight
to the printer (I guess in the filter script)

My guess is this is where I was getting an extra linefeed that was
causing all the pagination to be off.

Now the fun part.  if not fast ascii text then the filter script does
 cat - |asc-to-ps.fpi|ps-to-printer.fpi

that converts the ascii output from groff into postscript and then uses
ghostscript to print the postscript.

Wow!  Even if I am close I had no idea.

---

Right on the money... that's whats so "cool" about it... Linux turns your HP
into a Postscript printer via Ghostscript...

I use this "feature" all the time... I have Winblows/Samba clients printing
Postscript output to my Ghostscripted HP(s).... you actually get better
grayscale this way... plus a few other features, such as page thumbnails...

The "man -t" takes it a bit further letting groff/troff preprocess the MAN
page output for final postscript to hpgl rasterizing...

Seemingly a very roundabout way of doing things, yet it works so darned well
in Linux...

---


I did not find the fast_ascii_text test in the filter file since I was
on the track before I really got into it and running the printool
changed the filter script. at least vi complained when I got out of it.

I got on the right track after finding the DEBUG_* variables in the
filter file and setting them to 1, printing, and then looking in
/tmp/filter.debug.

Again thanks for tip of looking in man printcap it got me started down
the right path anyway.

Bret

"Jose M. Sanchez" wrote:
>
> Are you sure that linux is set up for A4 format (or the reverse letter
> size).
>
> I had this problem myself and all I had to do was modify the printcap for
> the appropriate page size (man printcap).
>
> By default my output was arriving as Euro A4 format instead of letter.
>
> -JMS
>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to