1 ;; TAML-OTF.flt -- Font Layout Table for Tamil OpenType fonts
2 ;; Copyright (C) 2004, 2006, 2007, 2010 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter taml-otf nil
7 (font (nil nil unicode-bmp :otf=taml)))
11 ;;; For Tamil OpenType fonts to draw the Tamil script.
16 ;; V: independent vowel
19 ;; m: vowel sign (pre)
20 ;; p: vowel sign (others)
21 (0x0B80 0x0BFF ?X) ; generic
22 (0x0B82 ?a) ; SIGN ANUSVARA
23 (0x0B85 0x0B94 ?V) ; LETTER A .. AU
24 (0x0B95 0x0BB9 ?C) ; LETTER KA .. HA
25 (0x0BBE 0x0BC2 ?p) ; VOWEL SIGN AA .. I
26 (0x0BC6 0x0BC8 ?m) ; VOWEL SIGN E .. AI
27 (0x0BCD ?H) ; SIGN VIRAMA
28 (0x0BD7 ?p) ; AU LENGTH MARK
32 (0x25CC ?X) ; DOTTED CIRCLE
40 ;; Decompose two-part vowel signs.
52 ;; The SHRII ligature and its old definition
53 ((0x0BB6 0x0BCD 0x0BB0 0x0BC0)
54 (0 :otf=taml=akhn,half,pres,abvs,blws,psts,haln+))
55 ((0x0BB8 0x0BCD 0x0BB0 0x0BC0)
56 (0 :otf=taml=akhn,half,pres,abvs,blws,psts,haln+))
62 ;; Syllable identification
66 ;; Consonant-based syllables
68 ("(C((J?H|HJ?)C)*)(H[NJ]?|m?p?a?)"
71 (".+HJ$" :otf=taml=nukt,akhn+)
72 ("(.+)(H)N?$" (1 :otf=taml=nukt,akhn+) (2 =) 0x200C)
73 (".+" :otf=taml=nukt,akhn+))
76 ;; Syllables with an independent vowel
80 ;; Two-part vowel signs
83 ((font-facility 0x25CC) < = 0x25CC = >)
87 ((font-facility 0x25CC) < = 0x25CC = >)
91 ((font-facility 0x25CC) < = 0x25CC = >)
94 ;; Combining marks are displayed with a DOTTED CIRCLE.
97 ((font-facility 0x25CC) < = 0x25CC >)
101 ((font-facility 0x25CC) < 0x25CC = >)
108 ;; Move pre-base matra after the last halant, or to the beginning
113 (" ([^ ]+HJ?)([^H ]+)(m)([^ ]*) "
114 | (1 = *) (3 =) (2 = *) (4 = *) |)
117 (" ([^ ]+)(m)([^ ]*) "
118 | (2 =) (1 = *) (3 = *) |)
124 ;; Presentation forms
129 | (1 :otf=taml=pres,abvs,blws,psts,haln+) |)
150 (1 :otf=taml=+abvm,blwm,dist))
155 ;; Copyright (C) 2004, 2006, 2007, 2010
156 ;; National Institute of Advanced Industrial Science and Technology (AIST)
157 ;; Registration Number H15PRO112
159 ;; This file is part of the m17n database; a sub-part of the m17n
162 ;; The m17n library is free software; you can redistribute it and/or
163 ;; modify it under the terms of the GNU Lesser General Public License
164 ;; as published by the Free Software Foundation; either version 2.1 of
165 ;; the License, or (at your option) any later version.
167 ;; The m17n library is distributed in the hope that it will be useful,
168 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
169 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
170 ;; Lesser General Public License for more details.
172 ;; You should have received a copy of the GNU Lesser General Public
173 ;; License along with the m17n library; if not, write to the Free
174 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
175 ;; Boston, MA 02110-1301, USA.