Include syllable final HJ to otf part.
[m17n/m17n-db.git] / FLT / THAI-GENERIC.flt
1 ;; THAI-GENERIC.flt -- Font Layout Table for Thai (proportional font)
2 ;; Copyright (C) 2005, 2007  AIST (H15PRO112)
3 ;; See the end for copying conditions.
4
5 (font layouter thai-generic nil
6       (font (nil nil unicode-bmp :otf=thai+~mark,~mkmk :lang=th)))
7
8 ;;; <li> THAI-GENERIC.flt
9 ;;;
10 ;;; For the Thai proportional fonts to draw Thai script.
11
12 (category
13  ;; C: CONSONANT normal
14  ;; c: CONSONANT tall
15  ;; d: CONSONANT deep
16  ;; A: SARA-AM
17  ;; V: VOWEL upper, NIKHAHIT, and YAMAKKAN
18  ;; v: VOWEL lower
19  ;; T: TONE
20  ;; I: OTHER INDEPENDENT
21  (0x0E01 0x0E2E ?C)
22  (0x0E0D 0x0E10 ?d)
23  (0x0E1B        ?c)
24  (0x0E1D        ?c)
25  (0x0E1F        ?c)
26  (0x0E2C        ?c)
27  (0x0E2F 0x0E32 ?I)
28  (0x0E31        ?V)
29  (0x0E33        ?A)
30  (0x0E34 0x0E37 ?V)
31  (0x0E38 0x0E3A ?v)
32  (0x0E3F 0x0E46 ?I)
33  (0x0E47        ?V)
34  (0x0E48 0x0E4C ?T)
35  (0x0E4D 0x0E4E ?V)
36  (0x0E4F 0x0E5B ?I))
37
38 (generator
39  (0
40   (cond
41    ("([Cd])(T)?(A)"
42     < (1 = 0x0E4D) (2 tr+bl =) (3 0x0E32) > )
43    ("(c)(T)?(A)"
44     < (1 = Br<13Bl 0x0E4D) (2 tr+<13bl =) (3 0x0E32) > )
45    ("(C[vV]?)(T)?"
46     < (1 = =) (2 tr+bl =) > )
47    ("(c)([vV])?(T)?"
48     < (1 = *) (2 (cond ("v" =) ("." Br<8Bl =))) (3 tr+<8bl =) > )
49    ("(d)([vV])?(T)?"
50     < (1 = *) (2 (cond ("v" br-tl =) ("." =))) (3 tr+bl =) > )
51    ("[VvT]"
52     (cond ((font-facility 0x25CC) < 0x25CC = > ) ("." [ = ] )))
53    ("."
54     =))
55   *))
56
57 ;; Copyright (C) 2005, 2007
58 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
59 ;;   Registration Number H15PRO112
60
61 ;; This file is part of the m17n database; a sub-part of the m17n
62 ;; library.
63
64 ;; The m17n library is free software; you can redistribute it and/or
65 ;; modify it under the terms of the GNU Lesser General Public License
66 ;; as published by the Free Software Foundation; either version 2.1 of
67 ;; the License, or (at your option) any later version.
68
69 ;; The m17n library is distributed in the hope that it will be useful,
70 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
71 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
72 ;; Lesser General Public License for more details.
73
74 ;; You should have received a copy of the GNU Lesser General Public
75 ;; License along with the m17n library; if not, write to the Free
76 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
77 ;; Boston, MA 02110-1301, USA.
78
79 ;; Local Variables:
80 ;; mode: lisp
81 ;; End: