[NTG-context] How do you deal with inappropriate ligatures?
Hans Hagen
j.hagen at xs4all.nl
Mon Oct 12 22:35:11 CEST 2020
On 10/12/2020 4:55 PM, Denis Maier wrote:
> Hi,
>
> with LuaLaTeX I used to use the selnolig package to disable
> inappropriate ligatures. With ConTeXt I have just inputted the list
> prepared by Hraban (based on a wordlist originating from selnolig), but
> then ran into a curious bug (?) with disappearing characters (see my
> posts from a couple of days ago). I'm now converting this list to the
> \blockligatures mechanism (instead of using \replaceword), which also
> has better kerning support due to Hans. When done, I'll of course share
> this on the Wiki if there's any need for this.
>
> Now I'm wondering how others deal with inappropriate ligatures. Do you
> just ignore them? Do you block them on an ad-hoc basis, like whenever
> they occur? Do you use scripts to pre-process your files before
> typesetting? Do you just disable ligatures globally?
>
> I tend to think there must be an automatic way to deal with the most
> awkward cases. The problem is that there just so many.
>
> What do you think?
I played a bit with what we have and in a next upload you can do this:
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
\stopexceptions
\showglyphs
\starttext
auffasse
then is like:
au\discretionary{f-}{-f}{f\zwnj f}asse
\stoptext
Just an experiment. I don't know when there will be an update because
first WS and I have to test and double check some new stuff as we don't
want users to suffer too much from a couple of fundamental new features.
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