ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Dashes and hyphens
@ 2025-07-06 14:19 John Was
  2025-07-06 15:33 ` [NTG-context] " Hans Hagen via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: John Was @ 2025-07-06 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 805 bytes --]

Hello

Is there a way in ConTeXt to allow line-breaking by default after an en or
em dash (-- or ---)?  The equivalent of \XeTeXdashbreakstate=1

I couldn't see anything after trying various searches.

Conversely, is there a way of inhibiting ConTeXt from hyphenating an
already hyphenated expression (great-grandfather etc.)?  That is usually
seen as a desperate last resort (which the user can invoke manually with
\-).

Best wishes

John *🇪🇺 * Слава Україні!
* 🇺🇦*


<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

[-- Attachment #1.2: Type: text/html, Size: 2127 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [NTG-context] Re: Dashes and hyphens
  2025-07-06 14:19 [NTG-context] Dashes and hyphens John Was
@ 2025-07-06 15:33 ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2025-07-06 15:33 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 7/6/2025 4:19 PM, John Was wrote:
> Hello
> 
> Is there a way in ConTeXt to allow line-breaking by default after an en 
> or em dash (-- or ---)?  The equivalent of \XeTeXdashbreakstate=1
> 
> I couldn't see anything after trying various searches.

Just try:

\starttext
     \hsize1mm
     test-test\par
     test---test\par
     test---test\par
     test+test\par
     \hccode`+=`+
     test+test\par
     \hccode`+=`-
     test+test\par
     {great|-|\nohyphens  grandfather}\par
\stoptext

> Conversely, is there a way of inhibiting ConTeXt from hyphenating an 
> already hyphenated expression (great-grandfather etc.)?  That is usually 
> seen as a desperate last resort (which the user can invoke manually with 
> \-).
> 
> Best wishes
> 
> John *🇪🇺 * Слава Україні!*🇺🇦
> *
> 
> 
> <http://www.avg.com/email-signature? 
> utm_medium=email&utm_source=link&utm_campaign=sig- 
> email&utm_content=webmail>	Virus-free.www.avg.com <http://www.avg.com/ 
> email-signature?utm_medium=email&utm_source=link&utm_campaign=sig- 
> email&utm_content=webmail>
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-06 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-06 14:19 [NTG-context] Dashes and hyphens John Was
2025-07-06 15:33 ` [NTG-context] " Hans Hagen via ntg-context

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