From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92673 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Regression with \doboundtext in \writetolist Date: Sat, 10 Oct 2015 23:21:39 -0400 Message-ID: <5619D5C3.40400@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="===============0201937728==" X-Trace: ger.gmane.org 1444533774 423 80.91.229.3 (11 Oct 2015 03:22:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Oct 2015 03:22:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 11 05:22:41 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 1Zl7Dd-0003Ij-2u for gctc-ntg-context-518@m.gmane.org; Sun, 11 Oct 2015 05:22:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8EF21021C for ; Sun, 11 Oct 2015 05:22: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 wOofldwzSmhY for ; Sun, 11 Oct 2015 05:22:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5FE121022F for ; Sun, 11 Oct 2015 05:22:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5A36A101F6 for ; Sun, 11 Oct 2015 05:21:58 +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 m5lBrlxuf_mb for ; Sun, 11 Oct 2015 05:21:57 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id EE582101E8 for ; Sun, 11 Oct 2015 05:21:56 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter5-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9B3LnbG030962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 11 Oct 2015 05:21:55 +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 768D6179A2 for ; Sat, 10 Oct 2015 23:21:48 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 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: 0WPrDlOxN - a09cd843bc6c - 20151011 (trained as not-spam) Received-SPF: pass (filter5-til.mf.surf.net: domain of context@rik.users.panix.com designates 166.84.1.89 as permitted sender) receiver=filter5-til.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 194.171.167.221 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:92673 Archived-At: This is a multi-part message in MIME format. --===============0201937728== Content-Type: multipart/alternative; boundary="------------010703070806080105060501" This is a multi-part message in MIME format. --------------010703070806080105060501 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable The following example works with older versions of ConTeXt, such as the=20 version from 20150325 in my repository. It fails with TL15 and later,=20 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\gobbleoneargum= ent] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\qu= ad} {\doboundtext{#String}{\STWidth}{=E2=80=A6}}}}} \stoptexdefinition \starttext \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx xxx 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 }{=E2=80=A6}}}", but with more recent versions, the corresponding entry is: ["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 \\dimexpr \\textwidth -12.6pt+1cm\\relax \\box \\scratchbox }}}", --=20 Rik --------------010703070806080105060501 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.
% macros=3Dmkvi
\setwidthof {99}\to\IDWidth\relax
\def\STWidth{\dimexpr\textwidth-\IDWidth+1cm}
\definelist[OList]
\setuplist [OList][criterium=3Dall,alternative=3Dc,pagecommand=3D\gobbleonea= rgument]

\starttexdefinition OLister #ID#String
=C2=A0=C2=A0=C2=A0 {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#I= D\quad}
=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 {\doboundtext{#String}{\STWidth}{=E2=80=A6}}}}}
\stoptexdefinition

\starttext
\OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}
\OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx xxx 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:=
=C2=A0=C2=A0 ["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 }{=E2=80=A6}}}",
but with more recent versions, the corresponding entry is: <= tt>
=C2=A0=C2=A0 ["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 \\dimexpr \\textwidth -12.6pt+1cm\\relax \\box \\scratchbox }}}",
--
Rik
--------------010703070806080105060501-- --===============0201937728== 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= --===============0201937728==--