xref: /minix3/share/i18n/csmapper/APPLE/THAI%UCS.src (revision 36dcc4a4a93f782ada76dce3d52fbeab0e063cf1)
1*36dcc4a4SLionel Sambuc# $NetBSD: THAI%UCS.src,v 1.1 2006/03/13 19:45:36 tnozaki Exp $
2*36dcc4a4SLionel Sambuc
3*36dcc4a4SLionel SambucTYPE		ROWCOL
4*36dcc4a4SLionel SambucNAME		THAI/UCS
5*36dcc4a4SLionel SambucSRC_ZONE	0x00-0xFF
6*36dcc4a4SLionel SambucOOB_MODE	ILSEQ
7*36dcc4a4SLionel SambucDST_ILSEQ	0xFFFE
8*36dcc4a4SLionel SambucDST_UNIT_BITS	16
9*36dcc4a4SLionel Sambuc
10*36dcc4a4SLionel SambucBEGIN_MAP
11*36dcc4a4SLionel Sambuc#
12*36dcc4a4SLionel Sambuc# This mapping data is made from the mapping data provided by Unicode, Inc.
13*36dcc4a4SLionel Sambuc# Original notice:
14*36dcc4a4SLionel Sambuc#
15*36dcc4a4SLionel Sambuc#=======================================================================
16*36dcc4a4SLionel Sambuc#   File name:  THAI.TXT
17*36dcc4a4SLionel Sambuc#
18*36dcc4a4SLionel Sambuc#   Contents:   Map (external version) from Mac OS Thai
19*36dcc4a4SLionel Sambuc#               character set to Unicode 3.2 and later.
20*36dcc4a4SLionel Sambuc#
21*36dcc4a4SLionel Sambuc#   Copyright:  (c) 1995-2002, 2005 by Apple Computer, Inc., all rights
22*36dcc4a4SLionel Sambuc#               reserved.
23*36dcc4a4SLionel Sambuc#
24*36dcc4a4SLionel Sambuc#   Contact:    charsets@apple.com
25*36dcc4a4SLionel Sambuc#
26*36dcc4a4SLionel Sambuc#   Changes:
27*36dcc4a4SLionel Sambuc#
28*36dcc4a4SLionel Sambuc#       c02  2005-Apr-05    Update header comments. Matches internal xml
29*36dcc4a4SLionel Sambuc#                           <c1.1> and Text Encoding Converter 2.0.
30*36dcc4a4SLionel Sambuc#      b3,c1 2002-Dec-19    Update mapping for 0xDB to use new Unicode
31*36dcc4a4SLionel Sambuc#                           3.2 WORD JOINER instead of ZWNBSP (BOM).
32*36dcc4a4SLionel Sambuc#                           Update URLs. Matches internal utom<b3>.
33*36dcc4a4SLionel Sambuc#       b02  1999-Sep-22    Update contact e-mail address. Matches
34*36dcc4a4SLionel Sambuc#                           internal utom<b1>, ufrm<b2>, and Text
35*36dcc4a4SLionel Sambuc#                           Encoding Converter version 1.5.
36*36dcc4a4SLionel Sambuc#       n07  1998-Feb-05    Update to match internal utom<n5>, ufrm<n13>
37*36dcc4a4SLionel Sambuc#                           and Text Encoding Converter version 1.3:
38*36dcc4a4SLionel Sambuc#                           Use standard Unicodes plus transcoding hints
39*36dcc4a4SLionel Sambuc#                           instead of single corporate characters; see
40*36dcc4a4SLionel Sambuc#                           details below. Also update header comments
41*36dcc4a4SLionel Sambuc#                           to new format.
42*36dcc4a4SLionel Sambuc#       n04  1995-Nov-17    First version (after fixing some typos).
43*36dcc4a4SLionel Sambuc#                           Matches internal ufrm<n6>.
44*36dcc4a4SLionel Sambuc#
45*36dcc4a4SLionel Sambuc# Standard header:
46*36dcc4a4SLionel Sambuc# ----------------
47*36dcc4a4SLionel Sambuc#
48*36dcc4a4SLionel Sambuc#   Apple, the Apple logo, and Macintosh are trademarks of Apple
49*36dcc4a4SLionel Sambuc#   Computer, Inc., registered in the United States and other countries.
50*36dcc4a4SLionel Sambuc#   Unicode is a trademark of Unicode Inc. For the sake of brevity,
51*36dcc4a4SLionel Sambuc#   throughout this document, "Macintosh" can be used to refer to
52*36dcc4a4SLionel Sambuc#   Macintosh computers and "Unicode" can be used to refer to the
53*36dcc4a4SLionel Sambuc#   Unicode standard.
54*36dcc4a4SLionel Sambuc#
55*36dcc4a4SLionel Sambuc#   Apple Computer, Inc. ("Apple") makes no warranty or representation,
56*36dcc4a4SLionel Sambuc#   either express or implied, with respect to this document and the
57*36dcc4a4SLionel Sambuc#   included data, its quality, accuracy, or fitness for a particular
58*36dcc4a4SLionel Sambuc#   purpose. In no event will Apple be liable for direct, indirect,
59*36dcc4a4SLionel Sambuc#   special, incidental, or consequential damages resulting from any
60*36dcc4a4SLionel Sambuc#   defect or inaccuracy in this document or the included data.
61*36dcc4a4SLionel Sambuc#
62*36dcc4a4SLionel Sambuc#   These mapping tables and character lists are subject to change.
63*36dcc4a4SLionel Sambuc#   The latest tables should be available from the following:
64*36dcc4a4SLionel Sambuc#
65*36dcc4a4SLionel Sambuc#   <http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/>
66*36dcc4a4SLionel Sambuc#
67*36dcc4a4SLionel Sambuc#   For general information about Mac OS encodings and these mapping
68*36dcc4a4SLionel Sambuc#   tables, see the file "README.TXT".
69*36dcc4a4SLionel Sambuc#
70*36dcc4a4SLionel Sambuc# Format:
71*36dcc4a4SLionel Sambuc# -------
72*36dcc4a4SLionel Sambuc#
73*36dcc4a4SLionel Sambuc#   Three tab-separated columns;
74*36dcc4a4SLionel Sambuc#   '#' begins a comment which continues to the end of the line.
75*36dcc4a4SLionel Sambuc#     Column #1 is the Mac OS Thai code (in hex as 0xNN)
76*36dcc4a4SLionel Sambuc#     Column #2 is the corresponding Unicode or Unicode sequence
77*36dcc4a4SLionel Sambuc#       (in hex as 0xNNNN or 0xNNNN+0xNNNN).
78*36dcc4a4SLionel Sambuc#     Column #3 is a comment containing the Unicode name
79*36dcc4a4SLionel Sambuc#
80*36dcc4a4SLionel Sambuc#   The entries are in Mac OS Thai code order.
81*36dcc4a4SLionel Sambuc#
82*36dcc4a4SLionel Sambuc#   Some of these mappings require the use of corporate characters.
83*36dcc4a4SLionel Sambuc#   See the file "CORPCHAR.TXT" and notes below.
84*36dcc4a4SLionel Sambuc#
85*36dcc4a4SLionel Sambuc#   Control character mappings are not shown in this table, following
86*36dcc4a4SLionel Sambuc#   the conventions of the standard UTC mapping tables. However, the
87*36dcc4a4SLionel Sambuc#   Mac OS Thai character set uses the standard control characters at
88*36dcc4a4SLionel Sambuc#   0x00-0x1F and 0x7F.
89*36dcc4a4SLionel Sambuc#
90*36dcc4a4SLionel Sambuc# Notes on Mac OS Thai:
91*36dcc4a4SLionel Sambuc# ---------------------
92*36dcc4a4SLionel Sambuc#
93*36dcc4a4SLionel Sambuc#   This is a legacy Mac OS encoding; in the Mac OS X Carbon and Cocoa
94*36dcc4a4SLionel Sambuc#   environments, it is only supported via transcoding to and from
95*36dcc4a4SLionel Sambuc#   Unicode.
96*36dcc4a4SLionel Sambuc#
97*36dcc4a4SLionel Sambuc#   Codes 0xA1-0xDA and 0xDF-0xFB are the character set from Thai
98*36dcc4a4SLionel Sambuc#   standard TIS 620-2533, except that the following changes are
99*36dcc4a4SLionel Sambuc#   made:
100*36dcc4a4SLionel Sambuc#     0xEE is TRADE MARK SIGN (instead of THAI CHARACTER YAMAKKAN)
101*36dcc4a4SLionel Sambuc#     0xFA is REGISTERED SIGN (instead of THAI CHARACTER ANGKHANKHU)
102*36dcc4a4SLionel Sambuc#     0xFB is COPYRIGHT SIGN (instead of THAI CHARACTER KHOMUT)
103*36dcc4a4SLionel Sambuc#
104*36dcc4a4SLionel Sambuc#   Codes 0x80-0x82, 0x8D-0x8E, 0x91, 0x9D-0x9E, and 0xDB-0xDE are
105*36dcc4a4SLionel Sambuc#   various additional punctuation marks (e.g. curly quotes,
106*36dcc4a4SLionel Sambuc#   ellipsis), no-break space, and two special characters "word join"
107*36dcc4a4SLionel Sambuc#   and "word break".
108*36dcc4a4SLionel Sambuc#
109*36dcc4a4SLionel Sambuc#   Codes 0x83-0x8C, 0x8F, and 0x92-0x9C are for positional variants
110*36dcc4a4SLionel Sambuc#   of the upper vowels, tone marks, and other signs at 0xD1,
111*36dcc4a4SLionel Sambuc#   0xD4-0xD7, and 0xE7-0xED. The positional variants would normally
112*36dcc4a4SLionel Sambuc#   be considered presentation forms only and not characters. In most
113*36dcc4a4SLionel Sambuc#   cases they are not typed directly; they are selected automatically
114*36dcc4a4SLionel Sambuc#   at display time by the WorldScript software. However, using the
115*36dcc4a4SLionel Sambuc#   Thai-DTP keyboard, the presentation forms can in fact be typed
116*36dcc4a4SLionel Sambuc#   directly using dead keys. Thus they must be treated as real
117*36dcc4a4SLionel Sambuc#   characters in the Mac OS Thai encoding. They are mapped using
118*36dcc4a4SLionel Sambuc#   variant tags; see below.
119*36dcc4a4SLionel Sambuc#
120*36dcc4a4SLionel Sambuc#   Several code points are undefined and unused (they cannot be
121*36dcc4a4SLionel Sambuc#   typed using any of the Mac OS Thai keyboard layouts): 0x90, 0x9F,
122*36dcc4a4SLionel Sambuc#   0xFC-0xFE. These are not shown in the table below.
123*36dcc4a4SLionel Sambuc#
124*36dcc4a4SLionel Sambuc# Unicode mapping issues and notes:
125*36dcc4a4SLionel Sambuc# ---------------------------------
126*36dcc4a4SLionel Sambuc#
127*36dcc4a4SLionel Sambuc#   The goals in the Apple mappings provided here are:
128*36dcc4a4SLionel Sambuc#   - Ensure roundtrip mapping from every character in the Mac OS Thai
129*36dcc4a4SLionel Sambuc#   character set to Unicode and back
130*36dcc4a4SLionel Sambuc#   - Use standard Unicode characters as much as possible, to maximize
131*36dcc4a4SLionel Sambuc#   interchangeability of the resulting Unicode text. Whenever possible,
132*36dcc4a4SLionel Sambuc#   avoid having content carried by private-use characters.
133*36dcc4a4SLionel Sambuc#
134*36dcc4a4SLionel Sambuc#   To satisfy both goals, we use private use characters to mark variants
135*36dcc4a4SLionel Sambuc#   that are similar to a sequence of one or more standard Unicode
136*36dcc4a4SLionel Sambuc#   characters.
137*36dcc4a4SLionel Sambuc#
138*36dcc4a4SLionel Sambuc#   Apple has defined a block of 32 corporate characters as "transcoding
139*36dcc4a4SLionel Sambuc#   hints." These are used in combination with standard Unicode characters
140*36dcc4a4SLionel Sambuc#   to force them to be treated in a special way for mapping to other
141*36dcc4a4SLionel Sambuc#   encodings; they have no other effect. Sixteen of these transcoding
142*36dcc4a4SLionel Sambuc#   hints are "grouping hints" - they indicate that the next 2-4 Unicode
143*36dcc4a4SLionel Sambuc#   characters should be treated as a single entity for transcoding. The
144*36dcc4a4SLionel Sambuc#   other sixteen transcoding hints are "variant tags" - they are like
145*36dcc4a4SLionel Sambuc#   combining characters, and can follow a standard Unicode (or a sequence
146*36dcc4a4SLionel Sambuc#   consisting of a base character and other combining characters) to
147*36dcc4a4SLionel Sambuc#   cause it to be treated in a special way for transcoding. These always
148*36dcc4a4SLionel Sambuc#   terminate a combining-character sequence.
149*36dcc4a4SLionel Sambuc#
150*36dcc4a4SLionel Sambuc#   The transcoding coding hints used in this mapping table are four
151*36dcc4a4SLionel Sambuc#   variant tags in the range 0xF873-75. Since these are combined with
152*36dcc4a4SLionel Sambuc#   standard Unicode characters, some characters in the Mac OS Thai
153*36dcc4a4SLionel Sambuc#   character set map to a sequence of two Unicodes instead of a single
154*36dcc4a4SLionel Sambuc#   Unicode character. For example, the Mac OS Thai character at 0x83 is a
155*36dcc4a4SLionel Sambuc#   low-left positional variant of THAI CHARACTER MAI EK (the standard
156*36dcc4a4SLionel Sambuc#   mapping is for the abstract character at 0xE8). So 0x83 is mapped to
157*36dcc4a4SLionel Sambuc#   0x0E48 (THAI CHARACTER MAI EK) + 0xF875 (a variant tag).
158*36dcc4a4SLionel Sambuc#
159*36dcc4a4SLionel Sambuc# Details of mapping changes in each version:
160*36dcc4a4SLionel Sambuc# -------------------------------------------
161*36dcc4a4SLionel Sambuc#
162*36dcc4a4SLionel Sambuc#   Changes from version b02 to version b03/c01:
163*36dcc4a4SLionel Sambuc#
164*36dcc4a4SLionel Sambuc#   - Update mapping for 0xDB to use new Unicode 3.2 character U+2060
165*36dcc4a4SLionel Sambuc#     WORD JOINER instead of U+FEFF ZERO WIDTH NO-BREAK SPACE (BOM)
166*36dcc4a4SLionel Sambuc#
167*36dcc4a4SLionel Sambuc#   Changes from version n04 to version n07:
168*36dcc4a4SLionel Sambuc#
169*36dcc4a4SLionel Sambuc#   - Changed mappings of the positional variants to use standard
170*36dcc4a4SLionel Sambuc#   Unicodes + transcoding hint, instead of using single corporate
171*36dcc4a4SLionel Sambuc#   zone characters. This affected the mappings for the following:
172*36dcc4a4SLionel Sambuc#   0x83-08C, 0x8F, 0x92-0x9C
173*36dcc4a4SLionel Sambuc#
174*36dcc4a4SLionel Sambuc#   - Just comment out unused code points in the table, instead
175*36dcc4a4SLionel Sambuc#   of mapping them to U+FFFD.
176*36dcc4a4SLionel Sambuc#
177*36dcc4a4SLionel Sambuc##################
178*36dcc4a4SLionel Sambuc0x00 - 0x7E = 0x0000 -
179*36dcc4a4SLionel Sambuc0x80 = 0x00AB
180*36dcc4a4SLionel Sambuc0x81 = 0x00BB
181*36dcc4a4SLionel Sambuc0x82 = 0x2026
182*36dcc4a4SLionel Sambuc0x83 = 0x0E48
183*36dcc4a4SLionel Sambuc0x84 = 0x0E49
184*36dcc4a4SLionel Sambuc0x85 = 0x0E4A
185*36dcc4a4SLionel Sambuc0x86 = 0x0E4B
186*36dcc4a4SLionel Sambuc0x87 = 0x0E4C
187*36dcc4a4SLionel Sambuc0x88 = 0x0E48
188*36dcc4a4SLionel Sambuc0x89 = 0x0E49
189*36dcc4a4SLionel Sambuc0x8A = 0x0E4A
190*36dcc4a4SLionel Sambuc0x8B = 0x0E4B
191*36dcc4a4SLionel Sambuc0x8C = 0x0E4C
192*36dcc4a4SLionel Sambuc0x8D = 0x201C
193*36dcc4a4SLionel Sambuc0x8E = 0x201D
194*36dcc4a4SLionel Sambuc0x8F = 0x0E4D
195*36dcc4a4SLionel Sambuc0x91 = 0x2022
196*36dcc4a4SLionel Sambuc0x92 = 0x0E31
197*36dcc4a4SLionel Sambuc0x93 = 0x0E47
198*36dcc4a4SLionel Sambuc0x94 = 0x0E34
199*36dcc4a4SLionel Sambuc0x95 = 0x0E35
200*36dcc4a4SLionel Sambuc0x96 = 0x0E36
201*36dcc4a4SLionel Sambuc0x97 = 0x0E37
202*36dcc4a4SLionel Sambuc0x98 = 0x0E48
203*36dcc4a4SLionel Sambuc0x99 = 0x0E49
204*36dcc4a4SLionel Sambuc0x9A = 0x0E4A
205*36dcc4a4SLionel Sambuc0x9B = 0x0E4B
206*36dcc4a4SLionel Sambuc0x9C = 0x0E4C
207*36dcc4a4SLionel Sambuc0x9D = 0x2018
208*36dcc4a4SLionel Sambuc0x9E = 0x2019
209*36dcc4a4SLionel Sambuc0xA0 = 0x00A0
210*36dcc4a4SLionel Sambuc0xA1 = 0x0E01
211*36dcc4a4SLionel Sambuc0xA2 = 0x0E02
212*36dcc4a4SLionel Sambuc0xA3 = 0x0E03
213*36dcc4a4SLionel Sambuc0xA4 = 0x0E04
214*36dcc4a4SLionel Sambuc0xA5 = 0x0E05
215*36dcc4a4SLionel Sambuc0xA6 = 0x0E06
216*36dcc4a4SLionel Sambuc0xA7 = 0x0E07
217*36dcc4a4SLionel Sambuc0xA8 = 0x0E08
218*36dcc4a4SLionel Sambuc0xA9 = 0x0E09
219*36dcc4a4SLionel Sambuc0xAA = 0x0E0A
220*36dcc4a4SLionel Sambuc0xAB = 0x0E0B
221*36dcc4a4SLionel Sambuc0xAC = 0x0E0C
222*36dcc4a4SLionel Sambuc0xAD = 0x0E0D
223*36dcc4a4SLionel Sambuc0xAE = 0x0E0E
224*36dcc4a4SLionel Sambuc0xAF = 0x0E0F
225*36dcc4a4SLionel Sambuc0xB0 = 0x0E10
226*36dcc4a4SLionel Sambuc0xB1 = 0x0E11
227*36dcc4a4SLionel Sambuc0xB2 = 0x0E12
228*36dcc4a4SLionel Sambuc0xB3 = 0x0E13
229*36dcc4a4SLionel Sambuc0xB4 = 0x0E14
230*36dcc4a4SLionel Sambuc0xB5 = 0x0E15
231*36dcc4a4SLionel Sambuc0xB6 = 0x0E16
232*36dcc4a4SLionel Sambuc0xB7 = 0x0E17
233*36dcc4a4SLionel Sambuc0xB8 = 0x0E18
234*36dcc4a4SLionel Sambuc0xB9 = 0x0E19
235*36dcc4a4SLionel Sambuc0xBA = 0x0E1A
236*36dcc4a4SLionel Sambuc0xBB = 0x0E1B
237*36dcc4a4SLionel Sambuc0xBC = 0x0E1C
238*36dcc4a4SLionel Sambuc0xBD = 0x0E1D
239*36dcc4a4SLionel Sambuc0xBE = 0x0E1E
240*36dcc4a4SLionel Sambuc0xBF = 0x0E1F
241*36dcc4a4SLionel Sambuc0xC0 = 0x0E20
242*36dcc4a4SLionel Sambuc0xC1 = 0x0E21
243*36dcc4a4SLionel Sambuc0xC2 = 0x0E22
244*36dcc4a4SLionel Sambuc0xC3 = 0x0E23
245*36dcc4a4SLionel Sambuc0xC4 = 0x0E24
246*36dcc4a4SLionel Sambuc0xC5 = 0x0E25
247*36dcc4a4SLionel Sambuc0xC6 = 0x0E26
248*36dcc4a4SLionel Sambuc0xC7 = 0x0E27
249*36dcc4a4SLionel Sambuc0xC8 = 0x0E28
250*36dcc4a4SLionel Sambuc0xC9 = 0x0E29
251*36dcc4a4SLionel Sambuc0xCA = 0x0E2A
252*36dcc4a4SLionel Sambuc0xCB = 0x0E2B
253*36dcc4a4SLionel Sambuc0xCC = 0x0E2C
254*36dcc4a4SLionel Sambuc0xCD = 0x0E2D
255*36dcc4a4SLionel Sambuc0xCE = 0x0E2E
256*36dcc4a4SLionel Sambuc0xCF = 0x0E2F
257*36dcc4a4SLionel Sambuc0xD0 = 0x0E30
258*36dcc4a4SLionel Sambuc0xD1 = 0x0E31
259*36dcc4a4SLionel Sambuc0xD2 = 0x0E32
260*36dcc4a4SLionel Sambuc0xD3 = 0x0E33
261*36dcc4a4SLionel Sambuc0xD4 = 0x0E34
262*36dcc4a4SLionel Sambuc0xD5 = 0x0E35
263*36dcc4a4SLionel Sambuc0xD6 = 0x0E36
264*36dcc4a4SLionel Sambuc0xD7 = 0x0E37
265*36dcc4a4SLionel Sambuc0xD8 = 0x0E38
266*36dcc4a4SLionel Sambuc0xD9 = 0x0E39
267*36dcc4a4SLionel Sambuc0xDA = 0x0E3A
268*36dcc4a4SLionel Sambuc0xDB = 0x2060
269*36dcc4a4SLionel Sambuc0xDC = 0x200B
270*36dcc4a4SLionel Sambuc0xDD = 0x2013
271*36dcc4a4SLionel Sambuc0xDE = 0x2014
272*36dcc4a4SLionel Sambuc0xDF = 0x0E3F
273*36dcc4a4SLionel Sambuc0xE0 = 0x0E40
274*36dcc4a4SLionel Sambuc0xE1 = 0x0E41
275*36dcc4a4SLionel Sambuc0xE2 = 0x0E42
276*36dcc4a4SLionel Sambuc0xE3 = 0x0E43
277*36dcc4a4SLionel Sambuc0xE4 = 0x0E44
278*36dcc4a4SLionel Sambuc0xE5 = 0x0E45
279*36dcc4a4SLionel Sambuc0xE6 = 0x0E46
280*36dcc4a4SLionel Sambuc0xE7 = 0x0E47
281*36dcc4a4SLionel Sambuc0xE8 = 0x0E48
282*36dcc4a4SLionel Sambuc0xE9 = 0x0E49
283*36dcc4a4SLionel Sambuc0xEA = 0x0E4A
284*36dcc4a4SLionel Sambuc0xEB = 0x0E4B
285*36dcc4a4SLionel Sambuc0xEC = 0x0E4C
286*36dcc4a4SLionel Sambuc0xED = 0x0E4D
287*36dcc4a4SLionel Sambuc0xEE = 0x2122
288*36dcc4a4SLionel Sambuc0xEF = 0x0E4F
289*36dcc4a4SLionel Sambuc0xF0 = 0x0E50
290*36dcc4a4SLionel Sambuc0xF1 = 0x0E51
291*36dcc4a4SLionel Sambuc0xF2 = 0x0E52
292*36dcc4a4SLionel Sambuc0xF3 = 0x0E53
293*36dcc4a4SLionel Sambuc0xF4 = 0x0E54
294*36dcc4a4SLionel Sambuc0xF5 = 0x0E55
295*36dcc4a4SLionel Sambuc0xF6 = 0x0E56
296*36dcc4a4SLionel Sambuc0xF7 = 0x0E57
297*36dcc4a4SLionel Sambuc0xF8 = 0x0E58
298*36dcc4a4SLionel Sambuc0xF9 = 0x0E59
299*36dcc4a4SLionel Sambuc0xFA = 0x00AE
300*36dcc4a4SLionel Sambuc0xFB = 0x00A9
301*36dcc4a4SLionel SambucEND_MAP
302