From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96527 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.comp.tex.context Subject: Re: Changes in hyphenations with 2016-10-12 beta Date: Thu, 13 Oct 2016 21:00:32 +0200 Message-ID: <57ffd9ce.ce092e0a.c5251.e0cd@mx.google.com> References: <57ff42fc.559f190a.71455.6527@mx.google.com> <57ff5a4a.cf052e0a.a0daa.75c1@mx.google.com> <9eb420ba-1cd6-f0e2-3048-a6f906fe76bd@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4217440912866466902==" X-Trace: blaine.gmane.org 1476385290 15603 195.159.176.226 (13 Oct 2016 19:01:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2016 19:01:30 +0000 (UTC) To: Hans Hagen , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 13 21:01:25 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bulFZ-00010d-Vd for gctc-ntg-context-518@m.gmane.org; Thu, 13 Oct 2016 21:01:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C46191AD25; Thu, 13 Oct 2016 21:00:45 +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 UGsj1W4dg5nr; Thu, 13 Oct 2016 21:00:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0BBA71AD83; Thu, 13 Oct 2016 21:00:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8AF441AD7F for ; Thu, 13 Oct 2016 21:00:43 +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 dmFrGvv2CYOh for ; Thu, 13 Oct 2016 21:00:42 +0200 (CEST) Original-Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) (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 83BF71AD25 for ; Thu, 13 Oct 2016 21:00:32 +0200 (CEST) Original-Received: by mail-lf0-f45.google.com with SMTP id b75so149785053lfg.3 for ; Thu, 13 Oct 2016 12:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:mime-version:to:from:subject:date:importance:in-reply-to :references; bh=Rvm9d3ZNBC4BpqX9v9v6HhK2Bs4/h/ObU2ogb5bqFTU=; b=YjceMZxX9Y71RAYcIhN9uK6atNtYzO2HFE3Vi7np1VkUDQijfvAAJGW/fCs7PtDJFm KfRuAZ6KVyq6f2mokPEkhq4J+buG1tnjPlFO63QonvSj0hcXYTTz6RCGSAfWpXE5gyso rqBSog4CwX9ZrY9TYldpLoJgnhW7RtIK+SjuKdIWIUPXtYEcGeTHx5ILuCcueqeqynkQ RgXu8QFE5XassTxUZQLEySRpVLFTkDXFavJLMtrWE/kvM9+u9C4jVsmYZN7lIbeBa3Ff mg5snB4zH6VlYJwioaBYQ2BBPYb2i+lSxRSf03+qUpdwP5jJLB6BDMqXJVpUKNgvDEm4 7oUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance:in-reply-to:references; bh=Rvm9d3ZNBC4BpqX9v9v6HhK2Bs4/h/ObU2ogb5bqFTU=; b=S6U3wjIfALTw3CrstzAC83khrenYXTgUihI+NGdLNqtWoQCOQXpR0HHP1T8Sic+Edp eA9EAxQLK4JfnCkj+VVNiYveCDMnTm2L8ETv8BObeONhTWyZ/mbg+1dSj2m+S18y/652 fIcO6HWcdjqbWbI0ufgb6NU3bRb65efyxC+rDFaClJlmlznvwmi0/N1b6xNMbECXHLlC u1BCcVtppBg1RImVKgD4fhnnFglOAFOcTy2TtWz9JGA28+IgAdjs3ywJXT5jnUmt6omR FcxFYUb4BiFWU36AiyXbhGe3lQFm0IjKFkJVyxJx2nqlLbZJxl2T2IHs/n2vFpw8NWqB jh1A== X-Gm-Message-State: AA6/9RnerGf3MDYxyosKSKKjxP/XA7FERY+wgBYpol8y0RBHra7GOCXSTIhug6FKXLc2Mg== X-Received: by 10.25.221.20 with SMTP id u20mr11952907lfg.1.1476385231411; Thu, 13 Oct 2016 12:00:31 -0700 (PDT) Original-Received: from ?IPv6:2a01:cb00:6ae:7f00:b1cd:9d74:f511:106b? (2a01cb0006ae7f00b1cd9d74f511106b.ipv6.abo.wanadoo.fr. [2a01:cb00:6ae:7f00:b1cd:9d74:f511:106b]) by smtp.gmail.com with ESMTPSA id 197sm4222694ljj.0.2016.10.13.12.00.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Oct 2016 12:00:30 -0700 (PDT) Importance: normal X-Priority: 3 In-Reply-To: <9eb420ba-1cd6-f0e2-3048-a6f906fe76bd@wxs.nl> 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:96527 Archived-At: --===============4217440912866466902== Content-Type: multipart/alternative; boundary="_A95184CD-DD54-4BD3-814D-A92FDFB8748D_" --_A95184CD-DD54-4BD3-814D-A92FDFB8748D_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Great, thanks a lot Hans. Not a big issue (some glues are bit more stretche= d than before here and there, but not to the point to have underfulls), but= curious to understand. Best regards Joseph De=C2=A0: Hans Hagen Envoy=C3=A9 le=C2=A0:jeudi 13 octobre 2016 20:51 =C3=80=C2=A0: mailing list for ConTeXt users Objet=C2=A0:Re: [NTG-context] Changes in hyphenations with 2016-10-12 beta On 10/13/2016 7:37 PM, Pablo Rodriguez wrote: > On 10/13/2016 11:56 AM, josephcanedo@gmail.com wrote: >> Apparently this difference comes from this change in font-ots.lua near >> line 603. If I edit the file to put back the discretionary_code >> argument, the output is same with new beta. > > Hi Joseph, > > French hyphenation is unknown to me, but I have a different approach. When messing with disc nodes one can argue if some of then need to=20 become discretionary nodes or keep their other type. This change keeps=20 it more original (of course one can argue about it) which has some=20 consequence for the number of passes that tex makes (pass without=20 hyphenation, pass with hyphenation, pass with hyphenation and stretch) i plan to makes things a bit more configureable in the alternative=20 hyphenator one can also argue that the first pass can be omitted (i.e. always go=20 for the best solution) >> MWE (well as close to MWE I could write, requires EBGaramond unfortunate= ly). >> >> \language[fr] > > The document main language is invoked in ConTeXt with: > > \mainlanguage[fr] > >> \setupalign[hanging, lesshyphenation, hz] > > I suspect that if you ask for less hyphenation, you get it. > > See my sample: > > \mainlanguage[fr] > \setupalign[lesshyphenation] > \starttext > \hyphenatedword{T advint qu'il y eut famine au pays/ oultre la > premiere famine/ qui fut au temps de Abraham. Et Izahak s'en alla > vers Abimelech Roy des Philisthins en Gerar} > \stoptext > > \hyphenatedword is your friend here. I get different results if I > comment the second line (to get normal hyphenation). > > I wonder whether this might be causing the issue you=E2=80=99re experienc= ing. > > Just in case it helps, > > > Pablo > --=20 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________ --_A95184CD-DD54-4BD3-814D-A92FDFB8748D_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Great, thanks a lot Hans. Not a big is= sue (some glues are bit more stretched than before here and there, but not = to the point to have underfulls), but curious to understand.

