Re: Spurious whitespace when exporting CJK text as epub
Florent Michel <[email protected]> Wed, 22 Apr 2026 09:52:56 +0100
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <CALOhoeJ7kOidYmYbdPVfAZi1_KE-C2b-PejFPYxiGd8ttV1AQg@mail.gmail.com> |
Hi! Thanks a lot Hans and Mikael for the update! On 4/21/2026 22:13 PM, Hans Hagen via ntg-context wrote: > but ... Mikael and I wonder about applications and useability and can't > come up with real examples. Not sure whether it counts as a ‘real’ example, but I have several documents reporting experimental results with ‘quick and dirty’ error propagation/analysis. I started playing around with xinterval and it seems to make at least part of it much easier. (One alternative option is of course to to the analysis via a different program and import the result in ConteXt; but from my experience doing as much as possible from within ConTeXt helps a lot in ensuring the document and data stay synchronized while keeping the pipeline simple.) That's probably quite a niche use-case, but one where xinterval seems to be genuinely helpful, so thanks again for adding it! Cheers, Florent Le mar. 21 avr. 2026 à 22:13, Hans Hagen via ntg-context <[email protected]> a écrit : > On 4/20/2026 6:39 PM, Hans Hagen via ntg-context wrote: > > On 4/19/2026 7:04 PM, gyuchen86--- via ntg-context wrote: > >> Hello, I am trying to make use of the epub export functionality. > >> > >> I noticed that, unwanted whitespaces are inserted in the epub file in > >> exact those locations where a linebreak occurs in the generated PDF > >> file. > > You can check todays upload. We also switched to a new spacing model for > cjk, using penalized glue so a bit more efficient. It should behave the > same but made solving thsi space issue a bit easier. > > There is also some experimental stuff. We already have xmath (more math > functions), xcomplex (complex numbers), xdecimal (high precision) and > posit (floats that fit into so called halfwords). Out of curiosity, to > this repertoire we added xinterval: > > \starttext > > \startluacode > local a = xinterval.new(123) > local b = xinterval.new(456) > context(a) > context.par() > context(b) > context.par() > context(a + b) > context.par() > context(a / b) > context.par() > context(xinterval.mid(xinterval.sqrt(a+b^2))) > context.par() > \stopluacode > > \stoptext > > but ... Mikael and I wonder about applications and useability and can't > come up with real examples. > > 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 : [email protected] / > 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 : [email protected] / 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 ___________________________________________________________________________________