GDDM V3R2 Base Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Using double-byte characters for graphics text GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
|
You can use all three modes of graphics text to display the double-byte character set (DBCS) characters used in some Asian countries. (On the IBM PS/55 workstation or 5550 Multistation, you can use the device's hardware symbol set to display DBCS characters in alphanumeric fields, and receive DBCS alphanumeric input, as explained in "Using procedural alphanumerics for double-byte characters" in topic 13.6.) The same hardware symbol set can be used for mode-1 graphics text. With the GSLSS call, you can load other DBCS symbol sets for use with mode-2 and mode-3 graphics text. If you use mode-3 graphics text in your program, and load the appropriate vector symbol set into storage, you can display double-byte characters on any device. Each DBCS character is represented by a two-byte code instead of the single-byte EBCDIC-type code used for Latin characters. You must specify the hexadecimal codes in a GSCHAR or GSCHAP call. The length you specify in these calls must be the number of bytes - twice the number of DBCS characters. GDDM supplies three special multipage, double-byte symbol sets for Kanji graphic text - an image symbol set for mode-2 text, a vector symbol set for mode-3 text, and a special, high-quality vector symbol set, also for use with mode-3 text. GDDM also supplies three single-byte character sets for Kanji graphics text - two image symbol sets for use with mode-2 text, and one vector symbol set for mode-3 text. | GDDM supplies a similar multipage, mode-3 text vector symbol set for | Simplified Chinese graphic text. If you require the default double-byte symbol set, you can specify a special symbol-set identifier of 8 on a GSCS call. An example is given in the program below, which was written for a device, such as the IBM PS/55 workstation, that supports DBCS characters.
Another method, which enables ordinary single-byte characters to be mixed in a single string with double-byte characters, is to use the special shift-out (SO) and shift-in (SI) characters. The data between these two special characters is interpreted by GDDM as double-byte. Other characters are interpreted as single-byte. With this method, you do not need a GSCS(8) call. The SO code is X'0E' and the SI is X'0F'. You must allow one byte for each of these and two bytes for each Kanji character. Within any string, only SO/SI pairs are allowed, in that order. Here is an example:
If you left out the GSSEN call from the above code, the character positions used by the SO and SI codes would be output to the display as blanks. GSSEN applies to the current page, and its one parameter determines whether the SO and SI characters are to be represented by blanks between the single-byte and double-byte characters or whether the single-byte and double-byte characters are to be adjacent. Before executing such a program, you need to specify a GDDM external default. Subtopics: |
Copyright IBM Corporation 1990, 2012 |