Use font-facility to check U+25CC's availability.
[m17n/m17n-db.git] / FLT / MYMR-SIL.flt
1 ;; MYMR-SIL.flt -- Font Layout Table for Padauk.ttf
2 ;; Copyright (C) 2010 AIST (H15PRO112)
3 ;; See the end for copying conditions.
4
5 (font layouter mymr-sil nil
6       (font (nil nil unicode-bmp :otf=mymr)))
7
8 ;;; <li> MYMR-SIL.flt
9 ;;;
10 ;;; For Padauk.ttf to draw the Myanmar script.
11
12 ;; Padauk.ttf is very smart.  All we have to do is identify boundaries
13 ;; of character sequences and apply the clig feature to them.  No
14 ;; reordering is necessary.  See Unicode Technical Note #11
15 ;; http://www.unicode.org/notes/tn11/ for details.
16
17 (category
18  ;; c: ordinary consonants
19  ;; C: consonants with a subjoined form
20  ;; g: consonant with a kinzi form (Burmese nga and Mon gna)
21  ;; G: consonant with a repha form (Sanscrit)
22  ;; v: virama
23  ;; V: asat
24  ;; y: medial YA
25  ;; r: medial RA
26  ;; w: medial WA
27  ;; h: medial HA
28  ;; e: E vowel
29  ;; E: Shan E vowel
30  ;; u: upper vowel
31  ;; l: lower vowel
32  ;; k: karen vowel
33  ;; s: Shan vowel
34  ;; a: A vowel
35  ;; A: anusvara
36  ;; p: pwo tone
37  ;; b: lower dot
38  ;; H: Mon medial LA
39  ;; w: visarga
40  ;; R: reduplication
41  ;; x: others
42
43  (0x1000 0x1021 ?C)                     ; LETTER KA .. A
44  (0x1004        ?g)                     ; LETTER GNA
45  (0x101A        ?c)                     ; LETTER YA
46  (0x101B        ?G)                     ; LETTER RA
47  (0x101D        ?c)                     ; LETTER WA
48  (0x101F        ?c)                     ; LETTER HA
49
50  (0x1022 0x102A ?c)                     ; LETTER SHAN A .. AU
51  (0x102B 0x102C ?a)                     ; VOWEL SIGN TALL AA .. AA
52  (0x102D 0x102E ?u)                     ; VOWEL SIGN I .. II
53  (0x102F 0x1030 ?l)                     ; VOWEL SIGN U .. UU
54  (0x1031        ?e)                     ; VOWEL SIGN E
55  (0x1032        ?A)                     ; VOWEL SIGN AI
56  (0x1033 0x1035 ?u)                     ; VOWEL SIGN MON II .. E ABOVE
57  (0x1036        ?A)                     ; SIGN ANUSVARA
58  (0x1037        ?b)                     ; SIGN DOT BELOW
59  (0x1038        ?w)                     ; SIGN VISARGA
60  (0x1039        ?v)                     ; SIGN VIRAMA
61  (0x103A        ?V)                     ; SIGN ASAT
62  (0x103B        ?y)                     ; CONSONANT SIGN MEDIAL YA
63  (0x103C        ?r)                     ; CONSONANT SIGN MEDIAL RA
64  (0x103D        ?w)                     ; CONSONANT SIGN MEDIAL WA
65  (0x103E        ?h)                     ; CONSONANT SIGN MEDIAL HA
66
67  (0x103F 0x1049 ?c)                     ; LETTER GREAT SA .. DIGIT NINE
68  (0x1040        ?x)                     ; DIGIT ZERO
69
70  (0x104A 0x1059 ?x)                     ; SIGN LITTLE SECTION .. VOWEL SIGN VOCALIC LL
71  (0x104E        ?c)                     ; SYMBOL AFORMENTIONED
72
73  (0x105A        ?g)                     ; LETTER MON NGA
74  (0x105B 0x105D ?C)                     ; LETTER MON JHA .. MON BBE
75  (0x105E 0x105F ?y)                     ; LETTER CONSONANT SIGN MON MEDIAL NA .. MA
76  (0x1060        ?H)                     ; LETTER CONSONANT SIGN MON MEDIAL LA
77  (0x1061        ?c)                     ; LETTER SGAW KAREN SHA
78  (0x1062        ?k)                     ; VOWEL SIGN SGAW KAREN EU
79  (0x1063        ?a)                     ; TONE MARK SGAW KAREN HATHI
80  (0x1064        ?p)                     ; TONE MARK SGAW KAREN KE PHO
81  (0x1065 0x1066 ?c)                     ; LETTER WESTERN PWO KAREN THA .. PWA
82  (0x1067 0x1068 ?a)                     ; VOWEL SIGN WESTERN PWO KAREN EU .. UE
83  (0x1069 0x106D ?p)                     ; SIGN WESTERN PWO KAREN TONE 1 .. 5
84  (0x106E 0x1070 ?c)                     ; LETTER EASTERN PWO KAREN NNA .. GHWA
85  (0x1071 0x1074 ?u)                     ; VOWEL SIGN GEBA RAREN I .. KAYAH EE
86  (0x1075 0x1081 ?c)                     ; LETTER SHAN KA .. HA
87  (0x1082        ?w)                     ; CONSONANT SIGN SHAN MEDIAL WA
88  (0x1083        ?a)                     ; VOWEL SIGN SHAN AA
89  (0x1084        ?E)                     ; VOWEL SIGN SHAN E
90  (0x1085        ?u)                     ; VOWEL SIGN SHAN E ABOVE
91  (0x1086        ?s)                     ; VOWEL SIGN SHAN FINAL Y
92  (0x1087 0x108D ?w)                     ; SHAN TONE-2 .. COUNCIL EMPHATIC TONE
93  (0x108E        ?c)                     ; LETTER RUMAI PALAUNG FA
94  (0x108F        ?w)                     ; SIGN RUMAI PALAUNG TONE-5
95  (0x1090 0x1099 ?x)                     ; SHAN DIGIT ZERO .. NINE
96  (0x109A 0x109C ?w)                     ; SIGN KHAMTI TONE-1 .. VOWEL SIGN AITON A
97  (0x109E 0x109F ?X)                     ; SYMBOL SHAN ONE .. EXCLAMATION
98
99  (0xAA60 0xAA76 ?c)                     ; LETTER KHAMTI GA .. LOGOGRAM KHAMTI HM
100  (0xAA70        ?R)                     ; LETTER KHAMTI REDUPLICATION
101
102  (0xAA77 0xAA7B ?x)                     ; SYMBOL AITON EXCLAMATION .. PAO KAREN TONE
103
104  (0x25CC        ?x)                     ; DOTTED CIRCLE
105  )
106
107 (generator
108  (0
109   (cond
110    ("([gG]Vv)?[cCgG](v[Cg])?(v[Cg])?V?y?r?w?[hH]?V?(ee?|E)?[uA]?(l|[kb])?s?[ak]?A?p?b?h?V?w?R?"
111     < :otf=mymr=clig >)
112
113    ("[vVywhulksaApbHw]"
114     (cond ((font-facility 0x25CC) < 0x25CC = >)
115           ("." [ = ])))
116
117    ("[reE]"
118     (cond ((font-facility 0x25CC) < = 0x25CC >)
119           ("." [ = ])))
120
121    ("." =))
122   *))
123
124 ;; Copyright (C) 2010
125 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
126 ;;   Registration Number H15PRO112
127
128 ;; This file is part of the m17n database; a sub-part of the m17n
129 ;; library.
130
131 ;; The m17n library is free software; you can redistribute it and/or
132 ;; modify it under the terms of the GNU Lesser General Public License
133 ;; as published by the Free Software Foundation; either version 2.1 of
134 ;; the License, or (at your option) any later version.
135
136 ;; The m17n library is distributed in the hope that it will be useful,
137 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
138 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
139 ;; Lesser General Public License for more details.
140
141 ;; You should have received a copy of the GNU Lesser General Public
142 ;; License along with the m17n library; if not, write to the Free
143 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
144 ;; Boston, MA 02110-1301, USA.
145
146 ;; Local Variables:
147 ;; mode: emacs-lisp
148 ;; End: