Isn’t there a way to list exceptions that will work in *all* languages? Steffen
> Am 14.09.2022 um 09:19 schrieb Denis Maier via ntg-context > <ntg-context@ntg.nl>: > >> -----Ursprüngliche Nachricht----- >> Von: ntg-context <ntg-context-boun...@ntg.nl> Im Auftrag von Max >> Chernoff via ntg-context >> Gesendet: Mittwoch, 14. September 2022 08:51 >> An: ntg-context@ntg.nl >> Cc: Max Chernoff <mse...@telus.net>; cont...@st.estfiles.de >> Betreff: Re: [NTG-context] Hyphenation in multi-language projects >> >> Hi Steffen, >> >>> … \replaceword should be the correct way for proper hyphenation?? >> >> Well I'm not sure if it's "correct", but it seems to work. Based on my >> testing, >> having three subsequent sets of groups ({A}{B}{C}) is converted to a >> discretionary. The discretionary hyphen "\-" is equivalent to the Plain TeX >> command "\discretionary{-}{}{}", so >> >> \replaceword[hyphenations][steffen][steff{-}{}{}en] >> >> acts just like "steff\-en". TeX won't otherwise hyphenate a word with >> discretionaries, so this means that "steff-en" will be the only allowable >> hyphenation. > > Just one caveat though. IIRC, Hans has mentioned that this kind of stuff is > slower than using the hyphenation engine directly. (That's why he has > reimplemented the ligature suppression mechanism on the hyphenation level, > rather than acting on the node list.) > > Best, > Denis > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________