![]() |
#3241 |
Connoisseur
![]() Posts: 56
Karma: 10
Join Date: Aug 2016
Device: Kobo Libra Colour
|
Hi all,
I've noticed that KEPUBs converted by Calibre 8 onwards have badly broken justification (see comparison shot). I raised a Calibre bug here: https://bugs.launchpad.net/calibre/+bug/2107778 It was discovered that the output is different apparently in how the spaces are placed in or around the span tags. This apparently breaks justified text on the Kobo. Was informed by Kovid that this was necessary to fix highlighting without ugly gaps, which was more important, since justified text was not an important part of reading, and that I was the only one complaining. And that his recommended solution would be to simply not use justified text. :shrug Which is fair enough, but I'd love to see if anyone's discovered a workaround for those who use text justification? Is there also some possibility of some config on the device causing this and potentially approaching a fix from that angle? |
![]() |
![]() |
![]() |
#3242 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,050
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What operating system and what version of calibre are you using? If you use calibre 8, then you'll configure the KoboTouch driver to do what you want when sending to your Kobo.
|
![]() |
![]() |
![]() |
#3243 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,050
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
webkitTextRendering=geometricPrecision Also, there is a patch that will reduce the space in KePub. I do not know if it works with the current Libra Colour firmware. You can try the previous firmware's patches and see if it works with the current firmware. You will have to edit it for the new firmware and then try it. https://www.mobileread.com/forums/sh...d.php?t=366569 |
|
![]() |
![]() |
![]() |
#3244 |
Connoisseur
![]() Posts: 56
Karma: 10
Join Date: Aug 2016
Device: Kobo Libra Colour
|
I've already got webkitTextRendering=geometricPrecision set, unfortunately!
The problem is not so much that the spaces are all too big. Sometimes they are also too small, like the one that's after the period here. From what I understand from the bug report's comments, the KEPUB conversion in native Calibre 8 was fixed to solve some highlighting related issue by putting the whitespaces inside the spans, but in so doing this causes Kobo to not properly render them in justified text. It's quite a shame that something so basic was broken in order to fix gaps in highlighting (which admittedly is also a very basic thing). Are there KEPUB books that are directly purchased officially instead of converted from EPUB? I wonder if this issue also happens in that context? |
![]() |
![]() |
![]() |
#3245 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,695
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
That is one reason that I personally only use kepub for books where the images are worth zooming which isn't all that many. I accept the oddities on Kobo Plus books since the authors will not be paid if I don't read the original. I also prefer using left justification (AKA ragged right) since that removes the justification oddities from the equation. Until an ereader has decent support for micro-typography AKA micro-justification, justified text on my ereader screen is never going to look the way I want it to look. |
|
![]() |
![]() |
![]() |
#3246 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,592
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#3247 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,695
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#3248 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,247
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Quote:
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. |
||
![]() |
![]() |
![]() |
#3249 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,050
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#3250 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,650
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
#3251 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,327
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Kovid has already said he isn't going to change this. You get continuous highlighting or better justification, but not both. He chose highlighting.
|
![]() |
![]() |
![]() |
#3252 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,050
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#3253 |
Connoisseur
![]() Posts: 56
Karma: 10
Join Date: Aug 2016
Device: Kobo Libra Colour
|
Please let him know that. He was rather cross with me in our exchange on the bug report for being "the only person in millions" complaining about his choice and insisted that justification wasn't a fundamental functionality :shrug
|
![]() |
![]() |
![]() |
#3254 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,000
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
Quote:
However, considering we can optimize it in one of two ways, maybe this needs to be an option in the converter? |
|
![]() |
![]() |
![]() |
#3255 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 815
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
That would be really helpful, if it can be done. I don't care about highlighting, but the terrible spacing in kepubs drives me crazy (and I've tweaked and configured until it sorta kinda works, but not very well).
|
![]() |
![]() |
![]() |
Tags |
error, kobo aura one |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo Device Driver Update | davidfor | Devices | 284 | 05-24-2019 05:24 PM |
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod | cryzed | Plugins | 7 | 10-28-2012 04:58 PM |
[Device Interface Plugin] Update for Nook Color Driver | jmricker | Plugins | 0 | 10-22-2011 10:11 AM |
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? | EverC | Kobo Reader | 11 | 08-31-2011 11:47 PM |
Touch Kobo Touch Extended Warranty Program | SensualPoet | Kobo Reader | 1 | 07-17-2011 04:08 AM |