From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95521 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: emergency stretch not taken in account in some cases Date: Wed, 20 Jul 2016 22:46:23 +0200 Message-ID: <578FE31F.4050505@gmail.com> References: , <578D53BC.60807@gmail.com> <0bd1b6d687ce472788e10bad6e631694@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9074905444299385569==" X-Trace: ger.gmane.org 1469047643 28895 80.91.229.3 (20 Jul 2016 20:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 20:47:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 20 22:47:12 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bPyOa-0008Iu-NE for gctc-ntg-context-518@m.gmane.org; Wed, 20 Jul 2016 22:47:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8BC72127F7; Wed, 20 Jul 2016 22:46:40 +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 Yd3wc_ddPBib; Wed, 20 Jul 2016 22:46:39 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0A1A512836; Wed, 20 Jul 2016 22:46:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 695A91282A for ; Wed, 20 Jul 2016 22:46:38 +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 AJQGhAXB8eYF for ; Wed, 20 Jul 2016 22:46:36 +0200 (CEST) Original-Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5532A127F7 for ; Wed, 20 Jul 2016 22:46:25 +0200 (CEST) Original-Received: by mail-wm0-f47.google.com with SMTP id o80so85419253wme.1 for ; Wed, 20 Jul 2016 13:46: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; bh=gzmT91I3FBjKm+ssCCaD+BPKB5+tHBYWHh0DrmWqKJM=; b=C2/Qk8eE2NKfDi1QKF/LMYKpxCEpUCjYhKa3R5jKZ+q6YkfiK0/XO+ekNy0tY62C18 YOgKJKlQry3sC0CDDmQr7mvOB0iVJZkAIDUs1Wq98NexVdRJOpVT4KcpS42w6xps3nTE YCxG6C9wa7NrpuM1NAIdJVf2eq6Y0n5YMhWDszX7/8dhyK37H28lcAs3jJ/8OJvxTmKs nYK6duuaoo6T17Z1bNBNsLWhV+T9srsxMjjWPvTxgeJmXufecs5u84j2Qz+vNipYcfDs zmL0C/dQr3HOrSmRODSIx7oMPscGZxzDwWDxqeJfXKJr+DQ62XvQ1ak+bHJLAnMFvx2U En1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=gzmT91I3FBjKm+ssCCaD+BPKB5+tHBYWHh0DrmWqKJM=; b=ceG85g5V/Oat88ymzHX2PdDTmxsxTsw5V+bX7zB5mXJivcu/PQQUXblXghrHYHQiaI y7jvp5X7zJiooEghCQStrh11La377H8PSB8jFo0aZBcJdnbJrtlHAj4oliHTs1rL11Rh 78Zd+QrP38UlzfHxtZw/q2ef/H2F+aGIAb7CJdPOAKjXl99zCjuCvYQn0mRtt5M3TWaL Gs18hRgEpYXaHM8+sqVWmAJWEClsu12H5H5uhOVqfdmiAppy36aLZtTGzcUukhjrMvKD utWc9cte1sTQ7fmy9zapug5pIU71ylvxn5A0g96oL1en6+hVf1m+o28Mqd4vWM+HPNkW NfAQ== X-Gm-Message-State: ALyK8tJRvnK1WXZYRW0SDjL1fwaFJ8bpqcEHgXX03rl3a2+62+mPZGsMuKAKSvdJiExOsw== X-Received: by 10.28.222.8 with SMTP id v8mr14075101wmg.55.1469047585524; Wed, 20 Jul 2016 13:46:25 -0700 (PDT) Original-Received: from keima.localdomain (x2f29d2f.dyn.telefonica.de. [2.242.157.47]) by smtp.gmail.com with ESMTPSA id q139sm33170286wmb.18.2016.07.20.13.46.24 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jul 2016 13:46:24 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <0bd1b6d687ce472788e10bad6e631694@gmail.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:95521 Archived-At: This is a multi-part message in MIME format. --===============9074905444299385569== Content-Type: multipart/alternative; boundary="------------050404030201010806000503" This is a multi-part message in MIME format. --------------050404030201010806000503 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > josephcanedo@gmail.com > 20. Juli 2016 um 20:48 > I think I could figure out the reason of this problem. Actually=20 > emergency stretch is broken in all cases it seems. In luatex source=20 > code I see: > > source/texk/web2c/luatexdir/tex/commands.w: =20 > primitive_tex("emergencystretch", > assign_dimen_cmd, *dimen_base *+ emergency_stretch_code, dimen_base); > > source/texk/web2c/luatexdir/tex/equivalents.h:#define=20 > emergency_stretch_par > *glue_par*(emergency_stretch_code) > > source/texk/web2c/luatexdir/tex/equivalents.h:# define glue_par(A) =20 > equiv(*glue_base*+(A)) > > I could be wrong but to me it seems we assign some value to emergency=20 > stretch =E2=80=9Cvariable=E2=80=9D setting using =E2=80=9Cemergencystre= tch=E2=80=9D command and we use=20 > another via emergency_stretch_par. > > Unfortunately I am not able to build luatex locally on Windows=20 > Platform, only sync code from SVN repository. This produces three different paragraphs. \setupwhitespace[line] \starttext \input tufte \startalignment[stretch] \input tufte \stopalignment \startalignment[extremestretch] \input tufte \stopalignment \stoptext Wolfgang --------------050404030201010806000503 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
20= .=20 Juli 2016 um 20:48
I think I could figure out the reason of this problem. Actually emergency stretch is broken in all cases it seems. In luatex source code I see:

source/texk/web2c/luatexdir/tex/commands.w:=C2=A0=C2= =A0=C2=A0 primitive_tex("emergencystretch",
=C2=A0assign_dimen_cmd, dim= en_base + emergency_stretch_code, dimen_base);

source/texk/web2c/luatexdir/tex/equivalents.h:#define emergency_stretch_par
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= glue_par(emergency_stretch_code)

source/texk/web2c/luatexdir/tex/equivalents.h:#=C2=A0 define glue_par(A)=C2=A0 equiv(glue_base+(A))

I could be wrong but to me it seems we assign some value to emergency=20 stretch=C2=A0=E2=80=9Cvariable=E2=80=9D=C2=A0setting using=C2=A0=E2=80=9C= emergencystretch=E2=80=9D=C2=A0command and we use=20 another via emergency_stretch_par.

Unfortunately I am not able to build luatex locally on Windows Platform, only sync=20 code from SVN repository.
This produces three different paragraphs.

\setupwhitespace[line]

\starttext

\input tufte

\startalignment[stretch]
\input tufte
\stopalignment

\startalignment[extremestretch]
\input tufte
\stopalignment

\stoptext

Wolfgang
--------------050404030201010806000503-- --===============9074905444299385569== 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= --===============9074905444299385569==--