Moved from the parent directory. Add layouter information.
[m17n/m17n-db.git] / FLT / LAOO-OTF.flt
1 ;; LAOO-OTF.flt -- Font Layout Table for Lao
2 ;; Copyright (C) 2006, 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> LAOO-OTF.flt
25
26 (font layouter laoo-otf nil
27       (font (nil phetsarath\ ot unicode-bmp)))
28
29 (category
30  ;; C: CONSONANT
31  ;; S: LAO SEMIVOWEL SIGN LO
32  ;; A: VOWEL AM
33  ;; V: DEPENDENT VOWEL
34  ;; T: TONE
35  ;; I: OTHER INDEPENDENT
36  (0x0E81 0x0EAE ?C)
37  (0x0EAF 0x0EB0 ?I)
38  (0x0EB1        ?V)
39  (0x0EB2        ?I)
40  (0x0EB3        ?A)
41  (0x0EB4 0x0EBB ?V)
42  (0x0EBC        ?S)
43  (0x0EBD 0x0EC6 ?I)
44  (0x0EC8 0x0ECC ?T)
45  (0x0ECD        ?V)
46  (0x0ED0 0x0ED9 ?I)
47  (0x0EDC 0x0EDD ?C)
48
49  (0x25CC        ?I))
50
51 ;; The only GSUB is the decomposition of AM.  We do it by hand because
52 ;; it requires reordering in addition to decomposition.
53
54 (generator
55  (0
56   (cond
57    ("(CS?)(T)?A"
58     < | (1 = *) 0x0ECD (2 =) 0x0EB2 | > )
59    ("CS?V?T?"
60     < | = * | > )
61    ("[SVT]"
62     < | 0x25CC = | > )
63    ("."
64     =))
65   *))
66
67 ;; Then apply all GPOS features.
68
69 (generator
70  (0
71   (cond
72    (" ([^ ]*) "
73     (1 otf:lao\ =))
74    ("."
75     [ otf:lao\ =+ ]))
76   *))
77
78 ;; Local Variables:
79 ;; mode: emacs-lisp
80 ;; End: