1 ;; KHMR-MULE.flt -- Font Layout Table for Khmer (mule font)
2 ;; Copyright (C) 2003, 2004, 2007
3 ;; National Institute of Advanced Industrial Science and Technology (AIST)
4 ;; Registration Number H15PRO112
6 ;; This file is part of the m17n database; a sub-part of the m17n
9 ;; The m17n library is free software; you can redistribute it and/or
10 ;; modify it under the terms of the GNU Lesser General Public License
11 ;; as published by the Free Software Foundation; either version 2.1 of
12 ;; the License, or (at your option) any later version.
14 ;; The m17n library is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;; Lesser General Public License for more details.
19 ;; You should have received a copy of the GNU Lesser General Public
20 ;; License along with the m17n library; if not, write to the Free
21 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
24 ;;; <li> KHMR-MULE.flt
26 ;;; For Khmer fonts of mule encoding to draw Khmer script. The font is
27 ;;; available at: <ftp://ftp.m17n.org/m17n-fonts/>
29 (font layouter khmr-mule nil
33 (0x1780 0x17A2 ?C) ;; C: CONSONANT (except R and KHMER LETTER LA)
34 (0x179A ?R) ;; R: KHMER LETTER RO
35 (0x17A1 ?E) ;; E: ELSE
37 (0x17A5 0x17B3 ?V) ;; V: INDEPENDENT VOWEL (except Q)
38 (0x17A7 ?Q) ;; Q: CONJUNCT VOWEL QU, RY, QE
43 (0x17B6 0x17C5 ?v) ;; v: DEPENDENT VOWEL
44 (0x17C6 ?S) ;; S: COMBINING SIGN
45 (0x17C9 0x17CA ?s) ;; s: SHIFT
47 (0x17D2 ?c) ;; c: KHMER SIGN COENG (function as virama)
53 ("[CR](c[CRQ])?(cR)?s?v?S?"
55 (".(c[CRQ])(cR)?s?v?S?"
57 ("(.)c(.)(c(.))?" (1 independent) (2 conjunct) (4 conjunct))
60 ("[CR][svS][svS]*" < | independent vowel-and-sign * | > )
67 ((0x17D8) 0xD4 0x9B 0xD4)
68 ((range 0x1780 0x17FF) 0x80)))
78 ((range 0x179E 0x179F) Br.Bc 0x5E)
79 ((range 0x1780 0x17AF) bc-tc 0x40)
88 ((0x17BE) tc.bc 0xB8 Bl.Br 0xC1)
89 ((0x17BF) Bl.Br 0xC1 Br.Bc 0x04)
90 ((0x17C0) Bl.Br 0xC1 Br.Bc 0x05)
94 ((0x17C4) Bl.Br 0xC1 Br.Bl 0xB6)
95 ((0x17C5) Bl.Br 0xC1 Br.Bl 0x2D)
99 ((range 0x17B7 0x17D0) tc+bc 0xB7))))
122 (0x00 0xFF ?E) ;; E: else
123 (0x40 0x6F ?c) ;; c: conjunct CONSONANT
124 (0x49 ?n) ;; n: conjunct KHMER LETTER NYO
125 (0x59 ?y) ;; y: conjunct KHMER LETTER YO
126 (0x80 0xA2 ?C) ;; C: first CONSONANT
127 (0x89 ?N) ;; N: first KHMER LETTER NYO
128 (0xB2 ?Q) ;; Q: KHMER INDEPENDENT VOWEL QOO TYPE TWO
137 ("N[cny]" 0x27 ((0x49) bc-tc 0x28) =)
144 (0x00 0x7F ?n) ;; n: width:normal height:normal depth:deep
145 (0x04 0x05 ?V) ;; V: right part of KHMER VOWEL SIGN YA and IE
146 (0x26 ?w) ;; w: width:wide height:normal depth:deep
147 (0x27 ?W) ;; W: width:wide height:normal depth:normal
150 (0x2C ?N) ;; N: width:normal height:normal depth:normal
154 (0x5A ?r) ;; r: conjunct KHMER LETTER RO
158 (0x84 ?T) ;; T: width:normal height:high depth:normal
177 ("(Wnr)([^V]*)(V)?(.*)" = *)
178 ("(Tnr)([^V]*)(V)?(.*)"
179 (1 = = ((0x5A) Bl<Bc 0x20) =) (2 = *) (3 high-deep-YA-IE =) (4 = *))
180 ("(..r)([^V]*)(V)?(.*)"
181 (1 = = ((0x5A) Bl<Bc 0x20) =) (2 = *) (3 deep-YA-IE =) (4 = *))
182 ("(T[nw][^V]*)(V)?(.*)"
183 (1 = *) (2 high-deep-YA-IE =) (3 = *))
184 ("(.[nw][^V]*)(V)?(.*)"
185 (1 = *) (2 deep-YA-IE =) (3 = *))
187 (1 = *) (2 high-YA-IE =) (3 = *))
194 ((range 0x04 0x05) Br.Bc 0x24))
197 ((range 0x04 0x05) Br.Bc 0x34))
200 ((range 0x04 0x05) Br.bc 0x14)))