ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with arabic font "Amiri"
@ 2013-05-08  5:41 "H. Özoguz"
  2013-05-08  8:15 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: "H. Özoguz" @ 2013-05-08  5:41 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with arabic font "Amiri"
  2013-05-08  5:41 Problems with arabic font "Amiri" "H. Özoguz"
@ 2013-05-08  8:15 ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-05-08  8:15 UTC (permalink / raw)
  To: ntg-context

On 5/8/2013 7:41 AM, "H. Özoguz" wrote:
> 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.

works ok here (in latest beta)



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with arabic font "Amiri"
@ 2013-05-08  9:19 "H. Özoguz"
  0 siblings, 0 replies; 5+ messages in thread
From: "H. Özoguz" @ 2013-05-08  9:19 UTC (permalink / raw)
  To: ntg-context

> \setupalign
>
> works ok here ; maybe you should erease the font cache

Works here now too ... Thanks.

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with arabic font "Amiri"
  2013-05-08  8:34 "H. Özoguz"
@ 2013-05-08  8:57 ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-05-08  8:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5/8/2013 10:34 AM, "H. Özoguz" wrote:
>> works ok here (in latest beta)
>
> Sorry, my fault. Of course it works, but it was not r2l (and so not
> readably), this one is the not working:
>
> \definefont[amiri][file:amiri-regular.ttf*arabic at 17pt]
> \define[1]\Arab{\setuplayout[r2l] \amiri#1}
> \starttext
> \Arab{بِسْمِ اللَّـهِ الرَّ‌حْمَـٰنِ الرَّ‌حِيمِ}
> \stoptext

\setupalign

works ok here ; maybe you should erease the font cache


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with arabic font "Amiri"
@ 2013-05-08  8:34 "H. Özoguz"
  2013-05-08  8:57 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: "H. Özoguz" @ 2013-05-08  8:34 UTC (permalink / raw)
  To: ntg-context

> works ok here (in latest beta)

Sorry, my fault. Of course it works, but it was not r2l (and so not 
readably), this one is the not working:

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

Maybe the command \setuplayout[r2l] should be replaced by some other 
command? Here is the error (now also with the last beta, I updated): 
"Missing number"

+++++++++++++++++++++++++++++++++++++++++++++++
! Missing number, treated as zero.
system > tex > error on line 4 in file .../Namenlos-1.tex: Missing 
number, treated as zero ...

1 \definefont[amiri][file:amiri-regular.ttf*arabic at 17pt]
2 \define[1]\Arab{\setuplayout[r2l] \amiri#1}
3 \starttext
4 >> \Arab{بِسْمِ اللَّـهِ الرَّ‌حْمَـٰنِ الرَّ‌حِيمِ}
5 \stoptext
6
7
8
9
10
11
12
13

<to be read again>
\global
\page_layouts_synchronize ...c!leftmargin \global
\rightmarginwidth \layoutp...
<inserted text> ...ayout \currentlayout \page_layouts_synchronize
\page_layouts_check_next \...
\setup_layout ...tsetnamed \the \everysetuplayout
\the \everyswitchlayout \f...
\syst_helpers_double_empty_one_spaced ...1[{#2}][]

<to be read again>
\amiri
...
l.4 ...�‌حْمَـٰنِ الرَّ‌حِيمِ}
+++++++++++++++++++++++++++++++++++++++++++++++

Thanks.
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-08  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08  5:41 Problems with arabic font "Amiri" "H. Özoguz"
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"

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).