11-24-2010, 03:24 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2010
Device: pandigital novel
|
conversion from prc to epub problem
I have a 3 MB prc file that I want to convert into an epub for reading in my nook device. The conversion process stops at around 210 Kb file size. I tried to convert it into pdf format and it stopped at 600 Kb size. Both conversion stopped at around the same paragraph in the prc book. I enabled the debug output and saw that the entire prc book was read in the debug-raw.html file. Can anyone suggest what I can do the debug the problem further. Thanks.
|
11-24-2010, 03:55 PM | #2 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
there is most likely some markup/invalid bytes at the point where the document is being truncated. look at the html file in the debug directory to learn where it is being truncated
|
Advert | |
|
11-24-2010, 04:33 PM | #3 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
actually I tried converting your prc file and it resulted in a 4.5MB epub.
|
11-25-2010, 09:29 AM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2010
Device: pandigital novel
|
Can you share what settings do you used?
|
11-25-2010, 09:30 AM | #5 | |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
As a test I fed your PRC to my Calibre installation (Calibre v0.7.29 running on Windows XPsp3 with the extended language support installed, fonts & keyboards). The metadata looked fine in Calibre, no incorrect glyphs, and it converted fine, resulting in a modestly small 223k ePub. The ePub file displayed fine in Sigil (v0.3.1). The only flaw I detected was that Calibre's auto-generated cover page failed on some of the glyphs in the author's name. |
|
Advert | |
|
11-25-2010, 10:14 AM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2010
Device: pandigital novel
|
dwig,
I'm also using 0.7.29 on Windows 7 platform. If the file size is 223Kb then you have the same conversion problem as me. The file size should be greater than 3Mb. I could see at the stopping point there is a special byte, , that is the source of the problem. I am finding way to edit my prc file to remove this byte. |
11-25-2010, 10:44 AM | #7 | |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
I reviewed the PRC (actually Calibre's MOBI version after import into Calibre) and found some interesting things. Kindle4PC really does a bad job with the glyphs, using two fonts and failing on several characters. Kindle Previewer, on the other hand, renders the document very well. I found only one bad character, the one you list as the character causing the break. Last edited by dwig; 11-25-2010 at 02:28 PM. |
|
11-25-2010, 10:45 AM | #8 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I just converted it with standard settings from the command line.
ebook-convert filename.prc .epub |
11-25-2010, 10:51 AM | #9 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2010
Device: pandigital novel
|
thanks kovidgoyal, now I have to search for how to use the command line function.
|
11-25-2010, 04:39 PM | #10 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2010
Device: pandigital novel
|
using the command line still got the result file of 230Kb, so I used hex editor to remove the offending byte from the debug html file and using Calibre gui to convert it successfully to epub. Thanks everyone for your input.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error on PRC > EPUB conversion | myusername | Calibre | 8 | 09-02-2010 08:30 PM |
Possible ePub Conversion Problem in 0.6.49 ??? | GJN | Calibre | 2 | 04-24-2010 10:36 AM |
Problem Converting prc to epub and fetching news | kinder232 | Calibre | 2 | 03-11-2010 03:18 AM |
Conversion problem from PRC to anything | EricLandes | Calibre | 2 | 02-12-2010 12:13 PM |