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-26-2020, 09:07 AM   #1
nyamok gajah
Junior Member
nyamok gajah began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2020
Device: kobo
Missing spaces after coverting epub to kepub

When I converted from epub to kepub after words in italics,bold or words in a <span....> </span> - but not in all cases- spaces were missing after such words. it seems to be random. When I open the epub in the calibre editor I find that in every case where the space is missing, the </span> or </i> is at the end of a line. But the space isn't missing every time the </i> or </span> is at the end of a line.

For example,
for the abundance of milk <i>that</i>
they shall give

Epub displays "for the abundance of milk that they shall give
Kepub displays "for the abundance of milk thatthey shall give

I am using calibre 5.8.1 and no plug-ins need updating
nyamok gajah is offline   Reply With Quote
Old 12-26-2020, 11:05 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,929
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Look at your stylesheet for either the Paragraph style or i style
comment out/remove the letter-spacing line
For some reason that also affects the space between words
(it was affecting Headers on my Aura2. took me a long time to figure out. It seems to make spaces verrrrry thin)
theducks is online now   Reply With Quote
Advert
Old 12-26-2020, 12:59 PM   #3
nyamok gajah
Junior Member
nyamok gajah began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2020
Device: kobo
Many thanks, but there is no letter-spacing in the stylesheet
I replaced every </i> followed by line-break in the html
with </i> followed by a [space] and removed the line-break

The epub converts ok and the spacing after italics is ok
nyamok gajah is offline   Reply With Quote
Old 12-28-2020, 03:32 PM   #4
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,269
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
It would be interesting to know whether the Kobo is ignoring the line break, or if the conversion to kepub is removing the line breaks. Can you tell us how you are converting to kepub? (are you using the Kepub output plugin and explicitely converting, or are you sending to device with the Kobo Touch Extended Driver) ?
rashkae is offline   Reply With Quote
Old 12-28-2020, 03:45 PM   #5
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,364
Karma: 145488914
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
How are you converting to KePub? Are you using KePubify, the KePub input/output plugins, ad the KoboTouchExtendedDriver?

Also, use the Scramble Ebook plugin and scramble the eBook. Try the conversion on the scrambled eBook, post the scrambled ePub so it can be tested by others.
JSWolf is offline   Reply With Quote
Advert
Old 12-28-2020, 05:46 PM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by rashkae View Post
It would be interesting to know whether the Kobo is ignoring the line break, or if the conversion to kepub is removing the line breaks. Can you tell us how you are converting to kepub? (are you using the Kepub output plugin and explicitely converting, or are you sending to device with the Kobo Touch Extended Driver) ?
It is the driver. And the conversion should do the same. Somewhere along the way the line break is being lost. I haven't gotten around to looking at when.

The kepub renderer will correctly treat a line break as a space. But, if you highlight text that includes one, it will show when you look at the annotations list.
davidfor is offline   Reply With Quote
Old 12-29-2020, 06:57 AM   #7
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,269
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by davidfor View Post
It is the driver. And the conversion should do the same.
Err, no, sending through the driver and converting to Kepub (in calibre) will not be the same. Converting within Calibre itself will send the the book through Calibre's whole e-book processing chain. With Default settings, that will make dramatic changes to the book, (and even with all the changes to default I make, there are still things that will get changed during the conversion process, such as font size variable, (small, medium, etc.) being converted to some predefined rem value, (or your custom em values, if you enable font size scaling, the default). Files will get split based on heuristic chanter splitting.. and I'm sure many many other changes I can't point at the top of my head.

Edit: I can not replicate the problem on Calibre 4.8 either way, however.

Edit 2: I upgraded my touch Extended Driver from 3.1.5 to 3.4.1, and my Kepub output to latest as well, and now both reproduce the same issue. (now how to I revert... ha.)

Last edited by rashkae; 12-29-2020 at 07:19 AM.
rashkae is offline   Reply With Quote
Old 12-29-2020, 07:24 AM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by rashkae View Post
Err, no, sending through the driver and converting to Kepub (in calibre) will not be the same. Converting within Calibre itself will send the the book through Calibre's whole e-book processing chain. With Default settings, that will make dramatic changes to the book, (and even with all the changes to default I make, there are still things that will get changed during the conversion process, such as font size variable, (small, medium, etc.) being converted to some predefined rem value, (or your custom em values, if you enable font size scaling, the default). Files will get split based on heuristic chanter splitting.. and I'm sure many many other changes I can't point at the top of my head.
Yes, a conversion will do a lot of other things. But, we were talking about what happens when there is a line feed in the middle of the text. And more specifically immediately after a close tag. I know that the calibre conversion doesn't remove line feeds like this. And the kepub conversion is an epub conversion followed by running the same code that add the spans as the extended driver uses, in all likelihood, the line feed will be lost after a conversion. Sure, there are some options in the conversion that would affect this, such as the unwrap lines, but, if the line feeds get through the epub part of the conversion, the kepubification step will trigger the same problem.
Quote:
Edit: I can not replicate the problem on Calibre 4.8 either way, however.
That doesn't surprise me to much. The driver and conversion use some of calibres routines for this. There were some changes in them earlier in the year that affected the driver and the conversion. This is probably related to those changes and no-one had a book with exactly this formatting to see the problem. Or it didn't worry them.
davidfor is offline   Reply With Quote
Old 12-29-2020, 07:43 AM   #9
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,269
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
@davidfor: Just a quick note to my edit above.. I have confirmed that the problem was introduced at some point after Extended Driver version 3.1.5. So whatever code introduced this, it's not related to the Calibre version.
rashkae is offline   Reply With Quote
Old 01-10-2021, 10:51 PM   #10
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,269
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
I downloaded and tested what versions of the driver I could from the GIT, and have determined that this issue was introduced between 3.2.7 and 3.2.10. Unfortunately, I do not have a copy of 3.2.9. That's probably as far as I'll go tonight

Edit: I was able to test all the commits until (and including) Jun 12, 2020. Unfortunately, when I tried to apply the Jun 15 "Fix Span Processing", it breaks the driver completely on my system.

Last edited by rashkae; 01-11-2021 at 12:15 AM.
rashkae is offline   Reply With Quote
Old 01-11-2021, 03:04 AM   #11
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I've done some testing and have a fix. I have a pull request in git with the fix.
davidfor is offline   Reply With Quote
Old 01-11-2021, 06:38 AM   #12
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,269
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by davidfor View Post
I've done some testing and have a fix. I have a pull request in git with the fix.

Thanks.. I do have a new appreciation for how much work tracking an old bug can be... )
rashkae is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font changes when coverting AZW book to EPUB Llaves Conversion 1 04-12-2019 11:40 PM
Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) SJC-Caron ePub 18 04-21-2016 11:10 AM
Missing spaces between words giwqnbha Calibre 2 10-18-2015 05:24 AM
Coverting EPUB to MOBI cford Conversion 2 02-14-2011 12:03 PM
Problem With Margins Coverting Epub To Mobi rhk001 Calibre 2 11-21-2010 08:17 PM


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


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