Text Parsing Method Command

background image

Text Parsing Method Command

The Text Parsing Method command informs the PCL parser whether
character codes should be interpreted as 1-byte or 2-byte character
codes as described below.

?

&t#P

If the value field is 21, character codes in the range 0x21-0xFF are
processed as the first byte of a two-byte character. The following byte
is processed as the second byte of the two-byte character. All
character codes outside this range are processed as one-byte values.
This method can be used for parsing characters in Asian seven-bit
encoding specifications, including JIS X0208 (Japan), GB 2312-80
(China), and KS C 5601-1992 (Korea).

If the value field is 31, character codes in the range 0x81-0x9F and
0xE0-0xFC are processed as the first byte of a two-byte character.
The following byte is processed as the second byte of the two-byte
character. All character codes outside this range are processed as
one-byte values. This method can be used for parsing characters in
the Shift-JIS encoding specification.

# = 0, 1

- All character codes are processed as one-byte

characters.

21

- Character codes are processed as one-byte or two-byte

characters as described below.

31

- Character codes are processed as one-byte or two-byte

characters as described below.

38

- Character codes are processed as one-byte or two-byte

characters as described below.

Default

= 0 or 31 (if the default symbol set is WIN31J, the value is

31; otherwise it is 0)

Range

= 0, 1, 21, 31, 38

background image

ENWW

Printer-Specific Differences 2-33

If the value field is 38, character codes in the range 0x80-0xFF are
processed as the first byte of a two-byte character. The following byte
is processed as the second byte of the two-byte character. All
character codes outside this range are processed as one-byte values.
This method can be used for parsing Asian eight-bit encoding
specifications, such as the Big Five and TCA encoding specifications
(Taiwan), and KS C 5601-1992 and GB 2312-80, which can be either
7 or 8 bit.