On 6/30/2021 7:35 PM, Alan Braslau wrote:
On 29/06/21 05:52, Hans Hagen wrote:
well, you ask for nothyphenated; we could define

\permanent\protected\def\-%
   {\begingroup
    \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
    \endgroup}

i will ponder this

I believe that \- defines an *optional* hyphenation point.
Specifying nothyphenated should not hyphenate, even at optional points.
The author can otherwise use hyphenated and arrange to help the words get hyphenated at certain points.

Perhaps a new "optional" hyphenation point macro can be added that would have super-powers to override the align parameter. There would be no surprises using such a feature.
We can't use \= unless we drop the \= being macros (anyone using that?)

We can also use \+ which currently is just "+" because it needs some value (sometimes it gets a local meaning).

So here is something to ponder:

\pushoverloadmode \unprotect

    \permanent\protected\def\superexplicitdiscretionary
      {\begingroup
       \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
       \endgroup}

    \aliased\let\lang_explicit_discretionary_nop\explicitdiscretionary

    \permanent\protected\def\lang_explicit_discretionary_yes-%
      {\superexplicitdiscretionary}

    \permanent\protected\def\-%

{\doifelsenextcharcs-\lang_explicit_discretionary_yes\lang_explicit_discretionary_nop}

    \protect \popoverloadmode

    \nohyphens \hsize 1mm

    test\-test \par test\--test

\stoptext



-----------------------------------------------------------------
                                          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