Add si-wijesekera.mim.
[m17n/m17n-db.git] / THAI-GENERIC.flt
1 ;; THAI-GENERIC.flt -- Font Layout Table for Thai (proportional font)
2 ;; Copyright (C) 2005
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., 59 Temple Place, Suite 330, Boston, MA
22 ;; 02111-1307, USA.
23
24 ;;; <li> THAI-GENERIC.flt
25 ;;;
26 ;;; For the Thai proportional fonts to draw Thai script.
27
28 ;; 1st stage: basic composition of CVT
29 (category
30  ;; C: CONSONANT
31  ;; V: VOWEL upper and lower
32  ;; A: SARA-AM
33  ;; T: TONE
34  ;; E: else
35  (0x0E00 0x0E5F ?E)
36  (0x0E01 0x0E2E ?C)
37  (0x0E31        ?V)
38  (0x0E33        ?A)
39  (0x0E34 0x0E3A ?V)
40  (0x0E47        ?V)
41  (0x0E48 0x0E4E ?T)
42  )
43
44 (generator
45  (0
46   (cond
47    ("(C)(T)?(A)"                        ; SARA-AM -> NIKHAHIT+SARA-AA
48     (1 = 0x0E4D) (2 =) (3 0x0E32))
49    ("(C)(T)(V)?"                        ; CTV -> CVT
50     (1 =) (3 =) (2 =))
51    ("(C)(V)?(T)?"
52     (1 =) (2 =) (3 =))
53    ("[^C]"
54     [ = ]))
55   *))
56
57 (category
58  ;; C: CONSONANT tall
59  ;; c: CONSONANT normal
60  ;; d: CONSONANT deep
61  ;; V: VOWEL upper, NIKHAHIT, and YAMAKKAN
62  ;; v: VOWEL lower
63  ;; T: TONE
64  ;; E: ELSE
65  (0x0E00 0x0E5F ?E)
66  (0x0E01 0x0E2E ?c)
67  (0x0E0D 0x0E10 ?d)
68  (0x0E1B        ?C)
69  (0x0E1D        ?C)
70  (0x0E1F        ?C)
71  (0x0E2C        ?C)
72  (0x0E31        ?V)
73  (0x0E34 0x0E37 ?V)
74  (0x0E38 0x0E3A ?v)
75  (0x0E47        ?V)
76  (0x0E48 0x0E4C ?T)
77  (0x0E4D 0x0E4E ?V))
78
79 (generator
80  (0
81   (cond 
82    ("(C)(V)(T)?"
83     < (1 =) (2 =) (3 =) >)
84    ("(C)(v)?(T)?"
85     < (1 =) (2 =) (3 =) >)
86    ("([cd])(V)(T)?"
87     < (1 =) (2 =) (3 =) >)
88    ("(c)(v)?(T)?"
89     < (1 =) (2 =) (3 =) >)
90    ("(d)(v)?(T)?"
91     < (1 =) (2 =) (3 =) >)
92    ("[VvT]"
93     [ = ])
94    ("."
95     =))
96   *))
97
98 ;; Local Variables:
99 ;; mode: lisp
100 ;; End: