Templates for Characters Added in JIS2004

In the Code Conversion, users should incorporate the characters added in JIS2004 into custom character tables, because HULFT treats the JIS2004 characters as custom characters. Of the characters that were newly added in JIS level 3 and JIS level 4, HULFT offers template sample files of the characters prepared for Shift-JIS/UTF-8. Copy the required part into the custom character file to use the characters.

The templates for tables of characters added in JIS2004 are stored in the 'GTEXTK' file in the library where HULFT is installed.

Table 3.17 JIS2004 Added Characters Template File List

Code Conversion from

Code Conversion to

Model Member Name

Shift-JIS

UTF-8

J34TSTO8

UTF-8

Shift-JIS

J34T8TOS

The following explains how to incorporate the characters added in JIS2004 when you carry out conversion, using the Code Conversion from Shift-JIS to UTF-8 as an example.

The example explains about the case where HULFT is installed in HULFT library.

(1) Copying of Template file

Copy the content of the custom character table template file for the characters added in JIS2004.

Content of template file for characters added in JIS2004 (J34TSTO8)

*JIS LEVEL 3 AND JIS LEVEL 4
*SJIS UTF8
0X81CA 0XEFBFA2
0X81E6 0XE288B5
0X8754 0XE285A0
: :
: :

  • The text in bold is copied.

  • The lines starting with '*' in the file shown above are comments.

    Lines starting with 0x7B are also comments. However, the character represented by 0x7B varies depending on the code set. In the code sets for Japanese, 0x7B represents '#.'

(2) Editing the custom character table file

Paste the content of the template file for characters added in JIS2004 that you copied in (1) to the custom character table file (GTSTO8). For details about custom character table files, refer to Table 3.15 Custom character table files.

Content of the custom character file (GTSTO8)

*
* FROM SJIS TO UTF-8
*

* DEFAULT OUTPUT CODE
DEFAULTCODE=0XE296A1

*INCODE *OUTCODE
0X8740 0XE291A0
0X8741 0XE291A1
: :
: :
0X81CA 0XEFBFA2
0X81E6 0XE288B5
0X8754 0XE285A0
: :
: :

  • The text in bold is copied.

  • The lines starting with '*' in the file shown above are comments.

    Lines starting with 0x7B are also comments. However, the character represented by 0x7B varies depending on the code set. In the code sets for Japanese, 0x7B represents '#.'

(3) Creating the conversion file

Create the custom character conversion file.

CALL HULFT/UTLGTFEXTD PARM('I=S8')

(4) Confirming the conversion file

Verify the content of the conversion file in the standard output.

CALL HULFT/UTLGTFEXTD PARM('O=S8')