Templates for characters added in JIS2004

HULFT treats the characters added to JIS2004 as external characters. Therefore, when carrying out Code Conversion, users should incorporate the JIS2004 characters into custom character tables. Among the characters that are newly added to JIS level 3 and JIS level 4, HULFT offers external character template files of the characters prepared by Shift-JIS or UTF-8. Copy the required part onto the Custom Character Table file to use the characters.

The external character template file for additional characters in JIS2004 is stored in 'HULPATH/gtf.'

Table 3.20 External Character Template File List for Additional Characters in JIS2004

Code Conversion from

Code Conversion to

External Character Template File Name

Shift-JIS

UTF-8

sjistoutf8-34kanji.txt

UTF-8

Shift-JIS

utf8tosjis-34kanji.txt

The following section explains how to incorporate the additional characters in JIS2004 into the custom character table, when converting from Shift-JIS to UTF-8.

(1) Copying the template file

Copy the content of the external character template file for additional characters in JIS2004 (sjistoutf8-34kanji.txt).

Content of the external character template file for additional characters in JIS2004 (sjistoutf8-34kanji.txt)

# 
# SJIS -> UTF-8 
# 
  .       . 
  .       . 
0xfa5c  0xe7ba8a 
0xfa5d  0xe8a49c 
0xfa5e  0xe98d88 
  .       . 
  .       .

  • The text in bold is copied.

  • Lines that are preceded by a number sign (#) are comments.

(2) Editing Custom Character Table files

Paste the content of the Custom Character Template file for additional characters in JIS2004 copied in (1) to the Custom Character Table file (gtsto8.txt).

Content of the Custom Character Table file (gtsto8.txt)

# 
# Shift-JIS -> UTF8 
# 
# default output code 
defaultcode=0xe296a1 
#incode #outcode 
0x8740  0xe291a0 
0x8741  0xe291a1 
0x8742  0xe291a2 
0xfa5c  0xe7ba8a 
0xfa5d  0xe8a49c 
0xfa5e  0xe98d88 
  .       . 
  .       .

  • The text in bold is pasted.

  • Lines that are preceded by a number sign (#) are comments.

(3) Creating conversion files

Create the custom character conversion file by using the Custom Character Table Translate command.

% utlgtfextd -i s8

(4) Confirming conversion files

Confirm the contents of the custom character conversion file by using the Custom Character Table Translate command.

% utlgtfextd -o s8