User`s manual

Section 4: Advanced Functions
AXIS AX-7 Cobra+ User’s Manual 43
String Substitutions
This function is useful when you want to print a document that is
prepared for a different PC type printer than yours.
The document contains control commands for a specific printer, and
you have to convert these commands in order to print this document
with your printer. Instead of changing the document, you can let the
AX-7 Cobra+ do the conversion for you by using String Substitution.
The String Substitution function will search the data stream for a
specified sequence of ASCII characters and substitute them with
another sequence. Note that this function operates after the character
and control code conversion.
Example:
Assume that you have an HP LaserJet. The document is prepared for
an IBM Proprinter and contains ‘start underline’ and ‘stop underline’
pass-through commands at several locations. To print the document
with an HP LaserJet, the sequences must be converted.
To ‘start underline’, the IBM Proprinter uses ASCII value string $1B,
$2D, $31 and the HP LaserJet uses $1B, $26, $64, $44.
‘Stop underline’ commands are $1B, $2D, $30 and $1B, $26, $64,
$40 respectively.
The following pages show how to program these substitutions, both
from a Terminal and the System.
Programming String
Substitutions from a
Terminal
Start the Configuration from Terminal as described on page 14.
Select the String Substitutions entry in the Main Menu. The String
Substitutions Menu consists of pairs of Match and Substitute strings.
Edit the first two string pairs. See page 39 on how to edit strings.