Cosmetic changes.
[m17n/m17n-db.git] / FLT / LAOO-OTF.flt
1 ;; LAOO-OTF.flt -- Font Layout Table for Lao
2 ;; Copyright (C) 2006, 2007  AIST (H15PRO112)
3 ;; See the end for copying conditions.
4
5 (font layouter laoo-otf nil
6       (font (nil phetsarath\ ot unicode-bmp)))
7
8 ;;; <li> LAOO-OTF.flt
9
10 (category
11  ;; C: CONSONANT
12  ;; S: LAO SEMIVOWEL SIGN LO
13  ;; A: VOWEL AM
14  ;; V: DEPENDENT VOWEL
15  ;; T: TONE
16  ;; I: OTHER INDEPENDENT
17  (0x0E81 0x0EAE ?C)
18  (0x0EAF 0x0EB0 ?I)
19  (0x0EB1        ?V)
20  (0x0EB2        ?I)
21  (0x0EB3        ?A)
22  (0x0EB4 0x0EBB ?V)
23  (0x0EBC        ?S)
24  (0x0EBD 0x0EC6 ?I)
25  (0x0EC8 0x0ECC ?T)
26  (0x0ECD        ?V)
27  (0x0ED0 0x0ED9 ?I)
28  (0x0EDC 0x0EDD ?C)
29
30  (0x25CC        ?I))
31
32 ;; The only GSUB is the decomposition of AM.  We do it by hand because
33 ;; it requires reordering in addition to decomposition.
34
35 (generator
36  (0
37   (cond
38    ("(CS?)(T)?A"
39     < | (1 = *) 0x0ECD (2 =) 0x0EB2 | > )
40    ("CS?V?T?"
41     < | = * | > )
42    ("[SVT]"
43     < | 0x25CC = | > )
44    ("."
45     =))
46   *))
47
48 ;; Then apply all GPOS features.
49
50 (generator
51  (0
52   (cond
53    (" ([^ ]*) "
54     (1 otf:lao\ =))
55    ("."
56     [ otf:lao\ =+ ]))
57   *))
58
59 ;; Copyright (C) 2006, 2007
60 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
61 ;;   Registration Number H15PRO112
62
63 ;; This file is part of the m17n database; a sub-part of the m17n
64 ;; library.
65
66 ;; The m17n library is free software; you can redistribute it and/or
67 ;; modify it under the terms of the GNU Lesser General Public License
68 ;; as published by the Free Software Foundation; either version 2.1 of
69 ;; the License, or (at your option) any later version.
70
71 ;; The m17n library is distributed in the hope that it will be useful,
72 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
73 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
74 ;; Lesser General Public License for more details.
75
76 ;; You should have received a copy of the GNU Lesser General Public
77 ;; License along with the m17n library; if not, write to the Free
78 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
79 ;; Boston, MA 02110-1301, USA.
80
81 ;; Local Variables:
82 ;; mode: emacs-lisp
83 ;; End: