From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104641 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Canedo Newsgroups: gmane.comp.tex.context Subject: Issue with \hbox attrSomeAttr=Val (LTMX only) Date: Fri, 19 Jul 2019 22:57:40 +0200 Message-ID: <5d322ec1.1c69fb81.73dc2.7c71@mx.google.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2041100893547698622==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152762"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 19 22:58:01 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoZx3-000dYK-EE for gctc-ntg-context-518@m.gmane.org; Fri, 19 Jul 2019 22:58:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DCC1F152AE0; Fri, 19 Jul 2019 22:57:41 +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 tVbHWPfyqh8m; Fri, 19 Jul 2019 22:57:41 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0510B152AE1; Fri, 19 Jul 2019 22:57:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A832F152ADF for ; Fri, 19 Jul 2019 22:57:39 +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 eynJhRyNHmdP for ; Fri, 19 Jul 2019 22:57:38 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.53; helo=mail-wr1-f53.google.com; envelope-from=josephcanedo@gmail.com; receiver= Original-Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E8CCA152ADB for ; Fri, 19 Jul 2019 22:57:38 +0200 (CEST) Original-Received: by mail-wr1-f53.google.com with SMTP id p13so33427553wru.10 for ; Fri, 19 Jul 2019 13:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance; bh=2N9Y02OBoiJr3joRPSpc+1GA+qW89Fl9XD1crrxNyXY=; b=hU8wp2XS1/fjfTG7XSGIBSA9pU6/ZzZMtfFdD+s59k1k9JQthuLICepvDs3FBb/E6k hZ3dygp8WYZFhp+RsVh+RynFcq5Wtc3H05kIJIHWBDzFbxlN8O2RrLWdsoqbOds0PANg xpYzynEm7kekaXFy6q9xhCh2NcdMADNwYrFMw/4RiCqVth6Io7gaqRPhB4r1yapmSjoi zlcxkFsxXGC8Jx10EQSz5t6efw5CZTIAgAXyzeNS6a9Y6KZlG5jt5NiQ+w/zNzcIgHy6 SoFtMZ70yt/VKCpL8cxFfscTG8EXv9Dfps99J1Ddtm2wR+afLwtQT5leBeAEbE8wmPEb 8kCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=2N9Y02OBoiJr3joRPSpc+1GA+qW89Fl9XD1crrxNyXY=; b=PXDHPys6SfA9aWGS5NjkSt5I+1OXYUev2IIVwtwc5zBBFgrJBPmk1LLdKcvYg6ZjA2 vyuOKWGzBBYLysahcm9UBFJz9gVy7ri8QE6Ou+MX9kTwgQ6LxYrhvYGacps9VbarYOnn TYZWW/QF5WS2i6GXbqpEShZayydPCqbmIhtz2qhhbSjgNBN4F8HciguYEYg3NcSYt/Ed fU6Y/UyVaViIFn7B5gA9UApqi9Y13kcTRPnJhNhMbVrdRJ7eJtA+eqDWTRHVqqdxztvd Hky57c5eqqIiJ210n5eBGwMLL8Gax1r8/nOCh9ZZDiZyqpSCFGYv2hkPnSyDBxXh/sEM 0X7w== X-Gm-Message-State: APjAAAVzgmwDkecxxrgzybgUmz94igDeDatPooMdMIjY6111iZoqgwbE RW0sq1sdZB4Q8um24R7LlAJyDfkFSeA= X-Google-Smtp-Source: APXvYqx1WQCdjeb+ucog0ZSvF8An6FH6tuMcRKGTQ6tOQOtVTROm+ij8PGqIKp79mdvKJp6TdC5kxA== X-Received: by 2002:adf:edd1:: with SMTP id v17mr57361286wro.348.1563569858420; Fri, 19 Jul 2019 13:57:38 -0700 (PDT) Original-Received: from ?IPv6:2a01:cb00:68e:300:7df8:3c8c:5b90:1da6? (2a01cb00068e03007df83c8c5b901da6.ipv6.abo.wanadoo.fr. [2a01:cb00:68e:300:7df8:3c8c:5b90:1da6]) by smtp.gmail.com with ESMTPSA id x20sm64096242wrg.10.2019.07.19.13.57.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jul 2019 13:57:37 -0700 (PDT) Importance: normal X-Priority: 3 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:104641 Archived-At: --===============2041100893547698622== Content-Type: multipart/alternative; boundary="_131DE8F1-38B0-496C-BEF5-CBA04F7D98DD_" --_131DE8F1-38B0-496C-BEF5-CBA04F7D98DD_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Dear list=20 With LMTX the Following MWE does not seem find attribute value (it does wit= h luatex 1.10) \defineattribute[MarginNode][public] \newbox\MyBox \startluacode local nuts =3D nodes.nuts local margin_node_attr =3D attributes.public('MarginNode') function test_attribute(box_id) local box =3D nuts.takebox(box_id) local margin_node =3D nuts.getattr(box, margin_node_attr) context('Expected 555=3D' .. (margin_node or '(nil)')) end \stopluacode \starttext Test. \the\MarginNodeattribute \setbox\MyBox\hbox attr\the\MarginNodeattribute=3D555{Test} \ctxlua{test_attribute(\the\MyBox)} \stoptext Thanks --_131DE8F1-38B0-496C-BEF5-CBA04F7D98DD_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Dear list

 

With LMTX the Following MWE does not= seem find attribute value (it does with luatex 1.10)

 

\defineattribute[MarginNode][p= ublic]

\newbox\MyBox

&= nbsp;

\startluacode

l= ocal nuts=C2=A0=C2=A0 =3D nodes.nuts

local margin_n= ode_attr =3D attributes.public('MarginNode')

&= nbsp;

function test_attribute(box_id)

=C2=A0=C2=A0 local box =3D nuts.takebox(box_id)

=C2=A0=C2=A0 local margin_node =3D nuts.getattr(box, margin_n= ode_attr)

=C2=A0=C2=A0 context('Expected 555=3D' ..= (margin_node or '(nil)'))

end

\stopluacode

 

\starttext

 

Test.

 

\the\MarginNodeattribute

 

\setbox\MyBox\hbox attr\the\MarginNodeattribute=3D55= 5{Test}

 

\= ctxlua{test_attribute(\the\MyBox)}

 

\stoptext

 

Thanks

&= nbsp;

= --_131DE8F1-38B0-496C-BEF5-CBA04F7D98DD_-- --===============2041100893547698622== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2041100893547698622==--