Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My crusty Python code implementing EPUB, with the conforming uncompressed mimetype file as first member in the archive:

https://github.com/davidwtbuxton/ucflib/blob/e576fb97fc2a2ea...



Robin Sloan has a good Ruby project that builds good-looking web pages alongside EPUB files: https://github.com/robinsloan/perfect-edition

It was in porting that to Racket [1] that I learned about some of these EPUB standard details.

But spoiler alert, both projects just shell out to `zip` to do the actual compression.

[1]: https://github.com/otherjoel/perfect-edition-pollen/blob/mas...




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: