From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86925 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: [luatex-plain] disappearing math-on node Date: Sun, 6 Apr 2014 10:38:22 +0200 Message-ID: <20140406083822.GA23026@acheron> References: <533DD914.2040009@wxs.nl> <20140405131233.GA16830@acheron> <53408759.9060302@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1256393716==" X-Trace: ger.gmane.org 1396773535 24730 80.91.229.3 (6 Apr 2014 08:38:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2014 08:38:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 06 10:38:51 2014 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 1WWibJ-0000Re-K2 for gctc-ntg-context-518@m.gmane.org; Sun, 06 Apr 2014 10:38:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F230C10220 for ; Sun, 6 Apr 2014 10:38:48 +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 tCzuOvodh7Dw for ; Sun, 6 Apr 2014 10:38:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B064910221 for ; Sun, 6 Apr 2014 10:38:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5E1B101E7 for ; Sun, 6 Apr 2014 10:38:39 +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 6WbulpCiGtoj for ; Sun, 6 Apr 2014 10:38:37 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id CCEE7101E1 for ; Sun, 6 Apr 2014 10:38:27 +0200 (CEST) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s368vDYM026087 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 6 Apr 2014 10:57:13 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s368cPVQ009925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 6 Apr 2014 10:38:25 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s368cOp2015055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 6 Apr 2014 10:38:24 +0200 Original-Received: from localhost (stgt-4d02cddc.pool.mediaWays.net [77.2.205.220]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id s368cNeM001599 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 6 Apr 2014 10:38:24 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <53408759.9060302@wxs.nl> X-Operating-System: Linux acheron 3.13.8-1-ARCH User-Agent: Mutt/1.5.23 (2014-03-12) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: =?UTF-8?Q?ip=3D129.206.210.211; _country=3DDE; _region=3DBaden-W=C3=BCrttemberg; _city=3DHeidelberg; _latitude=3D49.4167; _longitude=3D8.7000; _http://maps.google.com/maps=3Fq=3D49.4167,8.7000&z=3D6?= X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LKwVdfJ - 771c0092e777 - 20140406 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86925 Archived-At: --===============1256393716== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > On 4/5/2014 3:12 PM, Philipp Gesang wrote: > > =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > > > >> On 4/3/2014 6:29 PM, Dohyun Kim wrote: > >>> This is a bug report based on the issue discussed at > >>> https://github.com/lualatex/luaotfload/issues/212 > >>> > >>> \font\tenrm{file:lmroman10-regular.otf:mode=3Dnode;script=3Dlatn}\ten= rm > >>> \setbox0\vbox{% > >>> x\penalty-10000 > >>> $a$x$a$ > >>> } > >>> \unvbox0 > >>> \setbox0\lastbox > >>> \unhbox0 > >>> \end > >>> > >>> The plain tex code shown above fails with a lua error: > >>> luatex-fonts-merged.lua:9616: attempt to index local 'current' (a nil= value) > >>> > >>> My guess is: as math-on (math-off too) is a "discardable" item after a > >>> linebreak, the first math-on node has gone away. So the > >>> math-on/math-off pair has become broken, by which the behavior of > >>> "node.end_of_math" is confused. > >> > >> mtxrun --script plain test.tex > >> > >> runs ok here so i need an example that fails with context or luatex-pl= ain > > > > It fails with the luatex-plain format from the minimals as of > > yesterday and Luatex 4972: > > > > error: .../context/tex/texmf-context/tex/context/base/font-ota.lua= :144: attempt to index local 'current' (a nil value) > > . > > \bye ^^@-\par > > \vfill \supereject \end > > l.17 \bye > > > > Though the issue arises only in node mode. > > > >> normally the font callback is called on a hlist and there are always > >> paired math nodes > >> > >> (what is line 9616 in the current beta?) > > > > Line 9626 with yesterday=E2=80=99s code. Attached are patches for > > font-ota.lua and luatex-fonts-otn.lua that guard all invocations > > of end_of_math() with checks for the subtype. >=20 > I think that the removed math node is a bad thing so that will change in= =20 > a next luatex release (i tested a patch but it will not go in the tl=20 > release). (Just like the math node at the end of a line it will have=20 > zero surround in order to make the backend happy.) I=E2=80=99d be interested in testing the patch as well. > In order to avoid the 'current' issue I'll use an overload of=20 > end_of_math in the generic code. >=20 > The real solution is to make the built-in end_of_math more strict=20 > (trivial patch ready and tested so that can end up in the next luatex). >=20 > In the context code i won't intercept it because end_of_math will do=20 > that at some point. Good news. Though I=E2=80=99m a little worried about the fontloader in Context and the generic format diverging too much. Thanks for looking into this, Philipp --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCgAGBQJTQRJ+AAoJEI7yfcKNwM1+uNMIAOCdlT6SJ1qTzAmiLQWwyNgh n1GR6pP3JZOHNwca4gH2+xvucqxQFrKi73zHM7Eo7Frucz1PZkILmbzHphkmZwP1 /knXUWDlbKXl9CfuLHWqkRo+zrtPKrrPTkIDjrrBM+dMsxhMJJ3/uJTg12fXDlk5 wZuKym5z6BVEu4VNqoTM5cwup9Rp0VJWRICGdILIt52Gx1sg3dV6RWPaveKNEcXT dn4fQ2hFwrbfMmDS5x3HsQghHfAo5agGlE12PYfbisB39aRQwhBbCqpFRFY7Tlms JQxdakL8Aii+bk8dVE2gzAjOsHLAk/VvQn/onYiRxfzFJhtSPkz4QrsgGm94Wz0= =YtQF -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- --===============1256393716== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1256393716==--