Intermec PX6i Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 89

Using International Character Sets, Unicode fonts, NASC and NASCD tables

Page 89 highlights

Chapter 8-Advanced Features 8.2 Using International Character Sets The data input to text fields and bar codes takes the form of an ASCII string. Even compound data, such as... PRTXT "Label No.";CNT1$;" Date ";DATE$("F") ...is expanded by the printer into a single ASCII string before any other processing occurs. This ASCII string is then converted to a string of international character codes according to the Unicode standard. Every character, whether it be a Latin "A", Greek "alpha" or Chinese "ren", has a unique code in this standard, called its "unicode." Unicode fonts The Intermec Direct Protocol v8.60 works with Unicode fonts in either TrueDoc or TrueType format: its font scaler accesses images of characters within these fonts according to the character's unicode. Some care is required when using fonts not built into the printer: • If a font is not a Unicode font, the font scaler could access the wrong characters depending on the internal mapping table of the font. • A font may not include all the characters in the current character set, as specified by the NASC command. If a text field contains a character which is not in the current font, Error 1030, "Character is missing in chosen font" will occur. NASC and NASCD tables There are many national and international standards for mapping ASCII strings to strings of unicode. The Intermec Direct Protocol v8.60 provides support for virtually all of these. There are two types of mappings: • Single-byte mappings, which map one ASCII character to a unicode using Character Sets. For each NASC setting (see Chapter 5.13), there is an internally stored character set in the printer's firmware. • Double-byte mappings, which map pairs of ASCII characters to unicodes. The Intermec Direct Protocol v8.60 supports these using NASCD commands, which activate double-byte character sets. The UTF-8 character set is stored in the printer's firmware while other character sets, like BIG5, GB, JIS and Shift-JIS, are available from Intermec on special request. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 81

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
81
Chapter 8—Advanced Features
8.2 Using International Character Sets
°e data input to text fields and bar codes takes the form of an ASCII
string. Even compound data, such as...
PRTXT "Label No.";CNT1$;" Date ";DATE$("F")
...is expanded by the printer into a single ASCII string before any other
processing occurs. °is ASCII string is then converted to a string of
international character codes according to the Unicode standard. Every
character, whether it be a Latin “A”, Greek “alpha” or Chinese “ren”, has
a unique code in this standard, called its “unicode.”
Unicode fonts
°e Intermec Direct Protocol v8.60 works with Unicode fonts in either
TrueDoc or TrueType format: its font scaler accesses images of characters
within these fonts according to the character’s unicode.
Some care is required when using fonts not built into the printer:
If a font is not a Unicode font, the font scaler could access the wrong
characters depending on the internal mapping table of the font.
A font may not include all the characters in the current character set,
as specified by the NASC command. If a text field contains a character
which is not in the current font, Error 1030, “Character is missing in
chosen font” will occur.
NASC and NASCD tables
°ere are many national and international standards for mapping
ASCII strings to strings of unicode. °e Intermec Direct Protocol
v8.60 provides support for virtually all of these. °ere are two types of
mappings:
• Single-byte mappings, which map one ASCII character to a unicode
using Character Sets. For each
NASC
setting (see Chapter 5.13), there
is an internally stored character set in the printer’s firmware.
• Double-byte mappings, which map pairs of ASCII characters to uni-
codes. °e Intermec Direct Protocol v8.60 supports these using
NASCD
commands, which activate double-byte character sets. °e UTF-8
character set is stored in the printer's firmware while other character
sets, like BIG5, GB, JIS and Shift-JIS, are available from Intermec on
special request.