SICP for Kindle – improved by yours truly

I was looking for a Kindle version of the MIT Press classic text on computer programming, Structure and Interpretation of Computer Programs, which is (delightfully!) available online in its entirety here as an HTML book. (MIT is awesome like that.) I found one, by twcamper on GitHub.

Unfortunately, I discovered that he had eliminated paragraph indentation – apparently Kindle was doing that automatically at some point, but they have since stopped – so I forked it, thinking I’d just add it in, rebuild the .mobi file, and be on my way. Alas, it wasn’t that simple: his documentation skipped a few things (it looks like it was more a way of storing his personal project than meant for public consumption), so I spent a good chunk of the morning figuring out how the project worked, making some tweaks to get it to work the way I wanted it to, and updating the documentation so others could follow my steps themselves if they wanted to make their own tweaks to the CSS file.

You can get the updated book directly from the Downloads page. If you want the Ruby code used to generate it, you can get that direct from the main GitHub page for the project, which also has a (much improved, in my opinion) writeup on how to actually use it. Enjoy!


  • Ace thought to say:

    Unfortunately it looks like your version lost all of the spaces after a paragraph which makes it a little hard to read (but still better as your version is the version I’m reading on my Kindle) some of the examples also get a little munged. I’m only on chapter 1 but anything complex where they’re putting arrows (IE location 66.4 via Calibre) is out of wack, the original version does a little better (location 65.7) but still suffers from the same issue.

Discussion is closed at this time.