From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114951 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: blockligatures removing characters Date: Fri, 13 May 2022 13:53:44 +0000 Message-ID: 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="===============1345973902863597317==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18367"; mail-complaints-to="usenet@ciao.gmane.io" Cc: denis.maier@unibe.ch To: Original-X-From: ntg-context-bounces@ntg.nl Fri May 13 15:56:32 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 1npVmR-0004Tf-Bd for gctc-ntg-context-518@m.gmane-mx.org; Fri, 13 May 2022 15:56:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C6973608D7; Fri, 13 May 2022 15:53:53 +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 KC-qXW2BOXcW; Fri, 13 May 2022 15:53:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 24D533608D8; Fri, 13 May 2022 15:53:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B60BF3608D8 for ; Fri, 13 May 2022 15:53:48 +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 aiemVgPi30Xm for ; Fri, 13 May 2022 15:53:46 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.82; helo=mailhub-lb1.unibe.ch; envelope-from=denis.maier@unibe.ch; receiver= Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch [130.92.0.82]) (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 A57733608D7 for ; Fri, 13 May 2022 15:53:46 +0200 (CEST) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-02.campus.unibe.ch [130.92.13.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id 138CE50029C; Fri, 13 May 2022 15:53:45 +0200 (CEST) Thread-Topic: [NTG-context] blockligatures removing characters Thread-Index: AQHYYirkRMxRZMGSuEik0RH7eKoC2a0WL+/QgAA0hgCABlDDgIAAJ0OQ In-Reply-To: <20f1fc67-8e2e-43fb-92e7-7d9e06bfbdbc@www.fastmail.com> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] 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:114951 Archived-At: --===============1345973902863597317== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_c1ab3c36af904054aa99ed81a29441e8unibech_" --_000_c1ab3c36af904054aa99ed81a29441e8unibech_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable First of all, your pattern for Th is incorrect: fio =3D "T|h", doesn't mak= e much sense. Anyway, even with this corrected I can confirm the behaviour. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \startluacode local demo =3D { name =3D "demo", options =3D { { patterns =3D { fio =3D "f|io", }, words =3D [[ fioot fiots ]], }, { patterns =3D { Th =3D "T|h", }, words =3D [[ This That ]], }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies=3D{oeps-fixes.llg}] \mainlanguage[en] \setupbodyfont[libertine] \starttext fiets fiots fiats fioot This That Then \noligature{Th}is \noligature{Th}at \noligature{Th}en \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Von: ntg-context Im Auftrag von Ben Moon via n= tg-context Gesendet: Freitag, 13. Mai 2022 15:30 An: Context Mailing List Cc: Ben Moon Betreff: Re: [NTG-context] blockligatures removing characters Thanks Hans, I tried to modify your example for preventing the capital-Th ligature but t= his doesn't seem to work. The 'fi' ligature is prevented, but 'Th' still ap= pears as a ligature. This occurs with the original lowercase version too. H= ave I missed something? ``` \startluacode local demo =3D { name =3D "demo", options =3D { { patterns =3D { fio =3D "f|io", }, words =3D [[ fioot fiots ]], }, { patterns =3D { fio =3D "T|h", }, words =3D [[ This That ]], }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies=3D{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=3Dyes,blockligatures= =3Dyes] > > \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 =3D { name =3D "demo", options =3D { { patterns =3D { fio =3D "f|io", }, words =3D [[ fioot fiots ]], }, { patterns =3D { fio =3D "t|h", }, words =3D [[ this that ]], }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies=3D{oeps-fixes.llg}] \setupbodyfont[ebgaramond] \starttext fiets fiots fiats fioot this that \stoptext I just added (no upload) this \startluacode local demo =3D { name =3D "demo", options =3D { { substitutions =3D { th =3D "t|h", Th =3D "T|h", st =3D "s|t", St =3D "S|t", fi =3D "f|i", }, }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies=3D{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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.n= l/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 ___________________________________________________________________________= ________ --_000_c1ab3c36af904054aa99ed81a29441e8unibech_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

First of = all, your pattern for Th is incorrect: fio  =3D "T|h", doesn’t make much sense.

 

Anyway, even with this corrected I can confirm the b= ehaviour.

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startlua= code

 &nb= sp;   local demo =3D {

 &nb= sp;       name    =3D "de= mo",

 &nb= sp;       options =3D {

 &nb= sp;           {

 &nb= sp;            =    patterns =3D {

 &nb= sp;            =        fio  =3D "f|io",

 &nb= sp;            =    },

 &nb= sp;            =    words =3D [[ fioot fiots ]],

 &nb= sp;           },

 &nb= sp;           {

 &nb= sp;            =    patterns =3D {

 &nb= sp;            =        Th  =3D "T|h",

 &nb= sp;            =    },

 &nb= sp;            =    words =3D [[ This That ]],

 &nb= sp;           },

 &nb= sp;       },

 &nb= sp;   }

 &nb= sp;   table.save("oeps-fixes.llg",demo)

\stopluacode

 

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

 

\mainlanguage[en]

 

\setupbodyfont[libertine]

 

\starttext

     fiets fiots fiats fioot

           &nb= sp;     

           &nb= sp;     This That Then

           &nb= sp;   

           &nb= sp;     \noligature{Th}is

           &nb= sp;    \noligature{Th}at

           &nb= sp;    \noligature{Th}en

\stoptext=

%%%%%%%%%= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

&nbs= p;

Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Ben Moon via ntg-context
Gesendet: Freitag, 13. Mai 2022 15:30
An: Context Mailing List <ntg-context@ntg.nl>
Cc: Ben Moon <ben@themoons.uk>
Betreff: Re: [NTG-context] blockligatures removing characters

 

Thanks Hans,

 

I tried to modify your example for preventing the ca= pital-Th ligature but this doesn't seem to work. The 'fi' ligature is preve= nted, but 'Th' still appears as a ligature. This occurs with the original l= owercase version too. Have I missed something?

 

```

\startluacode

     local demo =3D {=

         nam= e    =3D "demo",

         opt= ions =3D {

        &nbs= p;    {

        &nbs= p;        patterns =3D {

        &nbs= p;            fio&nb= sp; =3D "f|io",

        &nbs= p;        },

        &nbs= p;        words =3D [[ fioot fiots ]],

        &nbs= p;    },

        &nbs= p;    {

        &nbs= p;        patterns =3D {

        &nbs= p;            fio&nb= sp; =3D "T|h",

        &nbs= p;        },

        &nbs= p;        words =3D [[ This That ]],

        &nbs= p;    },

         },<= o:p>

     }

     table.save("oeps-fixes= .llg",demo)

\stopluacode

 

\setuplanguage[en][goodies=3D{oeps-fixes.llg}]<= /o:p>

 

\setupbodyfont[ebgaramond]

 

\starttext

     fiets fiots fiats fioot Thi= s That

\stoptext

```

Ben

 

On Mon, 9 May 2022, at 14:03, Hans Hagen via ntg-con= text wrote:

On 5/9/2022 9:56 AM, Denis Maier via ntg-context wro= te:

> Happens here as well, already on  ConTeXt&= nbsp; ver: 2022.03.12 17:56 LMTX.

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

> \blockligatures[Th]

> \definefontfeature[default:blocklig][default][l= iga=3Dyes,blockligatures=3Dyes]

> \setupbodyfont[myfont]

> \starttext

> \definedfont[Serif*default:blocklig]=

>      The This These are mis= sing the `h'

> \stoptext

I'll fix it but it's not the way to do it in lmtx wh= ere we have

 

\startluacode

     local demo =3D {=

         nam= e    =3D "demo",

         opt= ions =3D {

        &nbs= p;    {

        &nbs= p;        patterns =3D {

        &nbs= p;            fio&nb= sp; =3D "f|io",

        &nbs= p;        },

        &nbs= p;        words =3D [[ fioot fiots ]],

        &nbs= p;    },

        &nbs= p;    {

        &nbs= p;        patterns =3D {

        &nbs= p;            fio&nb= sp; =3D "t|h",

        &nbs= p;        },

        &nbs= p;        words =3D [[ this that ]],

        &nbs= p;    },

         },<= o:p>

     }

     table.save("oeps-fixes= .llg",demo)

\stopluacode

 

\setuplanguage[en][goodies=3D{oeps-fixes.llg}]<= /o:p>

 

\setupbodyfont[ebgaramond]

 

\starttext

     fiets fiots fiats fioot thi= s that

\stoptext

 

I just added (no upload) this

 

\startluacode

     local demo =3D {=

         nam= e    =3D "demo",

         opt= ions =3D {

        &nbs= p;    {

        &nbs= p;        substitutions =3D {=

        &nbs= p;            th =3D= "t|h",

        &nbs= p;            Th =3D= "T|h",

        &nbs= p;            st =3D= "s|t",

        &nbs= p;            St =3D= "S|t",

        &nbs= p;            fi =3D= "f|i",

        &nbs= p;        },

        &nbs= p;    },

         },<= o:p>

     }

     table.save("oeps-fixes= .llg",demo)

\stopluacode

 

\setuplanguage[en][goodies=3D{oeps-fixes.llg}]<= /o:p>

 

\setupbodyfont[ebgaramond]

 

\starttext

     The This These fiets and th= isthis thisfiets

\stoptext

 

 

 

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

        &nbs= p;            &= nbsp;           &nbs= p;         Hans Hagen | PRAGMA ADE<= o:p>

        &nbs= p;      Ridderstraat 27 | 8061 GH Hasselt | The Ne= therlands

        tel: 038 = 477 53 69 | www.pragma-ade.nl= | www.pragma-pod.nl

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

____________________________________________________= _______________________________

If your question is of interest to others as well, p= lease add an entry to the Wiki!

 

wiki     : http://contextgarden.net

____________________________________________________= _______________________________

 

 

--_000_c1ab3c36af904054aa99ed81a29441e8unibech_-- --===============1345973902863597317== 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== --===============1345973902863597317==--