| 1 |
# liblouis: Thai Grade 1 character definitions table |
| 2 |
# |
| 3 |
# copyright: 2024, Thai braille fund and FOUNDATION FOR THE BLIND IN THAILAND UNDER THE ROYAL PATRONAGE OF H.M. THE QUEEN. |
| 4 |
# |
| 5 |
# This file is part of liblouis. |
| 6 |
# |
| 7 |
# liblouis is free software: you can redistribute it and/or modify it |
| 8 |
# under the terms of the GNU Lesser General Public License as |
| 9 |
# published by the Free Software Foundation, either version 2.1 of the |
| 10 |
# License, or (at your option) any later version. |
| 11 |
# |
| 12 |
# liblouis is distributed in the hope that it will be useful, but |
| 13 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
# Lesser General Public License for more details. |
| 16 |
# |
| 17 |
# You should have received a copy of the GNU Lesser General Public |
| 18 |
# License along with liblouis. If not, see |
| 19 |
# <http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
#-maintainer: Chatupol Nootatong <[email protected]> |
| 22 |
|
| 23 |
include spaces.uti |
| 24 |
|
| 25 |
# Thai Consinants |
| 26 |
letter \x0e01 1245 # ก |
| 27 |
letter \x0e02 13 # ข |
| 28 |
letter \x0e03 13b # ฃ |
| 29 |
letter \x0e04 136 # ค |
| 30 |
letter \x0e05 136a # ฅ |
| 31 |
letter \x0e06 1369 # ฆ |
| 32 |
letter \x0e07 12456 # ง |
| 33 |
letter \x0e08 245 # จ |
| 34 |
letter \x0e09 34 # ฉ |
| 35 |
letter \x0e0a 346 # ช |
| 36 |
letter \x0e0b 2346 # ซ |
| 37 |
letter \x0e0c 3469 # ฌ |
| 38 |
letter \x0e0d 134569 # ญ |
| 39 |
letter \x0e0e 1459 # ฎ |
| 40 |
letter \x0e0f 12569 # ฏ |
| 41 |
letter \x0e10 23459 # ฐ |
| 42 |
letter \x0e11 234569 # ฑ |
| 43 |
letter \x0e12 23456a # ฒ |
| 44 |
letter \x0e13 13459 # ณ |
| 45 |
letter \x0e14 145 # ด |
| 46 |
letter \x0e15 1256 # ต |
| 47 |
letter \x0e16 2345 # ถ |
| 48 |
letter \x0e17 23456 # ท |
| 49 |
letter \x0e18 23456b # ธ |
| 50 |
letter \x0e19 1345 # น |
| 51 |
letter \x0e1a 1236 # บ |
| 52 |
letter \x0e1b 12346 # ป |
| 53 |
letter \x0e1c 1234 # ผ |
| 54 |
letter \x0e1d 1346 # ฝ |
| 55 |
letter \x0e1e 1456 # พ |
| 56 |
letter \x0e1f 1246 # ฟ |
| 57 |
letter \x0e20 14569 # ภ |
| 58 |
letter \x0e21 134 # ม |
| 59 |
letter \x0e22 13456 # ย |
| 60 |
letter \x0e23 1235 # ร |
| 61 |
letter \x0e25 123 # ล |
| 62 |
letter \x0e27 2456 # ว |
| 63 |
letter \x0e28 2349 # ศ |
| 64 |
letter \x0e29 234a # ษ |
| 65 |
letter \x0e2a 234 # ส |
| 66 |
letter \x0e2b 125 # ห |
| 67 |
letter \x0e2c 1239 # ฬ |
| 68 |
letter \x0e2d 135 # อ |
| 69 |
letter \x0e2e 123456 # ฮ |
| 70 |
|
| 71 |
# Thai vowel |
| 72 |
letter \x0e30 1 # ะ |
| 73 |
letter \x0e31 345 # ั |
| 74 |
letter \x0e47 3 # ็ |
| 75 |
letter \x0e32 16 # า |
| 76 |
letter \x0e34 12 # ิ |
| 77 |
letter \x0e35 23 # ี |
| 78 |
letter \x0e38 14 # ุ |
| 79 |
letter \x0e39 25 # ู |
| 80 |
letter \x0e36 246 # ึ |
| 81 |
letter \x0e37 26 # ื |
| 82 |
letter \x0e40 124 # เ |
| 83 |
letter \x0e41 126 # แ |
| 84 |
letter \x0e42 24 # โ |
| 85 |
letter \x0e33 1356 # ำ |
| 86 |
letter \x0e44 156 # ไ |
| 87 |
letter \x0e43 156-2 # ใ |
| 88 |
letter \x0e24 1235-2 # ฤ |
| 89 |
letter \x0e26 123-2 # ฦ |
| 90 |
letter \x0e48 35 # ่ |
| 91 |
letter \x0e49 256 # ้ |
| 92 |
letter \x0e4a 2356 # ๊ |
| 93 |
letter \x0e4b 236 # ๋ |
| 94 |
sign ? 236 # ? |
| 95 |
sign \x0e46 2 # ๆ |
| 96 |
sign \x0e4c 356 # ์ |
| 97 |
sign \x0e4d 5 # ํ |
| 98 |
sign \x0e3a 3 # ฺ |
| 99 |
sign \x0e2f 56-23 # ฯ |
| 100 |
sign \x0e3f 4-12 # ฿ |
| 101 |
sign \x0e45 5-16 # ๅ |
| 102 |
sign \x0e4e 4-15 # ๎ |
| 103 |
sign \x0e4f 4-14 # ๏ |
| 104 |
sign \x0e5a 4-256 # ๚ |
| 105 |
sign \x0e5b 4-23 # ๛ |
| 106 |
|
| 107 |
# make phayan yai |
| 108 |
noback pass2 @56-23-123-56-23 @56-123 |
| 109 |
|
| 110 |
# Thai digit |
| 111 |
digit \x0e50 245b # ๐ |
| 112 |
digit \x0e51 1b # ๑ |
| 113 |
digit \x0e52 12b # ๒ |
| 114 |
digit \x0e53 14b # ๓ |
| 115 |
digit \x0e54 145b # ๔ |
| 116 |
digit \x0e55 15b # ๕ |
| 117 |
digit \x0e56 124b # ๖ |
| 118 |
digit \x0e57 1245b # ๗ |
| 119 |
digit \x0e58 125b # ๘ |
| 120 |
digit \x0e59 24b # ๙ |
| 121 |
|
| 122 |
#attribute Thai Consinants |
| 123 |
attribute thaiconsinants \x0e01\x0e02\x0e03\x0e04\x0e05\x0e06\x0e07\x0e08\x0e09\x0e0a\x0e0b\x0e0c\x0e0d\x0e0e\x0e0f\x0e10\x0e11\x0e12\x0e13\x0e14\x0e15\x0e16\x0e17\x0e18\x0e19\x0e1a\x0e1b\x0e1c\x0e1d\x0e1e\x0e1f\x0e20\x0e21\x0e22\x0e23\x0e25\x0e27\x0e28\x0e29\x0e2a\x0e2b\x0e2c\x0e2d\x0e2e |
| 124 |
|
| 125 |
#attribute tone marks |
| 126 |
attribute tonemarks \x0e48\x0e49\x0e4a\x0e4b |
| 127 |
|
| 128 |
# thai sign |
| 129 |
attribute thaiSign \x0e46\x0e4c\x0e4d\x0e3a\x0e2f\x0e3f\x0e45\x0e4e\x0e4f\x0e5a\x0e5b |
| 130 |
|
| 131 |
#attribute Thai Consinants for punctuation |
| 132 |
attribute forpunc \x0e01\x0e02\x0e03\x0e04\x0e05\x0e06\x0e07\x0e08\x0e09\x0e0a\x0e0b\x0e0c\x0e0d\x0e0e\x0e0f\x0e10\x0e11\x0e12\x0e13\x0e14\x0e15\x0e16\x0e17\x0e18\x0e19\x0e1a\x0e1b\x0e1c\x0e1d\x0e1e\x0e1f\x0e20\x0e21\x0e22\x0e23\x0e25\x0e27\x0e28\x0e29\x0e2a\x0e2b\x0e2c\x0e2d\x0e2e\x0e30\x0e47\x0e32\x0e34\x0e35\x0e38\x0e39\x0e36\x0e37\x0e33\x0e48\x0e49\x0e4a\x0e4b\x0e46\x0e4c\x0e2f\x0e41 |
| 133 |
|
| 134 |
# swap for context |
| 135 |
swapcd thaiconsinantsCD \x0e01\x0e02\x0e03\x0e04\x0e05\x0e06\x0e07\x0e08\x0e09\x0e0a\x0e0b\x0e0c\x0e0d\x0e0e\x0e0f\x0e10\x0e11\x0e12\x0e13\x0e14\x0e15\x0e16\x0e17\x0e18\x0e19\x0e1a\x0e1b\x0e1c\x0e1d\x0e1e\x0e1f\x0e20\x0e21\x0e22\x0e23\x0e25\x0e27\x0e28\x0e29\x0e2a\x0e2b\x0e2c\x0e2d\x0e2e 1245,13,356-13,136,36-136,6-136,12456,245,34,346,2346,6-346,6-13456,6-145,6-1256,6-2345,6-23456,36-23456,6-1345,145,1256,2345,23456,356-23456,1345,1236,12346,1234,1346,1456,1246,6-1456,134,13456,1235,123,2456,6-234,36-234,234,125,6-123,135,123456 |
| 136 |
swapcd tonemarksContext \x0e48\x0e49\x0e4a\x0e4b 359,2569,23569,2369 |
| 137 |
|
| 138 |
# swap for multipass |
| 139 |
swapdd tonemarksPass 359,2569,23569,2369 35,256,2356,236 |
| 140 |
|
| 141 |
#attribute Thai Consinants for match |
| 142 |
attribute 1 \x0e01\x0e02\x0e03\x0e04\x0e05\x0e06\x0e07\x0e08\x0e09\x0e0a\x0e0b\x0e0c\x0e0d\x0e0e\x0e0f\x0e10\x0e11\x0e12\x0e13\x0e14\x0e15\x0e16\x0e17\x0e18\x0e19\x0e1a\x0e1b\x0e1c\x0e1d\x0e1e\x0e1f\x0e20\x0e21\x0e22\x0e23\x0e25\x0e27\x0e28\x0e29\x0e2a\x0e2b\x0e2c\x0e2d\x0e2e\x0e30\x0e31\x0e47\x0e32\x0e34\x0e35\x0e38\x0e39\x0e36\x0e37\x0e40\x0e41\x0e42\x0e33\x0e44\x0e43\x0e24\x0e26\x0e48\x0e49\x0e4a\x0e4b\x0e46\x0e4c\x0e4d\x0e3a\x0e2f\x0e3f\x0e45\x0e4e\x0e4f\x0e5a\x0e5b |
| 143 |
|
| 144 |
#english character |
| 145 |
attribute englishcharacter abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |
| 146 |
|
| 147 |
#Move the tone to the back of the vowel. |
| 148 |
noback correct [$x]"\x0e30" "\x0e30"* |
| 149 |
noback correct [$x]"\x0e33" "\x0e33"* |
| 150 |
|
| 151 |
#attribute ToneAndVowels |
| 152 |
attribute ToneAndVowels \x0e30\x0e31\x0e47\x0e32\x0e34\x0e35\x0e38\x0e39\x0e36\x0e37\x0e33\x0e48\x0e49\x0e4a\x0e4b # สระและวรรณยุกค์ที่ตามหลัง |
| 153 |
attribute 2 \x0e30\x0e31\x0e47\x0e32\x0e34\x0e35\x0e38\x0e39\x0e36\x0e37\x0e33\x0e48\x0e49\x0e4a\x0e4b # สระตามหลัง |
| 154 |
attribute ToneAndVowelsNoSaraAh \x0e31\x0e47\x0e32\x0e34\x0e35\x0e38\x0e39\x0e36\x0e37\x0e33\x0e48\x0e49\x0e4a\x0e4b # สระและวรรณยุกค์ที่ตามหลัง ยกเว้น สระอะ |
| 155 |
attribute Ahead \x0e44\x0e43\x0e42\x0e40 # สระนำหน้าทั้งหลาย |
| 156 |
|
| 157 |
#ลดรูปสระเออมีตัวสะกด |
| 158 |
attribute leadcharacterSaraErSp \x0E01\x0E02\x0E04\x0E08\x0E17\x0E09\x0E16\x0E15\x0E1C\x0E1E\x0E2A\x0E2B |
| 159 |
attribute diphthongSaraErSp \x0E23\x0E25\x0E0A\x0E2D\x0E22 |
| 160 |
noback context "\x0e40"[%thaiconsinants]"\x0e34" *@146 |
| 161 |
noback context "\x0e40"[%leadcharacterSaraErSp%diphthongSaraErSp]"\x0e34" *@146 |
| 162 |
noback always \x0E40\x0E1C\x0E2D\x0e34\x0E0D 1234-135-146-6-13456 |
| 163 |
noback always \x0E40\x0E15\x0E0A\x0E34\x0E19 124-1256-346-12-1345 |
| 164 |
|
| 165 |
# ลดรูปสระเอีย |
| 166 |
attribute leadcharacterSaraIa \x0E01\x0E04\x0E08\x0E09\x0E15\x0E1B\x0E1E\x0E2A\x0E2B |
| 167 |
attribute diphthongSaraIa \x0E27\x0E23\x0E25\x0E28\x0E29\x0E1A\x0E07\x0E19\x0E21\x0E22 |
| 168 |
noback context "\x0e40"[%thaiconsinants]"\x0E35\x0E22" *@12356 |
| 169 |
noback context "\x0e40"[%thaiconsinants]"\x0E35\x0E48\x0E22" *@12356-359 |
| 170 |
noback context "\x0e40"[%thaiconsinants]"\x0E35\x0E49\x0E22" *@12356-2569 |
| 171 |
noback context "\x0e40"[%thaiconsinants]"\x0E35\x0E4A\x0E22" *@12356-23569 |
| 172 |
noback context "\x0e40"[%thaiconsinants]"\x0E35\x0E4B\x0E22" *@12356-2369 |
| 173 |
noback context "\x0e40"[%leadcharacterSaraIa%diphthongSaraIa]"\x0E35\x0E22"!"\x0E4C"_ *@12356 |
| 174 |
noback context "\x0e40"[%leadcharacterSaraIa%diphthongSaraIa]"\x0E35\x0E48\x0E22" *@12356-359 |
| 175 |
noback context "\x0e40"[%leadcharacterSaraIa%diphthongSaraIa]"\x0E35\x0E49\x0E22" *@12356-2569 |
| 176 |
noback context "\x0e40"[%leadcharacterSaraIa%diphthongSaraIa]"\x0E35\x0E4A\x0E22" *@12356-23569 |
| 177 |
noback context "\x0e40"[%leadcharacterSaraIa%diphthongSaraIa]"\x0E35\x0E4B\x0E22" *@12356-2369 |
| 178 |
noback pass2 @12356%tonemarksPass@1 @12356-1%tonemarksPass |
| 179 |
noback always \x0E40\x0E15\x0E21\x0E35\x0E22 124-1256-134-23-13456 |
| 180 |
noback always \x0E40\x0E2A\x0E23\x0E35\x0E22 124-234-1235-23-13456 |
| 181 |
noback always \x0E40\x0E2A\x0E16\x0E35\x0E22 234-2345-12356 |
| 182 |
|
| 183 |
# ลดรูปสระเอือ |
| 184 |
#อักษรนำและตามสำหรับสระเอือ |
| 185 |
attribute leadcharacterSaraYea \x0E01\x0E02\x0E04\x0E21\x0E1B\x0E1E\x0E2A\x0E2B |
| 186 |
attribute diphthongSaraYea \x0E07\x0E23\x0E25\x0E21\x0E22\x0E19 |
| 187 |
noback context "\x0e40"[%thaiconsinants]"\x0E37\x0E2D" *@12345 |
| 188 |
noback context "\x0e40"[%thaiconsinants]"\x0E37\x0E48\x0E2D" *@12345-35 |
| 189 |
noback context "\x0e40"[%thaiconsinants]"\x0E37\x0E49\x0E2D" *@12345-256 |
| 190 |
noback context "\x0e40"[%thaiconsinants]"\x0E37\x0E4A\x0E2D" *@12345-2356 |
| 191 |
noback context "\x0e40"[%thaiconsinants]"\x0E37\x0E4B\x0E2D" *@12345-236 |
| 192 |
noback context "\x0e40"[%leadcharacterSaraYea%diphthongSaraYea]"\x0E37\x0E2D" *@12345 |
| 193 |
noback context "\x0e40"[%leadcharacterSaraYea%diphthongSaraYea]"\x0E37\x0E48\x0E2D" *@12345-35 |
| 194 |
noback context "\x0e40"[%leadcharacterSaraYea%diphthongSaraYea]"\x0E37\x0E49\x0E2D" *@12345-256 |
| 195 |
noback context "\x0e40"[%leadcharacterSaraYea%diphthongSaraYea]"\x0E37\x0E4A\x0E2D" *@12345-2356 |
| 196 |
noback context "\x0e40"[%leadcharacterSaraYea%diphthongSaraYea]"\x0E37\x0E4B\x0E2D" *@12345-236 |
| 197 |
|
| 198 |
# สลับตำแหน่งสระเอาะ |
| 199 |
# อักษรนำและตามสำหรับสระเอาะ |
| 200 |
attribute leadcharacterSaraOha \x0E01\x0E04\x0E09\x0E17\x0E1B\x0E1E\x0E2A\x0E2B |
| 201 |
attribute diphthongSaraOha \x0E23\x0E25\x0E22\x0E21\x0E1E\x0E19 |
| 202 |
noback context "\x0e40"[%thaiconsinants]"\x0e32\x0e30" *@135-1 |
| 203 |
noback context "\x0e40"[%thaiconsinants]"\x0E48\x0e32\x0e30" *@135-1-35 |
| 204 |
noback context "\x0e40"[%thaiconsinants]"\x0E49\x0e32\x0e30" *@135-1-256 |
| 205 |
noback context "\x0e40"[%thaiconsinants]"\x0E4A\x0e32\x0e30" *@135-1-2356 |
| 206 |
noback context "\x0e40"[%thaiconsinants]"\x0E4B\x0e32\x0e30" *@135-1-236 |
| 207 |
noback context "\x0e40"[%leadcharacterSaraOha%diphthongSaraOha]"\x0e32\x0e30" *@135-1 |
| 208 |
noback context "\x0e40"[%leadcharacterSaraOha%diphthongSaraOha]"\x0E48\x0e32\x0e30" *@135-1-35 |
| 209 |
noback context "\x0e40"[%leadcharacterSaraOha%diphthongSaraOha]"\x0E49\x0e32\x0e30" *@135-1-256 |
| 210 |
noback context "\x0e40"[%leadcharacterSaraOha%diphthongSaraOha]"\x0E4A\x0e32\x0e30" *@135-1-2356 |
| 211 |
noback context "\x0e40"[%leadcharacterSaraOha%diphthongSaraOha]"\x0E4B\x0e32\x0e30" *@135-1-236 |
| 212 |
|
| 213 |
# ลดรูปสระเอา |
| 214 |
# อักษรนำและตามสำหรับสระเอา |
| 215 |
attribute leadcharacterSaraOuh \x0E01\x0E02\x0E04\x0E28\x0E09\x0E1B\x0E1E\x0E2B |
| 216 |
attribute diphthongSaraOuh \x0E23\x0E25\x0E22\x0E21\x0E07\x0E19\x0E27 |
| 217 |
noback context "\x0e40"[%thaiconsinants]"\x0e32" *@235 |
| 218 |
noback context "\x0e40"[%thaiconsinants]"\x0E48\x0e32" *@235-35 |
| 219 |
noback context "\x0e40"[%thaiconsinants]"\x0E49\x0e32" *@235-256 |
| 220 |
noback context "\x0e40"[%thaiconsinants]"\x0E4A\x0e32" *@235-2356 |
| 221 |
noback context "\x0e40"[%thaiconsinants]"\x0E4B\x0e32" *@235-236 |
| 222 |
noback context "\x0e40"[%leadcharacterSaraOuh%diphthongSaraOuh]"\x0e32" *@235 |
| 223 |
noback context "\x0e40"[%leadcharacterSaraOuh%diphthongSaraOuh]"\x0E48\x0e32" *@235-35 |
| 224 |
noback context "\x0e40"[%leadcharacterSaraOuh%diphthongSaraOuh]"\x0E49\x0e32" *@235-256 |
| 225 |
noback context "\x0e40"[%leadcharacterSaraOuh%diphthongSaraOuh]"\x0E4A\x0e32" *@235-2356 |
| 226 |
noback context "\x0e40"[%leadcharacterSaraOuh%diphthongSaraOuh]"\x0E4B\x0e32" *@235-236 |
| 227 |
noback always \x0E40\x0E17\x0E23\x0E32 23456-1235-235 |
| 228 |
noback always \x0E40\x0E2B\x0E23\x0E32 124-125-1235-16 |
| 229 |
noback always \x0E40\x0E1E\x0E25\x0E32\x0E04\x0E33\x0E48 124-1456-123-16-136-1356-35 |
| 230 |
noback always \x0E40\x0E1E\x0E25\x0E32\x0E19\x0E35\x0E49 124-1456-123-16-1345-23-256 |
| 231 |
|
| 232 |
|
| 233 |
# ลดรูปสระอัว |
| 234 |
noback context "\x0e31\x0e27" @15 |
| 235 |
noback context "\x0e31"[%tonemarks]"\x0e27" @15* |
| 236 |
|
| 237 |
# สลับตำแหน่งสระแอะ |
| 238 |
#อักษรนำและตามสำหรับสระแอะ |
| 239 |
attribute leadcharacterSaraAe \x0E01\x0E02\x0E04\x0E1C\x0E2B |
| 240 |
attribute diphthongSaraAe \x0E23\x0E25\x0E27\x0E21\x0E22 |
| 241 |
noback context "\x0e41"[%thaiconsinants]"\x0e30" *@126-1 |
| 242 |
noback context "\x0e41"[%leadcharacterSaraAe%diphthongSaraAe]"\x0e30" *@126-1 |
| 243 |
noback always \x0E41\x0E01\x0E27\x0E30 126-1245-2456-1 |
| 244 |
noback always \x0E41\x0E2A\x0E22\x0E30 234-13456-126-1 |
| 245 |
|
| 246 |
# สลับตำแหน่งสระโอะ |
| 247 |
#อักษรนำและตามสำหรับสระโอะ |
| 248 |
attribute leadcharacterSaraOh \x0E1A\x0E1C\x0E1E |
| 249 |
attribute diphthongSaraOh \x0E23\x0E25\x0E22 |
| 250 |
noback context "\x0e42"[%thaiconsinants]"\x0e30" *@24-1 |
| 251 |
noback context "\x0e42"[%thaiconsinants%tonemarks]"\x0e30" *@24-1 |
| 252 |
noback context "\x0e42"[%leadcharacterSaraOh%diphthongSaraOh]"\x0e30" *@24-1 |
| 253 |
|
| 254 |
# สลับตำแหน่งสระเอะ |
| 255 |
#อักษรนำและตามสำหรับสระเอะ |
| 256 |
attribute leadcharacterSaraEh \x0E02\x0E1C\x0E1E\x0E2B |
| 257 |
attribute diphthongSaraEh \x0E25 |
| 258 |
noback context "\x0e40"[%thaiconsinants]"\x0e30" *@124-1 |
| 259 |
noback context "\x0e40"[%thaiconsinants]"\x0E48\x0e30" *@124-1-35 |
| 260 |
noback context "\x0e40"[%thaiconsinants]"\x0E49\x0e30" *@124-1-256 |
| 261 |
noback context "\x0e40"[%thaiconsinants]"\x0E4A\x0e30" *@124-1-2356 |
| 262 |
noback context "\x0e40"[%thaiconsinants]"\x0E4B\x0e30" *@124-1-236 |
| 263 |
noback context "\x0e40"[%leadcharacterSaraEh%diphthongSaraEh]"\x0e30" *@124-1 |
| 264 |
|
| 265 |
#Move Narukahit to the front of the letter |
| 266 |
noback correct [%thaiconsinants]"\x0E4D" "\x0E4D"* |
| 267 |
|
| 268 |
# Delete a space in front of maiyamok |
| 269 |
noback correct $s"\x0E46" "\x0E46" |
| 270 |
|
| 271 |
#attribute ThaiDigit |
| 272 |
attribute thaidigit \x0e50\x0e51\x0e52\x0e53\x0e54\x0e55\x0e56\x0e57\x0e58\x0e59 |
| 273 |
|
| 274 |
# Add a dot 6 before the number sign. When detecting a character as a Thai number |
| 275 |
noback pass2 @3456%thaidigit @6* |
| 276 |
|
| 277 |
# If 3 or more consecutive . marks are found, change to dot 6. |
| 278 |
noback context "..." @6-6-6#1=1 |
| 279 |
noback context #1=1"." @6 |
| 280 |
noback context #1=1 #1=0 |
| 281 |
|
| 282 |
# Remove the virtual dots from the Thai Digit. |
| 283 |
noback pass3 @245b @245 |
| 284 |
noback pass3 @1b @1 |
| 285 |
noback pass3 @12b @12 |
| 286 |
noback pass3 @14b @14 |
| 287 |
noback pass3 @145b @145 |
| 288 |
noback pass3 @15b @15 |
| 289 |
noback pass3 @124b @124 |
| 290 |
noback pass3 @1245b @1245 |
| 291 |
noback pass3 @125b @125 |
| 292 |
noback pass3 @24b @24 |
| 293 |
|
| 294 |
# Remove the virtual dots from the Thai Consinants. |
| 295 |
noback pass3 @13b @356-13 |
| 296 |
noback pass3 @136a @36-136 |
| 297 |
noback pass3 @1369 @6-136 |
| 298 |
noback pass3 @3469 @6-346 |
| 299 |
noback pass3 @134569 @6-13456 |
| 300 |
noback pass3 @1459 @6-145 |
| 301 |
noback pass3 @12569 @6-1256 |
| 302 |
noback pass3 @23459 @6-2345 |
| 303 |
noback pass3 @234569 @6-23456 |
| 304 |
noback pass3 @23456a @36-23456 |
| 305 |
noback pass3 @13459 @6-1345 |
| 306 |
noback pass3 @23456b @356-23456 |
| 307 |
noback pass3 @14569 @6-1456 |
| 308 |
noback pass3 @2349 @6-234 |
| 309 |
noback pass3 @234a @36-234 |
| 310 |
noback pass3 @1239 @6-123 |
| 311 |
noback pass3 @359 @35 |
| 312 |
noback pass3 @2569 @256 |
| 313 |
noback pass3 @23569 @2356 |
| 314 |
noback pass3 @2369 @236 |
| 315 |
|