From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114949 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:29:59 +0100 Message-ID: <20f1fc67-8e2e-43fb-92e7-7d9e06bfbdbc@www.fastmail.com> References: <55ab932e-2923-425a-a2ae-cab821fe218b@www.fastmail.com> <6bb8cb01-9551-c4a2-5d94-d61197003b3e@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1305285596218095103==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6024"; 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:31:17 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 1npVO0-0001ND-1c for gctc-ntg-context-518@m.gmane-mx.org; Fri, 13 May 2022 15:31:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CF1FB3608CA; Fri, 13 May 2022 15:30:27 +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 h8mx9bdC5tpX; Fri, 13 May 2022 15:30:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 012B63608D0; Fri, 13 May 2022 15:30:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8C9F53608CF for ; Fri, 13 May 2022 15:30:23 +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 b3Mh4RiPIg6A for ; Fri, 13 May 2022 15:30:21 +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 6FF213608CA for ; Fri, 13 May 2022 15:30:21 +0200 (CEST) Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 733E55C02E5 for ; Fri, 13 May 2022 09:30:20 -0400 (EDT) Original-Received: from imap46 ([10.202.2.96]) by compute5.internal (MEProxy); Fri, 13 May 2022 09:30:20 -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=1652448620; x=1652535020; bh=PXwNCghZUi rlNtjzFx5NLdIHD1l4xb2aMmqNuNj0dCU=; b=nnYC6wAdcL2JC5LYtwxcg2brGs KDEeHuFbWZNPP4X+PCaxFZqydV30zaZk4/M1c3TktieUjUzU8q56K1GEExfvfkVF e8mSepezKTT/0Tc9eim+B/AuzKfjLjhf4raCvbLVspmN9JQtePIGEf99bnvWOje1 TEIxtSshVWDmmuhfrFlt4NNYzLt8RX0zYaPzM8Gh0PpzWitpKCSvDaqpWULNvvXh rHnAIzKCekZ1MIxoV/4zJiEpcswAXdAFacdvcTi9gEMS08f6R9QN1rLKBANm0hiz g9XGSGnD9sNfr6dfRTqOCHmQ7mkczpmk6JZBbbINyLivsPrqrn3QPjrUJQ6w== 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=1652448620; x= 1652535020; bh=PXwNCghZUirlNtjzFx5NLdIHD1l4xb2aMmqNuNj0dCU=; b=u 1MHsloZCn/Odvm7cPUaqBDdlN1shDmaM67EgeReAiHHq8GlAYNmkwpHMaM8dZ3kn 3D9UjaKrYWB1eol4jEPJIQfQLYBI+mCMMBvsvborPtk1PqncoX7X0VqcW/L5M+qm ejsoFKEsRve4+wtgIOZot2XUCS785NbnntSNdAygpDM18jBbDwKUskAtmvMzMu+X JiHxy5X1+AE6DibKIiByOedZmbGDJdigajtrkkDWIw50Zf3FOtR+HRG/vvc2pbQC g95yPXqggeqL9KXk48CMmEjjcn+GBaU6cBn6S2ycks4SdDJ7glDawPNrUYUf4RQG p44AvsP5JL6QcC+BiRB5A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeelgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreertdenucfhrhhomhepfdeuvghnucfoohhonhdfuceosggvnhesthhhvghmohhonhhs rdhukheqnecuggftrfgrthhtvghrnhepfeduueefiefgkedvffeuvefghefhteekgfduje ffheeuhfeiteegieetfeehgfeknecuffhomhgrihhnpehprhgrghhmrgdqrgguvgdrnhhl pdhprhgrghhmrgdqphhougdrnhhlpdhnthhgrdhnlhdprggrnhhhvghtrdhnvghtpdgsih htsghutghkvghtrdhorhhgpdgtohhnthgvgihtghgrrhguvghnrdhnvghtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsggvnhesthhhvghmoh honhhsrdhukh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 09D8B2A20069; Fri, 13 May 2022 09:30:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <6bb8cb01-9551-c4a2-5d94-d61197003b3e@xs4all.nl> 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:114949 Archived-At: --===============1305285596218095103== Content-Type: multipart/alternative; boundary=60a5e0702c2e451986446254a7b65909 --60a5e0702c2e451986446254a7b65909 Content-Type: text/plain 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 > ___________________________________________________________________________________ > --60a5e0702c2e451986446254a7b65909 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Thanks Hans,

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

```
\startluacode
  &= nbsp;  local demo =3D {
     = ;    name    =3D "demo",
&nb= sp;        options =3D {
           &nbs= p; {
         = ;        patterns =3D {
            = ;         fio  =3D "f|io",<= br>
         &nbs= p;       },
  &nbs= p;           &nbs= p;  words =3D [[ fioot fiots ]],
   &n= bsp;         },
&n= bsp;            {=
         &nb= sp;       patterns =3D {
&nb= sp;           &nb= sp;        fio  =3D "T|h",
          &nb= sp;      },
   &nb= sp;           &nb= sp; words =3D [[ This That ]],
    &nb= sp;        },
 &nb= sp;       },
  &nb= sp;  }
     table.save("oeps-fixe= s.llg",demo)
\stopluacode

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

\setupbodyfont[ebgaramond]

\starttext
<= /div>
     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 he= re as well, already on  ConTeXt  ver: 2022.03.12 17:56 LMTX.

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

> \blo= ckligatures[Th]

> \definefontf= eature[default:blocklig][default][liga=3Dyes,blockligatures=3Dyes]

> \setupbodyfont[myfont]
<= div>> 
> \starttext
> \definedfont[Serif*default:blocklig]
>=  
>      The This These are mi= ssing the `h'

> \stoptext
<= /div>
I'll fix it but it's not the way to do it in lmtx where we hav= e

\startluacode
  &= nbsp;  local demo =3D {
     = ;    name    =3D "demo",
&nb= sp;        options =3D {
           &nbs= p; {
         = ;        patterns =3D {
            = ;         fio  =3D "f|io",<= br>
         &nbs= p;       },
  &nbs= p;           &nbs= p;  words =3D [[ fioot fiots ]],
   &n= bsp;         },
&n= bsp;            {=
         &nb= sp;       patterns =3D {
&nb= sp;           &nb= sp;        fio  =3D "t|h",
          &nb= sp;      },
   &nb= sp;           &nb= sp; words =3D [[ this that ]],
    &nb= sp;        },
 &nb= sp;       },
  &nb= sp;  }
     table.save("oeps-fixe= s.llg",demo)
\stopluacode

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

\setupbodyfont[ebgaramond]

\starttext
<= /div>
     fiets fiots fiats fioot this that
=
\stoptext

I just added (no uploa= d) this

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

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

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



--------------------= ---------------------------------------------
  =             =             =             =      Hans Hagen | PRAGMA ADE
 &nb= sp;           &nb= sp; Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
&n= bsp;       tel: 038 477 53 69 | www.pragma-ade.nlwww.pragma-pod.nl
----------= -------------------------------------------------------
__= ________________________________________________________________________= _________
If your question is of interest to others as wel= l, please add an entry to the Wiki!

wiki     : http://contextgarden.net
____= ________________________________________________________________________= _______


--60a5e0702c2e451986446254a7b65909-- --===============1305285596218095103== 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== --===============1305285596218095103==--