From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114950 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ben Moon via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: blockligatures removing characters Date: Fri, 13 May 2022 14:49:57 +0100 Message-ID: <59d16edb-267a-4061-8d4a-12fa9be6663c@www.fastmail.com> References: <55ab932e-2923-425a-a2ae-cab821fe218b@www.fastmail.com> <6bb8cb01-9551-c4a2-5d94-d61197003b3e@xs4all.nl> <20f1fc67-8e2e-43fb-92e7-7d9e06bfbdbc@www.fastmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2019326060784027534==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Cc: Ben Moon To: "Context Mailing List" Original-X-From: ntg-context-bounces@ntg.nl Fri May 13 15:51:18 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npVhN-0007z4-ME for gctc-ntg-context-518@m.gmane-mx.org; Fri, 13 May 2022 15:51:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9C8933608E0; Fri, 13 May 2022 15:50:25 +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 akdL6FT0yui1; Fri, 13 May 2022 15:50:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 11E053608D7; Fri, 13 May 2022 15:50:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 390953608D4 for ; Fri, 13 May 2022 15:50:20 +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 3ZVfd6aPI_VW for ; Fri, 13 May 2022 15:50:18 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=66.111.4.26; helo=out2-smtp.messagingengine.com; envelope-from=ben@themoons.uk; receiver= Original-Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B3AD23608D2 for ; Fri, 13 May 2022 15:50:18 +0200 (CEST) Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id EEC8A5C02CF for ; Fri, 13 May 2022 09:50:17 -0400 (EDT) Original-Received: from imap46 ([10.202.2.96]) by compute5.internal (MEProxy); Fri, 13 May 2022 09:50:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themoons.uk; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1652449817; x=1652536217; bh=MXIBErn9+z kLfc1phD9OQgv3xyT65Wqa5KcF8XowCq0=; b=oMrZd3PXPr1A2KEVjAJKlJljgF hvnTIDuGPPHg7Qnd2qwun9AaxFA4tBhq6AJ+SBOlAgwYJ7qn7azEZ9EBuKthqKDc 2Q9gJ25/MDd8aDNvdgZoEuH0Fa0q0blP9ntncfQ+qydIsODF+isquTxEesQN+5MI 12HGrk6LoNcNssdJ7kJvR+/knFMNvGOeyKfKf2pnnBZbqWIYjIdNEgFnftkcc8T/ TspSD5F3wjUyiK01IHGmpAZyNafgpZODPWR3TEYIKU4ILq7h1lypv4COdsOhDo5B cli+f9RuITUTXt2dCKXKIcsVXsIvbrCU7NVmXt1fwU4oJFXE/gJrsTuSasWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1652449817; x= 1652536217; bh=MXIBErn9+zkLfc1phD9OQgv3xyT65Wqa5KcF8XowCq0=; b=z 6urRKHJ5g50gnVGczPkZVi7/0M1voMKoFck/KED3HHpRm77BH8AJi+RRIVBHxp3f h3hbBr8C4U8EjQ2pE4vrkfgJW2cDq4Q1sep6rsczLSMD8P0zrItrsb+IzhMUkUsG UgYiW3kX90b9sY/bq9Li8pHzP4XjhPdXKnUK/mbflqPyDpBoK2e5GBxf4XnFM7n1 ohd9BcbNi2k/qAPnY8/6Pzi2u4oulbjoOZMwICAsGF41mrdUrJPMExlb1T9ivozF TwJHQDSRUcp+Q3p8Flr2FFJNqTu2t/vh9cIDrt8ZGllAusmQDRnbwyow3hkiGlJT paH6R8+2/Zu5MIXOfGHGg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeelgdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreertdenucfhrhhomhepfdeuvghnucfoohhonhdfuceosggvnhesthhhvghmohhonhhs rdhukheqnecuggftrfgrthhtvghrnhepfeduueefiefgkedvffeuvefghefhteekgfduje ffheeuhfeiteegieetfeehgfeknecuffhomhgrihhnpehprhgrghhmrgdqrgguvgdrnhhl pdhprhgrghhmrgdqphhougdrnhhlpdhnthhgrdhnlhdprggrnhhhvghtrdhnvghtpdgsih htsghutghkvghtrdhorhhgpdgtohhnthgvgihtghgrrhguvghnrdhnvghtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsggvnhesthhhvghmoh honhhsrdhukh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id B0D802A2006B; Fri, 13 May 2022 09:50:17 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <20f1fc67-8e2e-43fb-92e7-7d9e06bfbdbc@www.fastmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:114950 Archived-At: --===============2019326060784027534== Content-Type: multipart/alternative; boundary=c231c02f67f74c4e8b817d5d564ca56f --c231c02f67f74c4e8b817d5d564ca56f Content-Type: text/plain I've just update and blockligatures=yes is working again; thanks very much Hans. Ben On Fri, 13 May 2022, at 14:29, Ben Moon via ntg-context wrote: > Thanks Hans, > > I tried to modify your example for preventing the capital-Th ligature but this doesn't seem to work. The 'fi' ligature is prevented, but 'Th' still appears as a ligature. This occurs with the original lowercase version too. Have I missed something? > > ``` > \startluacode > local demo = { > name = "demo", > options = { > { > patterns = { > fio = "f|io", > }, > words = [[ fioot fiots ]], > }, > { > patterns = { > fio = "T|h", > }, > words = [[ This That ]], > }, > }, > } > table.save("oeps-fixes.llg",demo) > \stopluacode > > \setuplanguage[en][goodies={oeps-fixes.llg}] > > \setupbodyfont[ebgaramond] > > \starttext > fiets fiots fiats fioot This That > \stoptext > ``` > Ben > > On Mon, 9 May 2022, at 14:03, Hans Hagen via ntg-context wrote: >> On 5/9/2022 9:56 AM, Denis Maier via ntg-context wrote: >> > Happens here as well, already on ConTeXt ver: 2022.03.12 17:56 LMTX. >> > >> > By the way, this even happens without special fonts: >> > >> > \blockligatures[Th] >> > >> > \definefontfeature[default:blocklig][default][liga=yes,blockligatures=yes] >> > >> > \setupbodyfont[myfont] >> > >> > \starttext >> > >> > \definedfont[Serif*default:blocklig] >> > >> > The This These are missing the `h' >> > >> > \stoptext >> I'll fix it but it's not the way to do it in lmtx where we have >> >> \startluacode >> local demo = { >> name = "demo", >> options = { >> { >> patterns = { >> fio = "f|io", >> }, >> words = [[ fioot fiots ]], >> }, >> { >> patterns = { >> fio = "t|h", >> }, >> words = [[ this that ]], >> }, >> }, >> } >> table.save("oeps-fixes.llg",demo) >> \stopluacode >> >> \setuplanguage[en][goodies={oeps-fixes.llg}] >> >> \setupbodyfont[ebgaramond] >> >> \starttext >> fiets fiots fiats fioot this that >> \stoptext >> >> I just added (no upload) this >> >> \startluacode >> local demo = { >> name = "demo", >> options = { >> { >> substitutions = { >> th = "t|h", >> Th = "T|h", >> st = "s|t", >> St = "S|t", >> fi = "f|i", >> }, >> }, >> }, >> } >> table.save("oeps-fixes.llg",demo) >> \stopluacode >> >> \setuplanguage[en][goodies={oeps-fixes.llg}] >> >> \setupbodyfont[ebgaramond] >> >> \starttext >> The This These fiets and thisthis thisfiets >> \stoptext >> >> >> >> ----------------------------------------------------------------- >> 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 the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___________________________________________________________________________________ >> > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > --c231c02f67f74c4e8b817d5d564ca56f Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I've just = update and blockligatures=3Dyes is working again; thanks very much Hans.=
Ben


On Fri, 13 Ma= y 2022, at 14:29, Ben Moon via ntg-context wrote:
Thanks Hans,

I tried to modify your example for preventing the capital-Th li= gature but this doesn't seem to work. The 'fi' ligature is prevented, bu= t 'Th' still appears as a ligature. This occurs with the original lowerc= ase version too. Have I missed something?

`= ``
\startluacode
     lo= cal demo =3D {
       &= nbsp; name    =3D "demo",
   = ;      options =3D {
  =            {
=
           &= nbsp;     patterns =3D {
  &= nbsp;           &= nbsp;      fio  =3D "f|io",
=             =      },
     =             words= =3D [[ fioot fiots ]],
     &nbs= p;       },
  &nbs= p;          {
            = ;     patterns =3D {
   = ;            = ;      fio  =3D "T|h",
 = ;            = ;    },
      = ;           words =3D = [[ This That ]],
       = ;      },
    = ;     },
     }
     table.save("oeps-fixes.llg",demo)
