PS TEXT FORMAT Reference Manual
TFORMCVT: Converting From TGAL to TFORM
E-2 11387 Tandem Computers Incorporated
Translation Overview The input to TFORMCVT is a syntactically valid TGAL file. (The term
“TGAL file” means a file—usually in edit format—containing TGAL
commands, intended to be input to TGAL for formatting and printing; a
“TFORM file” is one containing TFORM commands.) The output file
begins with the translation of TGAL defaults, followed by text lines,
TFORM commands, and (possibly) error messages. Output text lines
generally remain identical to input text lines.
In many ways TGAL and TFORM behave differently from each other.
Although TFORMCVT attempts to overcome these differences, it is not
always possible or desirable to duplicate exactly the effects of TGAL. There
are differences between TGAL and TFORM in dealing with scopes of
commands and in the distinction of which commands cause line breaks
and which don’t. There are also differences in the definition and handling
of paragraphs. Sometimes, there is no direct translation into TFORM for a
TGAL command, and TFORMCVT responds with an error message.
TGAL Defaults Because TFORM default values are different from TGAL defaults,
TFORMCVT automatically places several TFORM commands in the first
six lines of all of its output files to set certain TFORM entities to the same
values as the TGAL defaults. These commands are shown below.
\HEADER 1 " "; HEADER 2 " "
\FOOTER 1 " "; PAGE 1;FOOTER 2 "||#"
\STYLE MARGIN RIGHT 15 CHARS; STYLE MARGIN LEFT 0
\ASSIGN TGAL_1 0; ASSIGN TGAL_2 0; ASSIGN TGAL_3 0; ASSIGN TGAL_4 0
\ASSIGN TGAL_5 0; ASSIGN TGAL_6 0; ASSIGN TGAL_7 0; ASSIGN TGAL_8 0
\ASSIGN TGAL_9 0; ASSIGN TGAL_10 0;
The variables TGAL_1 through TGAL_10 represent the “toggles” used in
TGAL IF and SET commands; they are used correspondingly in TFORM IF
and ASSIGN commands.