PS TEXT FORMAT Reference Manual
TFORMCVT: Converting From TGAL to TFORM
E-4 11387 Tandem Computers Incorporated
Commands That Cause
Line Breaks
In TGAL, all commands cause a break in line joining whenever they
appear; in TFORM, only the CENTER, DEFINE, FOOTER, HEADER,
KEEP, NEW, SPACE, STYLE, TITLE, and VERBATIM commands cause a
break. Naturally, this is apparent only when JOIN is ON. Instead of
inserting a BREAK command after all other commands when joining is in
effect, to produce a direct translation from TGAL, TFORMCVT follows the
TFORM style and allows joining to continue.
Paragraph Control A paragraph is defined as two or more text lines following a break. A
break is defined as a blank line or a command line. The end of a paragraph
is defined by another break.
In TGAL, when JOIN is ON and a paragraph is indented, it remains
indented. TFORM leaves the first line of such a paragraph indented but
joins the rest to the left margin. TFORMCVT attempts to indent
paragraphs as TGAL does by using the TFORM INDENT command with
the following algorithm:
If JOIN is ON and there are at least two indented text lines following a
break, TFORMCVT issues a TFORM INDENT command with a value equal
to the number of blank spaces in the second text line. If the first and
second lines have different indentations, the INDENT command is
followed by the command INDENT 0 to maintain the number of blanks in
the first line. Then TFORMCVT outputs the paragraph, followed by the
command INDENT OFF. Here’s an example:
\INDENT ON 5; INDENT 0
This is a paragraph that started with an indentation of 10
and continued with an indentation of 5. These following lines
will be indented 5 spaces in the TFORM formatted document.
\INDENT OFF