Handling Widows and Orphans in EPUB Files

For a little over a year, I’ve been working with the EPUB format to build electronic books. I’ve been working on a software package to build EPUB files in Emacs, in fact.1 This has required learning more about design, and a great deal more about book layout. As with many design elements, once you’re made aware of them, you notice them all of the time. EPUBs, for instance, are not very good at handling widows and orphans.

Since EPUB uses HTML, it doesn’t have all of the tools available to print for handling these design issues. However, I’ve recently learned that there is hope. Over on Pigs, Gourds, and Wikis, I learned about the CSS div property, display: inline-block. I’m looking forward to using this in future EPUBs to improve format even more.

Typesetting


  1. Sorry, it’s not available for the general public yet. Someday! 

Leave a Comment