Re: [NTG-context] Problem with word not hyphenating

2020-11-30 Thread Wolfgang Schuster

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with word not hyphenating

2020-11-30 Thread Pablo Rodriguez
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.

I hope it helps,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Problem with word not hyphenating

2020-11-30 Thread Bruce Horrocks
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.

\showframe
\starttext
\hyphenation{re-im-ple-men-ta-tion}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
re-implementation
tempor incididunt ut labore et doloremagna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
consequat.
\stoptext

Any suggestions, please?

(LMTX current version: 2020.11.30 10:24)
--
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___