Re: Spurious whitespace when exporting CJK text as epub
Hans Hagen via ntg-context <[email protected]> Tue, 21 Apr 2026 22:59:21 +0200
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
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
___________________________________________________________________________________