[comp.unix.questions] Control Characters in nroff

artp@motbos.UUCP (03/04/87)

Does anyone out there have experience in embedding non-printing ASCII characters
in an nroff file ?  For example, the NEC Laser Printers use an ASCII FS (Form
Separator) character to control various font / print modes.  I have had no
problems embedding an ASCII ESC (Escape), but the FS is stripped out.

I have tried using translations (.tr), escape character redefinition (.ec),
multiple backslashes, \&, etc. All result in the FS being stripped out of
the output stream.
-- 

Regards,
Art
-------------------------------- 

<< Unusual Disclaimer >>

Art Parmet - AEM @ Motorola Semiconductor, Woburn, Ma.
UUCP: {hplabs!motsj1, mot!motsj1} {cdx39, motsj1, mottom,
oakhill, mnetor, motatl, motdc1, motrhr, motwdc, mcsbos,
mothup, motham, honcsp, motcso}....motbos!artp

Voice:      +1 617-932-9700
UUCP:       +1 617-932-9191
Fax:        +1 617-932-9100

henry@utzoo.UUCP (Henry Spencer) (03/17/87)

> Does anyone out there have experience in embedding non-printing ASCII
> characters in an nroff file ?  For example, the NEC Laser Printers use an
> ASCII FS (Form Separator) character to control various font / print modes.
> I have had no problems embedding an ASCII ESC (Escape)...

I'm rather surprised that you got away with ESC.  Nroff/troff converts its
input entirely into its own internal alphabet while processing, and if the
character you want isn't in the internal alphabet, you're up the creek.
There is no way, short of getting something else through and then translating
that into the character you want.
-- 
"We must choose: the stars or	Henry Spencer @ U of Toronto Zoology
the dust.  Which shall it be?"	{allegra,ihnp4,decvax,pyramid}!utzoo!henry