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.
66 ("(m)|(n|H|u|b|p|a|A|JHR)"
67 < | (1 =) 0x25CC (2 :otf=gjr2=blwf+) | >)
73 ;; Basic shaping forms and matra reordering
77 ;; Explicit halant form starting with RA + H + ZWJ
78 (" (RHJ[CRnHJ]+)(HN?a?A?) "
79 | (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+) (2 = *) |)
81 ;; Explicit halant form starting with a reph
82 (" (RH)([CRnHJ]+)(HN?a?A?) "
83 | (1 :otf=gjr2=rphf+) (2 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
86 ;; Other explicit halant forms
87 (" ([CRnHJ]+)(HN?a?A?) "
88 | (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+) (2 = *) |)
90 ;; Ordinary syllables starting with RA + H + ZWJ
92 (" (RHJ[CRnHJ]*)(mn?)?(u?b?p?n?a?A?) "
94 ;; This is an asterisk. (See DEV2-OTF.flt)
95 | (2 = *) (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
98 ;; Ordinary syllables starting with a reph
100 (" (RH)([CRnHJV]+)(mn?)?(u?b?p?n?a?A?) "
101 | (3 = *) (1 :otf=gjr2=rphf+)
102 (2 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
105 ;; Other ordinary syllables
107 (" ([CRnHJV]+)(mn?)?(u?b?p?n?a?A?) "
108 | (2 = *) (1 :otf=gjr2=locl,nukt,akhn,rkrf,blwf,half,vatu,cjct+)
115 ;; Final reordering #1 (Move pre-base matra after the last halant)
120 (" (mn?)([^ ]+HJ?)([^H ]+) "
121 | (2 = *) (1 = *) (3 = *) |)
127 ;; Final reordering #2 (Move reph after the first halant)
131 ;; Syllables with a reph and an explicit halant
133 (" (mn?)?(r)([^H ]+HJ?)([^ ]*) "
134 | (1 = *) (3 = *) (2 =) (4 = *) |)
136 ;; A reph without explicit halant
138 (" (mn?)?(r)([^aA ]+)(a?A?) "
139 | (1 = *) (3 = *) (2 =) (4 = *) |)
145 ;; Nukta for matra and presentation forms
150 | (1 :otf=gjr2=nukt,pres,abvs,blws,psts,haln,calt+) |)
171 (1 :otf=gjr2=+kern,dist,abvm,blwm))
176 ;; Copyright (C) 2010
177 ;; National Institute of Advanced Industrial Science and Technology (AIST)
178 ;; Registration Number H15PRO112
180 ;; This file is part of the m17n database; a sub-part of the m17n
183 ;; The m17n library is free software; you can redistribute it and/or
184 ;; modify it under the terms of the GNU Lesser General Public License
185 ;; as published by the Free Software Foundation; either version 2.1 of
186 ;; the License, or (at your option) any later version.
188 ;; The m17n library is distributed in the hope that it will be useful,
189 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
190 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
191 ;; Lesser General Public License for more details.
193 ;; You should have received a copy of the GNU Lesser General Public
194 ;; License along with the m17n library; if not, write to the Free
195 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
196 ;; Boston, MA 02110-1301, USA.