# ISO-IR-165

The CCITT Chinese Primary Set is a multi-byte graphic character set for Chinese communications created for the Consultative Committee on International Telephone and Telegraph (CCITT) in 1992. It is defined in ITU T.101, annex C, which codifies Data Syntax 2 Videotex. It is registered with the ISO-IR registry for use with ISO/IEC 2022 as ISO-IR-165, and encodable in the ISO-2022-CN-EXT code version.
It is an extended modification of GB/T 2312-80, and corresponds to the union of the mainland Chinese GB standards GB 6345.1-86 and GB 8565.2-88, with some further modification and extensions. A subset of the GB 6345.1 extensions are incorporated into GB 18030, while GB 8565.2 serves as the mainland Chinese source reference for certain CJK Unified Ideographs.

## GB 6345.1

GB 6345.1-86 (32 × 32 Dot Matrix Font Set of Chinese Ideographs for Information Interchange) includes both a corrigendum and an extension for GB 2312. The corrigendum alters the following two characters:
Alterations made to existing GB 2312 characters by GB 6345.1 :
| Row-cell | EUC | GB 2312 (Unamended) | GB 6345.1 | Notes |
| 03-71 | 0xA3E7 | | ɡ | |
| 79-81 | 0xEFF1 | 鍾 | 锺 | |
* ↑ Corresponds to U+FF47 ｇ FULLWIDTH LATIN SMALL LETTER G in Unicode; however, the amended reference glyph can also correspond to U+0261 ɡ LATIN SMALL LETTER SCRIPT G. See below for how U+0261 is typically mapped to/from GB/T 6341.1, versus how it is mapped to/from ISO-IR-165. GB 18030 swaps this one back to the original looped glyph.
* ↑ The unamended reference glyph is a Traditional Chinese character corresponding to U+937E. The character in question is usually replaced with 钟 (U+949F, also the simplification of 鐘) in Simplified Chinese except in names of persons; the amended glyph is an alternate simplified form corresponding to U+953A.
Deployed implementations incorporating GB 2312, such as Windows code page 936, generally follow these corrections in mapping 79-81 to U+953A.
The extension adds half-width ISO 646-CN characters in row 10 (in addition to the existing full-width characters in row 3) and extends the set of 26 non-ASCII pinyin characters in row 8 with six additional such characters. These GB 6345.1 extensions are also incorporated into GB/T 12345, the Traditional Chinese counterpart to GB 2312, in addition to 29 vertical presentation forms in row 6.
Later GB/T 6345.1-2010 published in 2011 officially adds half-width forms of the 32 pinyin characters (including the six new additions) in row 8 to row 11. This addition is not featured in GB 18030.
The six additional pinyin characters from GB 6345.1 and the vertical presentation forms from GB 12345 — but not the half-width forms — are included in the classic Mac OS encoding for Simplified Chinese (a modification of EUC-CN), and also as two-byte codes in GB 18030. The additional pinyin characters are as follows:
Extensions made by GB 6345.1 to GB 2312 row 8 :
| Row-cell | EUC | Character |
| 08-27 | 0xA8BB | U+0251 ɑ LATIN SMALL LETTER ALPHA |
| 08-28 | 0xA8BC | U+1E3F ḿ LATIN SMALL LETTER M WITH ACUTE |
| 08-29 | 0xA8BD | U+0144 ń LATIN SMALL LETTER N WITH ACUTE |
| 08-30 | 0xA8BE | U+0148 ň LATIN SMALL LETTER N WITH CARON |
| 08-31 | 0xA8BF | U+01F9 ǹ LATIN SMALL LETTER N WITH GRAVE |
| 08-32 | 0xA8C0 | U+0261 LATIN SMALL LETTER SCRIPT G |
* ↑ Mapped to the Private Use Area U+E7C7 by Windows code page 936 and the first (2000) edition of GB 18030; this was amended by the 2005 edition.
* ↑ This composed character was added in Unicode 3.0. Prior to this, this character was mapped to its composition sequence (i.e. U+006E U+0300) by Apple. This change predates the stabilisation of Unicode normalisation forms, which was introduced in Unicode 3.1. It is mapped to U+E7C8 by Windows code page 936.
* ↑ Matches the unamended reference glyph for 03-71 (see above) in being a looped g, in spite of being typically mapped to U+0261. Mappings used for ISO-IR-165 differ (see below). GB 18030 swaps 03-71 back to the looped g, and makes this one the open g.
These extensions and modifications to GB 2312 were first introduced in GB 5007.1-85 in 1985.

## GB 8565.2

GB 8565.2-88 (Information Processing - Coded Character Sets for Text Communication - Part 2: Graphic Characters) defines an extension for GB 2312, adding 705 characters between rows 13–15 and 90–94, of which 69 (all in row 15) are non-hanzi. It includes the GB 2312 corrections from GB 6345.1, but not its extensions.
The Unihan database references GB 8565.2 as the mainland Chinese source of several hanzi included in Unicode. Its Unihan source abbreviation is G8.

## CCITT changes

ISO-IR-165 incorporates the GB 2312 extensions from both GB 6345.1-86 and GB 8565.2-88. Additionally, it adds 161 further characters (including 139 hanzi, identified as “general Chinese characters and variants”). These CCITT hanzi extensions have on occasion been mistaken for standard GB 8565.2 characters, including in previous revisions of the Unihan database. In total the set contains 8446 characters.
A number of patterned semigraphic characters are included in row 6. This collides with the vertical presentation forms included in other extensions such as Mac OS Simplified Chinese and GB 18030.
The GB 6345.1 corrections to GB 2312 are applied, but two Unicode mappings are reversed compared to other encodings which include GB 2312 with GB 6345.1 extensions. The table below shows the mappings and their corresponding glyphs including GB 18030:
| Row-cell | EUC | GB 2312 (unamended) | GB 6345.1 | GB 6345.1 mapping | ISO-IR-165 | ISO-IR-165 mapping | GB 18030 | GB 18030 mapping |
| 03-71 | 0xA3E7 | | ɡ | U+FF47 | ɡ | U+0261 | | U+FF47 |
| 08-32 | 0xA8C0 | (absent) | | U+0261 | | U+FF47 | ɡ | U+0261 |
| 79-81 | 0xEFF1 | 鍾 | 锺 | U+953A | 锺 | U+953A | 锺 | U+953A |