\stopluacode

\setuplanguage[en= ][goodies=3D{oeps-fixes.llg}]

\setupbodyfon= t[ebgaramond]

\starttext
&nbs= p;    fiets fiots fiats fioot This That
\st= optext
```
Ben

= On Mon, 9 May 2022, at 14:03, Hans Hagen via ntg-context wrote:
On 5/9/2022 9:56= AM, Denis Maier via ntg-context wrote:
> Happens here = as well, already on  ConTeXt  ver: 2022.03.12 17:56 LMTX.
<= /div>

> By the way, this even happens wi= thout special fonts:

> \blockl= igatures[Th]

> \definefontfeat= ure[default:blocklig][default][liga=3Dyes,blockligatures=3Dyes]

> \setupbodyfont[myfont]

> \starttext

> \definedfont[Serif*default:blocklig]
>&nb= sp;
>      The This These are missi= ng the `h'

> \stoptext
I'll fix it but it's not the way to do it in lmtx where we have

\startluacode
  &nbs= p;  local demo =3D {
     &n= bsp;   name    =3D "demo",
 =         options =3D {
&= nbsp;            = {
         &n= bsp;       patterns =3D {
&n= bsp;           &n= bsp;        fio  =3D "f|io",
=
          &= nbsp;      },
   &= nbsp;           &= nbsp; words =3D [[ fioot fiots ]],
    = ;         },
 = ;            {
          =        patterns =3D {
 =             =         fio  =3D "t|h",
           =       },
    =             = words =3D [[ this that ]],
     =         },
  =        },
   =   }
     table.save("oeps-fixes.l= lg",demo)
