On 7/29/2022 9:39 PM, David Carlisle wrote:
Normally a hyphen inserted at a line break comes from the font used for the current word.
If the luatex extended {before}{after}{nobreak} syntax is used in \hyphenation the same is true unless the nobreak field is empty in which case the font from (I think) the end of the paragraph is used.
This is LuaTeX, Version 1.15.0 (TeX Live 2022)
You can work around the issue by repeating the following character so
{-}{w}{w} instead of {-}{}{}w
in the attached example, but this seems wrong? works ok in luametatex where it uses the wordstart font so i'll see if i can backport that bit (the language code is quite different so i need to check carefully)
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 -----------------------------------------------------------------