[NTG-context] Problem with word not hyphenating

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon Nov 30 17:22:32 CET 2020


Pablo Rodriguez schrieb am 30.11.2020 um 17:16:
> On 11/30/20 4:48 PM, Bruce Horrocks wrote:
>> The word "re-implementation" refuses to hyphenate and consequently
>> stick outs into the right margin.
>>
>> I've tried using \hyphenation but it makes no difference.
>> [...]
>> Any suggestions, please?
> Hi Bruce,
>
> here you have a sample:
>
>    \setuphyphenation[method=traditional]
>    \registerhyphenationexception[en][re-im-ple-men-ta-tion]
>    \starttext
>    \startTEXpage[offset=1em]
>    \hyphenatedword{re-implementation}\\
>    \hyphenatedword{re||implementation}\\
>    \hyphenatedword{re--implementation}\\
>    \hyphenatedword{reimplementation}
>    \stopTEXpage
>    \stoptext
>
> If you comment the first line, only "||" allows hyphenation.

Another option is to add \setbreakpoints[compound] to the document.

Wolfgang



More information about the ntg-context mailing list