[NTG-context] Hyphenation in multi-language projects
Max Chernoff
mseven at telus.net
Wed Sep 14 08:35:09 CEST 2022
Hi Steffen,
> The idea is to set the hyphenation for certain words regardless of the
> language that is used in the surrounding paragraphs.
>
> In this example it should stay: «steff-en»
>
> How do i set this to all non-english paragraphs (without using
> \hyphenation on each language-switch)?
You can use \replaceword:
\starttext
\setuppapersize[A6][A6]
\mainlanguage[en]
\replaceword[hyphenations][steffen][steff{-}{}{}en]
\setreplacements[hyphenations]
english text english text english teste: steffen steffen
\start\language[it]
italian text italian text italian teste: steffen steffen
\stop
\stoptext
-- Max
More information about the ntg-context
mailing list