From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95690 Path: news.gmane.org!.POSTED!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: Error in loading font Samim Date: Sun, 7 Aug 2016 22:24:41 -0400 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0283742077624780131==" X-Trace: blaine.gmane.org 1470623129 21042 195.159.176.226 (8 Aug 2016 02:25:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 02:25:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 08 04:25:25 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 1bWaFk-00040k-Ke for gctc-ntg-context-518@m.gmane.org; Mon, 08 Aug 2016 04:25:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 23AE514768; Mon, 8 Aug 2016 04:24:57 +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 qUmhxgSDFjPc; Mon, 8 Aug 2016 04:24:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id ABCF61476E; Mon, 8 Aug 2016 04:24:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8908214768 for ; Mon, 8 Aug 2016 04:24:54 +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 WeUEllaJY-_Q for ; Mon, 8 Aug 2016 04:24:53 +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 879EB14748 for ; Mon, 8 Aug 2016 04:24:43 +0200 (CEST) Original-Received: by mail-oi0-f48.google.com with SMTP id f189so155892318oig.3 for ; Sun, 07 Aug 2016 19:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=rGz+qMZ9ifILY2F3oaGGxHevPvcFjglDEY/zy21Bzdc=; b=CwBjjS61aOKkCrritmATnXHZbDLPeI9KJCwubaV1ZcjXOe7Oo4m8KF0/Vu5/UyGN7g DMBxCPwPI4Rmx40R5YtuOGc2xBe1Ubgrv0bVIJXt9XjQzPZ3Wh+psLkGw/ckOOJFIzQM An5qgTzyu3OKt2g9VmLc5NgN8BptfHbl3Y7wyRDwasQmcOA/iQdVc+VlWF+XqvVdkJdy QN5FPhXnVbCyj2sRqI3POn3BbQPue5gUJOhrjUdJMV2d8ol1YM1eFPyVI4LxsAzPQPNU 4dCxxhbm6fxHCtJkXdW9be5+v7wfvzZxmysZs4VDNCStbl/EMp6V5QUSNQpx22r2wElb szog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=rGz+qMZ9ifILY2F3oaGGxHevPvcFjglDEY/zy21Bzdc=; b=E70w9plF19wsXx7RSa1PMRQQp7w5WU7E5Ptdm5sBptLkqcZwj+PGfED4fFd1yyrOQJ U0B/hI+KbK2Bg3VYvFRpdxYKcOIjEF2aYSKk4TPwauqg8KtfjL4Qomb/RYWyfgD4nz0R BZaKks2zSOzeEgl8fYe6iK/ofHKhxwK2+OoS/jY5s4LDZOAnP2s4ADEqSDV+/VllB3uw JXzSvkTxd9CGNFy4TYmWxgsORW8gXTY2A2XKF1fnk4plEBvebkOZA0b/g4xtOd4L1v8y vhmippWn/1njOaWJrwvXvMTiilN9gXTEtS4xMULufgUyMNAqkPL1Q5vWLmCcNXvN857U 1ysw== X-Gm-Message-State: AEkoousJiuGp/GEAp9cVF2zpBxcuj8EQrbCWd2zYeslOdkjhQexisdYMJD5S/pAhxiCYdILXC369BOb1o3E68g== X-Received: by 10.202.169.212 with SMTP id s203mr1376657oie.45.1470623081794; Sun, 07 Aug 2016 19:24:41 -0700 (PDT) Original-Received: by 10.157.45.77 with HTTP; Sun, 7 Aug 2016 19:24:41 -0700 (PDT) In-Reply-To: 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:95690 Archived-At: --===============0283742077624780131== Content-Type: multipart/alternative; boundary=001a113ce79e6390990539861e6e --001a113ce79e6390990539861e6e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Please ignore my last message. It seems to be working fine now. Probably a bad setup on my part. I will ping again if I run into the same issue again. On Sun, Aug 7, 2016 at 10:12 PM, Mohammad Hossein Bateni wrote: > Hello, > > I believe this worked fine in June's beta but now gives an error. > > > \starttext > \definedfont[Samim] > =D8=B3=D9=84=D8=A7=D9=85 > \stoptext > > > I got the font originally from here > , > but then removed the MATH table because it was causing an error at the ti= me > to get the attached version. > > Now the above code gives the following error: > > > ...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> > > > Could you advise me on how to get over this issue? As far as I know, the > font lacks Latin characters and is restricted to the Arabic/Farsi > characters. In a more complicated example, I used dejavusans as fallback > but the above MWE seemed fine, as far as I remember. > > Thanks, > MHB > > > > --001a113ce79e6390990539861e6e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Please ignore my last message.=C2=A0 It seems to be workin= g fine now.=C2=A0 Probably a bad setup on my part.=C2=A0 I will ping again = if I run into the same issue again.

On Sun, Aug 7, 2016 at 10:12 PM, Mohammad Hossein B= ateni <bateni@gmail.com> wrote:
Hello,
=
I believe this worked fine in June's beta but now gives = an error.


\starttext
\def= inedfont[Samim]
=D8=B3=D9=84=D8=A7=D9=85
\s= toptext


I got the font originally f= rom here, but then remove= d the MATH table because it was causing an error at the time to get the att= ached version.

Now the above code gives the follow= ing error:


...ntext/tex/texmf-context/tex/cont= ext/base/mkiv/l-lpeg.lua:290: bad argument #2 to '__div' (inva= lid replacement value)
stack traceback:
[C]: in function '__div&#= 39;
...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lu= a: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/conte= xt/base/mkiv/font-con.lua:1269: in function 'enhance'
...ex= t/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1291: in f= unction 'apply'
...ext/tex/texmf-context/tex/context/base/m= kiv/font-otl.lua:246: in function 'load'
...ext/tex/texmf-c= ontext/tex/context/base/mkiv/font-otl.lua:538: in function 'o= tftotfm'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ot= l.lua:566: in function <...ext/tex/texmf-context/tex/context/b= ase/mkiv/font-otl.lua:565>
(...tail calls...)
...ext/tex/texm= f-context/tex/context/base/mkiv/font-def.lua:304: in function = 9;loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font= -ctx.lua:492: in function 'loadfont'
...ext/tex/texmf-conte= xt/tex/context/base/mkiv/font-def.lua:418: in function 'read&= #39;
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.l= ua:1172: in function <...ext/tex/texmf-context/tex/context/base/mki= v/font-ctx.lua:1059>


Could you ad= vise me on how to get over this issue?=C2=A0 As far as I know, the font lac= ks Latin characters and is restricted to the Arabic/Farsi characters.=C2=A0= In a more complicated example, I used dejavusans as fallback but the above= MWE seemed fine, as far as I remember.

Thanks,
MHB




--001a113ce79e6390990539861e6e-- --===============0283742077624780131== 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= --===============0283742077624780131==--