1 ;; GJR2-OTF.flt -- Font Layout Table for gjr2 OpenType fonts
2 ;; Copyright (C) 2010 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter gjr2-otf nil
7 (font (nil nil unicode-bmp :otf=gjr2)))
11 ;;; For gjr2 OpenType fonts to draw the Gujarati script.
15 ;; V: independent vowel
20 ;; m: vowel sign (pre)
21 ;; u: vowel sign (above)
22 ;; b: vowel sign (below)
23 ;; p: vowel sign (post)
24 ;; a: vowel modifier (above)
25 ;; A: vowel modifier (post)
28 (0x0A80 0x0AFF ?X) ; generic
29 (0x0A81 0x0A82 ?a) ; SIGN CANDRABINDU .. ANUSVARA
30 (0x0A83 ?A) ; SIGN VISARGA
31 (0x0A85 0x0A94 ?V) ; LETTER A .. AU
32 (0x0A95 0x0AB9 ?C) ; LETTER KA .. HA
33 (0x0AB0 ?R) ; LETTER RA
34 (0x0ABC ?n) ; SIGN NUKTA
35 (0x0ABE ?p) ; VOWEL SIGN AA
36 (0x0ABF ?m) ; VOWEL SIGN I
37 (0x0AC0 ?p) ; VOWEL SIGN II
38 (0x0AC1 0x0AC4 ?b) ; VOWEL SIGN UU .. VOCALIC RR
39 (0x0AC5 0x0AC8 ?u) ; VOWEL SIGN CANDRA E .. AI
40 (0x0AC9 0x0ACC ?p) ; VOWEL SIGN CANDRA O .. AU
41 (0x0ACD ?H) ; SIGN VIRAMA
42 (0x0AE0 0x0AE1 ?V) ; LETTER VOCALIC RR .. VOCALIC LL
43 (0x0AE2 0x0AE3 ?b) ; VOWEL SIGN VOCALIC L .. VOCALIC LL
47 (0x25CC ?X) ; DOTTED CIRCLE
53 ;; Syllable identification
57 ;; Syllables with an independent vowel
58 ("(RH)?Vn?(J?HR)?m?u?b?p?n?a?A?"
61 ;; Consonant-based syllables
62 ("([CR]n?J?HJ?)*[CR]n?(H[NJ]?|m?u?b?p?n?)a?A?"
65 ;; Combining marks are displayed with a DOTTED CIRCLE.
68 ((font-facility 0x25CC) < = 0x25CC >)
72 ((font-facility 0x25CC) < 0x25CC = >)
76 ((font-facility 0x25CC) < 0x25CC :otf=gjr2=blwf+ >)
77 (".+" [ :otf=gjr2=blwf+ ])))
83 ;; Basic shaping forms and matra reordering
87 ;; Explicit halant form starting with RA + H + ZWJ
88 (" (RHJ[CRnHJ]+)(HN?a?A?) "
89 | (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+) (2 = *) |)
91 ;; Explicit halant form starting with a reph
92 (" (RH)([CRnHJ]+)(HN?a?A?) "
93 | (1 :otf=gjr2=rphf+) (2 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
96 ;; Other explicit halant forms
97 (" ([CRnHJ]+)(HN?a?A?) "
98 | (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+) (2 = *) |)
100 ;; Ordinary syllables starting with RA + H + ZWJ
102 (" (RHJ[CRnHJ]*)(mn?)?(u?b?p?n?a?A?) "
104 ;; This is an asterisk. (See DEV2-OTF.flt)
105 | (2 = *) (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
108 ;; Ordinary syllables starting with a reph
110 (" (RH)([CRnHJV]+)(mn?)?(u?b?p?n?a?A?) "
111 | (3 = *) (1 :otf=gjr2=rphf+)
112 (2 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
115 ;; Other ordinary syllables
117 (" ([CRnHJV]+)(mn?)?(u?b?p?n?a?A?) "
118 | (2 = *) (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
125 ;; Final reordering #1 (Move pre-base matra after the last halant)
130 (" (mn?)([^ ]+HJ?)([^H ]+) "
131 | (2 = *) (1 = *) (3 = *) |)
137 ;; Final reordering #2 (Move reph after the first halant)
141 ;; Syllables with a reph and an explicit halant
143 (" (mn?)?(r)([^H ]+HJ?)([^ ]*) "
144 | (1 = *) (3 = *) (2 =) (4 = *) |)
146 ;; A reph without explicit halant
148 (" (mn?)?(r)([^aA ]+)(a?A?) "
149 | (1 = *) (3 = *) (2 =) (4 = *) |)
155 ;; Nukta for matra and presentation forms
160 | (1 :otf=gjr2=nukt,pres,abvs,blws,psts,haln,calt+) |)
181 (1 :otf=gjr2=+kern,dist,abvm,blwm))
186 ;; Copyright (C) 2010
187 ;; National Institute of Advanced Industrial Science and Technology (AIST)
188 ;; Registration Number H15PRO112
190 ;; This file is part of the m17n database; a sub-part of the m17n
193 ;; The m17n library is free software; you can redistribute it and/or
194 ;; modify it under the terms of the GNU Lesser General Public License
195 ;; as published by the Free Software Foundation; either version 2.1 of
196 ;; the License, or (at your option) any later version.
198 ;; The m17n library is distributed in the hope that it will be useful,
199 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
200 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
201 ;; Lesser General Public License for more details.
203 ;; You should have received a copy of the GNU Lesser General Public
204 ;; License along with the m17n library; if not, write to the Free
205 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
206 ;; Boston, MA 02110-1301, USA.