1 ;; ORY2-OTF.flt -- Font Layout Table for ory2 OpenType fonts
2 ;; Copyright (C) 2010 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter ory2-otf nil
7 (font (nil nil unicode-bmp :otf=ory2)))
11 ;;; For ory2 OpenType fonts to draw the Oriya script.
13 ;; base blwf b u rphf a pstf p A
16 (0x0B00 0x0B7F ?X) ; generic
17 (0x0B01 ?a) ; SIGN CANDRABINDU
18 (0x0B02 0x0B03 ?A) ; SIGN ANUSVARA .. VISARGA
19 (0x0B05 0x0B14 ?V) ; LETTER A .. VOCALIC AU
20 (0x0B15 0x0B39 ?C) ; LETTER KA .. HA
21 (0x0B30 ?R) ; LETTER RA
22 (0x0B3C ?n) ; SIGN NUKTA
23 (0x0B3E ?p) ; VOWEL SIGN AA
24 (0x0B3F ?u) ; VOWEL SIGN I
25 (0x0B40 ?p) ; VOWEL SIGN II
26 (0x0B41 0x0B44 ?b) ; VOWEL SIGN U .. VOCALIC RR
27 (0x0B47 ?m) ; VOWEL SIGN E
28 (0x0B4D ?H) ; SIGN VIRAMA
29 (0x0B56 ?u) ; AI LENGTH MARK
30 (0x0B57 ?p) ; AU LENGTH MARK
31 (0x0B5C 0x0B5F ?C) ; LETTER RRA .. YYA
32 (0x0B60 0x0B61 ?V) ; LETTER VOCALIC RR .. LL
33 (0x0B62 0x0B63 ?b) ; VOWEL SIGN VOCALIC L .. LL
34 (0x0B71 ?C) ; LETTER WA
38 (0x25CC ?X) ; DOTTED CIRCLE
49 ;; Decompose two-part vowel signs.
57 ;; Compose consonant and nukta.
67 ;; Syllable identification
71 ;; Syllables with an independent vowel
72 ("(RH)?Vn?(J?H[CR])?m?u?b?p?n?a?A?"
75 ;; Consonant-based syllables
76 ("([CR]n?J?HJ?)*[CR]n?(H[NJ]?|m?u?b?p?n?)a?A?"
79 ;; Two-part vowel signs
82 ((font-facility 0x25CC) < 0x0B47 0x25CC 0x0B56 >)
86 ((font-facility 0x25CC) < 0x0B47 0x25CC 0x0B3E >)
90 ((font-facility 0x25CC) < 0x0B47 0x25CC 0x0B57 >)
93 ;; Combining marks are displayed with a DOTTED CIRCLE.
96 ((font-facility 0x25CC) < = 0x25CC >)
100 ((font-facility 0x25CC) < 0x25CC = >)
104 ((font-facility 0x25CC) < 0x25CC :otf=ory2=blwf,pstf+ >)
105 (".+" [ :otf=ory2=blwf,pstf+ ])))
111 ;; Basic shaping forms and matra reordering
115 ;; Explicit halant form starting with RA + H + ZWJ
117 (" (RHJ[CRnHJ]+)(H)N?(a)?(A)? "
118 (1 :otf?ory2=locl,nukt,akhn,blwf,pstf+)
119 | (1 b4post) (3 =) (1 post) (2 =) (4 =) |)
121 ;; Explicit halant form starting with a reph
123 (" (RH)([CRnHJ]+)(H)N?(a)?(A)? "
124 (2 :otf?ory2=locl,nukt,akhn,blwf,pstf+)
125 | (1 :otf=ory2=rphf+) (2 b4post) (4 =) (2 post) (3 =) (5 =) |)
127 ;; Other explicit halant forms
129 (" ([CRnHJ]+)(H)N?(a)?(A)? "
130 (1 :otf?ory2=locl,nukt,akhn,blwf,pstf+)
131 | (1 b4post) (3 =) (1 post) (2 =) (4 =) |)
133 ;; Ordinary syllables starting with RA + H + ZWJ
135 (" (RHJ[CRnHJ]*)(mn?)?(u?b?n?)(pn?)?(a)?(A)? "
136 (1 :otf?ory2=locl,nukt,akhn,blwf,pstf+)
137 | (2 = *) (1 b4post) (3 = *) (5 =) (1 post) (4 = *) (6 =) |)
139 ;; Ordinary syllables starting with a reph
141 (" (RH)([CRnHJV]+)(mn?)?(u?b?n?)(pn?)?(a)?(A)? "
142 (2 :otf?ory2=locl,nukt,akhn,blwf,pstf+)
143 | (3 = *) (1 :otf=ory2=rphf+) (2 b4post) (4 = *) (6 =) (2 post)
146 ;; Other ordinary syllables
148 (" ([CRnHJV]+)(mn?)?(u?b?n?)(pn?)?(a)?(A)? "
149 (1 :otf?ory2=locl,nukt,akhn,blwf,pstf+)
150 | (2 = *) (1 b4post) (3 = *) (5 =) (1 post) (4 = *) (6 =) |)
157 ("([CRnHJP]*[CRV]n?)((J?PP)+)$"
158 (1 :otf=ory2=locl,nukt,akhn,blwf,cjct+))
160 (0 :otf=ory2=locl,nukt,akhn,blwf,cjct+))))
164 ("[CRnHJP]*[CRV]n?((J?PP)+)$"
165 (1 :otf=ory2=pstf+))))
169 ;; Final reordering #1 (Move pre-base matra after the last halant)
174 (" (mn?)([^ ]+HJ?)([^H ]+) "
175 | (2 = *) (1 = *) (3 = *) |)
181 ;; Final reordering #2 (Move reph after the first halant)
185 ;; Syllables with a reph and an explicit halant
187 (" (mn?)?(r)([^HP ]+HJ?)([^ ]*) "
188 | (1 = *) (3 = *) (2 =) (4 = *) |)
190 ;; A reph without explicit halant
192 (" (mn?)?(r)([^aPpA ]+)(a?P*H?p?n?A?) "
193 | (1 = *) (3 = *) (2 =) (4 = *) |)
199 ;; Nukta for matra and presentation forms
204 | (1 :otf=ory2=nukt,pres,abvs,blws,psts,haln,calt+) |)
225 (1 :otf=ory2=+kern,dist,abvm,blwm))
230 ;; Copyright (C) 2010
231 ;; National Institute of Advanced Industrial Science and Technology (AIST)
232 ;; Registration Number H15PRO112
234 ;; This file is part of the m17n database; a sub-part of the m17n
237 ;; The m17n library is free software; you can redistribute it and/or
238 ;; modify it under the terms of the GNU Lesser General Public License
239 ;; as published by the Free Software Foundation; either version 2.1 of
240 ;; the License, or (at your option) any later version.
242 ;; The m17n library is distributed in the hope that it will be useful,
243 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
244 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
245 ;; Lesser General Public License for more details.
247 ;; You should have received a copy of the GNU Lesser General Public
248 ;; License along with the m17n library; if not, write to the Free
249 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
250 ;; Boston, MA 02110-1301, USA.