1 ;; TAML-OTF.flt -- Font Layout Table for Tamil OpenType fonts
2 ;; Copyright (C) 2004, 2006, 2007 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter taml-otf nil
6 (font (nil nil unicode-bmp :otf=taml=akhn)))
10 ;;; For Tamil OpenType fonts to draw the Tamil script.
15 ;; m: vowel sign (pre)
16 ;; u: vowel sign (above)
17 ;; b: vowel sign (below)
18 ;; p: vowel sign (post)
20 (0x0B80 0x0BFF ?X) ; generic
21 (0x0B95 0x0BB9 ?C) ; LETTER KA .. HA
22 (0x0BBE 0x0BBF ?p) ; VOWEL SIGN AA .. I
23 (0x0BC0 ?u) ; VOWEL SIGN II
24 (0x0BC1 0x0BC2 ?b) ; VOWEL SIGN U .. UU
25 (0x0BC6 0x0BC8 ?m) ; VOWEL SIGN E .. AI
26 (0x0BCD ?H) ; SIGN VIRAMA
27 (0x0BD7 ?p) ; AU LENGTH MARK
28 (0x0964 0x0965 ?X) ; DANDA .. DOUBLE DANDA
36 ;; Decompose two-part vowel signs.
46 ;; TAMu and TSCu fonts generate the SRI ligature with 'akhn'.
47 ;; (lohit and latha do it with 'half' + 'abvs'.)
48 ((0x0BB8 0x0BCD 0x0BB0 0x0BC0)
53 ;; Syllable identification.
57 ;; A syllable with vowel signs.
58 ("((CH)*C)(mp?|b|u|p)"
59 < | (1 otf:taml=akhn,half+) (3 = *) | >)
63 < | (1 otf:taml=akhn,half+) (3 =) | >)
68 ;; Move Matra before the base consonant.
72 (" ([^ m]*)([^ m])(m)(p)? "
73 | (1 = *) (3 =) (2 =) (4 =) |)
77 ;; Apply other OTF features.
82 (1 otf:taml=pres,abvs,blws,psts,haln+abvm,blwm,dist))
87 ;; Copyright (C) 2004, 2006, 2007
88 ;; National Institute of Advanced Industrial Science and Technology (AIST)
89 ;; Registration Number H15PRO112
91 ;; This file is part of the m17n database; a sub-part of the m17n
94 ;; The m17n library is free software; you can redistribute it and/or
95 ;; modify it under the terms of the GNU Lesser General Public License
96 ;; as published by the Free Software Foundation; either version 2.1 of
97 ;; the License, or (at your option) any later version.
99 ;; The m17n library is distributed in the hope that it will be useful,
100 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
101 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
102 ;; Lesser General Public License for more details.
104 ;; You should have received a copy of the GNU Lesser General Public
105 ;; License along with the m17n library; if not, write to the Free
106 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
107 ;; Boston, MA 02110-1301, USA.