|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2024
Device: Kobo Libre Colour
|
Convert to kepub removes spaces between words and adds unnecessary CSS
Hi all, I'm using Calibre 7.23 and sending epubs to the Kobo. In the process, it adds a lot of CSS to the kepub and removes spaces, which results in missing spaces between words. I also have the Kobo plugins Koboutilities and another one (can't remember), both of which were updated recently. When send an epub to the Kobo (using send specific format, kepub), it converts automatically. But in creates errors. This happens on almost every page, 2-3 words per page have this.
I've tried with the standalone Kepubify tool (https://pgaskin.net/kepubify) and get the same results. I've seen another older thread about this, without a real solution and it is closed. Here is an example of the original epub text: Another example is when people focus on their preferred issues. In the original epub, the html for this is simply: Another example is when people focus on <i>their</i> preferred issues. Once sent to the kobo however, CSS classes are added and it removes the spaces: <span class="koboSpan" id="kobo.31.1">Another example is when people focus on</span><i><span class="koboSpan" id="kobo.32.1">their</span></i><span class="koboSpan" id="kobo.33.1"> preferred issues.</span> This results in the text on the Kobo doing "focus ontheir preferred issues. Why is it doing that, and how can I fix it? Here's another example, this one with a lot of added CSS (where there shouldn't even be any) which also removes spaces. While the span specifies a type "pagebreak", there shouldn't actually be a page break there, it's in the middle of a paragraph. On the original epub: This is similar to the people <span aria-label="page xvi" epub:type="pagebreak" id="page_xvi" role="doc-pagebreak"/>who made it. In the kepub version: This is similar to the people</span><span aria-label="page xvi" epub:type="pagebreak" id="page_xvi" role="doc-pagebreak"></span><span class="koboSpan" id="kobo.36.1">who made it. Once converted, the books are a mess with a lot of CSS added. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,471
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Missing spaces - that's the latest version of the KoboTouch Extended Driver; it has a bug that does this. Downgrade to the previous version until the problem has been fixed.
The added spans are a feature of kepubs. If you don't want them in the css, don't use the extended driver at all and send the books as plain epubs. Last edited by Sirtel; 12-25-2024 at 08:52 PM. |
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2024
Device: Kobo Libre Colour
|
Can't find how to edit the original post. Additional info:
I just recently updated Kobo Touch Extended and Kepub Output to 3.7.2 (9 December 2024 release). I will downgrade them both and will try again. Will report on results. |
![]() |
![]() |
![]() |
#4 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2024
Device: Kobo Libre Colour
|
Quote:
I downgraded (using Time Machine) to older versions of Kobo Touch Extended and Kepub Output (from 3.7.2, reverted to 3.7.0) and that seems to have solved the spacing problem. The cover image was gone, so I just removed the book entirely from the Kobo device and re-sent it, now everything seems fine at first glance (only checked instance of removed space). |
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 28
Karma: 10
Join Date: Aug 2022
Device: Kobo Clara 2E
|
The space issue caused by 3.7.2 really should be stickied given how widespread the issue is.
For anyone else that found this, this is how you downgrade from 3.7.2: 1. Download 3.7.1 KoboTouchExtended.zip from https://github.com/jgoguen/calibre-kobo-driver/releases 2. In Calibre, go to Preferences -> Plugins and click "Load Plugins from File", select the zip file downloaded from the step above. 3. Restart Calibre. 4. The affected books need to be re-uploaded to your kobo devices. |
![]() |
![]() |
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,751
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This thread needs to be in the KoboTouchExtended plugin thread and not on it's own.
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 44
Karma: 10
Join Date: Apr 2009
Location: Champaign, IL
Device: Sony PRS-500, PRS-505, PRS-650, Kobo H2O, H2Ov2, Libra H2O
|
I disagree. If you encounter the problem of removed spaces but don't know what caused it, you wouldn't know where to look. That is indeed what happened to me. Until I saw this (and a similar earlier thread) I had the problem but didn't know it was caused by KTE.
|
![]() |
![]() |
![]() |
#8 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Generating a TOC, Sigil removes spaces from titles | democrite | Sigil | 2 | 07-12-2020 08:03 PM |
CSS solution for words cut-off in kepub full screen reading | scoky | Kobo Reader | 35 | 04-29-2015 02:07 AM |
Is there a way to import kepub to calibre/convert a kepub to other formats? | Major General | Library Management | 9 | 04-08-2014 10:00 PM |
Sigil adds spaces between HTML tags, creating strange characters | chezjim | Sigil | 10 | 06-10-2011 04:00 AM |
FBReader adds extra spaces for EPUB Book | pakiyabhai | PocketBook | 11 | 05-27-2010 05:58 PM |