1 ;; ARAB-OTF.flt -- Font Layout Table for Arabic OpenType font
2 ;; Copyright (C) 2004, 2006, 2007, 2008 AIST (H15PRO112)
3 ;; See the end for copying conditions.
5 (font layouter arab-otf nil
6 (font (nil nil unicode-bmp :otf=arab=init,medi,fina,liga+mark)))
10 ;;; For Arabic OpenType fonts to draw the Arabic script.
12 ;; Step 0: Move Kazakh high hamza.
15 ;; p: high hamza carrier (p for positive)
16 ;; n: high hamza suppressor (n for negative)
18 ;; X: presentation form
24 (0x0750 0x077F ?x) ; Arabic Supplement
28 (0xFB50 0xFDFF ?X) ; Arabic Presentation Forms-A
29 (0xFE70 0xFEFC ?X) ; Arabic Presentation Forms-B
35 ;; If a presentation form is found, draw the whole sequence as is.
38 (".*p.*" ; If a high hamza is found,
40 (".*n.*" ; and a suppressor exists,
41 rmhamza *) ; then remove the high hamza.
42 (0 ; Otherwise, move the high
43 0x674 rmhamza *))) ; hamza to the beginning.
44 (0 = *))) ; If no high hamza, do nothing.
58 ;; D: Dual-joining (beh, teh, etc. & zwj)
59 ;; R: Right-joining (alef, dal, thal, reh, zain)
60 ;; U: Non-joining (Hamza, etc. & zwnj)
61 ;; T: Transparent (combining marks)
118 (0xFB50 0xFDFF ?X) ; Arabic Presentation Forms-A
119 (0xFE70 0xFEFC ?X) ; Arabic Presentation Forms-B
126 ;; Step 2: Initial, medial, or final.
131 (".*X.*" (cond ("[DRUX]T*" < = * >) ("." =)) *)
141 ("(.)(T*)(.*)" ; == (D)(T*)(U.*)
169 ("(.)(T*)(.*)" ; == (D)(T*)(U.*)
193 ("(.)(T*)(.*)" ; == (D)(T*)(U.*)
200 ("(.)(T*)(.*)" ; == ([RU])(T*)(.*)
207 ;; Step 3: Other OTF features.
211 otf:arab=rlig,calt,liga,dlig,cswh,mset+curs,kern,mark,mkmk))
213 ;; Copyright (C) 2004, 2006, 2007, 2008
214 ;; National Institute of Advanced Industrial Science and Technology (AIST)
215 ;; Registration Number H15PRO112
217 ;; This file is part of the m17n database; a sub-part of the m17n
220 ;; The m17n library is free software; you can redistribute it and/or
221 ;; modify it under the terms of the GNU Lesser General Public License
222 ;; as published by the Free Software Foundation; either version 2.1 of
223 ;; the License, or (at your option) any later version.
225 ;; The m17n library is distributed in the hope that it will be useful,
226 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
227 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
228 ;; Lesser General Public License for more details.
230 ;; You should have received a copy of the GNU Lesser General Public
231 ;; License along with the m17n library; if not, write to the Free
232 ;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA