Supplemental Information for Simplified Chinese Fonts

[Pages:104]Supplemental Information for Simplified Chinese

Fonts

Contents

Supported Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Changing the Control Instruction Prefix Character . . . . . . . . . . 4 Changing the Format Instruction Prefix Character . . . . . . . . . . 4 Label Format Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Appendix A: Downloading TrueType Fonts . . . . . . . . . . . . . . . 10 Appendix B: ZPL Instructions for Using Asian Fonts . . . . . . . . 12

Appendix C: Downloading fonts through ZTools . . . . . . . . . . 20 Appendix D: GB.DAT Code Charts . . . . . . . . . . . . . . . . . . . . 21 Appendix D: GB8Bit.DAT Code Charts . . . . . . . . . . . . . . . . . 61

? 2005 ZIH Corp. The copyrights in this manual and the label print engine described therein are owned by Zebra Technologies Corporation. Unauthorized reproduction of this manual or the software in the label print engine may result in imprisonment of up to one year and fines of up to $10,000 (17 U.S.C.506). Copyright violators may be subject to civil liability. This product may contain ZPL?, ZPL II?, and ZebraLinkTM programs; Element Energy Equalizer? Circuit; E3?; and AGFA fonts. Software ? ZIH Corp. All rights reserved worldwide. ZebraLink and all product names and numbers are trademarks, and Zebra, the Zebra logo, ZPL, ZPL II, Element Energy Equalizer Circuit, and E3 Circuit are registered trademarks of ZIH Corp. All rights reserved worldwide. CG Triumvirate is a trademark of AGFA Monotype Corporation. All rights reserved worldwide. CG Triumvirate(tm) font ? AGFA Monotype Corporation. Intellifont? portion ? AGFA Monotype Corporation. All rights reserved worldwide. UFST is a registered trademark of AGFA Monotype Corporation. All rights reserved worldwide. All other brand names, product names, or trademarks belong to their respective holders.

Customer Order # 44251L

Manufacturer Part # 44251L Rev. A

Supplemental Information for Asian Fonts Supported Languages

Supplemental Information for Asian Fonts

This document provides information for using Asian fonts with Zebra printers. It explains the supported languages and presents examples and commands necessary for printing Asian languages. All other printer operations are identical to those presented in the User Guide. It is assumed that the user is already familiar with general printer operation, the Zebra Programming Language (ZPL), and the ASCII-based ZPL command structure as presented in the ZPL II Programming Guide.

Supported Languages

The printer supports locale specific encoding for printing the following languages: Japanese, Korean, Simplified Chinese, Thai, and Traditional Chinese. Since True Type? fonts are typically internally encoded as UnicodeTM and the printer only supports Unicode-encoded fonts, a conversion table to Unicode is needed. The supported encoding and conversion tables are listed in Table 1.

Table 1 ? Conversion Tables

Language Japanese Japanese Korean Korean Korean Simplified Chinese Simplified Chinese Thai Traditional Chinese

Encoding Shift JIS JIS Johab Unified Hangul Wansung GB 2312 GB 2312 TIS BIG 5

Conversion Table JIS.DAT JIS.DAT KSCJOHAB.DAT UHANGUL.DAT KSCWSUNG.DAT GB8BIT.DAT GB.DAT CP874.DAT BIG5.DAT

The conversion table is selected with the ^SE (Select Encoding) ZPL command. In addition to selecting the conversion table, the ^CI (Change International Font) ZPL command must also be used to select the correct international character set. The combination of these two ZPL commands allows for the support of Asian languages. Both of these ZPL commands are explained later in this document. The encoding tables are provided with the font card or downloaded in flash with the font. The table will appear as XXXXXXX.DAT in a directory label printed by the ZPL commands:

Example ?

^XA^WD*:*.*^XZ

The most active encoding table is indicated by * on the directory label.

44251L Rev. A 03/22/2005

3

Supplemental Information for Asian Fonts Communications

Communications

To print the Asian fonts when communicating with the printer via a serial cable, set the printer to 8 data bits (see the User Guide for more information).

Changing the Control Instruction Prefix Character

ZPL normally uses the tilde (~) character as the prefix for control instructions that cause an immediate action to be taken by the printer. The default value for the Control Prefix, the tilde character, is 7E hex or 126 decimal. Since this value (7EH/126 decimal) is also used in the printing of some Asian font characters, the Control Prefix character must be changed.

We suggest that the Data Link Escape (DLE) character (10H/16 decimal) be used for the Control Prefix character. This value is not used to print Asian font characters and is always equivalent to the Control Prefix character. The change can be made from the front panel (see the printer User Guide) or with the Change Tilde, ZPL instruction (see the ZPL II Programming Guide).

Changing the Format Instruction Prefix Character

ZPL normally uses the carat (^) character as the prefix for format instructions that define the label format. The default value for the Format Prefix, the carat character, is 5E hex or 094 decimal. Since this value (5EH/094 decimal) is also used in the printing of some Asian font characters, the Format Prefix character must be changed. We suggest that the Record Separator (RS) character (1EH/030 decimal) be used for the Format Prefix character. This value is not used to print Asian font characters and is always equivalent to the Format Prefix character. The change can be made from the front panel (refer to the printers User Guide) or with the Change Tilde ZPL instruction (see the ZPL II Programming Guide).

