From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95877 Path: news.gmane.org!.POSTED!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Problem loading font KFGQPC Uthman Taha Naskh font Date: Sun, 21 Aug 2016 06:53:10 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1391728548128553391==" X-Trace: blaine.gmane.org 1471776828 30124 195.159.176.226 (21 Aug 2016 10:53:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 21 Aug 2016 10:53:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 21 12:53:42 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbQNp-0007SF-H0 for gctc-ntg-context-518@m.gmane.org; Sun, 21 Aug 2016 12:53:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E68715338; Sun, 21 Aug 2016 12:53:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VBhgd-7DoKY5; Sun, 21 Aug 2016 12:53:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id B16D61533C; Sun, 21 Aug 2016 12:53:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6D10315339 for ; Sun, 21 Aug 2016 12:53:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CgKxtpgQuWaU for ; Sun, 21 Aug 2016 12:53:23 +0200 (CEST) Original-Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BDF8B15338 for ; Sun, 21 Aug 2016 12:53:12 +0200 (CEST) Original-Received: by mail-oi0-f48.google.com with SMTP id l203so117455188oib.1 for ; Sun, 21 Aug 2016 03:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Ue5rjCLb5uHRHiHN+RB/BClm7RjQzBuatVZw4EjQ04s=; b=WRyKpJob+Idn1sspTM9BA8A63E1XCsT/YCCx105t89+eb2UJ+Mg2rk7GuIWrI0egvx 8Wj8AdsMhjITXsvqD+JQFYR406rLuypSUfWsLR1k9zX+uGJugEqOZi76z8wru78DvDPw XFQPHEYNAC4t4IL6CpdZ7r6LAYIWZHZxC37RbxUqa6ludlJrmHAdKKjsq+SS+zaZm/iv 8GN54T/4/ftnRsSbIyQd8K6X9IyautZISA9X1wjdJ4TtjMWVm1V8mvKhwebZbL++pxRm sOObd/x7YjybWpnpCXC6Ft5s/0ZoGC4ACjHGD0u7cpkMxpO841d4LpzHa/jjQqeCjb8T 4U1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Ue5rjCLb5uHRHiHN+RB/BClm7RjQzBuatVZw4EjQ04s=; b=WlKqjaG6vZgt/vE35d2NvD5ViIGMh6IRzqM0LFbCQBrnmBQ+DPHgOK8VlQj3gpJvx3 2NWUs1YrBhYUI8PXTwn+lD1zXpB5/Q8tQIfPqI60kSFxDSnNoI+lzD4ZO/35ny36myPj IH7cVfctUGbQjBM3/KNUsRWw7Luphgl7ZPrI23+1ALoeutTVgeoj2pB15Cfy9QQ/O5pc n89m2IRzhBABw39ffZqqFfDljjZ7uXlU6cCVh7FZUm6yGJeNmGNGgsMKemfANty/kqYl NtbHdbJwvdyBQcM5FtAXreyfePglSou8OFmdogRRp/B7TZ1RM8I2A33WLb50FJIS8El9 OpeQ== X-Gm-Message-State: AEkoouuxL1UX+pFn/EIXyGv/qq0OdX00dcOwx1xAUkNqCRqyfLxKbsRM9YxibaM6y+xMhOZYIV0qeKIIsFnFgQ== X-Received: by 10.202.186.138 with SMTP id k132mr1550946oif.194.1471776791092; Sun, 21 Aug 2016 03:53:11 -0700 (PDT) Original-Received: by 10.157.45.77 with HTTP; Sun, 21 Aug 2016 03:53:10 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95877 Archived-At: --===============1391728548128553391== Content-Type: multipart/alternative; boundary=001a113cd1f0d26222053a92bcbe --001a113cd1f0d26222053a92bcbe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 . close source > 3 > 4 > /Users/bateni/context/tex/texmf-modules/tex/context/third/simplefonts/t-sim= plefonts.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=3Darabic,range=3Dara= bic] 5 \setcharacterstripping[1] 6 \setupinterlinespace[line=3D7ex] 7 8 \setupdirections[bidi=3Don,method=3Done] 9 \setupalign[r2l] 10 11 12 \starttext 13 14 \tfb Thanks, ~MHB On Sat, Apr 30, 2016 at 1:06 PM, Hans Hagen 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=3Darabic,range=3Darabic] >> \setcharacterstripping[1] >> >> \setupdirections[bidi=3Don,method=3Done] >> \setupalign[r2l] >> >> \starttext >> \tfb >> >> =D8=A7=D9=84=D9=92=D8=AD=D9=8E=D9=85=D9=92=D8=AF=D9=8F >> >> \stoptext >> > > i made a fix but as i'm on a very slow line i'm not sure when an update i= s > 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 > ____________________________________________________________ > _______________________ > --001a113cd1f0d26222053a92bcbe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

