Hi,

One can suppress hyphenation with:

  \setupalign[nothyphenated]

but it has some limitations. The low level switches are \nohyphens and \dohyphens. Anyway, this mechanism has now been improved a bit:

\starttext

\startbuffer
NEDERLANDS\par Nederlands\par nederlands\par
\CONTEXT  \par test\-test\par test-test \par
\stopbuffer

\blank \start \nl \hsize 2mm            \getbuffer \stop \blank
\blank \start \nl \hsize 2mm \nohyphens \getbuffer \stop \blank

\startbuffer
\nohyphens NEDERLANDS {\dohyphens Nederlands} nederlands\par
\stopbuffer

\blank \start \nl \hsize 2mm \getbuffer \stop \blank

\startbuffer
NEDERLANDS {\nohyphens Nederlands} nederlands\par
\stopbuffer

\blank \start \nl \hsize 2mm \getbuffer \stop \blank

\stoptext

We can (and probably will) add more granularity in this but now \nohyphens will also deal with explicit \discretionary (as used in the \CONTEXT definition) as well as \- and - in addition to the normal pattern driven hyphenation. It also obeys grouping.

(this improvement concerns lmtx only)

Hans



-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to