New file.
[m17n/m17n-db.git] / THAI-OTF.flt
1 ;; THAI-OTF.flt -- Font Layout Table for Thai
2 ;; Copyright (C) 2006
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-OTF.flt
25
26 (category
27  ;; C: CONSONANT
28  ;; A: SARA-AM
29  ;; V: DEPENDENT VOWEL, NIKHAHIT, or YAMAKKAN
30  ;; T: TONE
31  ;; I: OTHER INDEPENDENT
32  (0x0E01 0x0E2E ?C)
33  (0x0E2F 0x0E32 ?I)
34  (0x0E31        ?V)
35  (0x0E33        ?A)
36  (0x0E34 0x0E3A ?V)
37  (0x0E3F 0x0E46 ?I)
38  (0x0E47        ?V)
39  (0x0E48 0x0E4C ?T)
40  (0x0E4D 0x0E4E ?V)
41  (0x0E4F 0x0E5B ?I)
42
43  (0x25CC        ?I))
44
45 ;; Perform GSUB.  The decomposition of AM is done by hand because it
46 ;; requires reordering in addition to decomposition.
47
48 (generator
49  (0
50   (cond
51    ("(C)(T)?A"
52     < | (1 =) 0x0E4D (2 =) 0x0E32 | > )
53    ("CV?T?"
54     < | = * | > )
55    ("[VT]"
56     < | 0x25CC = | > )
57    ("."
58     =))
59   *))
60
61 ;; Perform GPOS.
62
63 (generator
64  (0
65   (cond
66    (" ([^ ]*) "
67     (1 otf:thai))
68    ("."
69     [ otf:thai=+ ]))
70   *))
71
72 ;; Local Variables:
73 ;; mode: emacs-lisp
74 ;; End: