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