From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86930 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 16:57:09 +0200 Message-ID: <20140406145705.GA3482@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="===============1635775608==" X-Trace: ger.gmane.org 1396796264 10393 80.91.229.3 (6 Apr 2014 14:57:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2014 14:57:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 06 16:57:39 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 1WWoVt-0001Ou-6q for gctc-ntg-context-518@m.gmane.org; Sun, 06 Apr 2014 16:57:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C84D41023C for ; Sun, 6 Apr 2014 16:57:36 +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 ieSS6DaYYBZc for ; Sun, 6 Apr 2014 16:57:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3440C10223 for ; Sun, 6 Apr 2014 16:57:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28095101E7 for ; Sun, 6 Apr 2014 16:57:28 +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 FsdjsttMTtbd for ; Sun, 6 Apr 2014 16:57:25 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 524EA101E1 for ; Sun, 6 Apr 2014 16:57:15 +0200 (CEST) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s36EvDm2002133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 6 Apr 2014 16:57:14 +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 s36EvC7s001331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 6 Apr 2014 16:57:12 +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 s36EvBJp002445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 6 Apr 2014 16:57:11 +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 s36EvAvP012310 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 6 Apr 2014 16:57:11 +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: 0VLKCVdcG - 098fa2511131 - 20140406 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:86930 Archived-At: --===============1635775608== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pAwQNkOnpTn9IO2O" Content-Disposition: inline --pAwQNkOnpTn9IO2O 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.) >=20 > 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). With experimental revision 4974 the bug is gone. Thanks! Philipp --pAwQNkOnpTn9IO2O Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCgAGBQJTQWtFAAoJEI7yfcKNwM1+3skH/3TzH+ybCgks1e1XtI/OZhxE ffVxbe29LJ7p36xBn/IQRbtNwIWU3GG3S2azrm5DRbMxWDfACXOHbZBaCzqNiDn2 3W3ZIl5PMqR6Pzw8HIjWKPlsvu9GnyYIXAbqemIG/svi2q7zIM0eGu1RUzDiCcm4 eJm1R2n2glp8GS53ZIMql1fyUBYIpTl6oKqZuqGBTfPHVL3RnoNAE47LyeefpLJl VV79vik5jS7oOt8JzvRWb/NG67087HnrUtSVqZ1aNkQv4tNIub5OaV3VNuP9QxWS yOZK6zcr44GtsXaf3G1hXY4yJBBevzz0jd6ltirhAgePIduZKlKH/BTtHwG0S2U= =HuW9 -----END PGP SIGNATURE----- --pAwQNkOnpTn9IO2O-- --===============1635775608== 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 ___________________________________________________________________________________ --===============1635775608==--