4

03/22/2005 44251L Rev. A

Supplemental Information for Asian Fonts Label Format Examples

Label Format Examples

In each of the following examples, the format is saved in the corresponding encoding before being sent down to the printer and the ZPL script was made in Microsoft Notepad, a basic text editor. The characters were inserted from the character map in Windows or typed from the keyboard. The values for the hexadecimal characters were found in the corresponding code charts in Appendix D of this document. For example, in the Unicode encoding example, the format was saved as the UTF?8 encoding and in the Traditional Chinese example, the format was saved in the Big5 encoding.

Asian with ASCII Transparency

This is an example of using an Asian encoding, such as UHANGUL, with ASCII text. Using the CI26 command tells the printer to recognize any byte less than 7F as ASCII text and every byte above as the first byte of UHANGUAL encoding.

^XA^CW1,B:ANMDK.TTF ^SEB:UHANGUL.DAT^CI26 ^FO100,100^A1,50,50^FDASCII ^FS ^XZ

Example Label

Japanese-JIS

This is an example of using the Japanese encoding, JIS, with the Zebra printers. The CI14 command should be used with the JIS.DAT conversion table.

^XA^CW1,B:ANMDJ.TTF ^SEB:JIS.DAT^CI14 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

Japanese-Shift-JIS

This is an example of using the Japanese encoding, Shift JIS, with the Zebra printers. The CI15 command should be used with the JIS.DAT conversion table.

^XA^CW1,B:ANMDJ.TTF ^SEB:JIS.DAT^CI15 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

44251L Rev. A 03/22/2005

5

Supplemental Information for Asian Fonts Label Format Examples

Korean-Johab

This is an example of using the Korean encoding, Johab, with the Zebra printers. The CI14 command should be used with the KSCJOHAB.DAT conversion table.

^XA^CW1,B:ANMDK.TTF ^SEB:KSCJOHAB.DAT^CI14 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

Korean-UHANGUL

This is an example of using the Korean encoding, Hangul, with the Zebra printers. The CI14 command should be used with the UHANGUL.DAT conversion table.

^XA^CW1,B:ANMDK.TTF ^SEB:UHANGUL.DAT^CI14 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

Korean-WANSUNG

This is an example of using the Korean encoding, Wansung, with the Zebra printers. The CI14 command should be used with the KSCWANSUNG.DAT conversion table.

^XA^CW1,B:ANMDK.TTF ^SEB:KSCWSUNG^CI14 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

6

03/22/2005 44251L Rev. A

Supplemental Information for Asian Fonts Label Format Examples

Simplified Chinese

This is an example of using the Simplified Chinese encoding, GB, with the Zebra printers. The CI16 command should be used with the GB.DAT conversion table.

^XA^CW1,B:ANMDS.TTF ^SEB:GB.DAT^CI16 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

Simplified Chinese

This is an example of using the Simplified Chinese encoding, GB, with the Zebra printers. The CI14 command should be used with the GB8BIT.DAT conversion table.

^XA^CW1,B:ANMDS.TTF ^SEB:GB8BIT.DAT^CI14 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

Traditional Chinese

This is an example of using the Traditional Chinese encoding, BIG5, with the Zebra printers. The CI14 command should be used with the BIG5.DAT conversion table.

^XA^CW1,B:ANMDT.TTF ^SEB:BIG5.DAT^CI14 ^FO100,100^A1,50,50^FD ^FS ^XZ

Example Label

44251L Rev. A 03/22/2005

7

Supplemental Information for Asian Fonts Label Format Examples

Thai

This is an example of using the Thai encoding with the Zebra printers. The CI24 command should be used with the CP874.DAT conversion table.

^XA^CW1,B:ANMDJ.TTF ^SEB:CP874.DAT^CI24 ^FO100,100^A1,50,50^FD^FS ^XZ

Example Label

Unicode-UTF-8

This is an example of using the Unicode encoding, UTF-8, with the Zebra printers. Note the use of ^F8 before each ^FD.

^XA^CW1,B:ANMDJ.TTF^CI17

^FO100,100^A1,50,50^F8 ^FDHello World!^FS ^FO100,200^A1,50,50^F8^FD ^FS

^XZ

Example Label

Unicode-UTF-8

This is an example of using the Unicode encoding, UTF-8, with the Zebra printers. Multiple languages, such as Japanese, Korean, Simplified Chinese, Traditional Chinese, Vietnamese, Thai, and English, can be printed within a field. Note the use of ^F8 before each ^FD.

^XA^CW1,B:ANMDJ.TTF^CI17

^FO20,100^A1,50,50^F8 ^FD / / / ^FS ^FO20,250^A1,50,50^F8 ^FD Qu??c ngu~'/English/^FS

^XZ

Example Label

8

03/22/2005 44251L Rev. A

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download