WritersPrintshop gets you published

EPUB container


 
The website for writers
WritersServices has over 1300 pages
To help you find
Search
Contents
FAQs
Overview
Getting ready
Pre-production
Ebooks
Design
Publication
Print and supply
How to order 
Marketing your book
Just thinking about it?
Main topic index
The Marketplace
Cost estimates
Editorial services

WritersPrintShop
Index page
EPUB container
Ebook Metadata
Cascading Style Sheets
EBook Cover

Have you thought about making an audio book?

Follow the process of publishing that is described in over 90 articles

Some titles in our bookshop

Exchange calculator

Charity links

Read more

Please support the Reverse Book Club

 

EPUB is not a single file but a container with several files and folders.

Books is supplied in a ‘container

bulletSo the ebook looks like one file, but it isn’t.
bulletA container has several files, including the text, images, data and in the case of EPUB, all ZIPped into a single file.
bulletCascading style sheet (CSS), and your ereader browsing software, provides the way the book looks.

EPUB structure

The container has a number of files which are all zip compressed. You do not need to understand what goes on inside the container so what follows is only for the technically curious.

You can use any of the standard programmes to uncompress an ebook to look at the component files but you will need to change the extension from .EPUB to .ZIP, and back again, before you can read it as an ebook.

Some files are mandated but the others depend on the converter employed and the type of source file. Do not move the components files about (as if you would!) without understanding all of the pointers within the EPUB container.

  1. mimetype: This is the information about what kind of file this is and the formats involved. Leave this alone.
  2. META-INF/ This is the folder where the data of the book is located. There is always a container.xml file but the others are not always present.
  3. container.xml This XML file points to the file defining the contents of the book, basically the .OPF file.
  4. Encription.xml holds the encryption information on the contents of the container and might point to a web location for special fonts
  5. manifest.xml is an optional file
  6. metadata.xml another optional file that version 3 will probably not be used
  7. rights.xml An EPUB file can optionally contain DRM as an additional layer, but it is not required by the specifications. In any case this is the file where all the information should go.
  8. signatures.xml Digital Signatures are a special tag which is normally a web link but should not concern a writer.
  9. OEBPS/ folder where the file or files for the book, the chapters, images and metadata. Then there are some sub-folders with the actual book content (The names of the folders can vary). OEBBS – Open E Book Publication System
  10. TOC.NCX This file has the TOC navigation pointers.
  11. .OPF file is an XML data file which describes two things:
    bulletThe list of HTML content files in the publication which contain the actual text of the book along with images and formatting
    bulletThe metadata of the eBook (Title, Author, Publisher, Cover, ...)
    bulletbook.opf or content.opf are common names for the publication file and explains how all the components of the book work together. The manifest lists all the files in the package and the spine lists the XHTML content documents giving their normal reading order.
  12. TEXT/ Inside this folder, all the text in the book is formatted with xhtml (almost like web pages), and it can be separated in sections for better reading or in one large file. But the content might sit in the OEBPS root as an xhtml file.
  13. IMAGES/ The folder has all the images, including the cover. EPUB accepts the formats normally used in web. There are <ahref> tags in the text that point to the images.
  14. STYLE/ This is the folder where the format of the book is defined using CSS but you would be well advised to let the ebook generator handle all of this. But you might just have a single file called TEMPLATE.CSS.or style.css - This is a basic CSS format
  15. FONTS/ It is possible to embed fonts into the container e.g. myfont.otf, but this can also go in the STYLE/ folder.

Visit IDPF (International Digital Publishing Forum) for more info and detailed specifications.

Get a print estimate

Does your book deserve the attentions of a professional  copy editor?

Writers Services offers a full range of editorial services.

Glossary  & Acronyms

Home  Newsletter  What's involved? Glossary  & Acronyms Some WPS titles Worldwide distribution

Main topic index

  1. Work out the design and set up cost
  2. Unit cost business & marketing plans
  3. Book order form and payment page

You are off to a very good marketing start with WPS as we link all our titles into Amazon and several of the biggest book distributors so you book can be ordered, delivered and the money collected worldwide.

Search

Contents

FAQs

Bookshop

Feedback

Choose WPS as your publishing partner.

We operate from the UK and under the financial rules and regulations of the UK

  © writersservices.com 2000-11