Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-25-2024, 08:46 PM   #1
DJeBook
Junior Member
DJeBook began at the beginning.
 
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.
DJeBook is offline   Reply With Quote
Old 12-25-2024, 08:49 PM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
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.
Sirtel is online now   Reply With Quote
Old 12-25-2024, 10:00 PM   #3
DJeBook
Junior Member
DJeBook began at the beginning.
 
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.
DJeBook is offline   Reply With Quote
Old 12-25-2024, 10:17 PM   #4
DJeBook
Junior Member
DJeBook began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2024
Device: Kobo Libre Colour
Quote:
Originally Posted by Sirtel View Post
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.
Downgrading the plugins seems to have worked.

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).
DJeBook is offline   Reply With Quote
Old 12-26-2024, 07:22 PM   #5
jaceygan
Enthusiast
jaceygan began at the beginning.
 
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.
jaceygan is offline   Reply With Quote
Old 12-27-2024, 06:43 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Old 01-05-2025, 11:02 AM   #7
Shadowjack
Enthusiast
Shadowjack began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Apr 2009
Location: Champaign, IL
Device: Sony PRS-500, PRS-505, PRS-650, Kobo H2O, H2Ov2, Libra H2O
Quote:
Originally Posted by JSWolf View Post
This thread needs to be in the KoboTouchExtended plugin thread and not on it's own.
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.
Shadowjack is offline   Reply With Quote
Old 01-05-2025, 06:44 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Shadowjack View Post
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.
And that is why I had no problems with the question being posted here since it does concern Kobo ereaders.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:10 AM.


MobileRead.com is a privately owned, operated and funded community.