1 ;; TML2-OTF.flt -- Font Layout Table for tml2 OpenType fonts
2 ;; Copyright (C) 2010 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter tml2-otf nil
7 (font (nil nil unicode-bmp :otf=tml2)))
11 ;;; For tml2 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=tml2=locl,akhn,half,cjct,pres,abvs,blws,psts,haln,calt+))
55 ((0x0BB8 0x0BCD 0x0BB0 0x0BC0)
56 (0 :otf=tml2=locl,akhn,half,cjct,pres,abvs,blws,psts,haln,calt+))
62 ;; Syllable identification and basic shaping froms
66 ;; Consonant-based syllables
67 ("(CJ?HJ?)*C(H[NJ]?|m?p?)a?"
68 < | :otf=tml2=locl,akhn,half,cjct+ | >)
70 ;; Syllables with an independent vowel
74 ;; Two-part vowel signs
77 ((font-facility 0x25CC) < 0x0BC6 0x25CC 0x0BBE >)
81 ((font-facility 0x25CC) < 0x0BC7 0x25CC 0x0BBE >)
85 ((font-facility 0x25CC) < 0x0BC6 0x25CC 0x0BD7 >)
88 ;; Combining marks are displayed with a DOTTED CIRCLE.
91 ((font-facility 0x25CC) < = 0x25CC >)
95 ((font-facility 0x25CC) < 0x25CC = >)
102 ;; Move pre-base matra after the last halant, or to the beginning
107 (" ([^ ]+HJ?)([^H ]+)(m)([^ ]*) "
108 | (1 = *) (3 =) (2 = *) (4 = *) |)
111 (" ([^ ]+)(m)([^ ]*) "
112 | (2 =) (1 = *) (3 = *) |)
118 ;; Presentation forms
123 | (1 :otf=tml2=pres,abvs,blws,psts,haln,calt+) |)
144 (1 :otf=tml2=+kern,dist,abvm,blwm))
149 ;; Copyright (C) 2010
150 ;; National Institute of Advanced Industrial Science and Technology (AIST)
151 ;; Registration Number H15PRO112
153 ;; This file is part of the m17n database; a sub-part of the m17n
156 ;; The m17n library is free software; you can redistribute it and/or
157 ;; modify it under the terms of the GNU Lesser General Public License
158 ;; as published by the Free Software Foundation; either version 2.1 of
159 ;; the License, or (at your option) any later version.
161 ;; The m17n library is distributed in the hope that it will be useful,
162 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
163 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
164 ;; Lesser General Public License for more details.
166 ;; You should have received a copy of the GNU Lesser General Public
167 ;; License along with the m17n library; if not, write to the Free
168 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
169 ;; Boston, MA 02110-1301, USA.