07-17-2011, 07:10 AM | #1 |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
Perfect CHM to epub?
CHM is a compiled HTML. epub is a zipped collection of HTML with a few extra files. Now is it possible to have a perfect conversion from CHM to epub? Or are there some problems?
|
07-17-2011, 12:43 PM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It will never be perfect automatically. I believe Calibre does a reasonable job. It all depends on the source of course. Tables are always cumbersome.
|
Advert | |
|
07-21-2011, 03:10 PM | #3 |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
So CHM isn't exactly HTML?
|
07-21-2011, 07:59 PM | #4 |
Evangelist
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
|
ePub contains XHTML not HTML, so if the HTML in your CHM is not well formed there will be problems.
|
07-22-2011, 03:19 AM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
And don't forget, CHM is not ePUB. Some formatting which is possible with CHM is not so doable in ePUB. Large tables is a known problem in ePUB.
|
Advert | |
|
07-27-2011, 02:25 PM | #6 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: iphone
|
Quote:
I have problem converting chm to epub using calibre,i get only preface contributors,cover of the book but not the chapters,can u help me in this matter |
|
07-31-2011, 04:16 AM | #7 |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
Pooja: this is what I am also looking for.
|
07-31-2011, 07:41 AM | #8 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
What you can do is transform the CHM back to HTML and create the ePUB by hand.
|
08-05-2011, 12:46 PM | #9 |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
|
08-10-2011, 06:02 PM | #10 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2011
Device: Sony PRS-350
|
Quote:
I try to do this by extracting files from chm, than take "page.htm" file (small one) and put it in Calibre and convert it to ePUB. As a result I get a relatively large file (12mb) with many-many blank pages (except preface and authors). But this result was better than from original .CHM file, when I get only 3 pages ePUB. When debugging - I find one interesting thing: when converting .chm -"processed" (maybe also "parsed" and "structure") folder was very small comparing with "input" folder so I get 3 pages epub, while converting "page.htm" (<300kb)- "processed", "structure" and "parsed" folders had the same size as "input" folder (all were ~50mb). So if 50mb is processed why I get a 12mb book without content? Is there a problem with output plugin? P.S. in all cases I use "linearize tables" option in the last - v.0.8.13 Calibre. Is there something better for conversions? |
|
08-11-2011, 02:04 AM | #11 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
There are several tools that can extract the HTML from CHM. There are also tools that can read the CHM (for editing) and than save it as HTML.
Don't run the HTML through Calibre, since it will not help you. Calibre follows this procedure and apparently there is some code in the HTML/CHM which is causing your issue. Then you either clean it up manually in a text-editor or you can try loading it into Sigil to see what happens there. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CHM to EPUB using Calibre | Kiz | ePub | 19 | 08-11-2011 02:02 AM |
CHM nach epub ? | KimJ | Erste Hilfe | 3 | 08-02-2011 09:07 AM |
CHM to epub | codydavis22 | Conversion | 8 | 04-08-2011 11:24 AM |
convert chm to epub | yshhq | Calibre | 2 | 08-12-2010 06:56 PM |
Converting from Word Perfect to epub | PhishStyx | Sigil | 10 | 05-17-2010 04:49 PM |