[NTG-context] Summing up ligature prevention tests

denis.maier at ub.unibe.ch denis.maier at ub.unibe.ch
Wed Mar 24 23:43:29 CET 2021


So, what's the general recommendation? Which approach is the best in your opinion? (In case it's the \replaceword approach: do you think you'll have time to look into this?) 

I've seen in an older thread that the best way to deal with this would be in the hyphenator. What do you think about this now, a couple of years later?

And, while we're at it: how do you deal with words like "begrifflich" where you'll want the ff ligature, but not the ffl ligature.
I've tried this
\replaceword[ligs][begrifflich][begri{ffl}ich]
But this breaks the ligature completely. 
\replaceword[ligs][begrifflich][begrif{fl}ich] is not correct either (doesn't do anything).

Or with exceptions:
\startexceptions[de]
begri{ff-}{l}{ffl}(ff\zwnj l)ich
\stopexceptions

But that also breaks the ligature completely.

Denis

> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen at xs4all.nl>
> Gesendet: Mittwoch, 24. März 2021 23:16
> An: mailing list for ConTeXt users <ntg-context at ntg.nl>; Maier, Denis
> Christian (UB) <denis.maier at ub.unibe.ch>
> Betreff: Re: [NTG-context] Summing up ligature prevention tests
> 
> On 3/24/2021 8:24 PM, denis.maier at ub.unibe.ch wrote:
> 
> > Anything, I've missed? Other aspects to think about here? How about
> > performance issues? (The blockligatures-mechanism resulted in this:
> > with a word list of about 2200 words it took a bit more than five
> > seconds to process 23 A5 pages than 2.5 seconds without the blocked
> > ligatures. I'll test with the other methods later or tomorrow.)
> of course there is always more:
> 
> \starttext
> 
>      {effie}
>      {ef{\norightligaturing f}ie}
>      {ef{\noleftligaturing f}ie}
>      {ef{\noleftligaturing\norightligaturing f}ie}
>      {ef{\noligaturing f}ie}
>      {\noligaturing effie}
> 
> \stoptext
> 
> (con)tex(t) is all about control (and secret features),
> 
> (and yes: there's also \noleftkerning etc)
> 
> Hans
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------


More information about the ntg-context mailing list