epubwhat the heck?
zipped up (compressed) html
Let’s go Inside an ePub
The Sections:Text
StylesImagesFontsAudioVideoMisc
Tell the file how stuff looks.
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/>
<p class="slug">Constantinople, Turkey. The suq (bazaar), May 13,1811</p>
p.slug {display: block;font-size: 100%;margin: 1.5em 0em 3em 0em;text-indent: 0;font-style: italic;text-align: left;}
Constantinople, Turkey. The suq (bazaar), May 13,1811
Amazing chapter gets better and better and better and better. Such good stuff. Better and better and better. You get the idea. It’s really good. Puppies are cute. So are kittens. Chapter gets better and better and better and better. Such good stuff. Better and better and better. You get the idea. It’s really good. Puppies are cute. So are kittens. Also unicorns.
Table of Contents Links
<h1 id="chapter5"><a href="../Text/toc.xhtml#tocchapter5">CHAPTER 5</a></h1>
. . . in toc.xhtml. . . <p><a id="tocchapter5"/><a href="../Text/chapter005.xhtml#chapter5">Chapter 5</a></p>
. . . in chapter005.xhtml. . .
Table of Contents Links
<h1 id="chapter5"><a href="../Text/toc.xhtml#tocchapter5">CHAPTER 5</a></h1>
. . . in toc.xhtml. . .
<p><a id="tocchapter5"/><a href="../Text/chapter005.xhtml#chapter5">Chapter 5</a></p>
. . . in chapter005. xhtml. . .
content.opf
xml file
toc.ncx
xml
<navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Cover</text> </navLabel> <content src="Text/cover.xhtml"/> </navPoint> <navPoint id="navPoint-2" playOrder="2"> <navLabel> <text>Title Page</text> </navLabel> <content src="Text/title.xhtml"/> </navPoint> <navPoint id="navPoint-3" playOrder="3"> <navLabel> <text>Copyright</text> </navLabel> <content src="Text/copy.xhtml"/> </navPoint>
<navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Cover</text> </navLabel> <content src="Text/cover.xhtml"/> </navPoint>
<navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Cover</text> </navLabel> <content src="Text/cover.xhtml"/> </navPoint>
Common Errors
<p><a id="tocaboutbook"/><a href="../Text/aboutbook.xhtml#book">About This Book</a></p>
<h1 id="aboutbook"><a href="../Text/toc.xhtml#tocaboutbook">About This Book</a></h1>
from the html toc
in file aboutbook.xhtml
MetadataFrom the content.opf
<dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:1ad22bea-5f8e-4e3a-af40-08bc80f86c2a</dc:identifier>
From the toc.ncx
<meta content="urn:uuid:1ad22bea-5f8e-4e3a-af40-08bc80f86c2a" name="dtb:uid"/>
More Metadata
Closing
•www.carolynjewel.com/references/epub.php
•http://cjewel.me/epub