[NTG-context] Hyphenation in multi-language projects
Steffen Wolfrum
context at st.estfiles.de
Wed Sep 14 08:40:59 CEST 2022
… \replaceword should be the correct way for proper hyphenation??
st.
> Am 14.09.2022 um 08:35 schrieb Max Chernoff <mseven at telus.net>:
>
>
> 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