| 1 |
# liblouis: Thai Current Braille System. |
| 2 |
# |
| 3 |
#-index-name: Thai, partially contracted |
| 4 |
#-display-name: Thai partially contracted braille |
| 5 |
# |
| 6 |
#+language: th |
| 7 |
#+type: literary |
| 8 |
#+system: thai |
| 9 |
#+contraction: partial |
| 10 |
#+grade: 1 |
| 11 |
#+dots: 6 |
| 12 |
# |
| 13 |
#+direction: forward |
| 14 |
# |
| 15 |
#-copyright: 2024, Thai braille fund and FOUNDATION FOR THE BLIND IN THAILAND UNDER THE ROYAL PATRONAGE OF H.M. THE QUEEN. |
| 16 |
# |
| 17 |
# Copyright (C) 2024 by Thai braille fund and FOUNDATION FOR THE BLIND IN THAILAND UNDER THE ROYAL PATRONAGE OF H.M. THE QUEEN. |
| 18 |
# |
| 19 |
# Version 2024-07-01 |
| 20 |
# |
| 21 |
# This file is part of liblouis. |
| 22 |
# |
| 23 |
# liblouis is free software: you can redistribute it and/or modify it |
| 24 |
# under the terms of the GNU Lesser General Public License as |
| 25 |
# published by the Free Software Foundation, either version 2.1 of the |
| 26 |
# License, or (at your option) any later version. |
| 27 |
# |
| 28 |
# liblouis is distributed in the hope that it will be useful, but |
| 29 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 30 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 31 |
# Lesser General Public License for more details. |
| 32 |
# |
| 33 |
# You should have received a copy of the GNU Lesser General Public |
| 34 |
# License along with liblouis. If not, see |
| 35 |
# <http://www.gnu.org/licenses/>. |
| 36 |
# |
| 37 |
# Created and maintained by: Chatupol Nootatong <[email protected]> |
| 38 |
# - Dr.Wiraman Niyomphol <[email protected]> |
| 39 |
# - Itsawat Banlawanich <[email protected]> |
| 40 |
# Based on <https://www.tab.or.th/braille_spec/thaibraille.pdf> |
| 41 |
# |
| 42 |
#-maintainer: Chatupol Nootatong <[email protected]> |
| 43 |
#-author: Chatupol Nootatong <[email protected]> |
| 44 |
#-author: Dr. Wiraman Niyomphol <[email protected]> |
| 45 |
#-author: Itsawat Banlawanich <[email protected]> |
| 46 |
|
| 47 |
include en-ueb-g1.ctb |
| 48 |
include th-g1.uti |
| 49 |
|
| 50 |
#ลดรูปสระเออไม่มีตัวสะกด |
| 51 |
attribute leadcharacterSaraEr \x0E01\x0E02\x0E1B\x0E1A\x0E1C\x0E2A\x0E2B |
| 52 |
attribute diphthongSaraEr \x0E23\x0E25\x0E22\x0E19\x0E21 |
| 53 |
noback context "\x0e40"[%thaiconsinants]"\x0e2d\x0e2d\x0E01" @124*@135-135-1245 |
| 54 |
noback context "\x0e40"[%thaiconsinants]"\x0E2D\x0E22\x0E48" @124*@135-13456-35 |
| 55 |
noback context "\x0e40"[%thaiconsinants]"\x0E2D\x0E22\x0E39\x0E48" @124*@135-13456-25-35 |
| 56 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0e2d\x0e2d\x0E01" @124*@135-135-1245 |
| 57 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0E2D\x0E22\x0E48" @124*@135-13456-35 |
| 58 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0E2D\x0E22\x0E39\x0E48" @124*@135-13456-25-35 |
| 59 |
noback context "\x0e40"[%thaiconsinants]"\x0E2D\x0E22\x0e32\x0e01" @124*@135-13456-16-1245 # เ-อยาก |
| 60 |
noback context "\x0e40"[%thaiconsinants]"\x0e48\x0E2D\x0E22\x0e32\x0e01" @124*@35-135-13456-16-1245 # เ-่อยาก |
| 61 |
noback context "\x0e40"[%thaiconsinants]"\x0e49\x0E2D\x0E22\x0e32\x0e01" @124*@256-135-13456-16-1245 # เ-้อยาก |
| 62 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0E2D\x0E22\x0E39\x0E48" @124*@135-13456-25-35 # เ--อยู่ |
| 63 |
noback context "\x0e40"[%thaiconsinants]"\x0e48\x0E2D\x0E22\x0E39\x0E48" @124*@35-135-13456-25-35 # เ-่อยู่ |
| 64 |
noback context "\x0e40"[%thaiconsinants]"\x0e49\x0E2D\x0E22\x0E39\x0E48" @124*@256-135-13456-25-35 # เ-้อยู่ |
| 65 |
|
| 66 |
noback context "\x0e40"[%thaiconsinants]"\x0e2d" *@146 |
| 67 |
noback context "\x0e40"[%thaiconsinants]"\x0e48\x0e2d" *@146-359 |
| 68 |
noback context "\x0e40"[%thaiconsinants]"\x0e49\x0e2d" *@146-2569 |
| 69 |
noback context "\x0e40"[%thaiconsinants]"\x0e4A\x0e2d" *@146-23569 |
| 70 |
noback context "\x0e40"[%thaiconsinants]"\x0e4B\x0e2d" *@146-2369 |
| 71 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0e2d" *@146 |
| 72 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0e48\x0e2d" *@146-359 |
| 73 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0e49\x0e2d" *@146-2569 |
| 74 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0e4A\x0e2d" *@146-23569 |
| 75 |
noback context "\x0e40"[%leadcharacterSaraEr%diphthongSaraEr]"\x0e4B\x0e2d" *@146-2369 |
| 76 |
noback pass2 @146%tonemarksPass@1 @146-1%tonemarksPass |
| 77 |
noback always \x0E17\x0E30\x0E40\x0E25\x0E2D\x0E30\x0E44\x0E23 23456-1-124-123-135-1-156-1235 |
| 78 |
noback always \x0E40\x0E17\x0E2D\x0E21 124-23456-135-134 |
| 79 |
noback always \x0E40\x0E17\x0E2D\x0E0D 124-23456-135-6-13456 |
| 80 |
noback always \x0E40\x0E04\x0E2D\x0E22 124-136-135-13456 |
| 81 |
noback always \x0E40\x0E2A\x0E21\x0E2D\x0E07 124-234-134-135-12456 |
| 82 |
|
| 83 |
#Add 456 points in front of the mark |
| 84 |
noback context [$z]"," *@456-2 |
| 85 |
noback context [$z]":" *@456-25 |
| 86 |
noback match %1 ; - 456-23 |
| 87 |
noback match %1%1%1%1%1 . %[_^] 456-256 |
| 88 |
noback match %1 ! - 456-235 |
| 89 |
noback context [$z]"?" *@456-236 |