ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Problem loading font KFGQPC Uthman Taha Naskh font
Date: Sun, 21 Aug 2016 06:53:10 -0400	[thread overview]
Message-ID: <CAMHZ1daRgE8+Muz+n_KSDVs_GT+8aUdBC_o0Vp0ABqQPE8zAhQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 3759 bytes --]

Hello,

The code snippet at the end used to work a few months ago when I reported a
rendering bug.  But now the font does not load and I see the following
error.  (It's not an issue with simplefonts because
\definedfont[KFGQPCUthmanTahaNaskh*arabic] does not work either.  the font
is published here
<http://fonts.qurancomplex.gov.sa/wp-content/uploads/2012/06/UthmanTN1-Ver10.zip>
.


close source    > 3 > 4 >
/Users/bateni/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv

lua error       > lua error on line 4 in file /private/tmp/test-q.tex:

...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: bad
argument #2 to '__div' (invalid replacement value)
stack traceback:
[C]: in function '__div'
...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: in
function 'splitter'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:159: in
function 'addfeature'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:730: in
function 'enhancer'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1269: in
function 'enhance'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1291: in
function 'apply'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:246: in
function 'load'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:538: in
function 'otftotfm'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:566: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:565>
(...tail calls...)
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:304: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:492: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:418: in
function 'read'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1172: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1059>
(...tail calls...)

 1     \setuppapersize[A5]
 2
 3     \usemodule[simplefonts]
 4 >>  \setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic]
 5     \setcharacterstripping[1]
 6     \setupinterlinespace[line=7ex]
 7
 8     \setupdirections[bidi=on,method=one]
 9     \setupalign[r2l]
10
11
12     \starttext
13
14     \tfb


Thanks,
~MHB
On Sat, Apr 30, 2016 at 1:06 PM, Hans Hagen <pragma@wxs.nl> wrote:

> On 4/29/2016 12:00 PM, Mohammad Hossein Bateni wrote:
>
>> Actually the MWE may help:
>>
>> \usemodule[simplefonts]
>> \setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic]
>> \setcharacterstripping[1]
>>
>> \setupdirections[bidi=on,method=one]
>> \setupalign[r2l]
>>
>> \starttext
>> \tfb
>>
>> الْحَمْدُ
>>
>> \stoptext
>>
>
> i made a fix but as i'm on a very slow line i'm not sure when an update is
> on the garden
>
> Hans
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 5430 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2016-08-21 10:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-21 10:53 Mohammad Hossein Bateni [this message]
2016-08-21 13:41 ` Hans Hagen
2016-08-21 13:59 ` Wolfgang Schuster
2016-08-21 15:49   ` Mohammad Hossein Bateni
2016-08-21 16:06     ` Mohammad Hossein Bateni
2016-08-21 16:17       ` Wolfgang Schuster
2016-08-21 16:19         ` Mohammad Hossein Bateni
2016-08-21 18:01     ` Wolfgang Schuster
2016-08-21 20:59       ` Hans Hagen

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=CAMHZ1daRgE8+Muz+n_KSDVs_GT+8aUdBC_o0Vp0ABqQPE8zAhQ@mail.gmail.com \
    --to=bateni@gmail.com \
    --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).