ePUB BriefSean Lee @ Weaveus. Mar 2011
ePUB
• XHTML for content
• CSS for layout and formatting
• XML for manifest, table of contents, metadata
ePUB
• Open Publication Structure (OPS)formatting of its content
• Open Packaging Format (OPF)XML .epub format
• Open Container Format (OCF)ZIP archive
Open Publication Structure
• XHTML
• CSS - OPS Style Sheet. ‘oeb-’ prefix.
• Image - PNG, JPG, GIF and SVG
• UTF-16 or UTF-8
Open Publication Structure
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <title>Pride and Prejudice</title> <link rel="stylesheet" href="css/main.css" type="text/css" /> </head> <body> ... </body></html>
Open Packaging Format
• .opf - metadata XML
• .ncx - navigation control file for XML
Open Container Format
• wrap in a ZIP
• /metadata
• /META-INF/container.xml
• {OPS, OPF files}
.epub Archive
.epub in Reader
Application ‘Stanza’
.epub in iBooks
References
• Wikipedia EPUBhttp://en.wikipedia.org/wiki/EPUB