Pages

Friday, May 24, 2013

OPF FILE

[Copy and paste into Notepad++. Fill in the Dublin Core <metadata> with "title," etc. If you call your book "book" and your cover image "cover.jpg" you need make no changes below <dc:description>. Save the file as "All types" and name it "content.opf." Put it in your Kindle Creation Kit. Get your own identifier code at this site. See the blog post OPF FILE for details.]


<?xml version="1.0"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId">

  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:title>Your Title</dc:title>
    <dc:language>en-US</dc:language>
    <dc:identifier id="BookId" opf:scheme="UUID">268a4670-ca8a-11e2-8b8b-0800200c9a66</dc:identifier>
    <dc:creator opf:file-as="Lastname, Firstname" opf:role="aut">Your Name</dc:creator>
    <dc:publisher>Fake-out Publications</dc:publisher>
    <dc:subject>Type of book</dc:subject>
    <dc:date>YYYY-MM-DD</dc:date>
    <dc:description>Say a few words about your book.</dc:description>
    <meta name="cover" content="cover" />
  </metadata>

  <manifest>
    <item id="toc" href="toc.html" media-type="application/xhtml+xml" />
    <item id="book" href="book.html" media-type="application/xhtml+xml" />
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" /> 
    <item id="cover" href="cover.jpg" media-type="image/jpeg" />
  </manifest>

  <spine toc="ncx">
    <itemref idref="toc" />
    <itemref idref="book" />
  </spine>

  <guide>
    <reference type="toc" title="Table of Contents" href="toc.html" />
    <reference type="text" title="Beginning" href="book.html" />
  </guide>

</package>

No comments:

Post a Comment

Comments are welcome -- and moderated by me. Please be patient.