10-25-2018, 09:35 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Oasis
|
kindlegen fails to convert epub
Error(core):E1003: Unknown error in class String.
Error(parsing):E3013: More number of characters are hidden using display:none than allowed limit. Limit: 10000 in file: C:\Users\Codrut\AppData\Local\Temp\mbp_7E2_A_19_F_ 6_5_3A_684_2028_1\OEBPS\toc01.xhtml line: 13 KindlePreviewer 3.27.0, Windows 1809 64-bit epub opens fine with other readers |
10-25-2018, 11:01 AM | #2 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
It also couldn't hurt to check your book with EpubCheck. |
|
10-26-2018, 09:20 AM | #3 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Oasis
|
It seems that EpubCheck is raising a lot of error. So, now, the question is, which software/python script/etc. to use in order to fix my epubs such that they are beautifully converted to Kindle format using kindlegen (calibre converted them with many many alignment problems).
|
10-26-2018, 09:38 AM | #4 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Calibre Editor can fix some problems. (Open your book in Calibre Editor then click Run check and Try to correct all fixable errors automatically.)
|
10-26-2018, 12:53 PM | #5 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Oasis
|
Is there any way to maybe import the html files in Word, arrange it nicely, then use Kindle Creator to convert from doc to mobi? I am also willing to learn html/css to fix these epubs, but I don't know where to start. It seems you need to be a guru in order to convert files from one format to another. My platform is definitely Kindle. I need to learn how to convert other (DRM free) books to Kindle.
|
10-26-2018, 02:37 PM | #6 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
It helps to be familiar with HTML/CSS, but you could also convert your epub to a docx file with Calibre, edit the docx file with MS Word and then convert it back to an epub/azw3 file with Calibre. Last edited by Doitsu; 10-26-2018 at 02:58 PM. |
|
10-26-2018, 03:57 PM | #7 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Oasis
|
Hi Doitsu,
Many thanks for your support. I have one last question Kindlegen fails with this error: Error(parsing):E3013: More number of characters are hidden using display:none than allowed limit. Limit: 10000 in file: C:\Users\Codrut\9781491958858\OEBPS\ch01.xhtml line: 9 Now, line 9 in that file is this: <style type="text/css" id="column-width"> { max-width: <%= column_width %>% !important; margin: 0 auto !important; }</style> any idea what could it be? Thanks |
10-26-2018, 05:01 PM | #8 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Simply delete the whole line. |
|
10-26-2018, 05:06 PM | #9 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Oasis
|
Hi Doitsu,
I was able to workaround the issue by unpacking the epub (it's just a zip file) and using Visual Code I replaced all occurrences in all the files of "display:none" to "display:hidden". Zipping back the files and directories into epub opened the book exactly as before. Now kindlegen succeeded! So, if anyone hits the same problem can try applying the above. I don't know what's the difference between "display:none" and "display:hidden". But it seems to work. It looks right and the pictures are not elongated as when using Calibre. I now have only one remaining problem. Some characters appear in my kindle book. I think kindlegen used my active code page and not UTF8. I will try KindlePreviewer which is using a newer version of kindlegen. Thanks, Codrut |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub fails to convert | Siavahda | Conversion | 17 | 03-05-2021 11:03 PM |
Troubleshooting TOC fails in Kindlegen 1.1, not Kindlegen 1.0 | cyberbaffled | Amazon Kindle | 3 | 12-25-2010 05:21 PM |
Can't convert MOBI to EPUB.. conversion FAILS | wallace.webmail | Calibre | 5 | 07-16-2010 12:45 AM |