[comp.unix.xenix] nroff printer driver for LQ2500

bblue@crash.cts.com (Bill Blue) (01/30/88)

Before I try to reinvent the wheel, does anyone already have a tabxxx
driver for nroff and an Epson LQ-2500 printer?  Source or compiled
version is fine, but source would be preferred for tweakability if
needed.

Thanks.

--Bill
        UUCP: {cbosgd, hplabs!hp-sdd, sdcsvax, nosc}!crash!bblue
        ARPA: crash!bblue@nosc.mil
        INET: bblue@crash.cts.com

chip@killer.UUCP (Chip Rosenthal) (02/02/88)

In article <2447@crash.cts.com> bblue@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@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.

carvalho@garnet.berkeley.edu (Marcio de Carvalho) (02/02/88)

In article <3176@killer.UUCP> chip@killer.UUCP (Chip Rosenthal) writes:
>
>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.
>
Maybe what follows doesn't apply to your version of nroff.  I run DWB 2.0
on an ATT 3b2, and was informed of the following undocumented feature:

You can enter 8-bit characters in the "charset" table by preceding it with a 
"%".

For example (for an IBM character set printer):

*a 1 %\340
*b 1 %\341
bu 1 %\371


This way you can also use the foreign language characters by creating
the appropriate string (Any 2-character name):

a' 1 %\240