epub in brief

11
ePUB Brief Sean Lee @ Weaveus. Mar 2011

Upload: sean-lee

Post on 19-May-2015

1.018 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: ePUB in brief

ePUB BriefSean Lee @ Weaveus. Mar 2011

Page 2: ePUB in brief

ePUB

• XHTML for content

• CSS for layout and formatting

• XML for manifest, table of contents, metadata

Page 3: ePUB in brief

ePUB

• Open Publication Structure (OPS)formatting of its content

• Open Packaging Format (OPF)XML .epub format

• Open Container Format (OCF)ZIP archive

Page 4: ePUB in brief

Open Publication Structure

• XHTML

• CSS - OPS Style Sheet. ‘oeb-’ prefix.

• Image - PNG, JPG, GIF and SVG

• UTF-16 or UTF-8

Page 5: ePUB in brief

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>

Page 6: ePUB in brief

Open Packaging Format

• .opf - metadata XML

• .ncx - navigation control file for XML

Page 7: ePUB in brief

Open Container Format

• wrap in a ZIP

• /metadata

• /META-INF/container.xml

• {OPS, OPF files}

Page 8: ePUB in brief

.epub Archive

Page 9: ePUB in brief

.epub in Reader

Application ‘Stanza’

Page 10: ePUB in brief

.epub in iBooks

Page 11: ePUB in brief

References

• Wikipedia EPUBhttp://en.wikipedia.org/wiki/EPUB