
EasyCoder E4 Direct Protocol v2.10 – Programmer’s Reference Manual
74
Chapter 9
Advanced Features
2. Using International Character Sets, cont.
To be exact, the double-byte mapping allows an ASCII string
to contain a mixture of single-byte and double-bytes codes. For
example, in the BIG5 mapping, any ASCII character with value
160 or greater is the fi rst byte of a double-byte code, while
the remaining characters form single-byte codes. So, in BIG5,
the ASCII string “<160><64><65>” splits into the double-byte
code “<160><64>” and the single-byte code “<65>”. The current
NASCD table specifi es both how to divide an ASCII string into
single-byte and double-byte codes and also how the double-byte
codes are mapped to unicodes. The current NASC table specifi es
how the single-byte codes are mapped to unicodes.
NASC
<character set no.> | <"fi le name">
NASCD
"<NASCD table fi le>"
<character set no.>
one of the values listed in Chapter 6.11
<"fi le name">
one of the character set names listed in
Chapter 6.11 or the name of a user-defi ned
NASC table (see later in this chapter)
<NASCD table fi le>
the fi le name of a NASCD table.
Default:
NASCD "" (empty string; disables double-
byte interpretation of ASCII strings)
Double-byte fonts
As discussed above, the ASCII data input to text fi elds and
human readable parts of bar codes can contain a mixture of
single-byte and double-byte codes, which are mapped to unicodes
by the
NASC
and
NASCD
settings respectively. The characters
for the single-byte codes are printed using the current single-byte
font, as specifi ed by the
FONT
command (see Chapter 4.3). The
characters for the double-byte codes are printed using the current
double-byte font, as specifi ed by the following commands:
FONTD | FD
"<font fi le name>" [,<font size>,<font slant>]
<font fi le name>
the name of a Speedo or TrueType font fi le; it
must be enclosed by double quotation marks.
<font size>
the height of the characters in points (a point
is equal to 1/72 in).
<font slant>
the italic angle of the characters in degrees; a
positive value slants the characters clockwise
away from the vertical. Default: 0.
Reset to default by:
PRINTFEED|PF