\stopluacode

\setup= language[en][goodies=3D{oeps-fixes.llg}]

\s= etupbodyfont[ebgaramond]

\starttext
     fiets fiots fiats fioot this that
\stoptext

I just added (no upload) = this

\startluacode
 &nbs= p;   local demo =3D {
    &n= bsp;    name    =3D "demo",
=          options =3D {
=
           &= nbsp; {
        &n= bsp;        substitutions =3D {
          &nb= sp;          th =3D "t|h",<= br>
         &nbs= p;           Th =3D "T= |h",
         = ;            st =3D= "s|t",
        &n= bsp;            S= t =3D "S|t",
       &nb= sp;           &nb= sp; fi =3D "f|i",
      &nbs= p;          },
           &nbs= p; },
         },<= br>
     }
   = ;  table.save("oeps-fixes.llg",demo)
\stopluacode
=

\setuplanguage[en][goodies=3D{oeps-fixes.llg}]=

\setupbodyfont[ebgaramond]
<= br>
\starttext
     The This= These fiets and thisthis thisfiets
\stoptext



-------------------------= ----------------------------------------
   = ;            = ;            = ;            = ;    Hans Hagen | PRAGMA ADE
  &n= bsp;            R= idderstraat 27 | 8061 GH Hasselt | The Netherlands
 &= nbsp;      tel: 038 477 53 69 | www.pragma-ade.nlwww.pragma-pod.nl
---------------= --------------------------------------------------
_______= ________________________________________________________________________= ____
If your question is of interest to others as well, pl= ease add an entry to the Wiki!

wiki     : http://contextgarden.net
_________= ________________________________________________________________________= __


____________= _______________________________________________________________________<= br>
If your question is of interest to others as well, please = add an entry to the Wiki!

maillist : <= a href=3D"mailto:ntg-context@ntg.nl">ntg-context@ntg.nl / http://www.ntg.nl/= mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nlhttp://context.aanhet.net
wiki     : http://contextgarden.net
______________= _____________________________________________________________________


--c231c02f67f74c4e8b817d5d564ca56f-- --===============2019326060784027534== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2019326060784027534==--