craftinginterpreters icon indicating copy to clipboard operation
craftinginterpreters copied to clipboard

.epub format

Open bbqsrc opened this issue 4 years ago • 4 comments

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

bbqsrc avatar Apr 06 '20 12:04 bbqsrc

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

Willamin avatar Apr 07 '20 20:04 Willamin

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).

cagix avatar Apr 08 '20 07:04 cagix

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

DrTobe avatar Apr 12 '20 15:04 DrTobe

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. :)

munificent avatar May 07 '20 03:05 munificent