From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91732 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Line wrapping inconsistency with tolerance, alignment and framed Date: Thu, 18 Jun 2015 17:04:33 +0200 Message-ID: <5582DE01.3030406@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0941403318==" X-Trace: ger.gmane.org 1434639975 2938 80.91.229.3 (18 Jun 2015 15:06:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2015 15:06:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 18 17:06:00 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 1Z5bO9-0002eH-Na for gctc-ntg-context-518@m.gmane.org; Thu, 18 Jun 2015 17:05:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E89791021A for ; Thu, 18 Jun 2015 17:05:56 +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 0wzb4YvOHi7m for ; Thu, 18 Jun 2015 17:05:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8DA2810231 for ; Thu, 18 Jun 2015 17:05:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 72A55101F9 for ; Thu, 18 Jun 2015 17:05:13 +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 GFj_Tn4-LXXt for ; Thu, 18 Jun 2015 17:05:12 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 9A1E4101E6 for ; Thu, 18 Jun 2015 17:05:07 +0200 (CEST) Original-Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t5IF4Zst003549 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 18 Jun 2015 17:04:45 +0200 Original-Received: by wiga1 with SMTP id a1so174280035wig.0 for ; Thu, 18 Jun 2015 08:04:35 -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=34lP4MuzScKhP7gUJSjsfoUL1xaE1Rbi+qYRCM75pKY=; b=OI5GvN5gInslvC//VRW9fYjpOBv5ox6bymm1lQLQiXtHDkzjywqBpT+UxL7BH9JSse y9h3uytUCPMixFM0bhsQ+8KfYKHQUEOVwfZnqhltI8foykOcvEggfLFGt6H4dQDCBJFB xvgbsa2ANqq/stlUEBe/XNxRm8MzAonf9ZUY3NqmgnZaxd9j4Vf9dH1vOME3x5ZkJRtJ Pn/n8F+9I1qpBdzNbPWnO8PnnEDifBk/CxSm9Aw16tERga1m6OhgdM9zOh6y/vadDOw9 NsFsq8t/FyM31fVgc+lANKyazmnaJ752BfIfXGP8uTL2K+jLCmLZYwwI2ctzcSimSjPn 1kFw== X-Received: by 10.195.13.113 with SMTP id ex17mr16274693wjd.17.1434639875216; Thu, 18 Jun 2015 08:04:35 -0700 (PDT) Original-Received: from keima-2.localdomain (x2f28945.dyn.telefonica.de. [2.242.137.69]) by mx.google.com with ESMTPSA id ma15sm31830200wic.20.2015.06.18.08.04.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jun 2015 08:04:34 -0700 (PDT) User-Agent: Postbox 4.0.1 (Macintosh/20150514) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::233; 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: 03OFP4ECc - 3645e5ae8696 - 20150618 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::233 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::233; envelope-from=; helo=mail-wi0-x233.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:91732 Archived-At: This is a multi-part message in MIME format. --===============0941403318== Content-Type: multipart/alternative; boundary="------------010408040707030305000804" This is a multi-part message in MIME format. --------------010408040707030305000804 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Christoph Reller > 18. Juni 2015 16:25 > Hi, > > I have an (admittedly carefully crafted) example, see below. My questio= n: > Why is the line wrapping different for this case within a framed and=20 > outside of a framed? > How can I control the amount of space left on a line before breaking=20 > the line within and without a framed consistently? > > Any insight is welcome. > > Christoph > > MWE: > > \setuptolerance[horizontal,stretch,verytolerant] > \defineframed[myframe][align=3Dflushleft,frame=3Doff,offset=3D0pt] > > \starttext > > \def\super{supercalifragilisticexpialidoc} > \startalignment[flushleft] > \unhyphenated{\super\ + \super\ + \super\ + \super} > \stopalignment > > \myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}} > > \stoptext The frame resets the tolerance settings and you have to set the values=20 again for it. \defineframed[myframe][align=3D{flushleft,stretch,verytolerant},offset= =3D0pt] BTW: You can also disable hyphentation with the =E2=80=9Cnothyphenated=E2= =80=9D keyword=20 for \setupalign (and the align key). \starttext \startalignment[flushleft,stretch,verytolerant,nothyphenated] supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc \stopalignment \startframed[align=3D{flushleft,stretch,verytolerant,nothyphenated}] supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc \stopframed \stoptext Wolfgang --------------010408040707030305000804 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
= =20 18. Juni 2015=20 16:25
Hi,

I have an (admittedly carefully=20 crafted) example, see below. My question:
Why is the line=20 wrapping different for this case within a framed and outside of a=20 framed?
How can I control the amount of space left on a line=20 before breaking the line within and without a framed consistently?
<= div>
Any insight is welcome.

Christoph

MWE:

\setuptolerance[horizontal,str= etch,verytolerant]
\defineframed[myframe][align=3Dflushleft,fra= me=3Doff,offset=3D0pt]

\starttext

=
\def\super{supercalifragilisticexpialidoc}
\startali= gnment[flushleft]
=C2=A0 \unhyphenated{\super\ + \super\ + \super\ + \super}
\stopalign= ment

\myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}}

\stoptext
<= /div>
The frame resets the tolerance settings and you have to set the values=20 again for it.

=C2=A0=20 \defineframed[myframe][align=3D{flushleft,stretch,verytolerant},offset=3D= 0pt]


BTW: You can also disable hyphentation with the =E2=80=9Cnothyphenated=E2= =80=9D keyword=20 for \setupalign (and the align key).

\starttext

\startalignment[flushleft,stretch,verytolerant,nothyphenated]
=C2=A0 supercalifragilisticexpialidoc + supercalifragilisticexpialidoc +<= br> =C2=A0 supercalifragilisticexpialidoc + supercalifragilisticexpialidoc \stopalignment

\startframed[align=3D{flushleft,stretch,verytolerant,nothyphenated}]
=C2=A0 supercalifragilisticexpialidoc + supercalifragilisticexpialidoc +<= br> =C2=A0 supercalifragilisticexpialidoc + supercalifragilisticexpialidoc \stopframed

\stoptext

Wolfgang
--------------010408040707030305000804-- --===============0941403318== 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= --===============0941403318==--