[NTG-context] Hyphenation questions

Henning Hraban Ramm texml at fiee.net
Wed May 1 16:14:00 CEST 2019


Am 2019-04-24 um 19:47 schrieb Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:

> Dmitry Starostin schrieb am 24.04.2019 um 19:34:
>> 1. is there an analog to \hyp{} command from the 'hyphenat' package? Double words with a dash happen all too often.
> 
> 1. Add \setbreakpoints[compound] to enable a line break at a hyphen.
> 
> \setbreakpoints[compound]
> 
> \starttext
> electromagnetic-endioscopy
> \stoptext
> 
> 2. Use || to insert a breakable hyphen.
> 
> \starttext
> electromagnetic||endioscopy
> \stoptext
> 
>> 2. how to switch language for just three words for correct hyphenation?
> 
> \starttext
> English ... \language[de]{Deutsch}
> \stoptext

Shouldn’t that be

\starttext
English ... {\language[de]Deutsch}
\stoptext

?

For most languages you can also use their shortcut, e.g. \de, \ru, \en – but not \it (italic, not Italian) or \sl (slanted, not Slowenian).

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list