Tag Archives: HTML

Formatting a Bilingual Poetry Collection in EPUB

One EPUB formatting question which I recently got interested in was: how to create a bilingual poetry book? That is, if you want to have a book of poetry in one language with line-by-line translation to another language (to aid a reader who knows the language of the original not too well), how do you do that? In a paper book, a good and well-tried solution is to have the texts in two languages placed on the left and the right page, facing each other. For an e-book, unfortunately, that approach cannot be reused; in particular because with an e-book you usually have only one page visible at a time. Splitting the page into two columns may be acceptable for short citations, but to format a whole poetic collection in this way would be inconvenient, for the columns are somewhat too narrow in this case even on bigger devices.

Continue reading

Formatting Poetry for EPUB and Small Devices

What we are going to discuss here is how to format poetry in XHTML format (which underlies EPUB) so that it looks nice on smartphone screens – that is, when many or even all of the lines do not fit the screen width. In other words, our concern is how to break poetry lines nicely.

We do not discuss the poems which use non-standard formatting (Lewis Carrol’s Fury said to a mouse, shaped like a twisting tail, is a good example of what we are not talking about here); each poem of this sort is a separate formatting problem of artistic rather then technical nature. What we are going to consider are poetry pieces which use some sort of conventional formatting. The examples used further in this tutorial are from Shakespeare, from Horace, and, for a more specific formatting convention, from Beowulf.

Continue reading

Using Q tags in ePub documents

Recently I’ve been making great progress on my ePub converter but in the process I’ve come across a few areas that have needed some thought. For this short article I’m going to discuss the XHTML Quote tag.

When looking though the IDPF OPS specs I noticed that <q> tags are allowed within ePub documents. As I mark up all quotes in my master TEI documents with a <q> tag I was really happy to see this. However, when I came to test my files in Adobe Digital Editions none of my quotes showed.

After seaching around the net I also noticed that <q> tags are not supported by all web browsers (i.e. Internet Explorer). Liza Daly has also noted that the HTML 5.0 specs will depreciate Q tags – will a version of XHTML follow suite in the future? Will a future IDPF OPS spec implement that future XHTML spec?

(FYI, Liza mentioned that she is currently working on implementing <q> tags in her Bookworm reader, with a work around for IE.)

This is an area which I believe ePub developers should give some serious thought over. Even if Adobe DE go ahead and implement this feature, other readers may not necessarily follow suite.

For my own project I have decided to convert all my <q> tags into regular “quote” characters. Providing more safety both now and in the long term.