Fix reordering rule. Fix the 2nd stage to consume all inputs.
[m17n/m17n-db.git] / FLT / CHAM-GENERIC.flt
1 ;; CHAM-GENERIC.flt -- Font Layout Table for Cham (proportional font)
2 ;; Copyright (C) 2008  AIST (H15PRO112)
3 ;; See the end for copying conditions.
4
5 (font layouter cham-generic nil
6       (font (nil nil unicode-bmp :script=cham)))
7
8 ;;; <li> CHARM-GENERIC.flt
9 ;;;
10 ;;; For the Cham proportional fonts to draw Cham script.
11
12 (category
13  ;; C: consonant normal
14  ;; A: independent vowel A
15  ;; I: independent vowel (except for A)
16  ;; m: medial consonant (prefix)
17  ;; M: medial consonant (postfix)
18  ;; v: dependent vowel (prefix)
19  ;; V: dependent vowel (postfix)
20  ;; L: vowel lengthener
21  ;; F: consonant sign final (independent)
22  ;; f: consonant sign final (dependent)
23  ;; E: else (independent)
24  (0xAA00 0xAA5F ?E)
25  (0xAA00        ?A)
26  (0xAA01 0xAA05 ?I)
27  (0xAA06 0xAA28 ?C)
28  (0xAA29        ?L)
29  (0xAA2A 0xAA32 ?V)
30  (0xAA2F        ?v)
31  (0xAA33 0xAA36 ?M)
32  (0xAA34        ?m)
33  (0xAA40 0xAA4B ?F)
34  (0xAA43        ?f)
35  (0xAA4C 0xAA4D ?f))
36
37 (generator
38  (0
39   (cond
40    ("([IA])(v?)(V?L?)([fF]?)"
41     | < (2 =) (1 =) (3 = *) > (4 =) |)
42    ("([CA])(m?)(M?)(v?)(V?L?)([fF]?)"
43     | < (4 = ) (2 =) (1 =) (3 =) (5 = *) > (6 =) |)
44    ("."
45     =))
46   *))
47
48 (generator
49  (0
50   (cond
51    (" (.*f) " < (1 = *) >)
52    (" (.*) " (1 = *))
53    ("." =))
54   *))
55
56 ;; Copyright (C) 2008
57 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
58 ;;   Registration Number H15PRO112
59
60 ;; This file is part of the m17n database; a sub-part of the m17n
61 ;; library.
62
63 ;; The m17n library is free software; you can redistribute it and/or
64 ;; modify it under the terms of the GNU Lesser General Public License
65 ;; as published by the Free Software Foundation; either version 2.1 of
66 ;; the License, or (at your option) any later version.
67
68 ;; The m17n library is distributed in the hope that it will be useful,
69 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
70 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
71 ;; Lesser General Public License for more details.
72
73 ;; You should have received a copy of the GNU Lesser General Public
74 ;; License along with the m17n library; if not, write to the Free
75 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
76 ;; Boston, MA 02110-1301, USA.
77
78 ;; Local Variables:
79 ;; mode: lisp
80 ;; End: