Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-13-2020, 06:55 AM   #1
wff
Member
wff began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2020
Location: Nancy, France
Device: Kobo Aura H2O, Marvin iOS
EPUB-KEPUB Conversion problem

Hi guys,
I am new here, and I hope my issue have not been already solved elsewhere (even if it would be nice concerning my problem ;-)
Well, I have a Kobo Aura H2O. I manage my Ebooks with Calibre and KTE. And I need your help with an EPub->KePub conversion. My concern is about one single book of my Calibre Library.
I converted my ePub as usual, but when I wanted to read it with Kobo, I was surprised to notice that there was "display" problems: mostly spaces missing or excessive spaces. It doesn’t prevent me to read the book, but it catches my eyes and disturb me, what is not very comfortable...
I tried some things to fix that before calling for help: convert again to Kepub, change kepub output, change font, ... I sent the original ePub to kobo, and there was no problem of display and spaces and other stuff. But I need Kepub, because I like to see the real page number even when I change font size or margins. I even tried to convert EPUB to EPUB and then KEPUB again.
So I came to the conclusion I have a problem with conversion.
Here are some files to show my issue:
- screenshots of what the book is supposed to be [epub on Marvin iOS]
- ss of what I get [kepub on Kobo]
- ss of the epub file in Calibre Ebook Edit.
- Extract of the first two chapters of the book (including copyrights).
Thanks for your help,
Florent
Attached Thumbnails
Click image for larger version

Name:	Epub Marvin iOS chap1.PNG
Views:	214
Size:	478.7 KB
ID:	178347   Click image for larger version

Name:	epub Marvin iOS chap2.PNG
Views:	212
Size:	535.9 KB
ID:	178348   Click image for larger version

Name:	kepub Kobo chap1.jpg
Views:	232
Size:	564.2 KB
ID:	178349   Click image for larger version

Name:	kepub Kobo chap2.jpg
Views:	287
Size:	504.9 KB
ID:	178350   Click image for larger version

Name:	kepub Kobo chap2-2.jpg
Views:	209
Size:	466.3 KB
ID:	178351   Click image for larger version

Name:	Ebook Edit.jpg
Views:	230
Size:	327.4 KB
ID:	178352  
Attached Files
File Type: epub Trop semblable a l'eclair Extrait - Ada Palmer.epub (1.67 MB, 146 views)
wff is offline   Reply With Quote
Old 04-13-2020, 11:41 AM   #2
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 389
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
It looks like Marvin is hyphenating longer words. On the Kobo you have it fully justified, but no hyphenation, so the line length is all done with word spacing. You might try converting with left justification, or in the editor, changing all the text-align: justify to text-align- left. Or try using the hyphenate-this plugin (never used that, myself).
retiredbiker is offline   Reply With Quote
Advert
Old 04-13-2020, 12:08 PM   #3
wff
Member
wff began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2020
Location: Nancy, France
Device: Kobo Aura H2O, Marvin iOS
Thank you!
I will try that and keep you posted.
wff is offline   Reply With Quote
Old 04-13-2020, 01:56 PM   #4
wff
Member
wff began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2020
Location: Nancy, France
Device: Kobo Aura H2O, Marvin iOS
Well, I tried all you suggested, and it didn't work. Spaces are still excessive or missing. I took a couple of SS to show you.
Thank you anyway.
Attached Thumbnails
Click image for larger version

Name:	Left Align Conv Chap 2-1.jpg
Views:	166
Size:	395.4 KB
ID:	178355   Click image for larger version

Name:	Left Align Conv Chap 2-2.jpg
Views:	149
Size:	400.9 KB
ID:	178356   Click image for larger version

Name:	Left Align Edit Chap 2-1.jpg
Views:	159
Size:	370.5 KB
ID:	178357   Click image for larger version

Name:	Left Align Edit Chap 2-2.jpg
Views:	168
Size:	397.9 KB
ID:	178358   Click image for larger version

Name:	Hypen Chap 2-1.jpg
Views:	137
Size:	401.7 KB
ID:	178359   Click image for larger version

Name:	Hypen Chap 2-2.jpg
Views:	143
Size:	408.3 KB
ID:	178360  
wff is offline   Reply With Quote
Old 04-13-2020, 05:19 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: 74,360
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@Wff What you can do is install the French and English hyphenation dictionaries from the thread here. I posted the dictionaries. Then when you convert to KePub select the option to hyphenate. This way you will get hyphenation and not so many gaps in the lines. Give this a try before switching to left justify.
JSWolf is offline   Reply With Quote
Advert
Old 04-13-2020, 05:34 PM   #6
wff
Member
wff began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2020
Location: Nancy, France
Device: Kobo Aura H2O, Marvin iOS
Hi JSWolf,
Thank you for your answer.
I tried what you suggested, but it didn't change anything... :-(
I also tried left justification and it didn't work...
wff is offline   Reply With Quote
Old 04-13-2020, 05:40 PM   #7
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: 74,360
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by wff View Post
Hi JSWolf,
Thank you for your answer.
I tried what you suggested, but it didn't change anything... :-(
I also tried left justification and it didn't work...
The next suggestion is to load the ePub in the editor and see if it;s an issue with the code and if it is, you should be able ot fix it with search/replace.
JSWolf is offline   Reply With Quote
Old 04-13-2020, 06:16 PM   #8
wff
Member
wff began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2020
Location: Nancy, France
Device: Kobo Aura H2O, Marvin iOS
I am not very familiar with the way the code should be.
Could you have a look and tell me if there are issues in it and, if there are, the way I could fix them?
If you want to see the code by yourself, you can have a look at the epub sample I join with my first post :-)
Thanks again!
Attached Thumbnails
Click image for larger version

