nroff printer driver for LQ2500

Chip Rosenthal chip at killer.UUCP
Tue Feb 2 02:38:28 AEST 1988


In article <2447 at crash.cts.com> bblue at crash.cts.com (Bill Blue) writes:
>
>Before I try to reinvent the wheel, does anyone already have a tabxxx
>driver for nroff and an Epson LQ-2500 printer?

I did one of these for the Okidata 193.  I think they use different escape
codes and special characters, so I don't think my tables will be any help.
But, the problem which bit me might also get you.

The problem is that nroff will only produce 7-bit characters.  The special
characters in my printer (e.g. greek letters) require 8-bit characters.
Fine...what I did is translate 8-bit characters to the two-character
sequence { TRIGGER_CHAR, (8_BIT_CHAR & 0177) } and place this two character
sequence in my table.  Then I modified my line folding/backspace translating
output filter to translate this two-character sequence back to a single 8-bit
character.

All is fine and dandy, until you filter the nroff output through the "col"
command.  If you do it prior to the printer filter, then it eats the
trigger character.  If you do it after the printer filter, it merrily
eats the MSB from 8-bit characters.

As a result, I don't mess around with the special characters anymore, and
I just use the dumb "tablp" nroff driver.

-- 
Chip Rosenthal         chip at vector.UUCP		| But if you want to sing the
Dallas Semiconductor     (214) 450-0400		|  blues, then boy you better
{texsun,codas,ihnp4}!killer!vector!chip		|  learn how to lose.



More information about the Comp.unix.xenix mailing list