On 9/14/22 16:54, Denis Maier via ntg-context wrote:
>> [...]
>> Isn’t there a way to list exceptions that will work in *all*
>> languages?
>
> I thought that \hyphenation would work like that, or \startexceptions
> without a language code. Apparently that's not the case.
\hyphenation only works
users
>> Cc: Steffen Wolfrum ; Hans Hagen
>>
>> Betreff: Re: [NTG-context] Hyphenation in multi-language projects
>>
>> Isn’t there a way to list exceptions that will work in *all* languages?
>
> I thought that \hyphenation would work like that, or \st
> -Ursprüngliche Nachricht-
> Von: ntg-context Im Auftrag von Steffen
> Wolfrum via ntg-context
> Gesendet: Mittwoch, 14. September 2022 16:45
> An: mailing list for ConTeXt users
> Cc: Steffen Wolfrum ; Hans Hagen
>
> Betreff: Re: [NTG-context] Hyphenation in
det: Mittwoch, 14. September 2022 08:51
>> An: ntg-context@ntg.nl
>> Cc: Max Chernoff ; cont...@st.estfiles.de
>> Betreff: Re: [NTG-context] Hyphenation in multi-language projects
>>
>> Hi Steffen,
>>
>>> … \replaceword should be the correct way for
> -Ursprüngliche Nachricht-
> Von: ntg-context Im Auftrag von Max
> Chernoff via ntg-context
> Gesendet: Mittwoch, 14. September 2022 08:51
> An: ntg-context@ntg.nl
> Cc: Max Chernoff ; cont...@st.estfiles.de
> Betreff: Re: [NTG-context] Hyphenation in multi-lang
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
… \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
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)?
Untested: try specifying the exceptions first, load mainlanguage later?
Or, use \hyphenation?
Have you tested any if these?
Or, you could use multiple exception blocks...
\startexceptions[it]
Steff-en
\stopexceptions
\startexceptions[en]
Steff-en
\stopexceptions