*** empty log message ***
[m17n/m17n-db.git] / FLT / THAI-GENERIC.flt
1 ;; THAI-GENERIC.flt -- Font Layout Table for Thai (proportional font)
2 ;; Copyright (C) 2005, 2007
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 (font layouter thai-generic nil
29       (font (nil nil unicode-bmp :lang=th)))
30
31 (category
32  ;; C: CONSONANT normal
33  ;; c: CONSONANT tall
34  ;; d: CONSONANT deep
35  ;; A: SARA-AM
36  ;; V: VOWEL upper, NIKHAHIT, and YAMAKKAN
37  ;; v: VOWEL lower
38  ;; T: TONE
39  ;; I: OTHER INDEPENDENT
40  (0x0E01 0x0E2E ?C)
41  (0x0E0D 0x0E10 ?d)
42  (0x0E1B        ?c)
43  (0x0E1D        ?c)
44  (0x0E1F        ?c)
45  (0x0E2C        ?c)
46  (0x0E2F 0x0E32 ?I)
47  (0x0E31        ?V)
48  (0x0E33        ?A)
49  (0x0E34 0x0E37 ?V)
50  (0x0E38 0x0E3A ?v)
51  (0x0E3F 0x0E46 ?I)
52  (0x0E47        ?V)
53  (0x0E48 0x0E4C ?T)
54  (0x0E4D 0x0E4E ?V)
55  (0x0E4F 0x0E5B ?I))
56
57 (generator
58  (0
59   (cond
60    ("([Cd])(T)?(A)"
61     < (1 = 0x0E4D) (2 tr+bl =) (3 0x0E32) > )
62    ("(c)(T)?(A)"
63     < (1 = Br<13Bl 0x0E4D) (2 tr+<13bl =) (3 0x0E32) > )
64    ("(C[vV]?)(T)?"
65     < (1 = =) (2 tr+bl =) > )
66    ("(c)([vV])?(T)?"
67     < (1 = *) (2 (cond ("v" =) ("." Br<8Bl =))) (3 tr+<8bl =) > )
68    ("(d)([vV])?(T)?"
69     < (1 = *) (2 (cond ("v" br-tl =) ("." =))) (3 tr+bl =) > )
70    ("[VvTA]"
71     [ = ])
72    ("."
73     =))
74   *))
75
76 ;; Local Variables:
77 ;; mode: lisp
78 ;; End: