Spooler Utilities Reference Manual

Font Utility
Spooler Utilities Reference Manual522295-003
5-11
CONTROLBUF Directive
Example of User-Character Translation (CONTROLBUF 101)
The following example provides a translation table through a CONTROLBUF 101
directive to instruct FASTP to replace some nonprintable characters with spaces. This
translation changes nonprintable characters that can produce incorrect output. The
CONTROLBUF operation must be 101.
CONTROLBUF data contains the characters to be translated. Each translation is
given as a pair of bytes. The first byte in each pair is translated into the second byte.
There is no need to include characters that do not need translation.
?START-FONT
?FONT CTRLSPACE
?CONTROLBUF 101
! Input Output
%000 , %040 ! Null to space
%003 , %040 ! %3 to Space
%200 , %040 ; ! %200 to space
?END-FONT
! Configure the #INVOICE location with the CTRLSPACE FONT
?START-LOCATIONS
! Location Font Device
#INVOICE.DEFAULT CTRLSPACE $LP2
! ...
Example of Top-of-Form Substitution (CONTROLBUF 103)
The following example shows a font job that can load alternative top-of-form
sequences into the FASTP print process. The sequences remain in effect for the
duration of the font job. The script file in this example creates font job LPX8D which
allows 8 spooler pages per 8-1/2 by 11-inch sheet to print on a 5577 laser printer.
Successive top-of-form sequences are replaced so that the printer is positioned to a
new point on the current page instead of using a new page each time.
The CONTROLBUF operation must be 103. CONTROLBUF data contains the
substitute top-of-form sequence. The multiple calls to CONTROLBUF 103 load several
substitute sequences. FASTP will use each in turn.
?START-FONT
?FONT LPX8D ! FONT to print 8 pages per 8 1/2 X 11 sheet
?SETMODE 6 0 1 ! Transparent
%33,"(8U",%33,"(s0p3.6v0s0b0T" ! Fixed line printer 3.6 Pt
%33,"&l1O" ! Landscape
%33,"&k4.78H" ! HMI = 4.78 120ths
%33,"&l2.65C" ! VMI = 2.65 48ths
%33,"&l1S" ! Duplex long-edge binding
%33,"&a6L" ! Left margin 6
?SETMODE 6 1 0 ! Normal
! This sets up the printer to do 4 Tandem pages per side
! by supplying a list of substitute top-of-form sequences
! to FASTP
?CONTROLBUF 103 ! Top-of-form substitute