Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubfactory.txt
diff options
context:
space:
mode:
Diffstat (limited to 'epubfactory.txt')
-rw-r--r--epubfactory.txt66
1 files changed, 66 insertions, 0 deletions
diff --git a/epubfactory.txt b/epubfactory.txt
new file mode 100644
index 0000000..4d97fb8
--- /dev/null
+++ b/epubfactory.txt
@@ -0,0 +1,66 @@
+Creating EPUB files:
+URLS:
+ http://www.ibm.com/developerworks/xml/tutorials/x-epubtut/section3.html
+ http://www.manuel-strehl.de/dev/simple_epub_ebooks_with_python
+ http://pypi.python.org/pypi/epubC/0.1.1
+ http://www.epubbooks.com/blog/183/creating-an-epub-document
+ http://threepress.org/document/epub-validate/
+
+Structure
+
+mimetype
+META-INF/
+ container.xml
+OEBPS/
+ content.opf
+ title.html
+ content.html
+ stylesheet.css
+ toc.ncx
+ images/
+ cover.png
+
+mimetype:
+application/epub+zip
+
+META-INF/container.xml:
+
+<?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>
+
+content.opf:
+
+<?xml version='1.0' encoding='utf-8'?>
+<package xmlns="http://www.idpf.org/2007/opf"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ unique-identifier="bookid" version="2.0">
+ <metadata>
+ <dc:title>Hello World: My First EPUB</dc:title>
+ <dc:creator>My Name</dc:creator>
+ <dc:identifier
+id="bookid">urn:uuid:0cc33cbd-94e2-49c1-909a-72ae16bc2658</dc:identifier>
+ <dc:language>en-US</dc:language>
+ <meta name="cover" content="cover-image" />
+ </metadata>
+ <manifest>
+ <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
+ <item id="cover" href="title.html" media-type="application/xhtml+xml"/>
+ <item id="content" href="content.html"
+media-type="application/xhtml+xml"/>
+ <item id="cover-image" href="images/cover.png" media-type="image/png"/>
+ <item id="css" href="stylesheet.css" media-type="text/css"/>
+ </manifest>
+ <spine toc="ncx">
+ <itemref idref="cover" linear="no"/>
+ <itemref idref="content"/>
+ </spine>
+ <guide>
+ <reference href="title.html" type="cover" title="Cover"/>
+ </guide>
+</package>
+