14 Sep
2022
14 Sep
'22
8:40 a.m.
… \replaceword should be the correct way for proper hyphenation?? st.
Am 14.09.2022 um 08:35 schrieb Max Chernoff
: 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