Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2009, 07:55 AM   #1
Hein
Junior Member
Hein began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2009
Device: prs-505
CHM to sony prs-505

Hi,

I'm looking for a solution for this problem for a couple of day's now. I probably am missing somthing.

I'm trying to convert a chm file to any filetype for the prs-505 (no pdf). I allready decompiled the file using hh -decompile. So now I have a file called toc.html, backcover.html and DDU0001.html through DDU0110.html and a folder with images gif an jpeg and to css files ie.content.books24x7.css, xpolecat.css.

From here I don't know how to proceed. Everything I could find on the web say I should use html2lrf or html2epub but as far as I understand these doesn't excist in the current version of caliber and I should use ebook-convert.

When I try this on either the toc.html file alone or on a zip file of al the files I get an error:

File "parser.pxi", line 568, in lxml.etree._raiseParseError (src/lxml/lxml.etr
ee.c:56902)
lxml.etree.XMLSyntaxError: XML declaration allowed only at the start of the docu
ment, line 33, column 10

What am I doing wrong or is there a better way to convert chm books?

Gr Hein
Hein is offline   Reply With Quote
Old 08-26-2009, 10:19 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error means that one of you files has an incorrect structure that calibre is choking on. In particular look for <?xml ...?> not at the start of the file and remove it.

The very poor quality of HTML in CHM file (seems to be a theme with Microsoft) is one reason calibre doesn not include direct support for CHM.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-26-2009, 10:42 AM   #3
Hein
Junior Member
Hein began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2009
Device: prs-505
Thank you, I actualy just figured this one out. It took me 3 days and I'm really glad that its the right solution. I should listen more to what errors are saying it can help you ah lot .
I'm now running into an other problem. I have to say I didn't have time to really google it but if you have a quick awnser it woul be great. I have some text between <pre </pre> tags because this is preformatted caliber doesn't reflow or adjus the size of it. So it doesn't show compltley on my reader. Is there a way around this?

Thank you for your help

Gr Hein
Hein is offline   Reply With Quote
Old 08-26-2009, 11:00 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just change the <pre> tags to <p>
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page cutoff by converting chm to epub on sony 505 Hein Calibre 5 09-18-2009 12:20 PM
My Decision: Sony PRS-505 vs. Sony PRS-700 vs. Kindle 2 enarchay Which one should I buy? 7 05-30-2009 10:21 PM
Amazon Kindle/Sony PRS-700/Sony PRS-505 Comparison Photos chrissy Which one should I buy? 18 05-06-2009 12:25 PM
Poll: Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 70 02-18-2009 06:34 PM
Just saw Sony PRS 700 and PRS 505 at Sony Style Store gamegirl Sony Reader 14 12-15-2008 04:16 PM


All times are GMT -4. The time now is 02:49 PM.


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