From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92675 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Regression with \doboundtext in \writetolist Date: Sun, 11 Oct 2015 12:25:07 -0400 Message-ID: <561A8D63.8030504@rik.users.panix.com> References: <5619D5C3.40400@rik.users.panix.com> <561A35E9.80104@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0706611379==" X-Trace: ger.gmane.org 1444580779 5539 80.91.229.3 (11 Oct 2015 16:26:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Oct 2015 16:26:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 11 18:26: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 1ZlJRk-0004IU-NF for gctc-ntg-context-518@m.gmane.org; Sun, 11 Oct 2015 18:26:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C7F1E101FA for ; Sun, 11 Oct 2015 18:26: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 4pt3GoR2LKye for ; Sun, 11 Oct 2015 18:26:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9C51910231 for ; Sun, 11 Oct 2015 18:25:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2B95101FA for ; Sun, 11 Oct 2015 18:25:22 +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 UIFDgOphSyRG for ; Sun, 11 Oct 2015 18:25:21 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 790DA101E8 for ; Sun, 11 Oct 2015 18:25:21 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter2-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9BGPIum023075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 11 Oct 2015 18:25:20 +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 1484F165D7 for ; Sun, 11 Oct 2015 12:25:17 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <561A35E9.80104@wxs.nl> 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: 0QPrQpjgI - f5588a3de5f9 - 20151011 (trained as not-spam) Received-SPF: pass (filter2-ams.mf.surf.net: domain of context@rik.users.panix.com designates 166.84.1.89 as permitted sender) receiver=filter2-ams.mf.surf.net; client-ip=166.84.1.89; envelope-from=; helo=mailbackend.panix.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:92675 Archived-At: This is a multi-part message in MIME format. --===============0706611379== Content-Type: multipart/alternative; boundary="------------060205060301040707060804" This is a multi-part message in MIME format. --------------060205060301040707060804 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-10-11 06:11, Hans Hagen wrote: > On 10/11/2015 5:21 AM, Rik Kabel wrote: >> The following example works with older versions of ConTeXt, such as th= e >> version from 20150325 in my repository. It fails with TL15 and later, >> including the current standalone beta. >> >> % macros=3Dmkvi >> \setwidthof {99}\to\IDWidth\relax >> \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} >> \definelist[OList] >> \setuplist >> [OList][criterium=3Dall,alternative=3Dc,pagecommand=3D\gobbleoneargume= nt] >> >> \starttexdefinition OLister #ID#String >> {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\qua= d} >> {\doboundtext{#String}{\STWidth}{=85}}}}} >> \stoptexdefinition >> >> \starttext >> \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx x= xx >> xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} >> \OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx xx= x >> xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} >> \OLister3{A list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx >> xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} >> \OLister4{Different list testing text xxx xxx xxx xxx xxx xxx xxx >> xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} >> \subject{List half width} >> \startcolumns[n=3D2] >> \placelist[OList] >> \stopcolumns >> \stoptext >> >> With the 20150325 ConTeXt, there are .tuc file entries like: >> >> ["second"]=3D"\\hbox {\\simplealignedbox {\\IDWidth >> }{left}{2\\quad }{\\doboundtext {Yet another list testing text xxx >> xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx >> xxx}{\\STWidth }{=85}}}", >> >> but with more recent versions, the corresponding entry is: >> >> ["second"]=3D"\\hbox {\\simplealignedbox {12.6pt}{left}{2\\qua= d >> }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing >> text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx x= xx >> xxx xxx}\\scratchdimen \\dimexpr \\textwidth -12.6pt+1cm\\relax >> \\box \\scratchbox }}}", >> > > \unexpanded\def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} > Yes, expansion needs to be delayed to get the current dimension when the=20 list is placed. My error=97thank you for the correction. But the=20 regression is not resolved. The .tuc file now contains: ["second"]=3D"\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\STWidth \\relax \\box \\scratchbox }}}", Still no mention of dobounded text is carried into the list. --=20 Rik --------------060205060301040707060804 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
On 2015-10-11 06:11, Hans Hagen wrote:=
On 10/11/2015 5:21 AM, Rik Kabel wrote:
The following example works with older versions of ConTeXt, such as the
version from 20150325 in my repository. It fails with TL15 and later,
including the current standalone beta.

=A0=A0=A0 % macros=3Dmkvi
=A0=A0=A0 \setwidthof {99}\to\IDWidth\relax
=A0=A0=A0 \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm}
=A0=A0=A0 \definelist[OList]
=A0=A0=A0 \setuplist
=A0=A0=A0 [OList][criterium=3Dall,alternative=3Dc,pagecommand=3D\gobbleonea= rgument]

=A0=A0=A0 \starttexdefinition OLister #ID#String
=A0=A0=A0 {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#I= D\quad}
=A0=A0=A0 {\doboundtext{#String}{\STWidth}{=85}}}}}
=A0=A0=A0 \stoptexdefinition

=A0=A0=A0 \starttext
=A0=A0=A0 \OLister1{Some list testing text xxx xxx xxx xxx xxx xx= x xxx xxx xxx
=A0=A0=A0 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}
=A0=A0=A0 \OLister2{Yet another list testing text xxx xxx xxx xxx= xxx xxx xxx
=A0=A0=A0 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}
=A0=A0=A0 \OLister3{A list testing text xxx xxx xxx xxx xxx xxx x= xx xxx xxx
=A0=A0=A0 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}
=A0=A0=A0 \OLister4{Different list testing text xxx xxx xxx xxx x= xx xxx xxx
=A0=A0=A0 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}
=A0=A0=A0 \subject{List half width}
=A0=A0=A0 \startcolumns[n=3D2]
=A0=A0=A0 \placelist[OList]
=A0=A0=A0 \stopcolumns
=A0=A0=A0 \stoptext

With the 20150325 ConTeXt, there are .tuc file entries like:

=A0=A0=A0=A0=A0=A0=A0 ["second"]=3D"\\hbox {\\simplealignedbox {\= \IDWidth
=A0=A0=A0 }{left}{2\\quad }{\\doboundtext {Yet another list testi= ng text xxx
=A0=A0=A0 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx= xxx xxx
=A0=A0=A0 xxx}{\\STWidth }{=85}}}",

but with more recent versions, the corresponding entry is:

=A0=A0=A0=A0=A0=A0=A0 ["second"]=3D"\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad
=A0=A0=A0 }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another lis= t testing
=A0=A0=A0 text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xx= x xxx xxx xxx
=A0=A0=A0 xxx xxx}\\scratchdimen \\dimexpr \\textwidth -12.6pt+1cm\\relax
=A0=A0=A0 \\box \\scratchbox }}}",


\unexpanded\def\STWidth{\dimexpr\textwidth-\IDWidth+1cm}

Yes, expansion needs to be delayed to get the current dimension when the list is placed. My error=97thank you for the correction. But the regression is not resolved. The .tuc file now contains:
["second"]=3D"\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\STWidth \\relax \\box \\scratchbox }}}",
Still no mention of dobounded text is carried into the list.
--
Rik
--------------060205060301040707060804-- --===============0706611379== 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= --===============0706611379==--