ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* new upload - hyphenation
@ 2020-08-11 14:06 Hans Hagen
  0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2020-08-11 14:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-11 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 14:06 new upload - hyphenation Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).