1 ;; TELU-OTF.flt -- Font Layout Table for Telugu OpenType fonts
2 ;; Copyright (C) 2004, 2007
3 ;; National Institute of Advanced Industrial Science and Technology (AIST)
4 ;; Registration Number H15PRO112
6 ;; This file is part of the m17n database; a sub-part of the m17n
9 ;; The m17n library is free software; you can redistribute it and/or
10 ;; modify it under the terms of the GNU Lesser General Public License
11 ;; as published by the Free Software Foundation; either version 2.1 of
12 ;; the License, or (at your option) any later version.
14 ;; The m17n library is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;; Lesser General Public License for more details.
19 ;; You should have received a copy of the GNU Lesser General Public
20 ;; License along with the m17n library; if not, write to the Free
21 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
26 ;;; For Telugu OpenType fonts to draw the Telugu script.
28 (font layouter telu-otf nil
29 (font (nil nil unicode-bmp :otf=telu=blwf)))
34 ;; u: vowel sign (above)
35 ;; p: vowel sign (post)
36 ;; b: ai length mark (below)
37 ;; a: vowel modifier (post)
38 ;; V: independent vowel
39 ;; N: ZWNJ (ZERO WIDTH NON-JOINER)
40 ;; J: ZWJ (ZERO WIDTH JOINER)
42 (0x0C00 0x0C7F ?E) ; generic
43 (0x0C01 0x0C03 ?a) ; SIGN CANDRABINDU .. VISARGA
44 (0x0C05 0x0C14 ?V) ; LETTER A .. AU
45 (0x0C15 0x0C39 ?C) ; LETTER KA .. HA
46 (0x0C3E 0x0C40 ?u) ; VOWEL SIGN AA .. II
47 (0x0C41 0x0C44 ?p) ; VOWEL SIGN U .. VOCALIC RR
48 (0x0C46 0x0C47 ?u) ; VOWEL SIGN E .. EE
49 (0x0C4A 0x0C4C ?u) ; VOWEL SIGN O .. AU
50 (0x0C4D ?H) ; SIGN VIRAMA
51 (0x0C55 ?u) ; LENGTH MARK
52 (0x0C56 ?b) ; AI LENGTH MARK
53 (0x0C60 0x0C61 ?V) ; LETTER VOCALIC RR .. VOCALIC LL
54 (0x0964 0x0965 ?X) ; DANDA .. DOUBLE DANDA
59 ;; Decompose two-part vowels.
68 ;; Syllable identification and reordering. The base consonant is
69 ;; always the first one, because all Telugu consonants have a below
74 ;; A syllable with a vowel sign.
76 ("(C)((HC)*)(ub?|p)(a)?"
77 < | (1 =) (2 move-h) (4 = *) (5 =) | >)
79 ;; A syllable with a vowel modifier.
82 < | (1 =) (2 move-h) (4 =) | >)
84 ;; No vowel signs, no vowel modifiers. If the syllable ends with a
85 ;; Halant, cancel the Halant movement.
88 < | (1 =) (4 0x0C4D) (2 move-h) | >)
90 ;; A syllable starting with an independent vowel.
102 ;; Apply OTF features. In case of Telugu, 'akhn' is applied after
107 ;; A syllable that ends with a Halant.
109 (1 otf:telu=haln+) (2 otf:telu=akhn,blwf,abvs,blws,psts+abvm,blwm,dist))
111 ;; Ordinary syllables.
113 (1 otf:telu=akhn,blwf,abvs,blws,psts+absm,blwm,dist))