Hello,

I tried to type with the arabic font "Amiri" by K. Hosny. You can download it here: http://sourceforge.net/projects/amiri/

In this download-page you find a nice example of the font, setting the sura "Al-Fatiha" (first section of the Holy Qur'an). I tried to regain this example with ConTeXt, but failed.
Here is my try:

\definefont[amiri][file:amiri-regular.ttf*arabic at 17pt]
\define[1]\Arab{\amiri#1}
\starttext
\Arab{بِسْمِ اللَّـهِ الرَّ‌حْمَـٰنِ الرَّ‌حِيمِ}
\stoptext

But that doesn't compile here. I get this error:

! LuaTeX error .../context/tex/texmf-context/tex/context/base/font-otp.lua:163: invalid value (nil) at index 2 in table for 'concat'

stack traceback:

[C]: in function 'concat'

.../context/tex/texmf-context/tex/context/base/font-otp.lua:163: in function 'pack_indexed'

.../context/tex/texmf-context/tex/context/base/font-otp.lua:328: in function 'enhancer'

.../context/tex/texmf-context/tex/context/base/font-otf.lua:258: in function 'enhance'

.../context/tex/texmf-context/tex/context/base/font-otf.lua:462: in function 'load'

.../context/tex/texmf-context/tex/context/base/font-otf.lua:1946: in function 'otftotfm'

.../context/tex/texmf-context/tex/context/base/font-otf.lua:1973: in function <.../context/tex/texmf-context/tex/context/base/font-otf.lua:1972>

(...tail calls...)

.../context/tex/texmf-context/tex/context/base/font-def.lua:298: in function 'loadfont'

.../context/tex/texmf-context/tex/context/base/font-ctx.lua:469: in function 'loadfont'

.../context/tex/texmf-context/tex/context/base/font-def.lua:412: in function 'read'

.../context/tex/texmf-context/tex/context/base/font-ctx.lua:965: in function 'definefont_two'

[string "\directlua "]:1: in main chunk.


system > tex > error on line 5 in file Namenlos-1.tex: LuaTeX error ...

+++++++++++++++++++++++++++++++++++++++++++

1 \definefont[amiri][file:amiri-regular.ttf*arabic at 17pt]

2 \define[1]\Arab{\amiri#1}

3

4 \starttext

5 >> \Arab{بِسْمِ اللَّـهِ الرَّ‌حْمَـٰنِ الرَّ‌حِيمِ}

6 \stoptext

7

8

9

10

11

12

13

14

15



\ctxcommand #1->\directlua {commands.#1}

\font_helpers_low_level_define ..._designsize " )}

\edef \somefontspec {at \n...

\font_basics_define_font_without_parameters ...ic

\csname \v_font_identifier...

\Arab #1->\amiri

#1

l.5 ...��حْمَـٰنِ الرَّ‌حِيمِ}

?

+++++++++++++++++++++++++++++++++++++++++++++++

What is the problem here?

Huseyin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to