MoEML’s ePub Files Process

This document is currently in draft. When it has been reviewed and proofed, it will be published on the site.

View the draft document.

Please note that it is not of publishable quality yet.

MoEML’s ePub Files Process

ePubs are electronic publications that are fit to be read on designated devices and platforms (such as Kindle). We assume that the devices are not connected to the Internet, therefore the ePubs have to contain all the necessary information, data, and metadata. ePubs necessitate a particular structure (which will be discussed below). In order to produce MoEML ePubs, we have developed a series of XSLT documents, that transform the source page (the online documentID.htm), and build it (via an ANT application) into the necessary components of an ePub, in the appropriate formats.

ePub Infrastructure

The MoEML ePub infrastructure consists of 5 XSLT transformations (jenkins_to_epub.xsl; epub_supplementary_files.xsl; list_css_for_epub.xsl; list_fonts_for_epub.xsl; and list_images_for_epub.xsl) and an ANT build (createEpubs.xml). The transformations are responsible for creating the necessary files, based on the ID.htm file, and the ANT application is responsible for building the ePub and zipping its contents in the right order.

jenkins_to_epub.xsl - Main Transformation

This transformation is responsible for editing the source file from Jenkins, to have it fit the ePub requirements (the MoEML stylistic requirements as well as the global ePub restrictions). It removes some divisions, including breadcrumbs, the search bar, the left column. In addition, this transformation rewrites external links to link them to https://mapoflondon.uvic.ca. It also adds necessary metadata such as credits and PERS mentions where appropriate.

epub_supplementary_files.xsl - Main Transformation

This transformation is responsible for adding the files that are essential for the structure of the ePub (to be discussed below). It also includes templates that contribute to the creation of the files mentioned. Note that this transformation is responsible for creating the CSS files that override the MoEML files.

list_css_for_epub.xsl

This transformation creates a list of CSS files that need to be copied into the ePub package. It is used by the ANT build to determine which CSS files need to be included, and from which location(s) to get them. It will then copy the files into the ePub CSS folder.

list_fonts_for_epub.xsl

This transformation creates a list of fonts that need to be copied into the ePub package. It is used by the ANT build to determine which font files need to be included, and from which location to get them. It will then copy the files into the ePub fonts folder.

list_images_for_epub.xsl

This transformation creates a list of images that need to be copied into the ePub package. It is used by the ANT build (which will copy the files) to determine which images need to be included, and what location(s) to get them from.

The ANT build: createEpubs.xml

The ANT build is responsible for creating the files and placing them in their appropriate folders, as well as copying CSS files, fonts, and images into their corresponding folders. It builds/creates the ePub package, and zips it appropriately. Not that there is a specific order for zipping the files, for the ePub to function properly.

ePub Package Structure

The ePub package consists of a mimetype.txt, a META-INF folder that contains the container.xml file, and an EPUB folder that contains all other subfolders and files including the documentID.xhtml.
  • The mimetype.txt contains one line of text: application/epub+zip.
  • The META-INF folder contains the container.xml file, which has the location of the package.opf file (also known as the brain of the publication – details below).
  • The EPUB folder contains the following:
    • cover.xhtml: This file is the cover of the eBook. It contains a cover image, the title of the book, the credits, the category information, and the citation information. The credits are linked to the personography details available in the appendix of the book (documentId.xhtml)
    • toc.ncx: This file is the book’s table of content information – the navigation map with appropriate playorder
    • nav.xhtml: This file is the one responsible for the table of contents that appears in the book – Some of our born digital documents do not have a table of content. We still need to create nav.xhtml, but we hide it
    • package.opf: This file declares all the elements included in the book, from images, to fonts, to css files, etc. All components of the ePub need to be declared in this file; otherwise, the build will result in errors
    • documentId.xhtml: This is the main document that contains the body of the eBook
    • the CSS folder: Contains the CSS files (MoEML’s in addition to the files that override them, including: epub.css, cover.css, and nav.css)
    • the fonts folder: Contains the fonts used for our book (as per MoEML’s preferences – most important for our primary sources)
    • the images folder: Contains the images that are available in, and needed for the ePub.

ePub Design

The current design of the ePub has a minimalist text body that replicates a book’s page design and adheres to what ePubs usually look like. Our cover page however is where our design stands out: we are replicating the feel of Early Modern book covers. The cover page contains the project title (Map of Early Modern London), the title of the document, a visual of the map, and the publication date. The cover page is taken as a .png file from the corresponding PDF file, in order for it to appear consistently as a cover, regardless of the platform.

ePub Publication

The ePubs will be published on MoEML’s UVic libraries UVicSpace – UVic’s Research and Learning Repository (https://dspace.library.uvic.ca/handle/1828/10927). MoEML is part of the Endings project, which is in collaboration with the UVic libraries. The PDFs are thus published on the digital space that the library has dedicated to MoEML.
For more detailed information about the ePub building process, please see the developers’ ePub documentation .

Cite this page

MLA citation

El Hajj, Tracey. MoEML’s ePub Files Process. The Map of Early Modern London, edited by Janelle Jenstad, U of Victoria, 26 Jun. 2020, mapoflondon.uvic.ca/epub_about.htm.

Chicago citation

El Hajj, Tracey. MoEML’s ePub Files Process. The Map of Early Modern London. Ed. Janelle Jenstad. Victoria: University of Victoria. Accessed June 26, 2020. https://mapoflondon.uvic.ca/epub_about.htm.

APA citation

El Hajj, T. 2020. MoEML’s ePub Files Process. In J. Jenstad (Ed), The Map of Early Modern London. Victoria: University of Victoria. Retrieved from https://mapoflondon.uvic.ca/epub_about.htm.

RIS file (for RefMan, EndNote etc.)

Provider: University of Victoria
Database: The Map of Early Modern London
Content: text/plain; charset="utf-8"

TY  - ELEC
A1  - El Hajj, Tracey
ED  - Jenstad, Janelle
T1  - MoEML’s ePub Files Process
T2  - The Map of Early Modern London
PY  - 2020
DA  - 2020/06/26
CY  - Victoria
PB  - University of Victoria
LA  - English
UR  - https://mapoflondon.uvic.ca/epub_about.htm
UR  - https://mapoflondon.uvic.ca/xml/standalone/epub_about.xml
ER  - 

RefWorks

RT Web Page
SR Electronic(1)
A1 El Hajj, Tracey
A6 Jenstad, Janelle
T1 MoEML’s ePub Files Process
T2 The Map of Early Modern London
WP 2020
FD 2020/06/26
RD 2020/06/26
PP Victoria
PB University of Victoria
LA English
OL English
LK https://mapoflondon.uvic.ca/epub_about.htm

TEI citation

<bibl type="mla"><author><name ref="#ELHA1"><surname>El Hajj</surname>, <forename>Tracey</forename></name></author>. <title level="a"><title level="m">MoEML</title>’s ePub Files Process</title>. <title level="m">The Map of Early Modern London</title>, edited by <editor><name ref="#JENS1"><forename>Janelle</forename> <surname>Jenstad</surname></name></editor>, <publisher>U of Victoria</publisher>, <date when="2020-06-26">26 Jun. 2020</date>, <ref target="https://mapoflondon.uvic.ca/epub_about.htm">mapoflondon.uvic.ca/epub_about.htm</ref>.</bibl>

Personography