* [NTG-context] Dashes and hyphens
@ 2025-07-06 14:19 John Was
2025-07-06 15:33 ` [NTG-context] " Hans Hagen via ntg-context
2025-07-06 16:11 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ 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] 4+ 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
2025-07-06 16:11 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ 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] 4+ messages in thread
* Re: Dashes and hyphens
2025-07-06 14:19 [NTG-context] Dashes and hyphens John Was
2025-07-06 15:33 ` [NTG-context] " Hans Hagen via ntg-context
@ 2025-07-06 16:11 ` Wolfgang Schuster
2025-07-07 8:42 ` John Was
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2025-07-06 16:11 UTC (permalink / raw)
To: ntg-context
Am 06.07.2025 um 16:19 schrieb John Was:
> 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
> \-).
\setbreakpoints[compound]
\starttext
\hsize\emwidth
old-fashioned
old+fashioned
old-\unhyphenated{fashioned}
\stoptext
Wolfgang
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Dashes and hyphens
2025-07-06 16:11 ` Wolfgang Schuster
@ 2025-07-07 8:42 ` John Was
0 siblings, 0 replies; 4+ messages in thread
From: John Was @ 2025-07-07 8:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2609 bytes --]
Dear Hans and Wolfgang
Thanks for these - I had discovered the hyphenation explanations on WiKi
but was still getting odd effects, with the emdash plus following word
sticking out at the right (though this was alleviated by adjusting
tolerance and stretch). I'll keep watching for this but in case of
difficulty I can always replace --- globally with something like \Emdash,
defined as:
---\hskip 1sp
It's more of a puzzle that ConTeXt allows hyphenation of an already
hyphenated expression - I hadn't encountered this before with iterations of
plain TeX so had never given it any thought. Any particular instance is
easily suppressed as you indicated (or by putting the bit after the hyphen
in an \hbox), though one then has to check that there aren't any unforeseen
consequences elsewhere in the paragraph. But it's not exactly a huge
problem!
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>
<#m_-8229328929494425726_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sun, 6 Jul 2025 at 17:12, Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> wrote:
> Am 06.07.2025 um 16:19 schrieb John Was:
> > 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
> > \-).
>
> \setbreakpoints[compound]
>
> \starttext
>
> \hsize\emwidth
>
> old-fashioned
>
> old+fashioned
>
> old-\unhyphenated{fashioned}
>
> \stoptext
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4895 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] 4+ messages in thread
end of thread, other threads:[~2025-07-07 8:42 UTC | newest]
Thread overview: 4+ 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
2025-07-06 16:11 ` Wolfgang Schuster
2025-07-07 8:42 ` John Was
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).