The code snippet at the end used= to work a few months ago when I reported a rendering bug.=C2=A0 But now th= e font does not load and I see the following error. =C2=A0(It's not an = issue with simplefonts because \definedfont[KFGQPCUthmanTahaNaskh*arabic] d= oes not work either. =C2=A0the font is published=C2=A0here= .


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

lua error =C2=A0 =C2=A0 =C2=A0 > lua error on line 4 in file /pr= ivate/tmp/test-q.tex:

...ntext/tex/texmf-context/tex/context/base/mk= iv/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 'sp= litter'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:= 159: in function 'addfeature'
...ext/tex/texmf-context/tex/conte= xt/base/mkiv/font-otc.lua:730: in function 'enhancer'
...ext/tex= /texmf-context/tex/context/base/mkiv/font-con.lua:1269: in function 'en= hance'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1= 291: in function 'apply'
...ext/tex/texmf-context/tex/context/ba= se/mkiv/font-otl.lua:246: in function 'load'
...ext/tex/texmf-co= ntext/tex/context/base/mkiv/font-otl.lua:538: in function 'otftotfm'= ;
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:566: in fu= nction <...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:565&= gt;
(...tail calls...)
...ext/tex/texmf-context/tex/context/base/mkiv= /font-def.lua:304: in function 'loadfont'
...ext/tex/texmf-conte= xt/tex/context/base/mkiv/font-ctx.lua:492: in function 'loadfont'...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:418: in funct= ion 'read'
...ext/tex/texmf-context/tex/context/base/mkiv/font-c= tx.lua:1172: in function <...ext/tex/texmf-context/tex/context/base/mkiv= /font-ctx.lua:1059>
(...tail calls...)

=C2=A01 =C2=A0 =C2=A0 \= setuppapersize[A5]
=C2=A02 =C2=A0 =C2=A0
=C2=A03 =C2=A0 =C2=A0 \usem= odule[simplefonts]
=C2=A04 >> =C2=A0\setmainfont[KFGQPC Uthman Tah= a Naskh][features=3Darabic,range=3Darabic]
=C2=A05 =C2=A0 =C2=A0 \setcha= racterstripping[1]
=C2=A06 =C2=A0 =C2=A0 \setupinterlinespace[line=3D7ex= ]
=C2=A07 =C2=A0 =C2=A0
=C2=A08 =C2=A0 =C2=A0 \setupdirections[bidi= =3Don,method=3Done]
=C2=A09 =C2=A0 =C2=A0 \setupalign[r2l]
10 =C2=A0 = =C2=A0
11 =C2=A0 =C2=A0
12 =C2=A0 =C2=A0 \starttext
13 =C2=A0 = =C2=A0
14 =C2=A0 =C2=A0 \tfb


Thanks,
~MHB
On Sat, Apr 30, 2= 016 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=3Darabic,range=3Darabi= c]
\setcharacterstripping[1]

\setupdirections[bidi=3Don,method=3Done]
\setupalign[r2l]

\starttext
\tfb

=D8=A7=D9=84=D9=92=D8=AD=D9=8E=D9=85=D9=92=D8=AF=D9=8F

\stoptext

i made a fix but as i'm on a very slow line i'm not sure when an up= date is on the garden

Hans


-----------------------------------------------------------------=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.com | www.prag= ma-pod.nl
-----------------------------------------------------------------=
_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/project= s/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a113cd1f0d26222053a92bcbe-- --===============1391728548128553391== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1391728548128553391==--