ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: new upload - hyphenation
Date: Tue, 11 Aug 2020 16:06:39 +0200	[thread overview]
Message-ID: <7882736f-36b8-c4e2-334c-5396b2bc6579@xs4all.nl> (raw)

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	other threads:[~2020-08-11 14:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7882736f-36b8-c4e2-334c-5396b2bc6579@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).