User`s guide

4-15
Printer, Plotter, and Spooler Subsystem Programming
%Dxx Downloads to the printer the contents of the file whose full path name is
specified by the xx attribute. The print job must have read access to the
file. The primary use of this operator is to download fonts to a printer.
%”sss” Pushes a pointer to the sss string constant onto the stack. The only
operation that can be performed on the string pointer is to use %= to
compare the string with another string whose pointer is also on the
stack.
%‘xx Inserts the standard output produced when the command string
specified by the xx attribute is passed to a shell. Note that ‘ is the grave
accent character.
%’ ”String Passes the quoted string as a command to a sub shell. Any double
quotes within the quoted string must be back–quoted to prevent the
internal quotes from being read as delimiters for the string. Note that ‘ is
the grave accent character.
Input Integer To Stack:
%#xx”..@..” Extracts a selected portion of the string attribute named xx. The
selection criteria is defined by the pattern ”...@...”. The selection
pattern consists of three parts:
1. The string immediately preceding the string to be extracted. If the
prefix regular expression is missing, the extracted string consists of
the entire string preceding the pattern specified by the suffix regular
expression.
2. The extracted string replaces the %#xx”..@..” operation sequence
in the attribute currently being processed.
3. The string immediately following the string to be extracted. If the
suffix regular expression is missing, the extracted string consists of
the entire string following the pattern specified by the prefix regular
expression.
No string is extracted if the value of the string attribute is null. No string
is extracted if the prefix or suffix regular expression is nonnull and does
not have a corresponding match in the attribute value string.
Note: The ampersand (@) and quote ( ) characters need to be
surrounded with a separate pair of quotes if their meaning is to be taken
literally. Otherwise, the program reads these symbols as delimiters.
When embedding a %# operator within a regular expression portion of
another %# operator, the ampersand ( @ ) and quote ( ) characters
cannot be used for their literal meaning. To avoid this situation, place
the embedded %# operator in a separate attribute value and include the
new attribute within the regular expression of the outer %# operator.
%Gxx Gets the integer attribute whose name is xx and pushes it onto the
stack. If the attribute is a string instead of an integer, the string is
assumed to be an ASCII integer. It is converted to a binary integer using
the atoi subroutine and pushed onto the stack.
%’c’ Pushes character constant c onto the stack, where it becomes the
low–order byte of an integer value. The high–order bytes are set to 0
(zero).
%{nn} Pushes integer constant nn onto the stack. The constant is a decimal
value and can be either positive or negative.