ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: Problems with arabic font "Amiri"
Date: Wed, 08 May 2013 07:41:37 +0200	[thread overview]
Message-ID: <5189E591.9040108@mmnetz.de> (raw)

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	other threads:[~2013-05-08  5:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08  5:41 "H. Özoguz" [this message]
2013-05-08  8:15 ` Hans Hagen
2013-05-08  8:34 "H. Özoguz"
2013-05-08  8:57 ` Hans Hagen
2013-05-08  9:19 "H. Özoguz"

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5189E591.9040108@mmnetz.de \
    --to=h.oezoguz@mmnetz.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).