📄 script-postscript-tso.txt
字号:
adjust value of zero is set at one half inch from the left edge of
the paper.
Font Select: PostScript does have a Font Select capability, directly.
The font numbers are physical font numbers determined by the POSTS
user interface file (.im POSTS FONT).
Horizontal Spacing Units: The output file allows the PostScript
printer to operate at 72000 horizontal units per inch.
Justified Text: An output line that is to be justified to a left and
right margin is controlled by SCRIPT. SCRIPT defines the left
margin with Absolute Placement and inserts horizontal movement func-
tions within the text to control placement of all characters in the
line.
Justify Left, Centre and Right: SCRIPT positions the start of these
three line types with Absolute Placement to the start co-ordinates
of the text. The text is presented and the device prints the data
without modification.
Move Carriage Right: Inter-word blanks on justified text lines are
implemented with a Move Carriage Right command. A Right Relative
function is generated for horizontal movement.
Multiple Columns: Multiple Column output is fully supported. The
start position of the current column is added to the absolute start
position of any text which follows.
page 12 Waterloo SCRIPT and a PostScript Printer
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
Pagination: PostScript does have an End of Page function. The start
and end of each page in the SCRIPT output file is marked.
Pointsize: Each font select is qualified with a pointsize. Each size
of a particular font is scaled by the printer controller. Only a
single character definition exists for all different sizes.
Rules for Boxes: The vertical and horizontal rules created with the
Box command are extracted from their generated output records. At
the bottom of each page, the rules are sorted and joined together
where possible to create the smallest number of rule draw commands
to create the desired result.
Set Leading: The initial Vertical Leading value or space between the
baseline of one output line and the next is set to an initial value
based on the LPI parameter. The initial default is six Lines Per
Inch. It may be altered with the Set Leading (.SL) control word.
Subscript and Superscript: PostScript can perform subscript and
superscript operations on all printable characters in all fonts.
Tabs: All forms of Tabs are supported, left, centre and right
aligning, and character aligning, with or without fill strings.
Such tabs process the text as the data before the tab, the tab fill
(if any) and the text following the tab.
Underscore: Underscoring of text, including blanks if required by
Underscore Definition (.UD), is supported. The post-processor
emulates this function with horizontal rules.
DEVICE OUTPUT APPENDAGE
All of SCRIPT treats the PostScript printer as if it were an online
terminal. It is the purpose of a single output appendage within
SCRIPT to take each terminal output line and translate it into text
and command codes the post-processor will understand. The internal
SCRIPT text contains high level functions described under "Device
Definition" that may be acted upon.
Appendage Job Directory Comments
Job Directory Comments to passed to the post-processor are generated
with the Output Comment (.OC) control word. Such comments are marked
with an internal escape function and recognized by the appendage. No
checking for valid Job Directory Comments or proper sequencing of
these Job Directory Comments is performed. It is the function of the
POSTS Device Interface to generate all of the Job Directory Comments
that are required. The user should not require Output Comment (.OC)
when using PostScript.
Waterloo SCRIPT and a PostScript Printer page 13
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
Appendage Text
A record of text that is passed through the PostScript dependent
appendage is processed for escape functions requiring emulation.
The font escapes are translated into Escape codes. The fonts may
be qualified by underscore attributes. Any unknown escape functions
are passed through as is.
If the input text to the appendage is entirely blank, the vertical
position marker is updated and the line is not processed.
Appendage End of Page
The PostScript Device Definition includes an End of Page escape func-
tion. When this is recognized the box lines on the current page are
processed and the page is terminated.
page 14 Waterloo SCRIPT and a PostScript Printer
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
Waterloo SCRIPT and a PostScript Printer page 15
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
Part 4
POSTSCRIPT POST-PROCESSOR
This part contains a description of a SCRIPT post-processor that
transforms the SCRIPT output into a PostScript data stream for the
printer controller.
The post-processor performs a second function in that it places a
second step between the SCRIPTing of the file and the printing of it.
Should errors occur while SCRIPTing, the output file will exist on
temporary disk rather than on SPOOL space awaiting print. It also
allows for a file to be SCRIPTed once and the file to be directed to
the printer as required.
PURPOSE
The output file generated by SCRIPT when the "POSTS" option is speci-
fied contains comment information at the start of the file followed by
print information. The first record of the file either contains the
user text from ".im POSTS PRINT" or an internally generated PRINT
record that identifies the version of SCRIPT, the time and date. This
Job Directory Comment is always on a separate record in the SCRIPT
output file.
The records which follow immediately, will contain information
about the fonts being used in the following print data. Each such
record begins with <esc>F followed by a Physical Font Number which is
followed by the name of the PostScript font definition member and
Physical Font Name. These records are generated through the ".im
POSTS FONT" device interface, one record for each unique font name.
The font records must occur in the SCRIPT output file before any print
data refers to the font.
Note: It is strongly suggested that the definition of fonts to be
used should all be placed at the beginning of the SCRIPT input file.
It is simply good programming practice to define the fonts required
once, at the start of the document.
page 16 Waterloo SCRIPT and a PostScript Printer
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
POSTS PHYSICAL FONT DEFINITIONS
The post-processor works in conjunction with a table containing all of
the supported fonts for the device and the widths of the characters in
those fonts.
This table called "PDPOSTS" is maintained separate from the post-
processor. If other fonts are to be supported by the post-processor
they must be first added to "PDPOSTS".
FUNCTION
The PostScript post-processor begins operation by opening three files,
one for input and two for output.
SYSIN This is the output file produced by SCRIPT with the "POSTS"
option. It must be a file of variable length records with
no carriage control, and a maximum record length of 1024
characters.
SYSTERM This is the file where any error messages will be displayed.
It is expected to be variable length, 121 byte with ASA
carriage control. The file may be made fixed or variable
with a record length up to 144.
SYSOUT This is the output file that will ultimately be sent to the
PostScript printer for processing. The default output is
fixed length, eighty byte records. It is possible to change
the record length of the output file by specifying a
different LRECL on the FILEDEF for SYSOUT under CMS or on
the DD card for SYSOUT under MVS.
Under MVS, this output file may be allocated either to a
dataset or directly to a SYSOUT printer interface. In a CMS
environment, this output file would normally be allocated to
a disk file with filetype "LISTPS" or to a PRINTER directed
to a PostScript server machine.
Operation of the program then proceeds as follows:
1. Perform initialization which includes:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -