From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91939 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: newotf definefontfeatures problem with script=hebr Date: Sun, 12 Jul 2015 13:02:53 -0400 Message-ID: <55A29DBD.4040002@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1414221112==" X-Trace: ger.gmane.org 1436720659 11357 80.91.229.3 (12 Jul 2015 17:04:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2015 17:04:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 12 19:04:06 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZEKfb-0000Ex-KN for gctc-ntg-context-518@m.gmane.org; Sun, 12 Jul 2015 19:04:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE3D41022E for ; Sun, 12 Jul 2015 19:04:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oPeKDqjhpIj3 for ; Sun, 12 Jul 2015 19:04:01 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 87FF010256 for ; Sun, 12 Jul 2015 19:03:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4017010201 for ; Sun, 12 Jul 2015 19:03:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lLUqCmgjpf0u for ; Sun, 12 Jul 2015 19:03:02 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 78480101E6 for ; Sun, 12 Jul 2015 19:03:02 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t6CH2xpA020968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 12 Jul 2015 19:03:00 +0200 Original-Received: from [192.168.201.10] (cpe-74-76-74-238.nycap.res.rr.com [74.76.74.238]) by mailbackend.panix.com (Postfix) with ESMTPSA id 8C18F135E2 for ; Sun, 12 Jul 2015 13:02:58 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07OPt30oI - 2981ec3c90fb - 20150712 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of context@rik.users.panix.com designates 166.84.1.89 as permitted sender) receiver=filter1-utr.mf.surf.net; client-ip=166.84.1.89; envelope-from=; helo=mailbackend.panix.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:91939 Archived-At: This is a multi-part message in MIME format. --===============1414221112== Content-Type: multipart/alternative; boundary="------------030007010607020805020601" This is a multi-part message in MIME format. --------------030007010607020805020601 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable The following code fails; however, it succeeds without newotf, and it=20 succeeds with newotf if the defined font feature (*hebrew) is removed=20 from the \definefont command. The characters that demonstrate the=20 problem are HEBREW LETTER LAMED combined with HEBREW POINT HOLAM,=20 followed by HEBREW LETTER ALEF (U05DC with combining U05B9 followed by=20 U05D0). I have not come across other combinations that cause the=20 problem, but I have not done an exhaustive search. \usemodule [newotf] \setupdirections [bidi=3Dglobal] \definefontfeature [hebrew] [default] [lang=3Dheb,ccmp=3Dyes,script=3D= hebr] \definefont [Hebrew] [sileot*hebrew] \starttext \startTEXpage This is okay:{\hfill\Hebrew =D7=9C=D7=90} This is okay:{\hfill{\Hebrew =D7=9C=D6=B9}} This fails:{\hfill{\Hebrew =D7=9C=D6=B9=D7=90}} \stopTEXpage \stoptext It reports: error: C:/ConTeXt/tex/texmf-context/tex/context/base/font-ots.lua:1586: attempt to index a number value tex error > tex error on line 13 in file C://Users/rik/Desktop/newotf-features.tex: ? \par \vss \pack_framed_do_bottom ...amedparameter \c!bottom \raggedbottomcommand \localendstrut \pack_framed_do_bottom \egroup \stopfittingpage ->\removeunwantedspaces \egroup \egroup \doif {\fittingpage... l.13 \stopTEXpage The same problem occurs in the same way with the following fonts, most=20 of which are shipped with Windows: Arial Regular Arial Bold Arial Narrow David Regular David Bold Ezra SIL Regular Ezra SIL SR Regular Keter YG Medium Levenim MT Regular Levenim MT Bold Taamey David CLM Tahoma Regular Tahoma Bold Times New Roman Regular Times New Roman Bold --------------030007010607020805020601 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable The following code fails; however, it succeeds without newotf, and it succeeds with newotf if the defined font feature (*hebrew) is removed from the \definefont command. The characters that demonstrate the problem are HEBREW LETTER LAMED combined with HEBREW POINT HOLAM, followed by HEBREW LETTER ALEF (U05DC with combining U05B9 followed by U05D0). I have not come across other combinations that cause the problem, but I have not done an exhaustive search.
\usemodule=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 [newotf]
\setupdirections=C2=A0=C2=A0 [bidi=3Dglobal]
\definefontfeature [hebrew] [default] [lang=3Dheb,ccmp=3Dyes,script=3Dhebr]

\definefont=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [Hebrew] [s= ileot*hebrew]
\starttext
=C2=A0 \startTEXpage
=C2=A0=C2=A0=C2=A0 This is okay:{\hfill\Hebrew =D7=9C=D7=90}

=C2=A0=C2=A0=C2=A0 This is okay:{\hfill{\Hebrew =D7=9C=D6=B9}}
=C2=A0=C2=A0=C2=A0 This fails:{\hfill{\Hebrew =D7=9C=D6=B9=D7=90}= }
=C2=A0 \stopTEXpage
\stoptext

It reports:
error: C:/ConTeXt/tex/texmf-context/tex/context/base/font-ots.lua:1586: attempt to index a number value

tex error=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > tex error on l= ine 13 in file C://Users/rik/Desktop/newotf-features.tex: ?

<inserted text> \par

<to be read again>
\vss
\pack_framed_do_bottom ...amedparameter \c!bottom
=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=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 \raggedbottomcommand
<to be read again> \localendstrut \pack_framed_do_bottom =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=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 \egroup
\stopfittingpage ->\removeunwantedspaces \egroup
=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=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = \egroup \doif {\fittingpage...
l.13=C2=A0=C2=A0 \stopTEXpage


The same problem occurs in the same way with the following fonts, most of which are shipped with Windows:
Arial Regular
Arial Bold
Arial Narrow
David Regular
David Bold
Ezra SIL Regular
Ezra SIL SR Regular
Keter YG Medium
Levenim MT Regular
Levenim MT Bold
Taamey David CLM
Tahoma Regular
Tahoma Bold
Times New Roman Regular
Times New Roman Bold

--------------030007010607020805020601-- --===============1414221112== 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= --===============1414221112==--