summaryrefslogtreecommitdiff
path: root/tech/lhp book publishing tools.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tech/lhp book publishing tools.txt')
-rwxr-xr-xtech/lhp book publishing tools.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/tech/lhp book publishing tools.txt b/tech/lhp book publishing tools.txt
new file mode 100755
index 0000000..c138f2c
--- /dev/null
+++ b/tech/lhp book publishing tools.txt
@@ -0,0 +1,40 @@
+lhp-book-publishing-tools
+
+* Cover mocks: http://mockuphone.com/
+* payment processor: <https://gumroad.com/>
+* fonts used:
+ * Chapter headings: Bodoni
+ * Body: TisaPro, Bold, Italic
+ * Headings (h2 $h3) Tradegothic LT CondEighteen
+ * Code: Inconsolata
+
+---------------------------
+
+* Pandoc settings for html:
+
+ pandoc --toc --toc-depth=2 --smart --template=lib/template.html5 --include-before-body=lib/header.html -t html5 -o rwd.html Draft.txt
+
+* Prince settings for HTML -> PDF:
+
+ prince rwd.html -o rwd.pdf --javascript
+
+* Pandoc settings for epub:
+
+ pandoc -S -s --smart -t epub3 --include-before-body=lib/header.html --template=lib/template_epub.html --epub-metadata=lib/epub-metadata.xml --epub-stylesheet=lib/print-epub.css --epub-cover-image=lib/covers/cover-portrait.png --epub-embed-font=lib/TisaPro-Regular.otf --epub-embed-font=lib/TisaPro-Bold.otf --epub-embed-font=lib/TisaPro-Ita.otf --epub-embed-font=lib/TisaPro-BoldIta.otf --epub-embed-font=lib/bodoni-mt-condensed.otf --epub-embed-font=lib/InconsolataforPowerline.otf --epub-embed-font=lib/TradeGothicLTCondensed.otf --toc --toc-depth=2 -o rwd.epub Draft.txt
+
+* Pandoc settings for Kindle epub:
+
+ pandoc -S -s --smart -t epub3 --include-before-body=lib/header.html --template=lib/template_epub.html --epub-metadata=lib/epub-metadata.xml --epub-stylesheet=lib/print-kindle.css --epub-cover-image=lib/covers/cover-portrait.png --toc --toc-depth=2 -o kindle.epub Draft.txt
+
+ Then that gets run through the Kindlegen tool
+
+* Pandoc settings for Sample Chapter:
+
+pandoc --smart --template=lib/template.html5 --include-before-body=lib/header_simple.html -t html5 --email-obfuscation=none -o samplechapter.html SampleChapter.txt && prince samplechapter.html -o RWDSampleChapter.pdf --javascript
+
+-----------
+
+helpful links:
+
+http://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf
+http://puppetlabs.com/blog/automated-ebook-generation-convert-markdown-epub-mobi-pandoc-kindlegen \ No newline at end of file