Best regards

 

Joseph

 

 

On 10/13/2016 7:37 PM, Pablo Rodriguez wrote:

> On 10/13/2016 11:56 AM, josephcanedo@gmail.com wrote:

>> Apparently this difference comes from this change = in font-ots.lua near

>> line 603. If I edit t= he file to put back the discretionary_code

>>= argument, the output is same with new beta.

> 

> Hi Joseph,

> 

> French hyphenation = is unknown to me, but I have a different approach.

=  

When messing with disc nodes one = can argue if some of then need to

become discretio= nary nodes or keep their other type. This change keeps

it more original (of course one can=C2=A0 argue about it) which has so= me

consequence for the number of passes that tex m= akes (pass without

hyphenation, pass with hyphenat= ion, pass with hyphenation and stretch)

 =

i plan to makes things a bit more configurea= ble in the alternative

hyphenator

 

one can also argue that t= he first pass can be omitted (i.e. always go

for t= he best solution)

 

>> MWE (well as close to MWE I could write, requires EBGaram= ond unfortunately).

>> 

>> \language[fr]

>=  

> The document main language is inv= oked in ConTeXt with:

> 

>=C2=A0=C2=A0=C2=A0=C2=A0 \mainlanguage[fr]

> 

>> \setupa= lign[hanging, lesshyphenation, hz]

> <= /o:p>

> I suspect that if you ask for less hyphe= nation, you get it.

> 

> See my sample:

> <= /o:p>

>=C2=A0=C2=A0=C2=A0=C2=A0 \mainlanguage[fr= ]

>=C2=A0=C2=A0=C2=A0=C2=A0 \setupalign[lesshyph= enation]

>=C2=A0=C2=A0=C2=A0=C2=A0 \starttext

>=C2=A0=C2=A0=C2=A0=C2=A0 \hyphenatedword{T advint= qu'il y eut famine au pays/ oultre la

>=C2=A0= =C2=A0=C2=A0=C2=A0 premiere famine/ qui fut au temps de Abraham. Et Izahak = s'en alla

>=C2=A0=C2=A0=C2=A0=C2=A0 vers Abimele= ch Roy des Philisthins en Gerar}

>=C2=A0=C2=A0= =C2=A0=C2=A0 \stoptext

> 

> \hyphenatedword is your friend here. I get different= results if I

> comment the second line (to get = normal hyphenation).

> 

> I wonder whether this might be causing the issue you= =E2=80=99re experiencing.

> 

=

> Just in case it helps,

&g= t; 

> 

> Pablo

> 

=

 

 <= /o:p>

--

 =

--------------------------------------------------= ---------------

=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Hans = Hagen | PRAGMA ADE

=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 Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.pragm= a-pod.nl

------------------------------------------= -----------------------

___________________________= ________________________________________________________

If your question is of interest to others as well, please add an entr= y to the Wiki!

 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context

webpage=C2=A0 : http://www.pragma-ade.nl = / http://context.aanhet.net

archive=C2=A0 : http://= foundry.supelec.fr/projects/contextrev/

wiki=C2=A0= =C2=A0=C2=A0=C2=A0 : http://contextgarden.net

_____= ___________________________________________________________________________= ___

 

= --_A95184CD-DD54-4BD3-814D-A92FDFB8748D_-- --===============4217440912866466902== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwOi8vZm91bmRyeS5zdXBl bGVjLmZyL3Byb2plY3RzL2NvbnRleHRyZXYvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRnYXJk ZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4217440912866466902==--