Creating Epub and Mobi

Tutorials

The Standard

Device Support

Validators

Samples

Fonts

Tools

Book builders

bookshop gem

  • HTML: ERB
  • Mobi: KindleGen
  • PDF: PrinceXML

It composes one “master” HTML file from a folder of ERB files. One edits the content.opf.erb and toc.ncx.erb to fit the epub. This and all images, css, etc. are copied into a folder and zipped.

kitabu gem

Similar process to bookshop.

Web Book Boilerplate

  • Grunt npm package for task organizing
  • Epub: Pandoc
  • Mobi: KindleGen

It renders Markdown files for chapters, concatenates them to a “master” HTML and converts that EPUB with pandoc.

Calibre CLI ebook-convert

Pandoc epub conversion

And now, the prophecy gem!

$ gem install prophecy

Inspiried by bookshop gem and kitabu gem.