02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NASCD<br />

Chapter —Program Instructions<br />

Purpose Statement for selecting a double-byte character set, alternatively the multibyte<br />

character set UTF-8.<br />

Syntax NASCD <br />

is the name of the character set or the file containing the character<br />

map.<br />

Default: "" (disables double-byte interpretation).<br />

Remarks When a double-byte character set has been selected, the firmware will<br />

usually treat all characters from ASCII 161 dec. to ASCII 254 dec (ASCII<br />

A1-FE hex) as the first part of a two-byte character. Next character byte<br />

received will specify the second part. However, the selected double-byte<br />

character set may specify some other ASCII value as the breaking point<br />

between single and double byte character sets.<br />

There are various ways to produce double-byte characters from the keyboard<br />

of the computer. By selecting the proper character set using a<br />

NASCD statement, the typed-in ASCII values will be translated to the<br />

corresponding Unicode values, so the desired glyph will be printed. A font<br />

must have been selected using the FONTD command in order to print<br />

according to the selected double-byte character set.<br />

UTF-8 character mapping is pre-installed in the firmware, and is selected<br />

with the command NASCD "UTF-8" (can also be selected with NASC).<br />

See Chapter 4, UTF-8, for more information. Other double-byte character<br />

set tables and fonts are available from <strong>Intermec</strong> on special request.<br />

Example The following text contains both single- and double-byte fonts. The<br />

double-byte font and its character set are stored in a Font Install Card:<br />

10 NASC 46<br />

20 FONT "Swiss 721 BT", 24, 10<br />

30 FONTD "Song"<br />

40 NASCD "card1:GB2312.NCD"<br />

50 PRTXT CHR$(65);CHR$(164);CHR$(180)<br />

60 PRINTFEED<br />

RUN<br />

This program yields a printed text line that starts with the Latin character<br />

A (ASCII 65 dec.) followed by the character in the Song font that corresponds<br />

to the address 164+180 dec. in the character set “GB2312.NCD.”<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!