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

 

Anyway, even with this corrected I can confirm the behaviour.

 

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

\startluacode

     local demo = {

         name    = "demo",

         options = {

             {

                 patterns = {

                     fio  = "f|io",

                 },

                 words = [[ fioot fiots ]],

             },

             {

                 patterns = {

                     Th  = "T|h",

                 },

                 words = [[ This That ]],

             },

         },

     }

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

\stopluacode

 

\setuplanguage[en][goodies={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 <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 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.nlwww.pragma-pod.nl

-----------------------------------------------------------------

___________________________________________________________________________________

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

 

maillist : ntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nlhttp://context.aanhet.net

archive  : https://bitbucket.org/phg/context-mirror/commits/

wiki     : http://contextgarden.net

___________________________________________________________________________________