Inclusive EPUB 3 Exemplar
Directory Structure
This project is organized according to books and their resources:
./book-title
mimetype
/META-INF
/Content
/html
/images
/videos
/audio
...
./book-title-2
...
Each book is a root directory labelled by its title. Within each book directory are sub-directories containing all the resources required to create the EPUB 3 container.
Notes
- Some resources (i.e. videos and audio) may contain further instructions, refer to these directories for additional instructions.
- Additional books will be siblings at the root level.
Installation Steps
- Get EPUB exemplar content.
- Install some EPUB readers to test with.
- Build EPUB using zip
1 EPUB Exemplar Content
- Use git to get a copy of the EPUB repository: https://github.com/fluid-project/EPUB
- Change directory into EPUB directory.
- Save the videos from the following links into the ./videos/ directory.
2 Testing Tools
The following EPUB readers are used for testing:
3 Building EPUB
To build the EPUB archive:
In the physics-forces_and_motion
directory, create a ZIP archive containing the contents of the folder:
the mimetype
file, the META-INF
folder and the Content
folder.
NOTE: You must ensure that the mimetype
file is the first item in the archive.
For example, to use the zip
command on the command line to create an archive called physics.epub
:
> cd physics-forces_and_motion
> zip -X physics.epub mimetype
> zip -XDr physics.epub META-INF Content