From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92676 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Regression with \doboundtext in \writetolist Date: Sun, 11 Oct 2015 18:56:22 +0200 Message-ID: <561A94B6.9090006@gmail.com> References: <5619D5C3.40400@rik.users.panix.com> <561A35E9.80104@wxs.nl> <561A8D63.8030504@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="===============1371039608==" X-Trace: ger.gmane.org 1444582648 5517 80.91.229.3 (11 Oct 2015 16:57:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Oct 2015 16:57:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 11 18:57:17 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 1ZlJvv-0000eZ-0o for gctc-ntg-context-518@m.gmane.org; Sun, 11 Oct 2015 18:57:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2BBBA101E8 for ; Sun, 11 Oct 2015 18:57:14 +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 7vE-AL0nM-5F for ; Sun, 11 Oct 2015 18:57:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 42F8310231 for ; Sun, 11 Oct 2015 18:56:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9BF70101FA for ; Sun, 11 Oct 2015 18:56:31 +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 VCTFlim_u-W8 for ; Sun, 11 Oct 2015 18:56:30 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 3B93D101E8 for ; Sun, 11 Oct 2015 18:56:30 +0200 (CEST) Original-Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) by filter2-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9BGuPa8029453 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sun, 11 Oct 2015 18:56:29 +0200 Original-Received: by wicgb1 with SMTP id gb1so123459098wic.1 for ; Sun, 11 Oct 2015 09:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=xQBHv+Lfsvi0DNfNfKgzpb9NNn1vIwJTSZ3e7as5rGA=; b=cHCWiKc8DzJX/9w17/56cT5MtphBNT/KYsIEH5bceCo9e41xaM/yl0YanINexqr6b1 2dfw+e9XtT9nkpaqrMvKY7uDHBtIKlkzK/PuXhgsIO1+hZS48RLJR6TMjDTHjJvPrzEz cCwJHFe+x7/S3eyKR2hDj8bd2IAujcu7iT3Ivdkz1jiNQYdekqPxVvcxWeF7zTeH1eFh JZBBbTXkM09lvR7QLb491Zl5xoW3upkiziudXhD3yqO7DQwe84nz7sI+CH/pk5b8pjhr P9Jq2WbkTaje/AGqHjTbPdu10aIp8A5s3pT+lXjNz+Belum5c5qctP/jo15l4UMFZ8lc yo0g== X-Received: by 10.180.187.244 with SMTP id fv20mr10500685wic.23.1444582585276; Sun, 11 Oct 2015 09:56:25 -0700 (PDT) Original-Received: from keima.localdomain (x2f2ddbe.dyn.telefonica.de. [2.242.221.190]) by smtp.googlemail.com with ESMTPSA id p18sm7447225wik.19.2015.10.11.09.56.24 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Oct 2015 09:56:24 -0700 (PDT) User-Agent: Postbox 4.0.5 (Macintosh/20150923) In-Reply-To: <561A8D63.8030504@rik.users.panix.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22f; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TPrQUpWI - 25a5847ea2df - 20151011 (trained as not-spam) Received-SPF: pass (filter2-til.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::22f as permitted sender) receiver=filter2-til.mf.surf.net; client-ip=2a00:1450:400c:c05::22f; envelope-from=; helo=mail-wi0-x22f.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:92676 Archived-At: This is a multi-part message in MIME format. --===============1371039608== Content-Type: multipart/alternative; boundary="------------060509000507090109080005" This is a multi-part message in MIME format. --------------060509000507090109080005 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Rik Kabel > 11. Oktober 2015 um 18:25 > 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 t= he >>> 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 >>> =20 >>> {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\qu= ad}=20 >>> >>> {\doboundtext{#String}{\STWidth}{=E2=80=A6}}}}} >>> \stoptexdefinition >>> >>> \starttext >>> \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx=20 >>> xxx >>> xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} >>> \OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx x= xx >>> 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 xx= x >>> 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\\qu= ad >>> }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing >>> text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx=20 >>> xxx >>> 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=20 > the list is placed. My error=E2=80=94thank 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. Is \limitatetext a option for you because unlike \doboundtext the=20 command is unexpandable? \starttext \doboundtext {Thus, I came to the conclusion that the designer of a new=20 system ...}{.5\textwidth}{...} \limitatetext{Thus, I came to the conclusion that the designer of a new=20 system ...}{.5\textwidth}{...} \stoptext Wolfgang --------------060509000507090109080005 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
11= .=20 Oktober 2015 um 18:25
=20 =20
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.

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

=C2=A0=C2=A0=C2=A0 \starttexdefinition OLister #ID#String
=C2=A0=C2=A0=C2=A0 =20 {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad}
=C2=A0=C2=A0=C2=A0 {\doboundtext{#String}{\STWidth}{=E2=80=A6}}}}= }
=C2=A0=C2=A0=C2=A0 \stoptexdefinition

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

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

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ["second"]=3D"\\hbox {= \\simplealignedbox {\\IDWidth
=C2=A0=C2=A0=C2=A0 }{left}{2\\quad }{\\doboundtext {Yet another l= ist testing text xxx
=C2=A0=C2=A0=C2=A0 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xx= x xxx xxx xxx xxx
=C2=A0=C2=A0=C2=A0 xxx}{\\STWidth }{=E2=80=A6}}}",

but with more recent versions, the corresponding entry is:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ["second"]=3D"\\hbox {= \\simplealignedbox {12.6pt}{left}{2\\quad
=C2=A0=C2=A0=C2=A0 }{\\hbox {\\setbox \\scratchbox \\hbox {Yet an= other list testing
=C2=A0=C2=A0=C2=A0 text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx x= xx xxx xxx xxx xxx xxx
=C2=A0=C2=A0=C2=A0 xxx xxx}\\scratchdimen \\dimexpr \\textwidth -12.6pt+1cm\\relax
=C2=A0=C2=A0=C2=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=E2=80=94thank you for the correction. Bu= t 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.
Is \limitatetext a option for you because unlike \doboundtext the=20 command is unexpandable?

\starttext

\doboundtext {Thus, I came to the conclusion that the designer of a new=20 system ...}{.5\textwidth}{...}

\limitatetext{Thus, I came to the conclusion that the designer of a new=20 system ...}{.5\textwidth}{...}

\stoptext

Wolfgang
--------------060509000507090109080005-- --===============1371039608== 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= --===============1371039608==--