xref: /netbsd-src/share/i18n/csmapper/APPLE/THAI%UCS.src (revision 274950e65d2e20a8089aa7febef335719a2c9690)
1# $NetBSD: THAI%UCS.src,v 1.1 2006/03/13 19:45:36 tnozaki Exp $
2
3TYPE		ROWCOL
4NAME		THAI/UCS
5SRC_ZONE	0x00-0xFF
6OOB_MODE	ILSEQ
7DST_ILSEQ	0xFFFE
8DST_UNIT_BITS	16
9
10BEGIN_MAP
11#
12# This mapping data is made from the mapping data provided by Unicode, Inc.
13# Original notice:
14#
15#=======================================================================
16#   File name:  THAI.TXT
17#
18#   Contents:   Map (external version) from Mac OS Thai
19#               character set to Unicode 3.2 and later.
20#
21#   Copyright:  (c) 1995-2002, 2005 by Apple Computer, Inc., all rights
22#               reserved.
23#
24#   Contact:    charsets@apple.com
25#
26#   Changes:
27#
28#       c02  2005-Apr-05    Update header comments. Matches internal xml
29#                           <c1.1> and Text Encoding Converter 2.0.
30#      b3,c1 2002-Dec-19    Update mapping for 0xDB to use new Unicode
31#                           3.2 WORD JOINER instead of ZWNBSP (BOM).
32#                           Update URLs. Matches internal utom<b3>.
33#       b02  1999-Sep-22    Update contact e-mail address. Matches
34#                           internal utom<b1>, ufrm<b2>, and Text
35#                           Encoding Converter version 1.5.
36#       n07  1998-Feb-05    Update to match internal utom<n5>, ufrm<n13>
37#                           and Text Encoding Converter version 1.3:
38#                           Use standard Unicodes plus transcoding hints
39#                           instead of single corporate characters; see
40#                           details below. Also update header comments
41#                           to new format.
42#       n04  1995-Nov-17    First version (after fixing some typos).
43#                           Matches internal ufrm<n6>.
44#
45# Standard header:
46# ----------------
47#
48#   Apple, the Apple logo, and Macintosh are trademarks of Apple
49#   Computer, Inc., registered in the United States and other countries.
50#   Unicode is a trademark of Unicode Inc. For the sake of brevity,
51#   throughout this document, "Macintosh" can be used to refer to
52#   Macintosh computers and "Unicode" can be used to refer to the
53#   Unicode standard.
54#
55#   Apple Computer, Inc. ("Apple") makes no warranty or representation,
56#   either express or implied, with respect to this document and the
57#   included data, its quality, accuracy, or fitness for a particular
58#   purpose. In no event will Apple be liable for direct, indirect,
59#   special, incidental, or consequential damages resulting from any
60#   defect or inaccuracy in this document or the included data.
61#
62#   These mapping tables and character lists are subject to change.
63#   The latest tables should be available from the following:
64#
65#   <http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/>
66#
67#   For general information about Mac OS encodings and these mapping
68#   tables, see the file "README.TXT".
69#
70# Format:
71# -------
72#
73#   Three tab-separated columns;
74#   '#' begins a comment which continues to the end of the line.
75#     Column #1 is the Mac OS Thai code (in hex as 0xNN)
76#     Column #2 is the corresponding Unicode or Unicode sequence
77#       (in hex as 0xNNNN or 0xNNNN+0xNNNN).
78#     Column #3 is a comment containing the Unicode name
79#
80#   The entries are in Mac OS Thai code order.
81#
82#   Some of these mappings require the use of corporate characters.
83#   See the file "CORPCHAR.TXT" and notes below.
84#
85#   Control character mappings are not shown in this table, following
86#   the conventions of the standard UTC mapping tables. However, the
87#   Mac OS Thai character set uses the standard control characters at
88#   0x00-0x1F and 0x7F.
89#
90# Notes on Mac OS Thai:
91# ---------------------
92#
93#   This is a legacy Mac OS encoding; in the Mac OS X Carbon and Cocoa
94#   environments, it is only supported via transcoding to and from
95#   Unicode.
96#
97#   Codes 0xA1-0xDA and 0xDF-0xFB are the character set from Thai
98#   standard TIS 620-2533, except that the following changes are
99#   made:
100#     0xEE is TRADE MARK SIGN (instead of THAI CHARACTER YAMAKKAN)
101#     0xFA is REGISTERED SIGN (instead of THAI CHARACTER ANGKHANKHU)
102#     0xFB is COPYRIGHT SIGN (instead of THAI CHARACTER KHOMUT)
103#
104#   Codes 0x80-0x82, 0x8D-0x8E, 0x91, 0x9D-0x9E, and 0xDB-0xDE are
105#   various additional punctuation marks (e.g. curly quotes,
106#   ellipsis), no-break space, and two special characters "word join"
107#   and "word break".
108#
109#   Codes 0x83-0x8C, 0x8F, and 0x92-0x9C are for positional variants
110#   of the upper vowels, tone marks, and other signs at 0xD1,
111#   0xD4-0xD7, and 0xE7-0xED. The positional variants would normally
112#   be considered presentation forms only and not characters. In most
113#   cases they are not typed directly; they are selected automatically
114#   at display time by the WorldScript software. However, using the
115#   Thai-DTP keyboard, the presentation forms can in fact be typed
116#   directly using dead keys. Thus they must be treated as real
117#   characters in the Mac OS Thai encoding. They are mapped using
118#   variant tags; see below.
119#
120#   Several code points are undefined and unused (they cannot be
121#   typed using any of the Mac OS Thai keyboard layouts): 0x90, 0x9F,
122#   0xFC-0xFE. These are not shown in the table below.
123#
124# Unicode mapping issues and notes:
125# ---------------------------------
126#
127#   The goals in the Apple mappings provided here are:
128#   - Ensure roundtrip mapping from every character in the Mac OS Thai
129#   character set to Unicode and back
130#   - Use standard Unicode characters as much as possible, to maximize
131#   interchangeability of the resulting Unicode text. Whenever possible,
132#   avoid having content carried by private-use characters.
133#
134#   To satisfy both goals, we use private use characters to mark variants
135#   that are similar to a sequence of one or more standard Unicode
136#   characters.
137#
138#   Apple has defined a block of 32 corporate characters as "transcoding
139#   hints." These are used in combination with standard Unicode characters
140#   to force them to be treated in a special way for mapping to other
141#   encodings; they have no other effect. Sixteen of these transcoding
142#   hints are "grouping hints" - they indicate that the next 2-4 Unicode
143#   characters should be treated as a single entity for transcoding. The
144#   other sixteen transcoding hints are "variant tags" - they are like
145#   combining characters, and can follow a standard Unicode (or a sequence
146#   consisting of a base character and other combining characters) to
147#   cause it to be treated in a special way for transcoding. These always
148#   terminate a combining-character sequence.
149#
150#   The transcoding coding hints used in this mapping table are four
151#   variant tags in the range 0xF873-75. Since these are combined with
152#   standard Unicode characters, some characters in the Mac OS Thai
153#   character set map to a sequence of two Unicodes instead of a single
154#   Unicode character. For example, the Mac OS Thai character at 0x83 is a
155#   low-left positional variant of THAI CHARACTER MAI EK (the standard
156#   mapping is for the abstract character at 0xE8). So 0x83 is mapped to
157#   0x0E48 (THAI CHARACTER MAI EK) + 0xF875 (a variant tag).
158#
159# Details of mapping changes in each version:
160# -------------------------------------------
161#
162#   Changes from version b02 to version b03/c01:
163#
164#   - Update mapping for 0xDB to use new Unicode 3.2 character U+2060
165#     WORD JOINER instead of U+FEFF ZERO WIDTH NO-BREAK SPACE (BOM)
166#
167#   Changes from version n04 to version n07:
168#
169#   - Changed mappings of the positional variants to use standard
170#   Unicodes + transcoding hint, instead of using single corporate
171#   zone characters. This affected the mappings for the following:
172#   0x83-08C, 0x8F, 0x92-0x9C
173#
174#   - Just comment out unused code points in the table, instead
175#   of mapping them to U+FFFD.
176#
177##################
1780x00 - 0x7E = 0x0000 -
1790x80 = 0x00AB
1800x81 = 0x00BB
1810x82 = 0x2026
1820x83 = 0x0E48
1830x84 = 0x0E49
1840x85 = 0x0E4A
1850x86 = 0x0E4B
1860x87 = 0x0E4C
1870x88 = 0x0E48
1880x89 = 0x0E49
1890x8A = 0x0E4A
1900x8B = 0x0E4B
1910x8C = 0x0E4C
1920x8D = 0x201C
1930x8E = 0x201D
1940x8F = 0x0E4D
1950x91 = 0x2022
1960x92 = 0x0E31
1970x93 = 0x0E47
1980x94 = 0x0E34
1990x95 = 0x0E35
2000x96 = 0x0E36
2010x97 = 0x0E37
2020x98 = 0x0E48
2030x99 = 0x0E49
2040x9A = 0x0E4A
2050x9B = 0x0E4B
2060x9C = 0x0E4C
2070x9D = 0x2018
2080x9E = 0x2019
2090xA0 = 0x00A0
2100xA1 = 0x0E01
2110xA2 = 0x0E02
2120xA3 = 0x0E03
2130xA4 = 0x0E04
2140xA5 = 0x0E05
2150xA6 = 0x0E06
2160xA7 = 0x0E07
2170xA8 = 0x0E08
2180xA9 = 0x0E09
2190xAA = 0x0E0A
2200xAB = 0x0E0B
2210xAC = 0x0E0C
2220xAD = 0x0E0D
2230xAE = 0x0E0E
2240xAF = 0x0E0F
2250xB0 = 0x0E10
2260xB1 = 0x0E11
2270xB2 = 0x0E12
2280xB3 = 0x0E13
2290xB4 = 0x0E14
2300xB5 = 0x0E15
2310xB6 = 0x0E16
2320xB7 = 0x0E17
2330xB8 = 0x0E18
2340xB9 = 0x0E19
2350xBA = 0x0E1A
2360xBB = 0x0E1B
2370xBC = 0x0E1C
2380xBD = 0x0E1D
2390xBE = 0x0E1E
2400xBF = 0x0E1F
2410xC0 = 0x0E20
2420xC1 = 0x0E21
2430xC2 = 0x0E22
2440xC3 = 0x0E23
2450xC4 = 0x0E24
2460xC5 = 0x0E25
2470xC6 = 0x0E26
2480xC7 = 0x0E27
2490xC8 = 0x0E28
2500xC9 = 0x0E29
2510xCA = 0x0E2A
2520xCB = 0x0E2B
2530xCC = 0x0E2C
2540xCD = 0x0E2D
2550xCE = 0x0E2E
2560xCF = 0x0E2F
2570xD0 = 0x0E30
2580xD1 = 0x0E31
2590xD2 = 0x0E32
2600xD3 = 0x0E33
2610xD4 = 0x0E34
2620xD5 = 0x0E35
2630xD6 = 0x0E36
2640xD7 = 0x0E37
2650xD8 = 0x0E38
2660xD9 = 0x0E39
2670xDA = 0x0E3A
2680xDB = 0x2060
2690xDC = 0x200B
2700xDD = 0x2013
2710xDE = 0x2014
2720xDF = 0x0E3F
2730xE0 = 0x0E40
2740xE1 = 0x0E41
2750xE2 = 0x0E42
2760xE3 = 0x0E43
2770xE4 = 0x0E44
2780xE5 = 0x0E45
2790xE6 = 0x0E46
2800xE7 = 0x0E47
2810xE8 = 0x0E48
2820xE9 = 0x0E49
2830xEA = 0x0E4A
2840xEB = 0x0E4B
2850xEC = 0x0E4C
2860xED = 0x0E4D
2870xEE = 0x2122
2880xEF = 0x0E4F
2890xF0 = 0x0E50
2900xF1 = 0x0E51
2910xF2 = 0x0E52
2920xF3 = 0x0E53
2930xF4 = 0x0E54
2940xF5 = 0x0E55
2950xF6 = 0x0E56
2960xF7 = 0x0E57
2970xF8 = 0x0E58
2980xF9 = 0x0E59
2990xFA = 0x00AE
3000xFB = 0x00A9
301END_MAP
302