1 ;; KHMR-ANLONG.flt -- Font Layout Table for Khmer (Anlong font)
2 ;; Copyright (C) 2003, 2004, 2007 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter khmr-anlong nil
6 (font (nil anlongvill\ khek apple-roman)))
10 ;; C: CONSONANT (except R and KHMER LETTER LA)
12 ;; c: KHMER SIGN COENG (function as virama)
13 ;; V: INDEPENDENT VOWEL (except Q)
14 ;; Q: CONJUNCT VOWEL QU, RY, QE
20 (0x1789 ?N) ; exception of C (NYO)
21 (0x179A ?R) ; exception of C (RO)
24 (0x17A3 0x17A4 ?E) ; ELSE
40 ("([CNR]c[CNRQ])c(R)(s?v?S?)"
41 | (1 with-conjunct) (2 Bl.Br 0xEE) 0x00 (3 vowel-and-sign *) |)
42 ("([CNR]c[CNRQ])(s?v?S?)"
43 | (1 with-conjunct) 0x00 (2 vowel-and-sign *) |)
45 | (1 independent) (2 vowel-and-sign *) |)
58 ((0x17B3 0x17D2 0x1799)
66 ((range 0x1780 0x1788) 0x82)
68 ((range 0x178A 0x1794) 0x91)
70 ((range 0x1796 0x179C) 0xA1)
71 ((0x179D) < 0x84 cr-<cc 0xFA >)
72 ((0x179E) < 0x9B cr-<cc 0xFA >)
73 ((range 0x179F 0x17A2) 0xA8)
75 ((0x17A4) < 0xAB Br>Bl 0xBA >)
76 ((range 0x17A5 0x17A7) 0xAC)
77 ((0x17A8) < 0xAE Br.Bl 0xF4 >)
79 ((range 0x17AA 0x17B1) 0xAF)
80 ((0x17B2) 0xB7) ; same as 0xB6
81 ((0x17B3) < 0xAE tr<20bl 0xF8 >)
82 ((0x17B4) < 0xBA tr+bl 0xF5 >)
92 ((0x17BE) < 0xCD 0x20 0xBD >)
93 ((0x17BF) < 0xCD 0x20 Br<Bl 0xC9 >)
94 ((0x17C0) < 0xCD 0x20 Br<Bl 0xCB >)
95 ((range 0x17C1 0x17C3) 0xCD)
96 ((0x17C4) < 0xCD 0x20 Br<Bl 0xBA >)
97 ((0x17C5) < 0xCD 0x20 Br<Bl 0xD0 >)
102 ((range 0x17CA 0x17CB) 0xF4)
105 ((0x17CE) < 0x20 tc+80bc 0x2B >)
106 ((range 0x17CF 0x17D0) 0xF9)
107 ((0x17D1) < 0x20 tc+80bc 0x5F >)
108 ((0x17D2) < 0x20 bc-tc 0x5E >)
110 ((range 0x17D4 0x17D5) 0xFC)
113 ((0x17D8) < 0xFC 0xA6 0xFC >)
114 ((0x17D9) < 0x30 cr<10cl 0xD2 >)
116 ((0x17DB) < 0xFF br->10tl 0xC3 >)
118 ((range 0x17E0 0x17E9) 0x30)))
122 ((0x1780) br-tl 0xD4)
123 ((0x1781) br-tl 0xD5)
124 ((0x1782) br-tl 0xD6)
125 ((0x1783) Br.Bl 0xD7)
126 ((0x1784) br-tl 0xD8)
127 ((0x1785) br-tl 0xD9)
128 ((0x1786) br-tl 0xDA)
129 ((0x1787) br-tl 0xDB)
130 ((0x1788) Br.Bl 0xDC)
131 ((0x1789) br-tl 0xDE)
132 ((0x178A) br-tl 0xE3)
133 ((0x178B) br-tl 0xDF)
134 ((0x178C) br-tl 0xE0)
135 ((0x178D) Br.Bl 0xE1)
136 ((0x178E) br-tl 0xE2)
137 ((0x178F) br-tl 0xE3)
138 ((0x1790) br-tl 0xE4)
139 ((0x1791) br-tl 0xE5)
140 ((0x1792) br-tl 0xE6)
141 ((0x1793) br-tl 0xE7)
142 ((0x1794) Br.Bl 0xE8)
143 ((0x1795) br-tl 0xE9)
144 ((0x1796) br-tl 0xEA)
145 ((0x1797) br-tl 0xEB)
146 ((0x1798) br-tl 0xEC)
147 ((0x1799) Br.Bl 0xED)
148 ((0x179A) Bl+Bc 0xEE)
149 ((0x179B) br-tl 0xEF)
150 ((0x179C) br-tl 0xF0)
151 ((0x179D) br-tl 0xD6 br.bl 0xFA)
152 ((0x179E) Br.Bl 0xE8 br.bl 0xFA)
153 ((0x179F) Br.Bl 0xF1)
154 ((0x17A0) br-tl 0xF2)
155 ((0x17A2) br-tl 0xF3)
156 ((0x17A7) br-tl 0xD5 br.bl 0xC4) ; ugly compromise
157 ((0x17AB) br-tl 0xA1) ; ugly compromise
158 ((0x17AF) br-tl 0xB4))) ; ugly compromise
162 ((0x17B6) Br-Bl 0xBA)
163 ((0x17B7) tr+bl 0xBB)
164 ((0x17B8) tr+bl 0xBD)
165 ((0x17B9) tr+bl 0xBF)
166 ((0x17BA) tr+bl 0xC1)
167 ((0x17BB) br+tr 0xC3)
168 ((0x17BC) br-tl 0xC5)
169 ((0x17BD) br-tl 0xC7)
170 ((0x17BE) tr+bl 0xBD Bl.Br 0xCD)
171 ((0x17BF) Br.Bl 0xC9 Bl.Br 0xCD)
172 ((0x17C0) Br.Bl 0xCB Bl.Br 0xCD)
173 ((0x17C1) Bl.Br 0xCD)
174 ((0x17C2) Bl.Br 0xCE)
175 ((0x17C3) Bl.Br 0xCF)
176 ((0x17C4) Bl.Br 0xCD Br.Bl 0xBA)
177 ((0x17C5) Bl.Br 0xCD Br.Bl 0xD0)
178 ((0x17C6) tr+bl 0xD1)
179 ((0x17C7) Br.Bl 0xD3)
180 ((0x17C8) Br.Bl 0x3A)
181 ((0x17C9) tr+bl 0xF6)
182 ((0x17CA) tr+bl 0xF4)
183 ((0x17CB) tr+bl 0xF5)
184 ((0x17CC) tr+bl 0xF8)
185 ((0x17CD) tr+bl 0xF7)
186 ((0x17CE) tr+>br 0x2B)
187 ((0x17CF) tr+bl 0xF9)
188 ((0x17D0) tr+bl 0xFA))))
191 ;; WIDTH HEIGHT DEPTH
192 ;; N: normal normal normal
193 ;; T: normal high normal
194 ;; W: wide normal normal
195 ;; n: normal normal deep
196 ;; w: wide normal deep
197 ;; V: right part of KHMER VOWEL SIGN YA and IE
232 (" ([^ x]*)x(V)([^ ]*) "
233 < (1 = *) (2 (cond ((0xC9) 0xCA) ((0xCB) 0xCC))) (3 = *) >)
234 (" ([^ x]*)x([^ ]*) "
236 (" (T[^V]*)(V)([^ ]*) "
237 < (1 = *) (2 (cond ((0xC9) Br.Bl 0xCA) ((0xCB) Br.Bl 0xCC))) (3 = *) >)
238 (" ([wn])(V)([^ ]*) "
239 < (1 = *) (2 (cond ((0xC9) 0xCA) ((0xCB) 0xCC))) (3 = *) >)
246 ;; Copyright (C) 2003, 2004, 2007
247 ;; National Institute of Advanced Industrial Science and Technology (AIST)
248 ;; Registration Number H15PRO112
250 ;; This file is part of the m17n database; a sub-part of the m17n
253 ;; The m17n library is free software; you can redistribute it and/or
254 ;; modify it under the terms of the GNU Lesser General Public License
255 ;; as published by the Free Software Foundation; either version 2.1 of
256 ;; the License, or (at your option) any later version.
258 ;; The m17n library is distributed in the hope that it will be useful,
259 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
260 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
261 ;; Lesser General Public License for more details.
263 ;; You should have received a copy of the GNU Lesser General Public
264 ;; License along with the m17n library; if not, write to the Free
265 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
266 ;; Boston, MA 02110-1301, USA.