
Hi, Thanks a lot Hans and everyone who has worked on it for the new upload! From what I can tell from my few projects, math in HTML export seems to have significantly improved. I have just noticed what seems to be a small issue with hyphenated words in the HTML export: an extra space is added when the pdf output has a line break after the hyphen. Here is a minimal example showing the issue: __________________________________________ \setupbackend[export=yes] \starttext blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah co-worker \stoptext __________________________________________ (The number of ‘blah’s is adjusted to that ConTeXt adds a line break after ‘co-’ in the pdf.) The relevant part of the .html output is: <div> blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah co- worker</div> (Notice the space after ‘co-’.) Would there be a way to avoid this extra space? As an alternative, is it possible to prevent line breaks after a hyphen? (I tried playing with \setupbreakpoint, e.g., \setupbreakpoint[test][-][nleft=100,nright=100], but did not manage to get it working for the hyphens, although it seems to work well for other characters.) Cheers, Florent

Hi again,
In case someone else is wondering, it looks
like \setupalign[stretch,fullhz] prevents breaks after hyphens in the
examples I've tried.
Cheers,
Florent
Le mar. 22 juil. 2025 à 08:54, Florent Michel
Hi,
Thanks a lot Hans and everyone who has worked on it for the new upload! From what I can tell from my few projects, math in HTML export seems to have significantly improved.
I have just noticed what seems to be a small issue with hyphenated words in the HTML export: an extra space is added when the pdf output has a line break after the hyphen. Here is a minimal example showing the issue:
__________________________________________ \setupbackend[export=yes] \starttext blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah co-worker \stoptext __________________________________________
(The number of ‘blah’s is adjusted to that ConTeXt adds a line break after ‘co-’ in the pdf.) The relevant part of the .html output is:
<div> blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah co- worker</div>
(Notice the space after ‘co-’.)
Would there be a way to avoid this extra space? As an alternative, is it possible to prevent line breaks after a hyphen?
(I tried playing with \setupbreakpoint, e.g., \setupbreakpoint[test][-][nleft=100,nright=100], but did not manage to get it working for the hyphens, although it seems to work well for other characters.)
Cheers, Florent

On 7/22/2025 2:25 PM, Florent Michel wrote:
Hi again,
In case someone else is wondering, it looks like \setupalign[stretch,fullhz] prevents breaks after hyphens in the examples I've tried.
the next upload will have this fixed (we tested a patch offline) 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 -----------------------------------------------------------------

Thanks again for that, Hans! Much appreciated!
On Thu, 24 Jul 2025, 13:09 Hans Hagen via ntg-context,
On 7/22/2025 2:25 PM, Florent Michel wrote:
Hi again,
In case someone else is wondering, it looks like \setupalign[stretch,fullhz] prevents breaks after hyphens in the examples I've tried.
the next upload will have this fixed (we tested a patch offline)
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 / 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
___________________________________________________________________________________
participants (2)
-
Florent Michel
-
Hans Hagen