View Single Post
Old 04-22-2025, 06:18 PM   #3248
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Terisa de morgan View Post
Just a question. Did the highlighting issue exist with this driver before the change to calibre 8.0?
Quote:
Originally Posted by DNSB View Post
Yes, there were several complaints about highlighting along with spaces disappearing.
I think you may be talking at cross purposes here.

The "disappearing spaces" problem occurred due to accidental coding errors introduced to the old KTE plugin during a few fairly recent updates (pre-calibrev8), which made some slight changes to the regex it used during koboSpan creation. The missing spaces were actual "lost spaces" accidentally removed during kepubify-ing.

OTOH, the "highlight gaps", referenced by @hengyu, occur because an early version of calibre v8's kepubify allowed some (not all) body text space chars to remain outside of the 2 koboSpans on either side of the space char. Highlighting is only applied to text within a koboSpan - hence the visible gaps.

Someone complained about the aesthetic of these gaps so I think Kovid changed the calibre code so that all text, including spaces, was always contained within a koboSpan. The result is no highlight gaps. This is what the old KTE plugin always did because it aimed to reproduce what Kobo do in their purchased OTA kepubs. AFAIK calibrev8 has never "lost" any spaces.

I know from my own experimentation with kepubify-ing epubs (in 2016) that, ironically, leading and trailing spaces inside koboSpans are one of the main contributing factors to uneven spacing seen in kepubs which are both full-justified and have font kerning/ligatures enabled.
jackie_w is offline   Reply With Quote