Move copying condition to the end.
[m17n/m17n-db.git] / FLT / MLYM-CDAC.flt
1 ;; MLYM-CDAC.flt -- Font Layout Table for Malayalam (C-DAC font)
2 ;; Copyright (C) 2003, 2004, 2007  AIST (H15PRO112)
3 ;; See the end for copying conditions.
4
5 (font layouter mlym-cdac nil
6       (font (malayalam-cdac)
7             (nil ml-ttkarthika apple-roman)))
8
9 ;;; <li> MLYM-CDAC.flt
10 ;;;
11 ;;; For the font MLKR0ntt.ttf (developped by C-DAC, encoding is ISFOC)
12 ;;; to draw Malayalam script.  The font is available at:
13 ;;; <ul>
14 ;;; <li>        infopage: http://www.iiit.net/ltrc/iscii/FAQ.htm#SEC2.1
15 ;;; <li> download: http://www.iiit.net/ltrc/iscii/iscii_plugin_linux.tar.gz
16 ;;; </ul>
17
18 (category
19  (0x0D00 0x0D7F ?E)                     ; all malayalam characters
20  (0x0D02        ?A)                     ; ANUSVARA
21  (0x0D03        ?G)                     ; VISARGA
22  (0x0D05 0x0D14 ?V)                     ; independent vowel
23  (0x0D15 0x0D39 ?C)                     ; consonant
24  (0x0D3E 0x0D4C ?M)                     ; dependent vowel (MATRA)
25  (0x0D4D        ?H)                     ; HALANT
26  )
27
28 (generator
29  (0
30   (cond
31    ("(VA?)|G|((CH)?(CH)?(CH)?CH)?C(H|M?[AH]?)?" | glyph * |)
32    ("." glyph ))
33   * )
34
35  (glyph
36   (cond
37    ;; various sign
38    ((0x0D02)                    0x77)
39    ((0x0D03)                    0x78)
40    ;; Independent Vowels
41    ((0x0D05)                    0x41)
42    ((0x0D06)                    0x42)
43    ((0x0D07)                    0x43)
44    ((0x0D08)                    0x43 0x75)
45    ((0x0D09)                    0x44)
46    ((0x0D0A)                    0x44 0x75)
47    ((0x0D0B)                    0x45)
48    ((0x0D0C)                    0x23)
49    ((0x0D0E)                    0x46)
50    ((0x0D0F)                    0x47)
51    ((0x0D10)                    0x73 0x46)
52    ((0x0D12)                    0x48)
53    ((0x0D13)                    0x48 0x6D)
54    ((0x0D14)                    0x48 0x75)
55    ;; Consonants
56    ((0x0D15 0x0D4D 0x0D15 0x0D41)               0xE7)
57    ((0x0D15 0x0D4D 0x0D15)      0xA1)
58    ((0x0D15 0x0D4D 0x0D33)      0xA2)
59    ((0x0D15 0x0D4D 0x0D37)      0xA3)
60    ((0x0D15 0x0D4D 0x0D1F)      0xCE)
61    ((0x0D15 0x0D4D 0x0D24)      0xE0)
62    ((0x0D15 0x0D41)             0xE6)
63    ((0x0D15 0x0D41)             0xE6)
64    ((0x0D15)                    0x49)
65    ((0x0D16)                    0x4A)
66    ((0x0D17 0x0D4D 0x0D17)      0xA4)
67    ((0x0D17 0x0D4D 0x0D32)      0xA5)
68    ((0x0D17 0x0D4D 0x0D2E)      0xDC)
69    ((0x0D17 0x0D4D 0x0D28)      0xE1)
70    ((0x0D17)                    0x4B)
71    ((0x0D18)                    0x4C)
72    ((0x0D19 0x0D4D 0x0D15)      0xA6)
73    ((0x0D19 0x0D4D 0x0D19)      0xA7)
74    ((0x0D19 0x0D4D 0x0D15 0x0D41)               0xE8)
75    ((0x0D19)                    0x4D)
76    ((0x0D1A 0x0D4D 0x0D1A)      0xA8)
77    ((0x0D1A 0x0D4D 0x0D1B)      0xD1)
78    ((0x0D1A)                    0x4E)
79    ((0x0D1B)                    0x4F)
80    ((0x0D1C 0x0D4D 0x0D1C)      0xD6)
81    ((0x0D1C 0x0D4D 0x0D1E)      0xDA)
82    ((0x0D1C)                    0x50)
83    ((0x0D1D)                    0x51)
84    ((0x0D1E 0x0D4D 0x0D1A)      0xA9)
85    ((0x0D1E 0x0D4D 0x0D1E)      0xAA)
86    ((0x0D1E)                    0x52)
87    ((0x0D1F 0x0D4D 0x0D1F)      0xAB)
88    ((0x0D1F)                    0x53)
89    ((0x0D20)                    0x54)
90    ((0x0D21 0x0D4D 0x0D21)      0xCD)
91    ((0x0D21)                    0x55)
92    ((0x0D22)                    0x56)
93    ((0x0D23 0x0D41 0x0D4D)      0xAC)
94    ((0x0D23 0x0D41)             0xE9)
95    ((0x0D23 0x0D4D 0x0D1F)      0xAD)
96    ((0x0D23 0x0D4D 0x0D23)      0xAE)
97    ((0x0D23 0x0D4D 0x0D2E)      0xD7)
98    ((0x0D23 0x0D4D 0x0D21)      0xDE)
99    ((0x0D23)                    0x57)
100    ((0x0D24 0x0D4D 0x0D24)      0xAF)
101    ((0x0D24 0x0D4D 0x0D25)      0xB0)
102    ((0x0D24 0x0D4D 0x0D38)      0xD5)
103    ((0x0D24 0x0D4D 0x0D2D)      0xDB)
104    ((0x0D24 0x0D4D 0x0D2E)      0xDF)
105    ((0x0D24)                    0x58)
106    ((0x0D25)                    0x59)
107    ((0x0D26 0x0D4D 0x0D26)      0xB1)
108    ((0x0D26 0x0D4D 0x0D27)      0xB2)
109    ((0x0D26)                    0x5A)
110    ((0x0D27)                    0x5B)
111    ((0x0D28 0x0D41 0x0D4D)      0xB3)
112    ((0x0D28 0x0D41)             0xEB)
113    ((0x0D28 0x0D4D 0x0D24)      0xB4)
114    ((0x0D28 0x0D4D 0x0D26)      0xB5)
115    ((0x0D28 0x0D4D 0x0D28 0x0D41)               0xEC)
116    ((0x0D28 0x0D4D 0x0D28)      0xB6)
117    ((0x0D28 0x0D4D 0x0D2E)      0xB7)
118    ((0x0D28 0x0D4D 0x0D27)      0xD4)
119    ((0x0D28 0x0D4D 0x0D25)      0xD9)
120    ((0x0D28 0x0D4D 0x0D31)      0xE2)
121    ((0x0D28)                    0x5C)
122    ((0x0D2A 0x0D4D 0x0D2A)      0xB8)
123    ((0x0D2A 0x0D4D 0x0D32)      0xB9)
124    ((0x0D2A)                    0x5D)
125    ((0x0D2B)                    0x5E)
126    ((0x0D2C 0x0D4D 0x0D2C)      0xBA)
127    ((0x0D2C 0x0D4D 0x0D32)      0xBB)
128    ((0x0D2C 0x0D4D 0x0D27)      0xCF)
129    ((0x0D2C 0x0D4D 0x0D26)      0xD0)
130    ((0x0D2C)                    0x5F)
131    ((0x0D2D)                    0x60)
132    ((0x0D2E 0x0D4D 0x0D2A)      0xBC)
133    ((0x0D2E 0x0D4D 0x0D2E)      0xBD)
134    ((0x0D2E 0x0D4D 0x0D32)      0xBE)
135    ((0x0D2E)                    0x61)
136    ((0x0D2F)                    0x62)
137    ((0x0D2F 0x0D4D 0x0D2F)      0xBF)
138    ((0x0D2F 0x0D4D 0x0D15 0x0D4D 0x0D15)                0xED)
139    ((0x0D30 0x0D41 0x0D4D)      0xC0)
140    ((0x0D30 0x0D41)             0xEA)
141    ((0x0D30)                    0x63)
142    ((0x0D31 0x0D4D 0x0D31)      0xE4)
143    ((0x0D31 0x0D4D)             0xC0)
144    ((0x0D31 0x0D41 0x0D4D)      0xC0)
145    ((0x0D31)                    0x64)
146    ((0x0D32 0x0D41 0x0D4D)      0xC2)
147    ((0x0D32 0x0D4D 0x0D32)      0xC3)
148    ((0x0D32 0x0D4D 0x0D2A)      0xE5)
149    ((0x0D32)                    0x65)
150    ((0x0D33 0x0D41 0x0D4D)      0xC4)
151    ((0x0D33 0x0D4D 0x0D33)      0xC5)
152    ((0x0D33)                    0x66)
153    ((0x0D34)                    0x67)
154    ((0x0D35 0x0D4D 0x0D35)      0xC6)
155    ((0x0D35)                    0x68)
156    ((0x0D36 0x0D4D 0x0D32)      0xC7)
157    ((0x0D36 0x0D4D 0x0D36)      0xC8)
158    ((0x0D36 0x0D4D 0x0D1A)      0xDD)
159    ((0x0D36)                    0x69)
160    ((0x0D37 0x0D4D 0x0D1F)      0xE3)
161    ((0x0D37)                    0x6A)
162    ((0x0D38 0x0D4D 0x0D32)      0xC9)
163    ((0x0D38 0x0D4D 0x0D38)      0xCA)
164    ((0x0D38 0x0D4D 0x0D31 0x0D4D 0x0D31)                0xCC)
165    ((0x0D38 0x0D4D 0x0D25)      0xD8)
166    ((0x0D38)                    0x6B)
167    ((0x0D39 0x0D4D 0x0D32)      0xCB)
168    ((0x0D39 0x0D4D 0x0D2E)      0xD2)
169    ((0x0D39 0x0D4D 0x0D28)      0xD3)
170    ((0x0D39)                    0x6C)
171    ;; Dependent vowel signs
172    ((0x0D3E)                    0x6D)
173    ((0x0D3F)                    0x6E)
174    ((0x0D40)                    0x6F)
175    ((0x0D41)                    0x70)
176    ((0x0D42)                    0x71)
177    ((0x0D43)                    0x72)
178    ((0x0D46)                    0x73)
179    ((0x0D47)                    0x74)
180    ((0x0D48)                    0x73 0x73)
181    ((0x0D4A)                    0x73 0x6D)
182    ((0x0D4B)                    0x74 0x6D)
183    ((0x0D4C)                    0x75)
184    ;; Various signs
185    ((0x0D4D 0x0D2F 0x0D41)      0x7C)
186    ((0x0D4D 0x0D2F 0x0D42)      0x7D)
187    ((0x0D4D 0x0D2F)             0x79)
188    ((0x0D4D 0x0D30 0x0D4D)      0x72)
189    ((0x0D4D 0x0D30)             0x7B)
190    ((0x0D4D 0x0D31 0x0D4D)      0x72)
191    ((0x0D4D 0x0D31)             0x7B)
192    ((0x0D4D 0x0D35)             0x7A)
193    ((0x0D4D 0x0D4D)             0x76)
194    ((0x0D4D)                    0x76)
195    ((0x0D57)                    0x75))))
196
197 (category
198  (0x00 0xFF     ?M)
199  (0x49 0x6C     ?C)
200  (0x73          ?E)                     ; E
201  (0x74          ?e)                     ; EE
202  (0x79          ?Y)                     ; yakar
203  (0x7A          ?V)                     ; vakar
204  (0x7B          ?R)                     ; rrakar
205  (0xA1 0xE5     ?C))
206
207 (generator
208  (0
209   (cond
210    (" (C[YV]?)(R) "
211     < (2 =) (1 = *) >)
212    (" (R?C[YV]?)(EE?) "
213     < (2 = *) (1 = *) >)
214    (" (R?C[YV]?)(e) "
215     < (2 = ) (1 = *) >)
216    (" ([^ ]*) "
217     < (1 = *) >)
218    ("." [ = ]))
219   *))
220
221 ;; Copyright (C) 2003, 2004, 2007
222 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
223 ;;   Registration Number H15PRO112
224
225 ;; This file is part of the m17n database; a sub-part of the m17n
226 ;; library.
227
228 ;; The m17n library is free software; you can redistribute it and/or
229 ;; modify it under the terms of the GNU Lesser General Public License
230 ;; as published by the Free Software Foundation; either version 2.1 of
231 ;; the License, or (at your option) any later version.
232
233 ;; The m17n library is distributed in the hope that it will be useful,
234 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
235 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
236 ;; Lesser General Public License for more details.
237
238 ;; You should have received a copy of the GNU Lesser General Public
239 ;; License along with the m17n library; if not, write to the Free
240 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
241 ;; Boston, MA 02110-1301, USA.
242
243 ;; Local Variables:
244 ;; mode: lisp
245 ;; End: