Permalink
Browse files

merging abdelazer commits

  • Loading branch information...
2 parents b93b6d0 + df80da8 commit eca8c4a8a51518fe2e2b9ffb927fab063d4fed7b Craig Mod committed Jun 1, 2012
View
@@ -1 +1,34 @@
-.DS_STORE
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+
+# Packages #
+############
+# it's better to unpack these files and commit the raw source
+# git has its own built in compression methods
+*.7z
+*.dmg
+*.gz
+*.iso
+*.jar
+*.rar
+*.tar
+*.zip
+
+# Logs and databases #
+######################
+*.log
+*.sql
+*.sqlite
+
+# OS generated files #
+######################
+.DS_Store*
+ehthumbs.db
+Icon?
+Thumbs.db
View
Binary file not shown.
View
Binary file not shown.
View
@@ -1,36 +1,51 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<?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>
- <meta name="generator" content="Our Hands"/>
- <meta name="cover" content="cover-image"/>
- <dc:title>Moby Dick or The Whale</dc:title>
- <dc:creator>Mr. Melville</dc:creator>
- <dc:subject></dc:subject>
- <dc:description></dc:description>
- <dc:publisher>Ahab Press</dc:publisher>
- <dc:date>1851-03-12</dc:date>
- <dc:rights>Ahab Press 1851</dc:rights>
- <dc:language>en-US</dc:language>
- <dc:identifier id="bookid">gutenberg.org/files/2701/2701-h/2701-h.htm/</dc:identifier>
- </metadata>
- <manifest>
- <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
- <item id="css" href="css/template.css" media-type="text/css"/>
- <item id="title" href="html/title.html" media-type="application/xhtml+xml"/>
- <item id="toc" href="html/toc.html" media-type="text/css"/>
- <item id="quote" href="html/quote.html" media-type="application/xhtml+xml"/>
- <item id="chapter" href="html/chapter.html" media-type="application/xhtml+xml"/>
- <item id="about" href="html/about.html" media-type="application/xhtml+xml"/>
- <item id="closeimage" href="html/closeimage.html" media-type="application/xhtml+xml"/>
- <item id="cover-image" href="images/cover.jpg" media-type="image/jpg"/>
- </manifest>
- <spine toc="ncx">
- <itemref idref="title"/>
- <itemref idref="toc"/>
- <itemref idref="quote"/>
- <itemref idref="chapter"/>
- <itemref idref="about"/>
- <itemref idref="closeimage"/>
- </spine>
- <guide> <reference type="toc" title="Table of Contents" href="html/toc.html"/> </guide>
+ <metadata>
+ <dc:title>Moby Dick</dc:title>
+ <dc:creator>Mr. Melville</dc:creator>
+ <dc:subject></dc:subject>
+ <dc:description></dc:description>
+ <dc:publisher>Ahab Press</dc:publisher>
+ <dc:date>1851-03-12</dc:date>
+ <dc:rights>Ahab Press 1851</dc:rights>
+ <dc:language>en-US</dc:language>
+ <dc:identifier id="bookid">gutenberg.org/files/2701/2701-h/2701-h.htm/</dc:identifier>
+ <meta name="generator" content="Our Hands"/>
+ <meta name="cover" content="cover-image"/>
+ </metadata>
+
+ <!-- This part is an unordered list of the files in the book -->
+ <manifest>
+ <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
+
+ <item id="css" href="css/template.css" media-type="text/css"/>
+
+ <item id="title" href="html/title.html" media-type="application/xhtml+xml"/>
+ <item id="toc" href="html/toc.html" media-type="application/xhtml+xml"/>
+ <item id="quote" href="html/quote.html" media-type="application/xhtml+xml"/>
+ <item id="chapter" href="html/chapter.html" media-type="application/xhtml+xml"/>
+ <item id="about" href="html/about.html" media-type="application/xhtml+xml"/>
+ <item id="closeimage" href="html/closeimage.html" media-type="application/xhtml+xml"/>
+
+ <item id="author" href="images/author.jpg" media-type="image/jpeg"/>
+ <item id="closing_ill" href="images/closing_illustration.png" media-type="image/png"/>
+ <item id="half" href="images/half-title.png" media-type="image/png"/>
+ <item id="a_whale_dude" href="images/thewhale.jpg" media-type="image/jpeg"/>
+
+ <!-- This @id MUST match the @content of the "cover" <meta> for the cover to work -->
+ <item id="cover-image" href="images/cover.jpg" media-type="image/jpeg"/>
+ </manifest>
+
+ <!-- This part actually defines the *reading order* of the HTML files inside the book -->
+ <spine toc="ncx">
+ <itemref idref="title"/>
+ <itemref idref="toc"/>
+ <itemref idref="quote"/>
+ <itemref idref="chapter"/>
+ <itemref idref="about"/>
+ <itemref idref="closeimage"/>
+ </spine>
+ <guide>
+ <reference type="toc" title="Table of Contents" href="html/toc.html"/>
+ </guide>
</package>
View
Binary file not shown.
View
@@ -1,12 +1,11 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>about.html</title>
<link href="../css/template.css" rel="stylesheet" type="text/css"/>
</head>
<body class="centerall">
- <div id="about" xml:lang="en-US">
+ <div id="about">
<h3>About the Author</h3>
<img src="../images/author.jpg" alt="Mr. Melville" />
<p class="no_indent">Herman Melville (August 1, 1819 – September 28, 1891) was an American novelist, short story writer, essayist, and poet. He is best known for his novel Moby-Dick. His first three books gained much contemporary attention (the first, Typee, becoming a bestseller), and after a fast-blooming literary success in the late 1840s, his popularity declined precipitously in the mid-1850s and never recovered during his lifetime.
@@ -22,10 +21,10 @@
<p class="no_indent">He is a giant, largely (but not completely) white, bull sperm whale and the main antagonist of the novel. He bit off Ahab's leg, leaving Ahab to swear revenge. The cetacean also attacked the Rachel and killed the captain's son. At the end of the story he kills the entire crew of the Pequod, with the exception of Ishmael. The story does not tell whether he survives his own wounds after that. Although he is an integral part of the novel, Moby Dick appears in just three of the 135 chapters and the reader does not have access to his thoughts and motivations. </p>
<h3>Published by</h3>
- <p class="no_indent"><a href="http://ahabpress.com/">Ahab Press</a> &copy; 1851</p>
+ <p class="no_indent"><a href="http://ahabpress.com/">Ahab Press</a> © 1851</p>
<h3>Copyright</h3>
- <p class="no_indent">All images and text &copy; Herman Melville, 1851.</p>
+ <p class="no_indent">All images and text © Herman Melville, 1851.</p>
<p class="no_indent">This work is distributed under the Creative Commons Attribution-Noncommercial-Share Alike license. If you wish to use reproduce any of this context in a commercial context, explicit permission is required. Please contact me directly.</p>
<p>
This <span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License</a>.
View
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!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">
- <head>
- <title>alsoby.html</title>
- <link href="../css/template.css" rel="stylesheet" type="text/css"/>
- </head>
- <body class="centerall">
- <div id="alsoby" xml:lang="en-US">
- <h3>Also from Aham Pr</h3>
- <p class="no_indent">
- <a href=""><em>Books in the Age of the iPad</em></a><br />
- <a href=""><em>The Digital-Physical</em></a><br />
- <a href=""><em>Post-Artifact Books &amp; Publishing</em></a><br />
- <a href=""><em>Art Space Tokyo</em></a>
- </p>
- </div>
- </body>
-</html>
View
@@ -1,12 +1,11 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Chapter 1. Loomings</title>
<link href="../css/template.css" rel="stylesheet" type="text/css"/>
</head>
<body>
- <div id="chapter" xml:lang="en-US">
+ <div id="chapter">
<h2>Chapter 1. Loomings.</h2>
<p class="no_indent">Call me Ishmael. Some years ago — never mind how long precisely — having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off — then, I account it high time to get to sea as soon as I can. This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.</p>
<p>There now is your insular city of the Manhattoes, belted round by wharves as Indian isles by coral reefs — commerce surrounds it with her surf. Right and left, the streets take you waterward. Its extreme downtown is the battery, where that noble mole is washed by waves, and cooled by breezes, which a few hours previous were out of sight of land. Look at the crowds of water-gazers there.</p>
@@ -1,12 +1,11 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>closeimage.html</title>
<link href="../css/template.css" rel="stylesheet" type="text/css"/>
</head>
<body>
- <div id="closeimage" xml:lang="en-US">
+ <div id="closeimage">
<img src="../images/closing_illustration.png" alt="Ahab!" />
</div>
</body>
View
@@ -1,12 +1,11 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>quote.html</title>
<link href="../css/template.css" rel="stylesheet" type="text/css"/>
</head>
<body>
- <div id="quote" xml:lang="en-US">
+ <div id="quote">
<p>
That sea beast Leviathan,<br />
which God of all his works<br />
View
@@ -1,14 +1,13 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title.html</title>
<link href="../css/template.css" rel="stylesheet" type="text/css"/>
</head>
<body>
- <div id="title" xml:lang="en-US">
+ <div id="title">
<!--img src="../image/illustration.jpg" /-->
- <img src="../images/half-title.png" />
+ <img src="../images/half-title.png" alt="Image of half-title page from a 19th century edition of Moby Dick"/>
</div>
</body>
</html>
View
@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>toc.html</title>
View
Binary file not shown.
View
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<head>
- <meta name="dtb:uid" content="gutenberg.org/files/2701/2701-h/2701-h.htm"/>
- <meta name="dtb:depth" content="4"/>
- <meta name="dtb:totalPageCount" content="0"/>
- <meta name="dtb:maxPageNumber" content="0"/>
+ <meta name="dtb:uid" content="ignored"/>
+ <meta name="dtb:depth" content="-1"/>
+ <meta name="dtb:totalPageCount" content="-1"/>
+ <meta name="dtb:maxPageNumber" content="-1"/>
</head>
<docTitle>
@@ -18,7 +17,7 @@
<navMap>
<navPoint id="navpoint1" playOrder="1">
- <navLabel><text>Hack the Cover</text></navLabel>
+ <navLabel><text>Mobi Dick</text></navLabel>
<content src="html/title.html"/>
</navPoint>
View
@@ -64,7 +64,7 @@ possible.
### Mobi? ###
-Mobi is Kindle's ebook format. It's sort of like epub's step-brother.
+Mobi is Kindle's ebook format. It's sort of like EPUB's step-brother.
If you have a properly produced .mobi file you can publish on the
[Kindle Direct Publishing](http://kdp.amazon.com) platform.
@@ -101,13 +101,14 @@ So this template is mainly about minimizing friction.
- [Kindle Previewer](http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765261)
- [Kindlegen](http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211)
-Yes — you're correct! You have to use a `COMMAND LINE PROGRAM` to make .mobi
-files for Kindle Previewer to preview them.
+If you prefer, you may use a `COMMAND LINE PROGRAM`, kindlegen, to make .mobi
+files from your content.opf, but Kindle Previewer will do the same.
-At the risk of this file turning into a horribly complex tutorial, after you
-install Kindlegen, open your `Terminal` program (assuming OS X), type
-`"kindlegen content.opf"` from inside the `ahab` directory and Kindle Previewer
-should be able to open the content.mobi file it spits out.
+After you install Kindle Previewer, open it and drag your carefully crafted `content.opf`
+it into the Kindle Previewer. It will then covert it to a .mobi file in the `Compiled-content.opf/` directory.
+Kindle Previewer then opens the content.mobi file it spits out.
+
+You should read the Compilation Details just to see if it warns of something crazy.
Kindle Previewer is pretty kludgy, but it gets the job done. It saves you from
trying to send .mobi files to seven different devices. And speeds up development /
@@ -169,7 +170,7 @@ Here's the full list of KF8 HTML and CSS support:
Toc.ncx & content.opf are the two slightly alien files of this collection.
-OPF means "Open Page Format". From [Wikipedia](http://en.wikipedia.org/wiki/EPUB#Open_Packaging_Format_2.0.1):
+OPF means "Open Packaging Format". From [Wikipedia](http://en.wikipedia.org/wiki/EPUB#Open_Packaging_Format_2.0.1):
> The OPF file, traditionally named content.opf houses the EPUB book's
> metadata, file manifest, and linear reading order. This file has a

0 comments on commit eca8c4a

Please sign in to comment.