Re: Spurious whitespace when exporting CJK text as epub

Hans Hagen via ntg-context <[email protected]> Wed, 22 Apr 2026 21:31:29 +0200
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
Hi Luigi,

> On Wed, 22 Apr 2026 at 10:54, Florent Michel <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     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!
> 
> 
> If you happen to use metapost with xinterval in luametatex (a niche 
> within a niche, I'd say),

indeed, a bit over the top but one never knows

> you could compare the results with metapost
> mpost -numbersystem=interval
> based on gmp. It's experimental, though it's been around for a while, so 
> I don't rule out errors.

In addition to decimal and posit we can optionally have interval in the 
luametatex mplib (one needs to rename a file and recompile) but the 
question is: does it make sense. For instance, < = > can work out 
differently (which means that some helpers won't work, i had to patch 
one run-management variable to an eps check).

Also, we already have solutions for joining non-touching paths, 
intersections, enveloppes etc that kind of could benefit from interval 
given one knows what to do without refactoring mp.

In the lib we have various comparisons (< = > and functions that use an 
eps and set functions). We use the filib library (not that large, 
cleaned up a bit) while you use gmp. How does the experimental stand 
alone metapost interval mode do a comparison?

For the record: each of these number models has its side effects and all 
work within 'scaled' precision and with 'epsilons' cf traditional mp.

Do you have an example where interval in mp makes sense? Of course it's 
kind of fun to play with these things, just to get an idea how it works.

I suppose at some point you write some article about this (and gmp)?

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
___________________________________________________________________________________