User`s guide
4-18
Guide to Printers and Printing
Loops
%wx While loop. Whenever a matching %; is reached, the value of the
internal variable x (x can be a through z) is decremented by one. If the
result is greater than 0, execution is transferred to the character
following %wx.
Mode:
%o Starts using only original default values from the database instead of
values that may have been updated from the command line (or during
formatter processing).
%r Returns to using the values that were being used before %o.
Pipeline Overrides:
%p Indicates where to embed the prefix–filter pipeline in the main pipeline.
If not present, it is assumed to be at the beginning of the main pipeline.
Ignored if the first character of the attribute name is not i (that is it is not
a main pipeline)
%z Indicates where to embed the pioout string (device–driver interface
routine) in the main pipeline. If not present, it is assumed to be at the
end of the main pipeline. If the first character of the attribute name is not
i (that is, it is not a main pipeline), it is ignored.
%ix Can be specified only in a prefix filter string (that is, the first character of
the attribute’s two–character name is f). The x variable represents a
pipeline identifier character. The %ix variable specifies that the attribute
name for the main pipeline should be ix instead of iy, where y is the
parameter specified (or defaulted) for the –d flag. As a special case %i!
specifies that a null string should be used as the main pipeline.
Command Line Flags:
These operators are usually used in pipeline definitions, where they apply to flags specified
by the print job submitter. If specified in attribute strings used by a formatter, they apply to
the flags passed to the formatter. Valid flag letters are a through z, A through Z, and 0
through 9.
%Cy Pushes a value of 1 (true) onto the stack if flag y was specified on the
command line. Otherwise, pushes a value of 0 (false) onto the stack.
%Fxy or %F[...] Shorthand for %?%Cy%t–x %I_y%;. If the y flag was specified on the
command line, generates –x yarg, where yarg is the argument
specified for the y flag. If ! is specified for x, –x will not be generated. If
yarg contains an unprotected (not immediately preceded by an odd
number of back slashes) single or double quote, an error message will
be issued and the print job terminated.
If multiple flags are to be specified using %Fxy, and each flag’s x and y
values are identical, a list of flag letters can be specified in brackets. For
example, %Faa%Fbb%Fcc can be specified as %F[abc].
The values referenced by y or [ . . . ] have attribute names whose first
character is _ (underscore) and whose second character is y or a
character in the string [ . . . ].
%fxy or %f[ . . . ]
Similar to %Fxy and %F[ . . . ], except that no space is placed between
the flag name and the argument, unless the argument is a null string.