03-04-2010, 02:11 PM | #1 |
Resident Curmudgeon
Posts: 75,990
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
ePub to PDB (eReader) failing miserably
I am trying to convert an ePub file to PDB and it fails big time with the latest Calibre.
Code:
1% Converting input to HTML... InputFormatPlugin: EPUB Input running on E:\E-Books\Sorted\ebook.epub Found HTML cover titlepage.xhtml Parsing all content... Property: Invalid value for "CSS Level 2.1" property: italic [136:5: text-decoration] Python function terminated unexpectedly invalid literal for int() with base 10: '1a' (Error Code: 1) Traceback (most recent call last): File "site.py", line 103, in main File "site.py", line 85, in run_entry_point File "site-packages\calibre\ebooks\conversion\cli.py", line 254, in main File "site-packages\calibre\ebooks\conversion\plumber.py", line 794, in run File "site-packages\calibre\ebooks\conversion\plumber.py", line 920, in create_oebbook File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__ File "site-packages\calibre\ebooks\oeb\reader.py", line 592, in _all_from_opf File "site-packages\calibre\ebooks\oeb\reader.py", line 458, in _toc_from_opf File "site-packages\calibre\ebooks\oeb\reader.py", line 370, in _toc_from_ncx File "site-packages\calibre\ebooks\oeb\reader.py", line 334, in _toc_from_navpoint ValueError: invalid literal for int() with base 10: '1a' Code:
ebook-convert ebook.epub .pdb --remove-paragraph-spacing |
03-04-2010, 02:44 PM | #2 |
creator of calibre
Posts: 44,380
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your epub file has a toc.ncx with non integral values for playOrder
|
Advert | |
|
03-04-2010, 03:15 PM | #3 |
Resident Curmudgeon
Posts: 75,990
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Thanks. That fixed it. Now I have a different problem. The detected ToC doesn't work. No ToC is generated.'
Also, using --remove-paragraph-spacing doesn't work. It does remove the extra paragraph spaces put in, but it also removes ALL the spaces. And not all the indents are correct. Can the PDB output please be fixed so the output looks like the input? Last edited by JSWolf; 03-04-2010 at 03:23 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDB and Sony 300 eReader | Spunky | Sony Reader | 6 | 04-30-2010 10:34 PM |
eReader (pdb) purchased ebooks on B&N eReader on iPhone? | bthoven | Reading and Management | 5 | 12-23-2009 06:52 AM |
4 book series PDB conversion, 1 book failing | fuzzycloud | Calibre | 2 | 10-13-2009 03:03 AM |
Why won't ereader see my pdb files? | CClio333 | Reading and Management | 11 | 01-23-2008 02:39 AM |
.PDB Encrytpion in ereader | arvinder | Reading and Management | 9 | 08-30-2007 05:19 AM |