Example 2-3. Sample Font Utility Script File Using Controlbuf 101 - HP Spooler FASTP Manual

Network print processes
Table of Contents

Advertisement

Installing and Configuring FASTP Network Print
Processes
CONTROLBUF Operations
A FASTP network print process responds to the CONTROLBUF operations described
below. Any other values cause the CONTROLBUF operation to be ignored.
CONTROLBUF 101 — User Character Translation
CONTROLBUF 101 translates job characters based on a translation table supplied by
the user. Typically, a FONT job supplies the desired character substitutions.
CONTROLBUF 101 applies to single-byte characters only. The syntax of
CONTROLBUF 101 is:
CONTROLBUF 101 buffer;
where
buffer
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 don't need translation.
Example 2-3
contains a sample Font utility script file that uses the CONTROLBUF 101
operation to create a translation table to replace some non-printable characters with
spaces:

Example 2-3. Sample Font Utility Script File Using CONTROLBUF 101

START-FONT
?FONT CTRLSPACE
?CONTROLBUF 101
! Input
%000
,
%040
%003
,
%040
%200
,
%040 ;
?END-FONT
! Configure the #INVOICE location with the CTRLSPACE FONT
?START-LOCATIONS
! Location
#INVOICE.DEFAULT
Spooler FASTP Network Print Processes Manual — 427528-006
Output 
! Null to Space
! %3
to Space
! %200 to Space
Font
CTRLSPACE
Using the CONTROL, CONTROLBUF, and
device
$LP2
2 - 28
SETMODE Operations

Advertisement

Table of Contents
loading

Table of Contents