ePub WordPress plugin released today

Martin Fenner
February 1, 2011 1 min read

The Beyond the PDF (https://web.archive.org/web/20120628132920/https://sites.google.com/site/beyondthepdf/?) workshop took place a little over a week ago. One take-home message for me was that ePub is a very interesting (https://web.archive.org/web/20120628132920/http://blogs.plos.org/mfenner/2011/01/23/beyond-the-pdf-%E2%80%A6-is-epub?) document format for scholarly publishing and has several advantages over PDF. The workshop had a wonderful spirit to do something, and in this spirit I wrote a WordPress plugin that automatically creates ePub files from blog posts. The plugin was released today (https://web.archive.org/web/20120628132920/http://wordpress.org/extend/plugins/epub-export?), and can be installed directly from your WordPress installation. A sample ePub can be downloaded from this blog post (https://web.archive.org/web/20120628132920/http://blogs.xartrials.org/2011/01/09/embedding-adobe-illustrator-charts-in-wordpress-using-html5/?), using the link at the bottom.

The workshop example paper from PLoS Comp Biol, as seen on the iPad.

This is version 1.0 of the plugin, and there a still number of small bugs, mainly because ePub is a complex format. A big problem is page breaks, and widows and orphans (https://web.archive.org/web/20120628132920/http://en.wikipedia.org/wiki/Widows_and_orphans?) can currently only be avoided by workarounds. You can also see in the screenshot that the shortcode wasn’t parsed for the ePub.

But these are minor issues that can be solved in the coming weeks. More interesting for version 1.1 is the inclusion of attachments (other than images) in the ePub. I have to do some more thinking on how to do this, especially how to handle all the possible mime types.

I like reading science blogs in ePub format, using either Adobe Digital Editions on the Mac or iBooks on iPad and iPhone. This works particularly well for longer posts, e.g. those lovely posts from my science writer colleagues here on PLoS Blogs. If you have access to WordPress, then this plugin is one of the easiest ways to produce content in ePub format.

Carmeliet, P. (2005). Angiogenesis in life, disease and medicine. Nature, 438(7070), 932–936. https://doi.org/10.1038/nature04478
Contopoulos-Ioannidis, D. G., Alexiou, G. A., Gouvias, T. C., & Ioannidis, J. P. A. (2008). Life Cycle of Translational Research for Medical Interventions. Science, 321(5894), 1298–1299. https://doi.org/10.1126/science.1160622
The Nobel Prize in Physiology or Medicine 2005. (2015). In web.archive.org. https://web.archive.org/web/20150814032045/http://www.nobelprize.org/nobel_prizes/medicine/laureates/2005/index.html

Other Formats