![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) ?
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,269
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
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. |
![]() |
![]() |
![]() |
#8 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,269
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |