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
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to