Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to decide whether to buy a Kindle 2, now that it's available in Europe. One thing I would like to do with it is put several Windows help files on it (e. g. the Python documentation). Is there a good way to convert a CHM file to a Kindle-readable format?

Or is this something that other e-readers like Sony's do better since EPUB and CHM are both based on HTML?

share|improve this question
1  
yes, both EPUB and CHM are HTML containers, ZIP can extract EPUB. –  Molly7244 Nov 22 '09 at 2:29
    
did you try both solutions from the answers to that question? –  quack quixote Apr 14 '10 at 8:01
    
@quack yeah I did. eCub failed to create a directory and stopped. I might try it on another box and see how I go. –  griegs Apr 14 '10 at 22:42
add comment

5 Answers

up vote 23 down vote accepted

if you're using Windows, (you can skip directly to step 3. if using a recent versions of Calibre, it now support importing chm files directly).

1. extract the HTML files from the CHM container from the command prompt with HH.EXE

example:

HH.EXE -decompile C:\Temp\decompile-folder C:\Temp\yourCHM.chm

(Mac users can use Tubby to convert CHM to HTML)

2. merge the HTML files into a single file (e.g. with SoftSnow Merger)

3. use Calibre to convert it to EPUB.

all programs mentioned above are freeware, hh.exe is a Microsoft Windows Help utility.

there are commercial programs like ABC Amber CHM Converter that will perform steps 1 & 2 automatically. however, i don't know any software that will convert CHM directly to EPUB. other commercial applications (e.g. Universal Document Converter) can be used to convert CHM to PDF which the Kindle may or may not handle all that well.

share|improve this answer
1  
+1 nice workaround. –  DaveParillo Nov 21 '09 at 23:41
    
Thanks, Molly. I have been using a similar approach (hhw.exe) with varying success. There are some help files out there that use a .hhc file as their "navigation center" instead of something like an "index.html", and iSilo (Palm HTML converter) couldn't handle that. An example is the PowerShell help file (PowerShell 1.0) - would your approach work for that too? –  Tim Pietzcker Nov 22 '09 at 9:12
4  
Calibre now supports chm files, and can convert them directly to EPUB or MOBI (among other formats). –  Blorgbeard Oct 10 '10 at 13:29
    
Note that when using hh.exe there should be no spaces in your path names, if you use quotes to specify the pathname it simply does nothing. –  Sverre Rabbelier Feb 1 '11 at 15:04
add comment

In order to read your .chm file on the Kindle, you will need to convert it to .mobi format. That can be done by merely using Calibre which allows you to import a .chm file and convert it to .mobi. Then you can send the file to your device when it is connect

share|improve this answer
    
+1 (This answer supersedes the original accepted answer, please vote it up so more people can see it) –  Eric L Mar 12 '11 at 13:25
add comment

Cool workaround by Molly, but you can also use eCub to create ePUB from html pages, this way you don't have a one page book, but books with chapters and various pages.

share|improve this answer
1  
+1 very nice find indeed. –  Molly7244 Dec 28 '09 at 18:55
add comment

I have found Sigil to be an excellent tool for creating and editing ePub format e-Books. I use it on Linux, but as far as I know it works equally well on Windows or Mac, so it should not matter at all what operating system you are trying to accomplish this task on. As long as you have the HTML and image files you need (and know enough about HTML to possibly edit the image links or clean up the content if necessary) you should be fine. It requires a bit more work than eCub, but it gives you total control over the end result and with a little practice you can create some quite nice ePub e-Books.

share|improve this answer
add comment

Why not try chm2pdf? It's available in Ubuntu repository so you can easily install it:

sudo apt-get install chm2pdf

It has a continuous mode to concatenate html pages, as:

chm2pdf --continuous in.chm out.pdf

And a lot of options to control the output appearance.

share|improve this answer
    
pdf sucks on a kindle ! –  iDevlop Nov 27 '11 at 12:58
    
Well, you can chop the white margins with acroreader, to make it little better.. –  Xiè Jìléi Nov 28 '11 at 7:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.