munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.77k stars 1.03k forks source link

.epub format #648

Open bbqsrc opened 4 years ago

bbqsrc commented 4 years ago

Hey, would be cool to have this in epub format so it's easy to pop onto an ebook reader. 😄

Willamin commented 4 years ago

I second this and would love to even have a preliminary epub version of the book that isn't painstakingly typeset.

cagix commented 4 years ago

pandoc can build epub from markdown and/or html, i.e. you just would need to persuade util/book.py to generate the markdown content and then apply pandoc ... alternatively, building a single html file as input for pandoc should also work (pandoc could also be given several html pages as input, but this often doesn't work so well in practice).

DrTobe commented 4 years ago

I've done what @cagix recommended and created a super simple version of the book in epub format with pandoc. The TOC is weird, the images are too wide (for my ebook reader) and syntax highlighting does not work, just to name some of the many, many issues. But if you are just looking for anything you can put on your ebook reader, here it is:

craftinginterpreters.epub.zip

munificent commented 4 years ago

I plan to make an official ePUB version when I do the print version, which I'm getting started on now. Thanks for being patient. :)