Intermec PX4i Fingerprint Developer's Guide (old) - Page 172

Example, This example prints the Hiragana Letter Small A character Unicode hex 3041

Page 172 highlights

Appendix B - Character Sets and Keywords Example Now that you have determined the decimal value for the Unicode character, you can use the values in a print command: prtxt chr$(208)+chr$(150) When selecting UTF-8 with the NASC command, the font must be selected with the FONT command. Disable UTF-8 encoding by choosing a different character set with the NASC command. Use FONTD to select the desired font if you invoke UTF-8 with the NASCD command. After you select UTF-8 with the NASCD command, you must actively disable it with NASCD "" before returning to a single-byte character set. Note: To avoid confusion between active character sets and fonts, Intermec recommends you use only the NASC and FONT commands with UTF-8 unless you have experience with the NASCD and FONTD commands. When using UTF-8, it is important that the font contains the desired characters. The default font, Swiss 721 BT, contains the largest number of glyphs of the preinstalled fonts. Unicode character numbers can be found at the web site of the Unicode organization (www.unicode.org). It is not recommended to have UTF-8 enabled when printing bar codes since bar code data will use the UTF-8 byte sequence as input, while the human readable uses the UTF-8 mapped character number. Note: FONT and FONTD commands are reset to their defaults after a PRINTFEED (or CLL) command. NASC and NASCD commands are not reset to default after a PRINTFEED (or CLL) command. This example prints the Hiragana Letter Small A character (Unicode hex 3041), corresponding to the UTF-8 sequence 227 dec. + 129 dec. + 129 dec., in the Song font. This is followed by the Cyrillic Capital Letter ZHE (Unicode hex 0416) in the Swiss 721 BT font. 10 NASC "UTF-8" 20 FONT "Song" 30 PRTXT CHR$(227)+CHR$(129)+CHR$(129) 40 PRTXT " = Hiragana Letter Small A" 50 PRPOS 0,35 60 FONT "Swiss 721 BT" 70 PRTXT CHR$(208)+CHR$(150) 80 PRTXT " = Cyrillic Capital Letter ZHE" 90 PRINTFEED 156 Intermec Fingerprint Developer's Guide

  • 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
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

Appendix B — Character Sets and Keywords
156
Intermec Fingerprint Developer’s Guide
Now that you have determined the decimal value for the Unicode character, you can
use the values in a print command:
prtxt chr$(208)+chr$(150)
When selecting UTF-8 with the NASC command, the font must be selected with the
FONT command. Disable UTF-8 encoding by choosing a different character set
with the NASC command.
Use FONTD to select the desired font if you invoke UTF-8 with the NASCD
command. After you select UTF-8 with the NASCD command, you must actively
disable it with NASCD “” before returning to a single-byte character set.
When using UTF-8, it is important that the font contains the desired characters.
The default font, Swiss 721 BT, contains the largest number of glyphs of the pre-
installed fonts. Unicode character numbers can be found at the web site of the
Unicode organization (www.unicode.org). It is not recommended to have UTF-8
enabled when printing bar codes since bar code data will use the UTF-8 byte
sequence as input, while the human readable uses the UTF-8 mapped character
number.
Example
This example prints the Hiragana Letter Small A character (Unicode hex 3041),
corresponding to the UTF-8 sequence 227 dec. + 129 dec. + 129 dec., in the Song
font. This is followed by the Cyrillic Capital Letter ZHE (Unicode hex 0416) in the
Swiss 721 BT font.
10
NASC “UTF-8”
20
FONT “Song”
30
PRTXT CHR$(227)+CHR$(129)+CHR$(129)
40
PRTXT “ = Hiragana Letter Small A”
50
PRPOS 0,35
60
FONT “Swiss 721 BT”
70
PRTXT CHR$(208)+CHR$(150)
80
PRTXT “ = Cyrillic Capital Letter ZHE”
90 PRINTFEED
Note:
To avoid confusion between active character sets and fonts, Intermec
recommends you use only the NASC and FONT commands with UTF-8
unless you have experience with the NASCD and FONTD commands.
Note:
FONT and FONTD commands are reset to their defaults after a
PRINTFEED (or CLL) command. NASC and NASCD commands are not
reset to default after a PRINTFEED (or CLL) command.