Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

TRON (encoding)

From Wikipedia, the free encyclopedia
Multi-byte character encoding
TRON
LanguagesEnglish, Chinese, Japanese, Korean
Created byTRON project
ClassificationDBCS
Transforms / EncodesJIS X 0208,JIS X 0212,JIS X 0213,GB 2312,KS X 1001,Big5,GB 18030, others

TRON Code is a multi-bytecharacter encoding used in theTRON project. It is similar toUnicode but does not use Unicode'sHan unification process: each character from eachCJK character set is encoded separately, including archaic and historical equivalents of modern characters. This means that Chinese, Japanese, and Korean text can be mixed without any ambiguity as to the exact form of the characters; however, it also means that many[which?] characters with equivalent semantics will be encoded more than once, complicating some operations.

TRON has room for 150 million code points. Separate code points for Chinese, Korean, and Japanese variants of the 70,000+ Han characters in Unicode 4.1 (if that were deemed necessary) would require more than 200,000 code points in TRON. TRON includes the non-Han characters from Unicode 2.0, but it has not been keeping up to date with recent editions to Unicode as Unicode expands beyond theBasic Multilingual Plane and adds characters to existing scripts. The TRON encoding has been updated to include other recent code page updates likeJIS X 0213.[1]

Fonts for the TRON encoding are available, but they have restrictions for commercial use.[2]

Wikimedia Commons has media related toTRON Code.

Structure

[edit]

Each character in TRON Code is encoded as two bytes (as long as it is present in the current encoding plane). Similarly toISO/IEC 2022, the TRON character encoding handles characters in multiple character sets within a single character encoding by using escape sequences, referred to as language specifier codes, to switch between planes of 48,400 code points. Character sets incorporated into TRON Code include existing character sets such asJIS X 0208 andGB 2312, as well as other character sources such as theDai Kan-Wa Jiten, and some scripts not included in other encodings such asDongba symbols.

Owing to the incorporation of entire character sets into TRON Code, many characters with equivalent semantics are encoded multiple times; for example, all of the kanji characters in the GT Typeface receive their own codepoints, despite many of them overlapping with other kanji character sets that are already included such as JIS X 0208. One such example is the character 亜 (located in Unicode at U+4E9C) which appears in the JIS X 0208 region at 1-3021, the GT Typeface region at 2-2464, and the Dai Kan-Wa Jiten region at 8-2373.

Control codes

[edit]

Bytes in the range 0x00 to 0x20 and 0x7F are reserved for use in control codes.

Character codes

[edit]

Characters in each plane are divided into four zones. Each zone is allocated separately; for example, in plane 1 JIS X 0208 characters reside in Zone A starting at 0x2121, JIS X 0213 characters reside in both Zone A and Zone B, and GB 2312 characters reside in Zone C starting at 0x2180.

ZoneFirst byteSecond byteNb. of code points
Zone A0x21–0x7E0x21–0x7E94 ×94 =8,836
Zone B0x80–0xFD0x21–0x7E126 ×94 = 11,844
Zone C0x21–0x7E0x80–0xFD94 × 126 = 11,844
Zone D0x80–0xFD0x80–0xFD126 × 126 = 15,876
Total per plane220 × 220 = 48,400

TRON code points are notated as "X-YYYY", where "X" is the plane number in decimal and "YYYY" is the code point in hexadecimal. Alternatively, the notation "0xNNYYYY" can be used, where "NN" is the second byte in hexadecimal of the language specifier code. A text format "&TNNYYYY;" can be used to denote a TRON code point in ASCII text, in a similar manner tonumeric character references in HTML, SGML or XML. However, a standard and conforming HTML or XML parser would treat them as named entities, that can't be directly and easily mapped to valid and unambiguous sequences of code points in the UCS, without an extensive DTD to define them (possibly by using some private use characters for TRON escapes, or Unicode variation selectors mapped to TRON characters for encoding different TRON characters represented as the same character in the UCS): a different SGML-based parser will be needed to support the TRON text format in a way interoperable with standard UTF's for the UCS.

Language specifier codes

[edit]

Language specifier codes are prefixed with 0xFE. Valid suffixes are 0x21 to 0x7E (referencing planes 1 to 94) and 0x80 to 0xFE (for future planes), many of which are unallocated.

Special and escape codes

[edit]

Special codes are prefixed with 0xFF.

Planes

[edit]

The following are the planes allocated for use in TRON Code, along with their corresponding language specifier codes and a description of the character sets included in each plane.

PlaneLanguage specifier codeDescription
1FE 21JIS X 0208,JIS X 0212,JIS X 0213,GB 2312,KS X 1001 andBraille
2FE 22GT Typeface characters
3FE 23GT Typeface characters continued
6FE 26Big5
8FE 28Dai Kan-Wa Jiten characters
9FE 29Dai Kan-Wa Jiten continued,hentaigana and miscellaneous characters
10FE 2AMinority scripts (Dongba symbols)
16FE 30Unicode 2.0 (excluding CJK Unified and Hangul)
17FE 31Unicode 2.0 (excluding CJK Unified and Hangul) continued
22FE 36GB 18030
23FE 37GB 18030 continued

Planes 11 to 15 were originally allocated to store theMojikyō character set, but disputes have led to the planes being excluded. All other planes up to 31 are currently reserved for future allocation.

See also

[edit]

External links

[edit]

References

[edit]
  1. ^"The name of T-Engine Forum was changed to TRON Forum". T-engine.org. 2015-04-01. Retrieved2018-09-16.
  2. ^"Tフォントプロジェクト 利用規定". Charcenter.t-engine.org. Archived fromthe original on 2011-04-19. Retrieved2018-09-16.
Early telecommunications
ISO/IEC 8859
Bibliographic use
National standards
ISO/IEC 2022
Mac OSCode pages
("scripts")
DOS code pages
IBM AIX code pages
Windows code pages
EBCDIC code pages
DEC terminals (VTx)
Platform specific
Unicode /ISO/IEC 10646
TeX typesetting system
Miscellaneous code pages
Control character
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=TRON_(encoding)&oldid=1301248252"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp