User`s guide

4-9
Printer, Plotter, and Spooler Subsystem Programming
Filter Flag Attributes
Attributes grouped under the _ _FIL group header attribute store command strings for text
filter flags. The first character of the attribute name is always f and the second character
denotes the type of filter. Filter flags, such as –p and –n specify to the backend program the
type of filter used to format the print job. Filter attribute designations are:
fp pr filter
fn Formats files containing ditroff (device–independent troff) data
fl Prints control characters and suppresses page breaks
ft Formats files containing data produced with troff commands
fd DVI filter formats files created with tex
fg Formats standard plot data files (files created with plot)
fv Formats raster image files
fc Formats files containing data produced with cifplot
ff Interprets the first character of each line as a FORTRAN carriage control character.
fb Determines the locale support for Arabic and Hebrew. Must be /usr/bin/bprt.
The width must be set to 80 and the data stream set to a for extended ASCII. Add
the flag – tashkeel to print documents with diacritics.
The value stored in a filter attribute designates the command string for the specified filter.
Entries for a supported PostScript laser printer can include:
_ _FIL COMMAND STRINGS FOR FILTER FLAGS (2 char,
1st=”f”,2nd=flag)
fn Command String for the ”n” Filter.
/usr/bin/psc%is
fp Command String for the ”p” Filter
/bin/pr –l%G_l%d –w%G_w%d%F[h] %I@1%ia
fb Command String for the ”b” Filter.
/usr/bin/bprt–w%I_w –d%I_d–tashkeel
These same attribute values are stored in the colon file as follows:
:055:_ _FIL::
:269:fn::/usr/bin/psc%is
:270:fp::/bin/pr –l%G_l%d –w%G_w%d%F[h] %I@1%ia
The fd attribute is a typical filter attribute. It is used to specify a DVI filter for the virtual
printer. Use SMIT or the chvirprt command to specify this filter. For example, to specify a
DVI filter by using SMIT, enter:
smit lsvirprt
Select the desired virtual printer and type the following:
fd=/usr/bin/dvi_to_printer%ip
where dvi_to_printer specifies the full pathname of the filter that converts the DVI
output from tex to the format expected by the printer. The %ip designation forces the
pass–through pipeline (the ip attribute) to be used to process the print file instead of the
ASCII pipeline (ia attribute). The pass–through pipeline causes the output from the filter to
be passed to the printer unmodified.
Once the DVI filter has been specified in the fd attribute, you can send a print command
such as lpr –d DviFile or qprt –fd DviFile. The –d and –fd flags for the respective
commands pass DviFile, an output file produced by tex, through the DVI filter and send the
results to the printer.
Directory Attributes
Directory attributes are grouped under the _ _DIR group header attribute. These attributes
store path names to various files needed to process print requests, such as translate tables,