Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpr(1)

pr(1)

printcap(5)

lpd(8)

MAKEDEV(8)

pac(8)

ln03rof(8)

Name

ln03rof, ln03rof_isolatin1, ln03rof_decmcs − LN03R ASCII to PostScript (TM) translation filters

Syntax

/usr/lib/lpdfilters/ln03rof [−c] [−nlogin] [−hhost] [−wwidth] [−lnum] [−iindent]  [accounting file]

Description

The ln03rof filter translates ASCII to PostScript (TM), handles the device dependencies of a PostScript (TM) printer and performs some accounting functions. PostScript (TM) printers print documents formatted in the PostScript (TM) Page Description Language only.

The ln03rof_isolatin1 and ln03rof_decmcs filters are alternatives to ln03rof, and affect how ASCII documents are printed. They cause the encoding vectors for ISO Latin1 or DEC MCS to be used instead of the Adobe Standard Encoding Vector described in the LN03R PostScript Programmers Supplement.  The ln03rof filter uses idle cycles to cache the fonts when accessed by the standard encoding vector. The cached fonts cannot be used by ln03rof_isolatin1 or ln03rof_decmcs which means that small jobs will be slowed down.

The ln03rof filter is transparent to documents already formatted in PostScript (TM). The filter assumes that all other documents are plain ASCII and translates them into PostScript (TM). The decision to translate is based on the first two characters in the document. If they are ‘%!’, the filter assumes the document has already been formatted in PostScript (TM).  If the first two characters are not ‘%!, the filter assumes that the document is plain ASCII and translates it into PostScript (TM).  The ln03rof filter ensures that the printer receives documents formatted in PostScript (TM) only. The ln03rof filter maintains accounting information only for documents that it translates. You specify the accounting file with the af field in the /etc/printcap file.  For further information, see printcap(.).

You can specify the ln03rof filter in both the of and the if fields of the /etc/printcap file. The specification of the filter in the /etc/printcap database determines how the lpr() command affects the printed document. For example:

•If you specify the of field only and do not suppress banner pages, the filter will always translate the document into PostScript (TM). 

•If you specify the if field and do not suppress banner pages, the document will not print.  In this case, the banner is sent directly to the printer. Since the banner is not formatted in PostScript (TM), the printer cannot print the document and aborts the job. 

•If you suppress the banner by including the sh field in /etc/printcap or by printing the file using the lpr() with the −h option, the document prints correctly. 

•You can obtain the best results by specifying the filter in both the of and if fields. 

For a more detailed discussion on filters see the “Line Printer Spooler Manual” in the ULTRIX Supplementary Documents, Volume 2: Programmer. 

Options

The arguments passed to the filter depend on its use.  The of filter is called with the following arguments:

ln03rof −wwidth −llength
The width and length values come from the pw and pl fields in the /etc/printcap database. The if filter is passed the following arguments:

ln03rof −c −nlogin −hhost −wwidth −lnum −iindent  accounting file
The −c flag is optional.  Use it to print control characters when you use the −l option of lpr() to print the file. The −w and −l arguments are the same as for the of filter, however, they may have different values if the −w and/or −z options of lpr() were used to print the file. If the value of the width is greater than 80 the job will be printed in landscape mode with a slightly smaller font. If the value of the length is greater than 88 a smaller font will be used. The −n and −h arguments specify the login name and host name of the job owner.  These arguments are used to record accounting information.  The −i option specifies the amount of indentation to be used.  The last argument is the name of the accounting file specified from the af field in the /etc/printcap database. These arguments only affect documents that are translated from ASCII to PostScript (TM).

Diagnostics

The lf field (default /dev/null) in the /etc/printcap database specifies error logging file name.

Files

/etc/printcap
Printer capabilities database

/dev/lp?

See Also

lpr(1), pr(1), printcap(5), lpd(8), MAKEDEV(8), pac(8)
“Line Printer Spooler Manual,” ULTRIX Supplementary Documents, Volume 2: Programmer

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026