Emerson Epub Coding Day

17
Making an EPUB file

description

Slide for the epub presentation as part of the Coding Day celebration at Emerson College, September 15, 2012.

Transcript of Emerson Epub Coding Day

Page 1: Emerson Epub Coding Day

Making an EPUB file

Page 2: Emerson Epub Coding Day

Professional Workflow

Page 3: Emerson Epub Coding Day

Personal Workflow

Page 4: Emerson Epub Coding Day

Opening the EPUB

• mimetype

• META-INF

• OEBPS/ Content

Page 5: Emerson Epub Coding Day

EPUB is a package masquerading as

a file format.

-Bill Kasdorf, APEX content solutions

Page 6: Emerson Epub Coding Day

mimetype• Text file

• Contents of file:application/ePub+zip

• Defines the media type as Open Container Format (OCF)

Page 7: Emerson Epub Coding Day

META-INF

• Contains the container.xml file<?xml version="1.0"?><container version="1.0"

xmlns="urn:oasis:names:tc:opendocument:xmlns:container">

<rootfiles> <rootfile full-path=”OEBPS/content.opf" media-

type="application/oebps-package+xml"/> </rootfiles></container>

Page 8: Emerson Epub Coding Day

META-INF

• Optional files:–encryption.xml–signature.xml– rights.xml–manifest.xml–metadata.xml

Page 9: Emerson Epub Coding Day

OEBPS/ Content

• Contains all viewable documents (XHTML & .jpg) and stylesheets (CSS)

• Contains the .opf file• Contains the . ncx file (replaced in

EPUB3 with a simplified toc.html file, but only for EPUB3 devices)

Page 10: Emerson Epub Coding Day
Page 11: Emerson Epub Coding Day

.ncx file

Page 12: Emerson Epub Coding Day
Page 13: Emerson Epub Coding Day
Page 14: Emerson Epub Coding Day

Finishing the File

• Once all files are created they and added to the appropriate files, you will need to rezip the files.

• Every file but the mimetype gets zipped (mimetype must be read first).

• You can do this through the command line/ terminal, script, or through an Epub program like Calibre.

• Once zipped, you need to validate.

Page 15: Emerson Epub Coding Day

Validation

• Like all mark-up languages, EPUB needs to be validated.

• It will pick up errors in ncx opf and html files.

• It will alert missing or miscapitalized files.• Use EPUB Check available from Google

code or Safari.

Page 16: Emerson Epub Coding Day

Free Tools• Coding– Notepad++ (PC)– TextWrangler (MAC)– iBooks author (MAC)

• Creating/ Zipping– Sigil– Calibre– ePub Zip from MobileRead

• Quality Checking– Adobe Digital Editions– EpubCheck– Kindle Direct: Gen & Previewer

Page 17: Emerson Epub Coding Day

Resources• Twitter: #eprdctn• Liz Castro– EPUB Straight to the Point– Pigs, Gourds, & Wikis

• Mobile Reads Forum• IDPF• DefectivebyDesign.org