1 ;; TAML-OTF.flt -- Font Layout Table for Tamil OpenType fonts
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., 59 Temple Place, Suite 330, Boston, MA
26 ;;; For Tamil OpenType fonts to draw Tamil.
27 ;;; Fonts are available from <http://sourceforge.net/projects/tamillinux/>.
30 ;; C: general consonant
31 ;; V: independent vowel
37 ;; A: vowel modifier (above)
38 ;; a: vowel modifier (post)
39 ;; N: ZWNJ (ZERO WIDTH NON-JOINER)
40 ;; J: ZWJ (ZERO WIDTH JOINER)
46 (0x0965 ?E) ; DOUBLE DANDA
47 (0x0B80 0x0BFF ?E) ; ELSE
48 (0x0B85 0x0B94 ?V) ; LETTER AA .. LETTER AU
49 (0x0B95 0x0BB9 ?C) ; LETTER KA .. LETTER HA
50 (0x0BBE ?p) ; VOWEL SIGN AA (post)
51 (0x0BBF ?p) ; VOWEL SIGN I (post)
52 (0x0BC0 ?u) ; VOWEL SIGN II (above)
53 (0x0BC1 ?b) ; VOWEL SIGN U (below)
54 (0x0BC2 ?b) ; VOWEL SIGN UU (below)
55 (0x0BC6 0x0BC8 ?m) ; VOWEL SIGN E, EE, AI (pre)
56 (0x0BCA 0x0BCC ?t) ; VOWEL SIGN O, OO, AU (two-part)
58 (0x0BD7 ?p) ; AU LENGTH MARK (post)
61 ;; Step 1 : Syllable identification.
65 ;; A syllable ending with a two-part vowel sign.
67 < | (1 otf:taml=akhn) (3 two-part) | >)
69 ;; A syllable ending with a vowel sign.
71 < | (1 otf:taml=akhn) (3 =) | >)
75 < | otf:taml=akhn | >)
93 ;; Step 2 : Matra movements.
97 (" ([^ mubp]*)([^ mubp])(m)?([ubp])? "
98 | (1 = *) (3 =) (2 =) (4 =) |)
102 ;; Step 3 : OTF substitutions and positionings.