1*ad30f8e7SGabor Kovesdan# $NetBSD: THAI%UCS.src,v 1.1 2006/03/13 19:45:36 tnozaki Exp $ 2*ad30f8e7SGabor Kovesdan 3*ad30f8e7SGabor KovesdanTYPE ROWCOL 4*ad30f8e7SGabor KovesdanNAME THAI/UCS 5*ad30f8e7SGabor KovesdanSRC_ZONE 0x00-0xFF 6*ad30f8e7SGabor KovesdanOOB_MODE ILSEQ 7*ad30f8e7SGabor KovesdanDST_ILSEQ 0xFFFE 8*ad30f8e7SGabor KovesdanDST_UNIT_BITS 16 9*ad30f8e7SGabor Kovesdan 10*ad30f8e7SGabor KovesdanBEGIN_MAP 11*ad30f8e7SGabor Kovesdan# 12*ad30f8e7SGabor Kovesdan# This mapping data is made from the mapping data provided by Unicode, Inc. 13*ad30f8e7SGabor Kovesdan# Original notice: 14*ad30f8e7SGabor Kovesdan# 15*ad30f8e7SGabor Kovesdan#======================================================================= 16*ad30f8e7SGabor Kovesdan# File name: THAI.TXT 17*ad30f8e7SGabor Kovesdan# 18*ad30f8e7SGabor Kovesdan# Contents: Map (external version) from Mac OS Thai 19*ad30f8e7SGabor Kovesdan# character set to Unicode 3.2 and later. 20*ad30f8e7SGabor Kovesdan# 21*ad30f8e7SGabor Kovesdan# Copyright: (c) 1995-2002, 2005 by Apple Computer, Inc., all rights 22*ad30f8e7SGabor Kovesdan# reserved. 23*ad30f8e7SGabor Kovesdan# 24*ad30f8e7SGabor Kovesdan# Contact: charsets@apple.com 25*ad30f8e7SGabor Kovesdan# 26*ad30f8e7SGabor Kovesdan# Changes: 27*ad30f8e7SGabor Kovesdan# 28*ad30f8e7SGabor Kovesdan# c02 2005-Apr-05 Update header comments. Matches internal xml 29*ad30f8e7SGabor Kovesdan# <c1.1> and Text Encoding Converter 2.0. 30*ad30f8e7SGabor Kovesdan# b3,c1 2002-Dec-19 Update mapping for 0xDB to use new Unicode 31*ad30f8e7SGabor Kovesdan# 3.2 WORD JOINER instead of ZWNBSP (BOM). 32*ad30f8e7SGabor Kovesdan# Update URLs. Matches internal utom<b3>. 33*ad30f8e7SGabor Kovesdan# b02 1999-Sep-22 Update contact e-mail address. Matches 34*ad30f8e7SGabor Kovesdan# internal utom<b1>, ufrm<b2>, and Text 35*ad30f8e7SGabor Kovesdan# Encoding Converter version 1.5. 36*ad30f8e7SGabor Kovesdan# n07 1998-Feb-05 Update to match internal utom<n5>, ufrm<n13> 37*ad30f8e7SGabor Kovesdan# and Text Encoding Converter version 1.3: 38*ad30f8e7SGabor Kovesdan# Use standard Unicodes plus transcoding hints 39*ad30f8e7SGabor Kovesdan# instead of single corporate characters; see 40*ad30f8e7SGabor Kovesdan# details below. Also update header comments 41*ad30f8e7SGabor Kovesdan# to new format. 42*ad30f8e7SGabor Kovesdan# n04 1995-Nov-17 First version (after fixing some typos). 43*ad30f8e7SGabor Kovesdan# Matches internal ufrm<n6>. 44*ad30f8e7SGabor Kovesdan# 45*ad30f8e7SGabor Kovesdan# Standard header: 46*ad30f8e7SGabor Kovesdan# ---------------- 47*ad30f8e7SGabor Kovesdan# 48*ad30f8e7SGabor Kovesdan# Apple, the Apple logo, and Macintosh are trademarks of Apple 49*ad30f8e7SGabor Kovesdan# Computer, Inc., registered in the United States and other countries. 50*ad30f8e7SGabor Kovesdan# Unicode is a trademark of Unicode Inc. For the sake of brevity, 51*ad30f8e7SGabor Kovesdan# throughout this document, "Macintosh" can be used to refer to 52*ad30f8e7SGabor Kovesdan# Macintosh computers and "Unicode" can be used to refer to the 53*ad30f8e7SGabor Kovesdan# Unicode standard. 54*ad30f8e7SGabor Kovesdan# 55*ad30f8e7SGabor Kovesdan# Apple Computer, Inc. ("Apple") makes no warranty or representation, 56*ad30f8e7SGabor Kovesdan# either express or implied, with respect to this document and the 57*ad30f8e7SGabor Kovesdan# included data, its quality, accuracy, or fitness for a particular 58*ad30f8e7SGabor Kovesdan# purpose. In no event will Apple be liable for direct, indirect, 59*ad30f8e7SGabor Kovesdan# special, incidental, or consequential damages resulting from any 60*ad30f8e7SGabor Kovesdan# defect or inaccuracy in this document or the included data. 61*ad30f8e7SGabor Kovesdan# 62*ad30f8e7SGabor Kovesdan# These mapping tables and character lists are subject to change. 63*ad30f8e7SGabor Kovesdan# The latest tables should be available from the following: 64*ad30f8e7SGabor Kovesdan# 65*ad30f8e7SGabor Kovesdan# <http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/> 66*ad30f8e7SGabor Kovesdan# 67*ad30f8e7SGabor Kovesdan# For general information about Mac OS encodings and these mapping 68*ad30f8e7SGabor Kovesdan# tables, see the file "README.TXT". 69*ad30f8e7SGabor Kovesdan# 70*ad30f8e7SGabor Kovesdan# Format: 71*ad30f8e7SGabor Kovesdan# ------- 72*ad30f8e7SGabor Kovesdan# 73*ad30f8e7SGabor Kovesdan# Three tab-separated columns; 74*ad30f8e7SGabor Kovesdan# '#' begins a comment which continues to the end of the line. 75*ad30f8e7SGabor Kovesdan# Column #1 is the Mac OS Thai code (in hex as 0xNN) 76*ad30f8e7SGabor Kovesdan# Column #2 is the corresponding Unicode or Unicode sequence 77*ad30f8e7SGabor Kovesdan# (in hex as 0xNNNN or 0xNNNN+0xNNNN). 78*ad30f8e7SGabor Kovesdan# Column #3 is a comment containing the Unicode name 79*ad30f8e7SGabor Kovesdan# 80*ad30f8e7SGabor Kovesdan# The entries are in Mac OS Thai code order. 81*ad30f8e7SGabor Kovesdan# 82*ad30f8e7SGabor Kovesdan# Some of these mappings require the use of corporate characters. 83*ad30f8e7SGabor Kovesdan# See the file "CORPCHAR.TXT" and notes below. 84*ad30f8e7SGabor Kovesdan# 85*ad30f8e7SGabor Kovesdan# Control character mappings are not shown in this table, following 86*ad30f8e7SGabor Kovesdan# the conventions of the standard UTC mapping tables. However, the 87*ad30f8e7SGabor Kovesdan# Mac OS Thai character set uses the standard control characters at 88*ad30f8e7SGabor Kovesdan# 0x00-0x1F and 0x7F. 89*ad30f8e7SGabor Kovesdan# 90*ad30f8e7SGabor Kovesdan# Notes on Mac OS Thai: 91*ad30f8e7SGabor Kovesdan# --------------------- 92*ad30f8e7SGabor Kovesdan# 93*ad30f8e7SGabor Kovesdan# This is a legacy Mac OS encoding; in the Mac OS X Carbon and Cocoa 94*ad30f8e7SGabor Kovesdan# environments, it is only supported via transcoding to and from 95*ad30f8e7SGabor Kovesdan# Unicode. 96*ad30f8e7SGabor Kovesdan# 97*ad30f8e7SGabor Kovesdan# Codes 0xA1-0xDA and 0xDF-0xFB are the character set from Thai 98*ad30f8e7SGabor Kovesdan# standard TIS 620-2533, except that the following changes are 99*ad30f8e7SGabor Kovesdan# made: 100*ad30f8e7SGabor Kovesdan# 0xEE is TRADE MARK SIGN (instead of THAI CHARACTER YAMAKKAN) 101*ad30f8e7SGabor Kovesdan# 0xFA is REGISTERED SIGN (instead of THAI CHARACTER ANGKHANKHU) 102*ad30f8e7SGabor Kovesdan# 0xFB is COPYRIGHT SIGN (instead of THAI CHARACTER KHOMUT) 103*ad30f8e7SGabor Kovesdan# 104*ad30f8e7SGabor Kovesdan# Codes 0x80-0x82, 0x8D-0x8E, 0x91, 0x9D-0x9E, and 0xDB-0xDE are 105*ad30f8e7SGabor Kovesdan# various additional punctuation marks (e.g. curly quotes, 106*ad30f8e7SGabor Kovesdan# ellipsis), no-break space, and two special characters "word join" 107*ad30f8e7SGabor Kovesdan# and "word break". 108*ad30f8e7SGabor Kovesdan# 109*ad30f8e7SGabor Kovesdan# Codes 0x83-0x8C, 0x8F, and 0x92-0x9C are for positional variants 110*ad30f8e7SGabor Kovesdan# of the upper vowels, tone marks, and other signs at 0xD1, 111*ad30f8e7SGabor Kovesdan# 0xD4-0xD7, and 0xE7-0xED. The positional variants would normally 112*ad30f8e7SGabor Kovesdan# be considered presentation forms only and not characters. In most 113*ad30f8e7SGabor Kovesdan# cases they are not typed directly; they are selected automatically 114*ad30f8e7SGabor Kovesdan# at display time by the WorldScript software. However, using the 115*ad30f8e7SGabor Kovesdan# Thai-DTP keyboard, the presentation forms can in fact be typed 116*ad30f8e7SGabor Kovesdan# directly using dead keys. Thus they must be treated as real 117*ad30f8e7SGabor Kovesdan# characters in the Mac OS Thai encoding. They are mapped using 118*ad30f8e7SGabor Kovesdan# variant tags; see below. 119*ad30f8e7SGabor Kovesdan# 120*ad30f8e7SGabor Kovesdan# Several code points are undefined and unused (they cannot be 121*ad30f8e7SGabor Kovesdan# typed using any of the Mac OS Thai keyboard layouts): 0x90, 0x9F, 122*ad30f8e7SGabor Kovesdan# 0xFC-0xFE. These are not shown in the table below. 123*ad30f8e7SGabor Kovesdan# 124*ad30f8e7SGabor Kovesdan# Unicode mapping issues and notes: 125*ad30f8e7SGabor Kovesdan# --------------------------------- 126*ad30f8e7SGabor Kovesdan# 127*ad30f8e7SGabor Kovesdan# The goals in the Apple mappings provided here are: 128*ad30f8e7SGabor Kovesdan# - Ensure roundtrip mapping from every character in the Mac OS Thai 129*ad30f8e7SGabor Kovesdan# character set to Unicode and back 130*ad30f8e7SGabor Kovesdan# - Use standard Unicode characters as much as possible, to maximize 131*ad30f8e7SGabor Kovesdan# interchangeability of the resulting Unicode text. Whenever possible, 132*ad30f8e7SGabor Kovesdan# avoid having content carried by private-use characters. 133*ad30f8e7SGabor Kovesdan# 134*ad30f8e7SGabor Kovesdan# To satisfy both goals, we use private use characters to mark variants 135*ad30f8e7SGabor Kovesdan# that are similar to a sequence of one or more standard Unicode 136*ad30f8e7SGabor Kovesdan# characters. 137*ad30f8e7SGabor Kovesdan# 138*ad30f8e7SGabor Kovesdan# Apple has defined a block of 32 corporate characters as "transcoding 139*ad30f8e7SGabor Kovesdan# hints." These are used in combination with standard Unicode characters 140*ad30f8e7SGabor Kovesdan# to force them to be treated in a special way for mapping to other 141*ad30f8e7SGabor Kovesdan# encodings; they have no other effect. Sixteen of these transcoding 142*ad30f8e7SGabor Kovesdan# hints are "grouping hints" - they indicate that the next 2-4 Unicode 143*ad30f8e7SGabor Kovesdan# characters should be treated as a single entity for transcoding. The 144*ad30f8e7SGabor Kovesdan# other sixteen transcoding hints are "variant tags" - they are like 145*ad30f8e7SGabor Kovesdan# combining characters, and can follow a standard Unicode (or a sequence 146*ad30f8e7SGabor Kovesdan# consisting of a base character and other combining characters) to 147*ad30f8e7SGabor Kovesdan# cause it to be treated in a special way for transcoding. These always 148*ad30f8e7SGabor Kovesdan# terminate a combining-character sequence. 149*ad30f8e7SGabor Kovesdan# 150*ad30f8e7SGabor Kovesdan# The transcoding coding hints used in this mapping table are four 151*ad30f8e7SGabor Kovesdan# variant tags in the range 0xF873-75. Since these are combined with 152*ad30f8e7SGabor Kovesdan# standard Unicode characters, some characters in the Mac OS Thai 153*ad30f8e7SGabor Kovesdan# character set map to a sequence of two Unicodes instead of a single 154*ad30f8e7SGabor Kovesdan# Unicode character. For example, the Mac OS Thai character at 0x83 is a 155*ad30f8e7SGabor Kovesdan# low-left positional variant of THAI CHARACTER MAI EK (the standard 156*ad30f8e7SGabor Kovesdan# mapping is for the abstract character at 0xE8). So 0x83 is mapped to 157*ad30f8e7SGabor Kovesdan# 0x0E48 (THAI CHARACTER MAI EK) + 0xF875 (a variant tag). 158*ad30f8e7SGabor Kovesdan# 159*ad30f8e7SGabor Kovesdan# Details of mapping changes in each version: 160*ad30f8e7SGabor Kovesdan# ------------------------------------------- 161*ad30f8e7SGabor Kovesdan# 162*ad30f8e7SGabor Kovesdan# Changes from version b02 to version b03/c01: 163*ad30f8e7SGabor Kovesdan# 164*ad30f8e7SGabor Kovesdan# - Update mapping for 0xDB to use new Unicode 3.2 character U+2060 165*ad30f8e7SGabor Kovesdan# WORD JOINER instead of U+FEFF ZERO WIDTH NO-BREAK SPACE (BOM) 166*ad30f8e7SGabor Kovesdan# 167*ad30f8e7SGabor Kovesdan# Changes from version n04 to version n07: 168*ad30f8e7SGabor Kovesdan# 169*ad30f8e7SGabor Kovesdan# - Changed mappings of the positional variants to use standard 170*ad30f8e7SGabor Kovesdan# Unicodes + transcoding hint, instead of using single corporate 171*ad30f8e7SGabor Kovesdan# zone characters. This affected the mappings for the following: 172*ad30f8e7SGabor Kovesdan# 0x83-08C, 0x8F, 0x92-0x9C 173*ad30f8e7SGabor Kovesdan# 174*ad30f8e7SGabor Kovesdan# - Just comment out unused code points in the table, instead 175*ad30f8e7SGabor Kovesdan# of mapping them to U+FFFD. 176*ad30f8e7SGabor Kovesdan# 177*ad30f8e7SGabor Kovesdan################## 178*ad30f8e7SGabor Kovesdan0x00 - 0x7E = 0x0000 - 179*ad30f8e7SGabor Kovesdan0x80 = 0x00AB 180*ad30f8e7SGabor Kovesdan0x81 = 0x00BB 181*ad30f8e7SGabor Kovesdan0x82 = 0x2026 182*ad30f8e7SGabor Kovesdan0x83 = 0x0E48 183*ad30f8e7SGabor Kovesdan0x84 = 0x0E49 184*ad30f8e7SGabor Kovesdan0x85 = 0x0E4A 185*ad30f8e7SGabor Kovesdan0x86 = 0x0E4B 186*ad30f8e7SGabor Kovesdan0x87 = 0x0E4C 187*ad30f8e7SGabor Kovesdan0x88 = 0x0E48 188*ad30f8e7SGabor Kovesdan0x89 = 0x0E49 189*ad30f8e7SGabor Kovesdan0x8A = 0x0E4A 190*ad30f8e7SGabor Kovesdan0x8B = 0x0E4B 191*ad30f8e7SGabor Kovesdan0x8C = 0x0E4C 192*ad30f8e7SGabor Kovesdan0x8D = 0x201C 193*ad30f8e7SGabor Kovesdan0x8E = 0x201D 194*ad30f8e7SGabor Kovesdan0x8F = 0x0E4D 195*ad30f8e7SGabor Kovesdan0x91 = 0x2022 196*ad30f8e7SGabor Kovesdan0x92 = 0x0E31 197*ad30f8e7SGabor Kovesdan0x93 = 0x0E47 198*ad30f8e7SGabor Kovesdan0x94 = 0x0E34 199*ad30f8e7SGabor Kovesdan0x95 = 0x0E35 200*ad30f8e7SGabor Kovesdan0x96 = 0x0E36 201*ad30f8e7SGabor Kovesdan0x97 = 0x0E37 202*ad30f8e7SGabor Kovesdan0x98 = 0x0E48 203*ad30f8e7SGabor Kovesdan0x99 = 0x0E49 204*ad30f8e7SGabor Kovesdan0x9A = 0x0E4A 205*ad30f8e7SGabor Kovesdan0x9B = 0x0E4B 206*ad30f8e7SGabor Kovesdan0x9C = 0x0E4C 207*ad30f8e7SGabor Kovesdan0x9D = 0x2018 208*ad30f8e7SGabor Kovesdan0x9E = 0x2019 209*ad30f8e7SGabor Kovesdan0xA0 = 0x00A0 210*ad30f8e7SGabor Kovesdan0xA1 = 0x0E01 211*ad30f8e7SGabor Kovesdan0xA2 = 0x0E02 212*ad30f8e7SGabor Kovesdan0xA3 = 0x0E03 213*ad30f8e7SGabor Kovesdan0xA4 = 0x0E04 214*ad30f8e7SGabor Kovesdan0xA5 = 0x0E05 215*ad30f8e7SGabor Kovesdan0xA6 = 0x0E06 216*ad30f8e7SGabor Kovesdan0xA7 = 0x0E07 217*ad30f8e7SGabor Kovesdan0xA8 = 0x0E08 218*ad30f8e7SGabor Kovesdan0xA9 = 0x0E09 219*ad30f8e7SGabor Kovesdan0xAA = 0x0E0A 220*ad30f8e7SGabor Kovesdan0xAB = 0x0E0B 221*ad30f8e7SGabor Kovesdan0xAC = 0x0E0C 222*ad30f8e7SGabor Kovesdan0xAD = 0x0E0D 223*ad30f8e7SGabor Kovesdan0xAE = 0x0E0E 224*ad30f8e7SGabor Kovesdan0xAF = 0x0E0F 225*ad30f8e7SGabor Kovesdan0xB0 = 0x0E10 226*ad30f8e7SGabor Kovesdan0xB1 = 0x0E11 227*ad30f8e7SGabor Kovesdan0xB2 = 0x0E12 228*ad30f8e7SGabor Kovesdan0xB3 = 0x0E13 229*ad30f8e7SGabor Kovesdan0xB4 = 0x0E14 230*ad30f8e7SGabor Kovesdan0xB5 = 0x0E15 231*ad30f8e7SGabor Kovesdan0xB6 = 0x0E16 232*ad30f8e7SGabor Kovesdan0xB7 = 0x0E17 233*ad30f8e7SGabor Kovesdan0xB8 = 0x0E18 234*ad30f8e7SGabor Kovesdan0xB9 = 0x0E19 235*ad30f8e7SGabor Kovesdan0xBA = 0x0E1A 236*ad30f8e7SGabor Kovesdan0xBB = 0x0E1B 237*ad30f8e7SGabor Kovesdan0xBC = 0x0E1C 238*ad30f8e7SGabor Kovesdan0xBD = 0x0E1D 239*ad30f8e7SGabor Kovesdan0xBE = 0x0E1E 240*ad30f8e7SGabor Kovesdan0xBF = 0x0E1F 241*ad30f8e7SGabor Kovesdan0xC0 = 0x0E20 242*ad30f8e7SGabor Kovesdan0xC1 = 0x0E21 243*ad30f8e7SGabor Kovesdan0xC2 = 0x0E22 244*ad30f8e7SGabor Kovesdan0xC3 = 0x0E23 245*ad30f8e7SGabor Kovesdan0xC4 = 0x0E24 246*ad30f8e7SGabor Kovesdan0xC5 = 0x0E25 247*ad30f8e7SGabor Kovesdan0xC6 = 0x0E26 248*ad30f8e7SGabor Kovesdan0xC7 = 0x0E27 249*ad30f8e7SGabor Kovesdan0xC8 = 0x0E28 250*ad30f8e7SGabor Kovesdan0xC9 = 0x0E29 251*ad30f8e7SGabor Kovesdan0xCA = 0x0E2A 252*ad30f8e7SGabor Kovesdan0xCB = 0x0E2B 253*ad30f8e7SGabor Kovesdan0xCC = 0x0E2C 254*ad30f8e7SGabor Kovesdan0xCD = 0x0E2D 255*ad30f8e7SGabor Kovesdan0xCE = 0x0E2E 256*ad30f8e7SGabor Kovesdan0xCF = 0x0E2F 257*ad30f8e7SGabor Kovesdan0xD0 = 0x0E30 258*ad30f8e7SGabor Kovesdan0xD1 = 0x0E31 259*ad30f8e7SGabor Kovesdan0xD2 = 0x0E32 260*ad30f8e7SGabor Kovesdan0xD3 = 0x0E33 261*ad30f8e7SGabor Kovesdan0xD4 = 0x0E34 262*ad30f8e7SGabor Kovesdan0xD5 = 0x0E35 263*ad30f8e7SGabor Kovesdan0xD6 = 0x0E36 264*ad30f8e7SGabor Kovesdan0xD7 = 0x0E37 265*ad30f8e7SGabor Kovesdan0xD8 = 0x0E38 266*ad30f8e7SGabor Kovesdan0xD9 = 0x0E39 267*ad30f8e7SGabor Kovesdan0xDA = 0x0E3A 268*ad30f8e7SGabor Kovesdan0xDB = 0x2060 269*ad30f8e7SGabor Kovesdan0xDC = 0x200B 270*ad30f8e7SGabor Kovesdan0xDD = 0x2013 271*ad30f8e7SGabor Kovesdan0xDE = 0x2014 272*ad30f8e7SGabor Kovesdan0xDF = 0x0E3F 273*ad30f8e7SGabor Kovesdan0xE0 = 0x0E40 274*ad30f8e7SGabor Kovesdan0xE1 = 0x0E41 275*ad30f8e7SGabor Kovesdan0xE2 = 0x0E42 276*ad30f8e7SGabor Kovesdan0xE3 = 0x0E43 277*ad30f8e7SGabor Kovesdan0xE4 = 0x0E44 278*ad30f8e7SGabor Kovesdan0xE5 = 0x0E45 279*ad30f8e7SGabor Kovesdan0xE6 = 0x0E46 280*ad30f8e7SGabor Kovesdan0xE7 = 0x0E47 281*ad30f8e7SGabor Kovesdan0xE8 = 0x0E48 282*ad30f8e7SGabor Kovesdan0xE9 = 0x0E49 283*ad30f8e7SGabor Kovesdan0xEA = 0x0E4A 284*ad30f8e7SGabor Kovesdan0xEB = 0x0E4B 285*ad30f8e7SGabor Kovesdan0xEC = 0x0E4C 286*ad30f8e7SGabor Kovesdan0xED = 0x0E4D 287*ad30f8e7SGabor Kovesdan0xEE = 0x2122 288*ad30f8e7SGabor Kovesdan0xEF = 0x0E4F 289*ad30f8e7SGabor Kovesdan0xF0 = 0x0E50 290*ad30f8e7SGabor Kovesdan0xF1 = 0x0E51 291*ad30f8e7SGabor Kovesdan0xF2 = 0x0E52 292*ad30f8e7SGabor Kovesdan0xF3 = 0x0E53 293*ad30f8e7SGabor Kovesdan0xF4 = 0x0E54 294*ad30f8e7SGabor Kovesdan0xF5 = 0x0E55 295*ad30f8e7SGabor Kovesdan0xF6 = 0x0E56 296*ad30f8e7SGabor Kovesdan0xF7 = 0x0E57 297*ad30f8e7SGabor Kovesdan0xF8 = 0x0E58 298*ad30f8e7SGabor Kovesdan0xF9 = 0x0E59 299*ad30f8e7SGabor Kovesdan0xFA = 0x00AE 300*ad30f8e7SGabor Kovesdan0xFB = 0x00A9 301*ad30f8e7SGabor KovesdanEND_MAP 302