Thai Industrial Standard 620-2533

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by HarJIT (talk | contribs) at 19:11, 31 August 2018 (regenerate colour codes based on Unicode category (script)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Thai Industrial Standard 620-2533, commonly referred to as TIS-620, is the most common character set and character encoding for the Thai language. The standard is published by the Thai Industrial Standards Institute (TISI), an organ of the Ministry of Industry under the Royal Thai Government, and is the sole official standard for encoding Thai in Thailand. The descriptive name of the standard is "Standard for Thai Character Codes for Computers" (Thai: รหัสสำหรับอักขระไทยที่ใช้กับคอมพิวเตอร์). "2533" refers to year 2533 of the Buddhist Era (1990), the year the present version of the standard was published; a previous revision, TIS 620-2529 (1986), is now obsolete.

TIS-620 is the IANA preferred charset name for TIS-620, and that charset name is used also for ISO/IEC 8859-11 (which adds a no-break space character at 0xA0, which is unassigned in TIS-620). When the IANA name is used the codes are supplemented with the C0 and C1 control codes from ISO/IEC 6429.

Structure

TIS-620 is a conventionally structured Extended ASCII national character set that retains full compatibility with 7-bit ASCII and uses the 8-bit range hex A1 to FB for encoding the Thai alphabet. Due to the complex combining nature of Thai vowels and diacritics, TIS-620 is intended for information interchange only, and an additional display engine is required to compose characters correctly.

Variants

A nearly identical version of TIS-620 has been adopted as ISO/IEC 8859-11 in 2001, the sole difference being that ISO/IEC 8859-11 defines hex A0 as a non-breaking space, while TIS-620 leaves it undefined but reserved. (In practice, this small distinction is usually ignored.)

The ISO/IEC 8859-11 set has also been registered as ISO-IR-166 by Ecma International, but this variation adds explicit escape codes for signaling the beginning and end of Thai character sequences.

The TIS-620 character set ordering has been used essentially as is within Unicode (ISO/IEC 10646) as well. Unicode's Thai block is U+0E01 through U+0E7F, and TIS-620 Thai characters can be converted to UTF-16 simply by prefixing each byte with 0E and subtracting hex A0 from the value.

Character set

  Letter  Number  Punctuation  Symbol  Other  Undefined

TIS-620
_0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F
0_ Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef|
1_ Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef|
2_ Template:Chset-color-misc|SP
0020
32
Template:Chset-color-punct|!
0021
33
Template:Chset-color-punct|"
0022
34
Template:Chset-color-punct|#
0023
35
Template:Chset-color-graph|$
0024
36
Template:Chset-color-punct|%
0025
37
Template:Chset-color-punct|&
0026
38
Template:Chset-color-punct|'
0027
39
Template:Chset-color-punct|(
0028
40
Template:Chset-color-punct|)
0029
41
Template:Chset-color-punct|*
002A
42
Template:Chset-color-graph|+
002B
43
Template:Chset-color-punct|,
002C
44
Template:Chset-color-punct|-
002D
45
Template:Chset-color-punct|.
002E
46
Template:Chset-color-punct|/
002F
47
3_ Template:Chset-color-digit|0
0030
48
Template:Chset-color-digit|1
0031
49
Template:Chset-color-digit|2
0032
50
Template:Chset-color-digit|3
0033
51
Template:Chset-color-digit|4
0034
52
Template:Chset-color-digit|5
0035
53
Template:Chset-color-digit|6
0036
54
Template:Chset-color-digit|7
0037
55
Template:Chset-color-digit|8
0038
56
Template:Chset-color-digit|9
0039
57
Template:Chset-color-punct|:
003A
58
Template:Chset-color-punct|;
003B
59
Template:Chset-color-graph|<
003C
60
Template:Chset-color-graph|=
003D
61
Template:Chset-color-graph|>
003E
62
Template:Chset-color-punct|?
003F
63
4_ Template:Chset-color-punct|@
0040
64
Template:Chset-color-alpha|A
0041
65
Template:Chset-color-alpha|B
0042
66
Template:Chset-color-alpha|C
0043
67
Template:Chset-color-alpha|D
0044
68
Template:Chset-color-alpha|E
0045
69
Template:Chset-color-alpha|F
0046
70
Template:Chset-color-alpha|G
0047
71
Template:Chset-color-alpha|H
0048
72
Template:Chset-color-alpha|I
0049
73
Template:Chset-color-alpha|J
004A
74
Template:Chset-color-alpha|K
004B
75
Template:Chset-color-alpha|L
004C
76
Template:Chset-color-alpha|M
004D
77
Template:Chset-color-alpha|N
004E
78
Template:Chset-color-alpha|O
004F
79
5_ Template:Chset-color-alpha|P
0050
80
Template:Chset-color-alpha|Q
0051
81
Template:Chset-color-alpha|R
0052
82
Template:Chset-color-alpha|S
0053
83
Template:Chset-color-alpha|T
0054
84
Template:Chset-color-alpha|U
0055
85
Template:Chset-color-alpha|V
0056
86
Template:Chset-color-alpha|W
0057
87
Template:Chset-color-alpha|X
0058
88
Template:Chset-color-alpha|Y
0059
89
Template:Chset-color-alpha|Z
005A
90
Template:Chset-color-punct|[
005B
91
Template:Chset-color-punct|\
005C
92
Template:Chset-color-punct|]
005D
93
Template:Chset-color-graph|^
005E
94
Template:Chset-color-punct|_
005F
95
6_ Template:Chset-color-graph|`
0060
96
Template:Chset-color-alpha|a
0061
97
Template:Chset-color-alpha|b
0062
98
Template:Chset-color-alpha|c
0063
99
Template:Chset-color-alpha|d
0064
100
Template:Chset-color-alpha|e
0065
101
Template:Chset-color-alpha|f
0066
102
Template:Chset-color-alpha|g
0067
103
Template:Chset-color-alpha|h
0068
104
Template:Chset-color-alpha|i
0069
105
Template:Chset-color-alpha|j
006A
106
Template:Chset-color-alpha|k
006B
107
Template:Chset-color-alpha|l
006C
108
Template:Chset-color-alpha|m
006D
109
Template:Chset-color-alpha|n
006E
110
Template:Chset-color-alpha|o
006F
111
7_ Template:Chset-color-alpha|p
0070
112
Template:Chset-color-alpha|q
0071
113
Template:Chset-color-alpha|r
0072
114
Template:Chset-color-alpha|s
0073
115
Template:Chset-color-alpha|t
0074
116
Template:Chset-color-alpha|u
0075
117
Template:Chset-color-alpha|v
0076
118
Template:Chset-color-alpha|w
0077
119
Template:Chset-color-alpha|x
0078
120
Template:Chset-color-alpha|y
0079
121
Template:Chset-color-alpha|z
007A
122
Template:Chset-color-punct|{
007B
123
Template:Chset-color-graph||
007C
124
Template:Chset-color-punct|}
007D
125
Template:Chset-color-graph|~
007E
126
Template:Chset-color-undef|
8_ Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef|
9_ Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef|
A_ Template:Chset-color-undef| Template:Chset-color-letter|
0E01
161
Template:Chset-color-letter|
0E02
162
Template:Chset-color-letter|
0E03
163
Template:Chset-color-letter|
0E04
164
Template:Chset-color-letter|
0E05
165
Template:Chset-color-letter|
0E06
166
Template:Chset-color-letter|
0E07
167
Template:Chset-color-letter|
0E08
168
Template:Chset-color-letter|
0E09
169
Template:Chset-color-letter|
0E0A
170
Template:Chset-color-letter|
0E0B
171
Template:Chset-color-letter|
0E0C
172
Template:Chset-color-letter|
0E0D
173
Template:Chset-color-letter|
0E0E
174
Template:Chset-color-letter|
0E0F
175
B_ Template:Chset-color-letter|
0E10
176
Template:Chset-color-letter|
0E11
177
Template:Chset-color-letter|
0E12
178
Template:Chset-color-letter|
0E13
179
Template:Chset-color-letter|
0E14
180
Template:Chset-color-letter|
0E15
181
Template:Chset-color-letter|
0E16
182
Template:Chset-color-letter|
0E17
183
Template:Chset-color-letter|
0E18
184
Template:Chset-color-letter|
0E19
185
Template:Chset-color-letter|
0E1A
186
Template:Chset-color-letter|
0E1B
187
Template:Chset-color-letter|
0E1C
188
Template:Chset-color-letter|
0E1D
189
Template:Chset-color-letter|
0E1E
190
Template:Chset-color-letter|
0E1F
191
C_ Template:Chset-color-letter|
0E20
192
Template:Chset-color-letter|
0E21
193
Template:Chset-color-letter|
0E22
194
Template:Chset-color-letter|
0E23
195
Template:Chset-color-letter|
0E24
196
Template:Chset-color-letter|
0E25
197
Template:Chset-color-letter|
0E26
198
Template:Chset-color-letter|
0E27
199
Template:Chset-color-letter|
0E28
200
Template:Chset-color-letter|
0E29
201
Template:Chset-color-letter|
0E2A
202
Template:Chset-color-letter|
0E2B
203
Template:Chset-color-letter|
0E2C
204
Template:Chset-color-letter|
0E2D
205
Template:Chset-color-letter|
0E2E
206
Template:Chset-color-letter|
0E2F
207
D_ Template:Chset-color-letter|
0E30
208
Template:Chset-color-misc|◌ั
0E31
209
Template:Chset-color-letter|
0E32
210
Template:Chset-color-letter|
0E33
211
Template:Chset-color-misc|◌ิ
0E34
212
Template:Chset-color-misc|◌ี
0E35
213
Template:Chset-color-misc|◌ึ
0E36
214
Template:Chset-color-misc|◌ื
0E37
215
Template:Chset-color-misc|◌ุ
0E38
216
Template:Chset-color-misc|◌ู
0E39
217
Template:Chset-color-misc|◌ฺ
0E3A
218
Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-graph|฿
0E3F
223
E_ Template:Chset-color-letter|
0E40
224
Template:Chset-color-letter|
0E41
225
Template:Chset-color-letter|
0E42
226
Template:Chset-color-letter|
0E43
227
Template:Chset-color-letter|
0E44
228
Template:Chset-color-letter|
0E45
229
Template:Chset-color-letter|
0E46
230
Template:Chset-color-misc|◌็
0E47
231
Template:Chset-color-misc|◌่
0E48
232
Template:Chset-color-misc|◌้
0E49
233
Template:Chset-color-misc|◌๊
0E4A
234
Template:Chset-color-misc|◌๋
0E4B
235
Template:Chset-color-misc|◌์
0E4C
236
Template:Chset-color-misc|◌ํ
0E4D
237
Template:Chset-color-misc|◌๎
0E4E
238
Template:Chset-color-punct|
0E4F
239
F_ Template:Chset-color-digit|
0E50
240
Template:Chset-color-digit|
0E51
241
Template:Chset-color-digit|
0E52
242
Template:Chset-color-digit|
0E53
243
Template:Chset-color-digit|
0E54
244
Template:Chset-color-digit|
0E55
245
Template:Chset-color-digit|
0E56
246
Template:Chset-color-digit|
0E57
247
Template:Chset-color-digit|
0E58
248
Template:Chset-color-digit|
0E59
249
Template:Chset-color-punct|
0E5A
250
Template:Chset-color-punct|
0E5B
251
Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef| Template:Chset-color-undef|
_0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F

In the table above, 20 is the regular SPACE character. Code values 00-1F, 7F, 80-9F, A0, DB-DE and FC-FF are not assigned to characters by TIS-620.

Code values D1, D4-DA, E7-EE are combining characters.

Further reading

  • Flohr, Guido (2016) [2006]. "Locale::RecodeData::TIS_620 - Conversion routines for TIS-620". CPAN libintl-perl. 1.0. Archived from the original on 2017-01-14. Retrieved 2017-01-14. {{cite web}}: |archive-date= / |archive-url= timestamp mismatch; 2017-01-15 suggested (help); Unknown parameter |dead-url= ignored (|url-status= suggested) (help)
  • https://www.math.nmsu.edu/~mleisher/Software/csets/TIS620.TXT

External links