# [NTG-context] Summing up ligature prevention tests

Hans Hagen j.hagen at xs4all.nl
Thu Mar 25 13:09:55 CET 2021

```On 3/24/2021 11:43 PM, denis.maier at ub.unibe.ch wrote:
> 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.
only in lmtx ... i'll check it (probably some interference with compact
fonts mode)

Hans

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