1 ;; ARAB-OTF.flt -- Font Layout Table for Arabic OpenType font
2 ;; Copyright (C) 2004, 2006, 2007 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)
19 (0x0750 0x077F ?x) ; Arabic Supplement
27 (0xFB50 0xFDFF ?X) ; Arabic Presentation Forms-A
28 (0xFE70 0xFEFC ?X) ; Arabic Presentation Forms-B
34 ;; If a presentation form is found, draw the whole sequence as is.
37 (".*p.*" ; If a high hamza is found,
39 (".*n.*" ; and a suppressor exists,
40 rmhamza *) ; then remove the high hamza.
41 (0 ; Otherwise, move the high
42 0x674 rmhamza *))) ; hamza to the beginning.
43 (0 = *))) ; If no high hamza, do nothing.
57 ;; D: Dual-joining (beh, teh, etc. & zwj)
58 ;; R: Right-joining (alef, dal, thal, reh, zain)
59 ;; U: Non-joining (Hamza, etc. & zwnj)
60 ;; T: Transparent (combining marks)
111 (0xFB50 0xFDFF ?X) ; Arabic Presentation Forms-A
112 (0xFE70 0xFEFC ?X) ; Arabic Presentation Forms-B
119 ;; Step 2: Initial, medial, or final.
124 (".*X.*" (cond ("[DRUX]T*" < = * >) ("." =)) *)
134 ("(.)(T*)(.*)" ; == (D)(T*)(U.*)
162 ("(.)(T*)(.*)" ; == (D)(T*)(U.*)
186 ("(.)(T*)(.*)" ; == (D)(T*)(U.*)
193 ("(.)(T*)(.*)" ; == ([RU])(T*)(.*)
200 ;; Step 3: Other OTF features.
204 otf:arab=rlig,calt,liga,dlig,cswh,mset+curs,kern,mark,mkmk))
206 ;; Copyright (C) 2004, 2006, 2007
207 ;; National Institute of Advanced Industrial Science and Technology (AIST)
208 ;; Registration Number H15PRO112
210 ;; This file is part of the m17n database; a sub-part of the m17n
213 ;; The m17n library is free software; you can redistribute it and/or
214 ;; modify it under the terms of the GNU Lesser General Public License
215 ;; as published by the Free Software Foundation; either version 2.1 of
216 ;; the License, or (at your option) any later version.
218 ;; The m17n library is distributed in the hope that it will be useful,
219 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
220 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
221 ;; Lesser General Public License for more details.
223 ;; You should have received a copy of the GNU Lesser General Public
224 ;; License along with the m17n library; if not, write to the Free
225 ;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA