EPUB2 output - electricbookworks/constitution GitHub Wiki

To get EPUB2 versions from the command line, follow the output guidelines in the Electric Book Workflow guide.

After assembling the epub in Sigil, the HTML will not validate as XHTML 1.1 because we use start attributes on some ordered lists. To fix this, do a quick search-and-replace in Sigil:

  1. In the Find dialog:
    1. Change 'Mode' to 'Regex'
    2. and 'All HTML Files'
  2. Find: <ol (.*?)start="(\d+)"
  3. Replace: <ol \1class="start-\2"

Done!

To understand what this does, see this gist.