Name:	Ebook Edit.jpg
Views:	152
Size:	327.4 KB
ID:	178366  
wff is offline   Reply With Quote
Old 04-13-2020, 06:43 PM   #9
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: 29,889
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by wff View Post
I am not very familiar with the way the code should be.
Could you have a look and tell me if there are issues in it and, if there are, the way I could fix them?
If you want to see the code by yourself, you can have a look at the epub sample I join with my first post :-)
Thanks again!
So what does the CSS (Style) for those <p> (and any other tags) look like?

No style/CSS setting and you are at the mercy of the VIEWERS defaults
theducks is online now   Reply With Quote
Old 04-13-2020, 07:20 PM   #10
wff
Member
wff began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2020
Location: Nancy, France
Device: Kobo Aura H2O, Marvin iOS
Hello theducks,
Thanks for answering.
I am sorry for the CSS sheet. Here it is.
Thanks :-)
Attached Files
File Type: txt stylesheet.css.txt (2.6 KB, 133 views)
wff is offline   Reply With Quote
Old 04-13-2020, 09:21 PM   #11
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: 36,009
Karma: 145735366
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by wff View Post
Hello theducks,
Thanks for answering.
I am sorry for the CSS sheet. Here it is.
Thanks :-)
I had a quick look at your .css file and made a few modifications. I removed several text-align: justify, moved the widows & orphans into the body style and changed their value to 1, etc.

Hopefully, removing the text-align from the paragraph styles should let you use the justify/left settings on your ereader.

Edit: Just to mention that I had downloaded your epub file from the first message but when attempting to open it, there is an error in the content.opf file.

Last edited by DNSB; 04-13-2020 at 09:39 PM.
DNSB is offline   Reply With Quote
Old 04-13-2020, 11:09 PM   #12
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,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Having a look at the book and doing some experimenting, the problem seems to be largely caused by the leading spaces in the paragraphs and character such as the thins space.

As an example, with the following paragraph:

Code:
<p>
    – Ah oui, je… » Les paroles prononcées de l’autre côté de la porte
    parvenaient au visiteur mutilées, à demi étouffées. « J’ai appelé pour
    annuler. Nous avons une… un… problème… ennui… de sécurité.
</p>
There is a thin space between "«" and "J". On the device, there is a much larger space than expected between "pour" and "annuler".

When I reformatted the above to:
Code:
  <p>– Ah oui, je… » Les paroles prononcées de l’autre côté de la porte parvenaient au visiteur mutilées, à demi étouffées. « J’ai appelé pour annuler. Nous avons une… un… problème… ennui… de sécurité.</p>
That extra space didn't occur.

I know that there are issues in the kepub parser for some characters. For example, spacing is added around an emdash when it probably shouldn't be. And isn't in an epub rendered using the RMSDK. I think there are similar issues with other characters such as the thin space used used. But, I don't normally see these as they are uncommon in English text.

From what I can see, the extra long spacing is where there is a line-break and then leading spaces within the paragraphs and a thin space or endash on the previous line. This appears to be a bug in the parser. It might be language specific handling that is wrong. But, removing the line breaks and the leading spaces in the text improves the rendering a lot.

Note: When doing this, I didn't do anything to add the spans into the file. I took the supplied sample and added it directly to the device. And edited another copy to wrap the text within paragraphs. Adding the spans would make a difference to this. It might be a case were wrapping the paragraph rather than a sentence within works better. Looking at a sample from Kobo to see what they do might be a good idea.
davidfor is offline   Reply With Quote
Old 04-13-2020, 11:12 PM   #13
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,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by DNSB View Post
Edit: Just to mention that I had downloaded your epub file from the first message but when attempting to open it, there is an error in the content.opf file.
I accidentally fixed that because I edited the title in the calibre editor to show whether I was looking at the unchanged version or the one where I wrapped the text.

There were also some errors elsewhere, but, they weren't in the chapters being looked at.
davidfor is offline   Reply With Quote
Old 04-14-2020, 04:56 AM   #14
wff
Member
wff began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2020
Location: Nancy, France
Device: Kobo Aura H2O, Marvin iOS
Hi DNSB and davidfor,
Thank you very much for your answers!
I tried a lot of things with justify, and it doesn't seem to work.
I noticed these thin spaces before and after some signs (like ! ? ; " ) and I was wondering if it was part of the issue, but as I am not used to epub code, I was not sure.
So I will try to search and replace, so hopefully I can get rid of the thin spaces. How could I proceed to manage leading spaces in paragraphs?
I will keep you posted with my results.
Thanks again for your help.
wff is offline   Reply With Quote
Old 04-14-2020, 05:33 AM   #15
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: 74,360
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@Wff I tried the ePub you posted with Adobe Digital Editions 2.0.1 and it works. Try loading it an an ePub to your Kobo and read it that way. It should work much better then it does as KePub. The screen grab will show you how it looks in ADE 2.0.1 for Windows, I would expect similar results on your Kobo as ePub.

Click image for larger version

Name:	ADE201.JPG
Views:	153
Size:	171.6 KB
ID:	178372

Last edited by JSWolf; 04-14-2020 at 05:36 AM.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange conversion from epub to kepub Sam Sahara Kobo Reader 1 09-11-2017 08:30 AM
EPUB to KEPUB conversion settings in Calibre Buhaj47 Kobo Reader 7 01-24-2016 11:49 AM
Kepub -> epub conversion? bartveld Kobo Reader 9 05-18-2014 05:37 AM
Glo Footnote encoding problem in kepub.epub fxp33 Kobo Reader 5 11-29-2013 04:02 AM
Aura HD Conversion of EPUB to KEPUB using Calibre kmack9 Kobo Reader 15 09-08-2013 01:00 PM


All times are GMT -4. The time now is 04:28 PM.


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