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.li...@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
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to