*** empty log message ***
[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., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
23
24 ;;; <li> THAI-GENERIC.flt
25 ;;;
26 ;;; For the Thai proportional fonts to draw Thai script.
27
28 (category
29  ;; C: CONSONANT normal
30  ;; c: CONSONANT tall
31  ;; d: CONSONANT deep
32  ;; A: SARA-AM
33  ;; V: VOWEL upper, NIKHAHIT, and YAMAKKAN
34  ;; v: VOWEL lower
35  ;; T: TONE
36  ;; I: OTHER INDEPENDENT
37  (0x0E01 0x0E2E ?C)
38  (0x0E0D 0x0E10 ?d)
39  (0x0E1B        ?c)
40  (0x0E1D        ?c)
41  (0x0E1F        ?c)
42  (0x0E2C        ?c)
43  (0x0E2F 0x0E32 ?I)
44  (0x0E31        ?V)
45  (0x0E33        ?A)
46  (0x0E34 0x0E37 ?V)
47  (0x0E38 0x0E3A ?v)
48  (0x0E3F 0x0E46 ?I)
49  (0x0E47        ?V)
50  (0x0E48 0x0E4C ?T)
51  (0x0E4D 0x0E4E ?V)
52  (0x0E4F 0x0E5B ?I))
53
54 (generator
55  (0
56   (cond
57    ("([Cd])(T)?(A)"
58     < (1 = 0x0E4D) (2 tr+bl =) (3 0x0E32) > )
59    ("(c)(T)?(A)"
60     < (1 = Br<13Bl 0x0E4D) (2 tr+<13bl =) (3 0x0E32) > )
61    ("(C[vV]?)(T)?"
62     < (1 = =) (2 tr+bl =) > )
63    ("(c)([vV])?(T)?"
64     < (1 = *) (2 (cond ("v" =) ("." Br<8Bl =))) (3 tr+<8bl =) > )
65    ("(d)([vV])?(T)?"
66     < (1 = *) (2 (cond ("v" br-tl =) ("." =))) (3 tr+bl =) > )
67    ("[VvTA]"
68     [ = ])
69    ("."
70     =))
71   *))
72
73 ;; Local Variables:
74 ;; mode: lisp
75 ;; End: