1 ;; TELU-OTF.flt -- Font Layout Table for Telugu OpenType fonts
2 ;; Copyright (C) 2004, 2007, 2008, 2010 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter telu-otf nil
7 (font (nil nil unicode-bmp :otf=telu)))
11 ;;; For Telugu OpenType fonts to draw the Telugu script.
14 (0x0C00 0x0C7F ?X) ; generic
15 (0x0C01 0x0C03 ?A) ; SIGN CANDRABINDU .. VISARGA
16 (0x0C05 0x0C14 ?V) ; LETTER A .. AU
17 (0x0C15 0x0C39 ?C) ; LETTER KA .. HA
18 (0x0C3E 0x0C42 ?u) ; VOWEL SIGN AA .. II
19 (0x0C43 0x0C44 ?p) ; VOWEL SIGN U .. VOCALIC RR
20 (0x0C46 0x0C47 ?u) ; VOWEL SIGN E .. EE
21 (0x0C4A 0x0C4C ?u) ; VOWEL SIGN O .. AU
22 (0x0C4D ?H) ; SIGN VIRAMA
23 (0x0C55 ?u) ; LENGTH MARK
24 (0x0C56 ?b) ; AI LENGTH MARK
25 (0x0C58 0x0C59 ?C) ; LETTER TSA .. DZA
26 (0x0C60 0x0C61 ?V) ; LETTER VOCALIC RR .. VOCALIC LL
27 (0x0C62 0x0C63 ?b) ; VOWEL SIGN VOCALIC L .. VOCALIC LL
31 (0x25CC ?X) ; DOTTED CIRCLE
41 ;; Decompose two-part vowel signs.
49 ;; Syllable identification
53 ;; Consonant-based syllables
55 ("(C((J?H|HJ?)C)*)(H[NJ]?|u?b?p?A?)"
58 (".+HJ$" :otf=telu=nukt,akhn+)
59 ("(.+)(H)N?$" (1 :otf=telu=nukt,akhn+) (2 =) 0x200C)
60 (".+" :otf=telu=nukt,akhn+))
63 ;; Syllables with an independent vowel
65 ("(V)(J?HC)?(u?b?p?A?)"
66 < | (1 =) (2 :otf=telu=blwf+) (3 = *) | >)
68 ;; Two-part vowel signs
71 ((font-facility 0x25CC) < 0x25CC = = >)
74 ;; Combining marks are displayed with a DOTTED CIRCLE.
77 ((font-facility 0x25CC) < 0x25CC = >)
80 ;; Isolated blwf is displayed with a DOTTED CIRCLE in the
83 < | (1 =) (3 =) (2 = ) | >)
89 ;; Reorder halant for blwf
96 ((font-facility 0x25CC) < 0x25CC (1 :otf=telu=blwf+) >)
97 (" J(CH) " [ (1 :otf=telu=blwf+) ])))
99 ;; Syllables with an overt halant
101 | (1 reorder *) (2 = =) |)
103 ;; Ordinary syllables
104 (" ([^ubpA ]+)(u?b?p?A?) "
105 | (1 reorder *) (2 = *) |)
119 ;; Although all consonants have a blow form and none has a half form,
120 ;; we have to prevent the first consonant from forming the below form.
124 ;; Overt halant forms
127 (1 (cond ("(.H)J?(.*)" (1 :otf=telu=half+) (2 lang-forms *))
128 (".+" lang-forms *)))
132 (" ([^ubpA ]*)(u?b?p?A?) "
134 (1 (cond ("(.H)J?(.*)" (1 :otf=telu=half+) (2 lang-forms *))
135 (".+" lang-forms *)))
143 ("(.H)J" (1 :otf=telu=half+))
144 (".H" :otf=telu=blwf,half+)
149 ;; Move subscript glyphs
153 (" ([^B ]*[^BJ])J?(B*)(ub?|b)([^ ]*) "
154 | (1 = *) (3 = *) (2 = *) (4 = *) |)
160 ;; Presentation forms
165 | (1 :otf=telu=pres,abvs,blws,psts,haln+) |)
186 (1 :otf=telu=+abvm,blwm,dist))
191 ;; Copyright (C) 2004, 2007, 2008, 2010
192 ;; National Institute of Advanced Industrial Science and Technology (AIST)
193 ;; Registration Number H15PRO112
195 ;; This file is part of the m17n database; a sub-part of the m17n
198 ;; The m17n library is free software; you can redistribute it and/or
199 ;; modify it under the terms of the GNU Lesser General Public License
200 ;; as published by the Free Software Foundation; either version 2.1 of
201 ;; the License, or (at your option) any later version.
203 ;; The m17n library is distributed in the hope that it will be useful,
204 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
205 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
206 ;; Lesser General Public License for more details.
208 ;; You should have received a copy of the GNU Lesser General Public
209 ;; License along with the m17n library; if not, write to the Free
210 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
211 ;; Boston, MA 02110-1301, USA.