prophecy 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/Overview.md +44 -0
- data/README.md +35 -0
- data/Rakefile +1 -0
- data/bin/kindlegen +18 -0
- data/bin/kindlegen.exe +0 -0
- data/bin/kindlegen_linux +0 -0
- data/bin/kindlegen_mac +0 -0
- data/bin/prophecy +4 -0
- data/docs/licenses/kindlegen/.empty_directory +0 -0
- data/docs/licenses/kindlegen/EULA.txt +61 -0
- data/docs/licenses/kindlegen/KindleGen Legal Notices 2009-11-10 Linux.txt +21 -0
- data/docs/licenses/kindlegen/KindleGen Legal Notices 2009-11-10 Mac.txt +21 -0
- data/docs/licenses/kindlegen/KindleGen OSS Notices 2009-07-29-Windows.txt +19 -0
- data/features/assets.feature +14 -0
- data/features/book.feature +10 -0
- data/features/generator.feature +15 -0
- data/features/support/hooks.rb +5 -0
- data/features/support/setup.rb +3 -0
- data/lib/prophecy/assets/.gitignore +2 -0
- data/lib/prophecy/assets/config.rb +20 -0
- data/lib/prophecy/assets/epub_template/META-INF/com.apple.ibooks.display-options.xml +6 -0
- data/lib/prophecy/assets/epub_template/META-INF/container.xml +6 -0
- data/lib/prophecy/assets/epub_template/OEBPS/.gitkeep +0 -0
- data/lib/prophecy/assets/epub_template/OEBPS/chapters/.gitkeep +0 -0
- data/lib/prophecy/assets/epub_template/OEBPS/content.opf.erb +114 -0
- data/lib/prophecy/assets/epub_template/OEBPS/toc.ncx.erb +18 -0
- data/lib/prophecy/assets/epub_template/mimetype +1 -0
- data/lib/prophecy/assets/fonts/Crimson-Bold.otf +0 -0
- data/lib/prophecy/assets/fonts/Crimson-BoldItalic.otf +0 -0
- data/lib/prophecy/assets/fonts/Crimson-Italic.otf +0 -0
- data/lib/prophecy/assets/fonts/Crimson-Roman.otf +0 -0
- data/lib/prophecy/assets/fonts/Crimson-Semibold.otf +0 -0
- data/lib/prophecy/assets/fonts/Crimson-SemiboldItalic.otf +0 -0
- data/lib/prophecy/assets/fonts/GenBasB.ttf +0 -0
- data/lib/prophecy/assets/fonts/GenBasBI.ttf +0 -0
- data/lib/prophecy/assets/fonts/GenBasI.ttf +0 -0
- data/lib/prophecy/assets/fonts/GenBasR.ttf +0 -0
- data/lib/prophecy/assets/fonts/GenBkBasB.ttf +0 -0
- data/lib/prophecy/assets/fonts/GenBkBasBI.ttf +0 -0
- data/lib/prophecy/assets/fonts/GenBkBasI.ttf +0 -0
- data/lib/prophecy/assets/fonts/GenBkBasR.ttf +0 -0
- data/lib/prophecy/assets/fonts/GentiumPlus-I.ttf +0 -0
- data/lib/prophecy/assets/fonts/GentiumPlus-R.ttf +0 -0
- data/lib/prophecy/assets/helpers/check_typos.sh +27 -0
- data/lib/prophecy/assets/helpers/helpers.rb +0 -0
- data/lib/prophecy/assets/helpers/pali_typos +2 -0
- data/lib/prophecy/assets/helpers/sed_chars +5 -0
- data/lib/prophecy/assets/helpers/sed_dumb_ebook +18 -0
- data/lib/prophecy/assets/helpers/sed_tex2uni +62 -0
- data/lib/prophecy/assets/helpers/tex2html.sh +112 -0
- data/lib/prophecy/assets/helpers/tex2md.sh +10 -0
- data/lib/prophecy/assets/helpers/tidy_quotes +1 -0
- data/lib/prophecy/assets/helpers/tidy_quotes.sh +8 -0
- data/lib/prophecy/assets/helpers/to-html.sh +9 -0
- data/lib/prophecy/assets/latex_template/Makefile +37 -0
- data/lib/prophecy/assets/latex_template/anecdote.cls +163 -0
- data/lib/prophecy/assets/latex_template/book-core-first.sty +673 -0
- data/lib/prophecy/assets/latex_template/book-core-last.sty +40 -0
- data/lib/prophecy/assets/latex_template/book_main.tex.erb +31 -0
- data/lib/prophecy/assets/latex_template/booklet_main.tex +15 -0
- data/lib/prophecy/assets/latex_template/chapters/.gitkeep +0 -0
- data/lib/prophecy/assets/latex_template/cover_main.tex +48 -0
- data/lib/prophecy/assets/latex_template/mylayout.sty +2 -0
- data/lib/prophecy/assets/layouts/page.xhtml.erb +20 -0
- data/lib/prophecy/assets/sass/_booktheme.sass +3 -0
- data/lib/prophecy/assets/sass/_byronic.sass +263 -0
- data/lib/prophecy/assets/sass/_colors.sass +7 -0
- data/lib/prophecy/assets/sass/_epub-css-starter-kit.sass +734 -0
- data/lib/prophecy/assets/sass/_font-existence.scss +12 -0
- data/lib/prophecy/assets/sass/_font-source-sans-pro.scss +75 -0
- data/lib/prophecy/assets/sass/_fontfaces.scss +11 -0
- data/lib/prophecy/assets/sass/_mixins.sass +4 -0
- data/lib/prophecy/assets/sass/print.sass +6 -0
- data/lib/prophecy/assets/sass/style-epub.sass +7 -0
- data/lib/prophecy/assets/sass/style-mobi-kf8.sass +7 -0
- data/lib/prophecy/assets/sass/style-mobi.sass +9 -0
- data/lib/prophecy/assets/stylesheets/print.css +3 -0
- data/lib/prophecy/assets/stylesheets/style-epub.css +401 -0
- data/lib/prophecy/assets/stylesheets/style-mobi-kf8.css +401 -0
- data/lib/prophecy/assets/stylesheets/style-mobi.css +317 -0
- data/lib/prophecy/assets/webfonts/existence-light.ttf +0 -0
- data/lib/prophecy/assets/webfonts/sourcesanspro-bold.ttf +0 -0
- data/lib/prophecy/assets/webfonts/sourcesanspro-extralight.ttf +0 -0
- data/lib/prophecy/assets/webfonts/sourcesanspro-italic.ttf +0 -0
- data/lib/prophecy/assets/webfonts/sourcesanspro-light.ttf +0 -0
- data/lib/prophecy/assets/webfonts/sourcesanspro-lightitalic.ttf +0 -0
- data/lib/prophecy/assets/webfonts/sourcesanspro-regular.ttf +0 -0
- data/lib/prophecy/assets/webfonts-extra/sourcesanspro-bolditalic.ttf +0 -0
- data/lib/prophecy/assets/webfonts-extra/sourcesanspro-extralightitalic.ttf +0 -0
- data/lib/prophecy/assets/webfonts-extra/sourcesanspro-semibold.ttf +0 -0
- data/lib/prophecy/assets/webfonts-extra/sourcesanspro-semibolditalic.ttf +0 -0
- data/lib/prophecy/book.rb +281 -0
- data/lib/prophecy/chapter.rb +359 -0
- data/lib/prophecy/cli.rb +144 -0
- data/lib/prophecy/generators/assets.rb +29 -0
- data/lib/prophecy/generators/book/.gitignore +7 -0
- data/lib/prophecy/generators/book/LICENSE.txt +5 -0
- data/lib/prophecy/generators/book/README.md.tt +4 -0
- data/lib/prophecy/generators/book/book.yml.tt +55 -0
- data/lib/prophecy/generators/book/build/epub/.empty_directory +0 -0
- data/lib/prophecy/generators/book/build/latex/.empty_directory +0 -0
- data/lib/prophecy/generators/book/build/mobi/.empty_directory +0 -0
- data/lib/prophecy/generators/book/epub_mobi.yml +26 -0
- data/lib/prophecy/generators/book/example-book.yml +78 -0
- data/lib/prophecy/generators/book/images/cover.jpg +0 -0
- data/lib/prophecy/generators/book/images/cover.xcf +0 -0
- data/lib/prophecy/generators/book/images/publisher-logo.jpg +0 -0
- data/lib/prophecy/generators/book/manuscript/glossary.md +7 -0
- data/lib/prophecy/generators/book/manuscript/nameless-labyrinth.markdown +34 -0
- data/lib/prophecy/generators/book/manuscript/preface.md +5 -0
- data/lib/prophecy/generators/book/manuscript/the-sway-of-reason.markdown +22 -0
- data/lib/prophecy/generators/book/manuscript/unhuman-massiveness.markdown +27 -0
- data/lib/prophecy/generators/book/manuscript/xhtml/.gitkeep +0 -0
- data/lib/prophecy/generators/book/manuscript/xhtml/cover.xhtml.erb +21 -0
- data/lib/prophecy/generators/book/manuscript/xhtml/titlepage.xhtml.erb +31 -0
- data/lib/prophecy/generators/book/manuscript/xhtml/toc.xhtml.erb +16 -0
- data/lib/prophecy/generators/new.rb +22 -0
- data/lib/prophecy/manifest.rb +72 -0
- data/lib/prophecy/version.rb +3 -0
- data/lib/prophecy.rb +18 -0
- data/prophecy.gemspec +36 -0
- data/spec/book_spec.rb +9 -0
- data/spec/chapter_spec.rb +0 -0
- data/spec/manifest_spec.rb +0 -0
- metadata +366 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 664f421dec68cf4be951b6dd1cee254d4a4212db
|
4
|
+
data.tar.gz: 2a52c0e4d1dee00a4e0638dcf0f9b3648431988a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 616caacd224f5c3907c69657d21bc88f2329fe294ad87496399235e5b237e09cc10f29570688a8ddd5fb74876fb8b0bf7383ef5c17e4a3b1687db49eaf549f33
|
7
|
+
data.tar.gz: bdd15b87b0b4b145d251c987d61e7f1e89ee51427f7427ed628522c87ef07603bd3372790383483be6fd6c0d7dd9587fdf74c6a3533a4f9f40be9d94dc04a75b
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Gambhiro
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Overview.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
## Overview
|
3
|
+
|
4
|
+
Build a book as a PDF, EPUB and MOBI.
|
5
|
+
|
6
|
+
The manuscript can be in Markdown (kramdown), LaTeX or HTML. Use the
|
7
|
+
same manuscript files for the different target formats or mix them as
|
8
|
+
needed.
|
9
|
+
|
10
|
+
This tool will generate the TOC files (.ncx and .xhtml), Manifest and
|
11
|
+
the rest.
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
$ gem install prophecy
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
1. Start a new book: `$ prophecy new bookname`, this will create a
|
20
|
+
folder `bookname` with skeleton files to get started with.
|
21
|
+
1. Add the manuscript to `manuscript/` (in Markdown, LaTeX or HTML)
|
22
|
+
2. Fill out basic book info in `book.yml`
|
23
|
+
3. Compile the book: `prophecy epub`, `prophecy mobi` or `prophecy pdf` if you have
|
24
|
+
LaTeX installed
|
25
|
+
4. Done! Grab the files from the `publish/` folder
|
26
|
+
|
27
|
+
## Inspried by
|
28
|
+
|
29
|
+
[bookshop](https://github.com/blueheadpublishing/bookshop), [kitabu](https://github.com/fnando/kitabu), and the [gem guide](https://github.com/radar/guides/blob/master/gem-development.md).
|
30
|
+
|
31
|
+
## PDF
|
32
|
+
|
33
|
+
* LaTeX
|
34
|
+
* Typography: anecdote
|
35
|
+
* Fonts: Gentium and Crimson Text
|
36
|
+
* ready for press
|
37
|
+
|
38
|
+
## EPUB and MOBI
|
39
|
+
|
40
|
+
* CSS Style: Byronic
|
41
|
+
* fonts: Source Sans Pro and Existence Light
|
42
|
+
* goodness from epub-samples and epub-boilerplate
|
43
|
+
* mobi with KindleGen
|
44
|
+
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
Prophecy Book Boilerplate
|
2
|
+
=========================
|
3
|
+
|
4
|
+
Book boilerplate to generate books as EPUB, MOBI, and PDF from simple
|
5
|
+
Markdown text files. Or from HTML. Or from LaTeX. Or mixed.
|
6
|
+
|
7
|
+
Repeating, fixing, improving page layout, CSS typography, the format
|
8
|
+
standards, TOC `<navPoint>`s, `<manifest>`, `<guide>` -- is the litany
|
9
|
+
of pain.
|
10
|
+
|
11
|
+
Sounds like the machine should be doing this, and we just go and
|
12
|
+
meditate on peace.
|
13
|
+
|
14
|
+
## Let's see that:
|
15
|
+
|
16
|
+
Screencast.
|
17
|
+
|
18
|
+
## And then this happens:
|
19
|
+
|
20
|
+
- Screeshots
|
21
|
+
|
22
|
+
Embedded fonts and CSS typography for the ebooks, and a pretty LaTeX
|
23
|
+
documentclass for the PDF.
|
24
|
+
|
25
|
+
## Onwards
|
26
|
+
|
27
|
+
- Installation for Linux, OS/X, Windows
|
28
|
+
- Overview
|
29
|
+
- Custom page templates
|
30
|
+
- Custom CSS style
|
31
|
+
|
32
|
+
Home: [profound-labs.github.io/projects/prophecy/](http://profound-labs.github.io/projects/prophecy/)
|
33
|
+
|
34
|
+
Github: [profound-labs/prophecy](https://github.com/profound-labs/prophecy)
|
35
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/kindlegen
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
# parses 'kindlegen builds/mobi/book.epub'
|
4
|
+
book_mobi = ARGV.shift
|
5
|
+
|
6
|
+
if RUBY_PLATFORM =~ /linux|cygwin/
|
7
|
+
executable = 'kindlegen_linux'
|
8
|
+
elsif RUBY_PLATFORM =~ /darwin/
|
9
|
+
puts "its darwin"
|
10
|
+
executable = 'kindlegen_mac'
|
11
|
+
elsif RUBY_PLATFORM =~ /mingw|mswin32/
|
12
|
+
executable = 'kindlegen.exe'
|
13
|
+
else
|
14
|
+
raise "Invalid platform. Must be running linux, intel-based Mac OS, or Windows XP/7."
|
15
|
+
end
|
16
|
+
|
17
|
+
executable = File.join(File.dirname(__FILE__), executable)
|
18
|
+
system(executable + " " + $*.join(" ") + book_mobi)
|
data/bin/kindlegen.exe
ADDED
Binary file
|
data/bin/kindlegen_linux
ADDED
Binary file
|
data/bin/kindlegen_mac
ADDED
Binary file
|
data/bin/prophecy
ADDED
File without changes
|
@@ -0,0 +1,61 @@
|
|
1
|
+
SOFTWARE END USER LICENSE AGREEMENT
|
2
|
+
|
3
|
+
This Software End User License Agreement is a legal agreement between Amazon Digital Services, Inc. (�Amazon� and, together with Amazon�s Affiliates, �we� or �us�) and the individual or entity accepting this Agreement (�you�).
|
4
|
+
|
5
|
+
Please read this Agreement, all rules and policies related to the publisher software tools, and the Amazon.com Privacy Notice (located at http://www.amazon.com/privacy) (collectively, the �Agreement�) carefully before downloading or using the publisher software tools. This Agreement applies to the publisher software tools and to any and all updates, modifications and enhancements to the publisher software tools that we may provide, as well as any associated printed and online documentation (collectively, the �Software�).
|
6
|
+
|
7
|
+
If you download or use the Software, you will be bound by the terms of this Agreement. If you do not or cannot agree to the terms of this Agreement, do not attempt to download or use the Software.
|
8
|
+
|
9
|
+
LICENSE
|
10
|
+
The Software allows you to do one or more of the following: (i) convert documents existing in certain file types or formats into Kindle-compatible formats (such Kindle-compatible files, the �Content�), or (ii) preview Content from a personal computer to evaluate how that Content may appear on Kindle products. Subject to your compliance with all of the terms and conditions of this Agreement, Amazon grants to you a revocable, non-exclusive, non-assignable, non-sublicensable and non-transferable license to download, install and use the Software on a server, desktop or laptop computer for your use (which may be personal or commercial) for the purpose of converting documents into Content and previewing the Content, as applicable.
|
11
|
+
|
12
|
+
THIRD PARTY SOFTWARE
|
13
|
+
The Software may include third party software that is subject to different license terms than are contained in this Agreement. Please refer to the Software�s installation directory to review any applicable third party terms.
|
14
|
+
|
15
|
+
RESERVATION OF RIGHTS; NO REVERSE ENGINEERING, DECOMPILATION OR DISASSEMBLY
|
16
|
+
You may not copy, modify, reverse engineer, decompile, or disassemble the Software, whether in whole or in part, create any derivative works from or of the Software, or combine the Software with other products, except that you may make one copy of the Software for back-up purposes. You may not separate any individual component of the Software for use on another device or computer, may not transfer it for use on another device or use it, or any portion of it, over a network and may not sell, rent, lease, lend, distribute or sublicense or otherwise assign any rights to the Software in whole or in part. All rights not expressly granted to you are reserved by Amazon.
|
17
|
+
|
18
|
+
NO ILLEGAL USE
|
19
|
+
The Software may be used only for lawful purposes and in a lawful manner, and you agree to comply with all applicable laws and regulations. Amazon may investigate any reported violation of its policies and take any action it deems appropriate, including terminating your license to use the Software without notice.
|
20
|
+
|
21
|
+
COPYRIGHT
|
22
|
+
The Software is the exclusive property of Amazon and is protected by U.S. and international copyright laws. All content included on the Software, such as text, graphics, logos, button icons, and images, is the property of Amazon or our content suppliers and licensors, and is separately and in the aggregate protected by United States and international copyright laws.
|
23
|
+
|
24
|
+
TRADEMARKS
|
25
|
+
AMAZON, the AMAZON logo, Kindle, and other marks indicated on the Software or herein are trademarks of Amazon or its affiliates in the United States and other countries. Other Amazon graphics, logos, button icons, scripts, and service names are trademarks or trade dress of Amazon or its affiliates. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among users, or in any manner that disparages or discredits Amazon or its affiliates. All other trademarks not owned by Amazon or its affiliates that appear on the Software are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon or its affiliates.
|
26
|
+
|
27
|
+
PATENTS
|
28
|
+
The Software and/or methods used in association with the Software may be covered by one or more patents or pending patent applications.
|
29
|
+
|
30
|
+
EXPORT REGULATIONS
|
31
|
+
You will comply with all applicable export and re-export restrictions and regulations, and you will not transfer, or encourage, assist, or authorize the transfer of the Software to a prohibited country or otherwise in violation of any such restrictions or regulations.
|
32
|
+
|
33
|
+
TERMINATION
|
34
|
+
Your rights under this Agreement will automatically terminate without notice from Amazon if you fail to comply with any term of this Agreement. In case of such termination, you must cease all use of the Software.
|
35
|
+
|
36
|
+
DISCLAIMER OF WARRANTIES
|
37
|
+
USE OF THE SOFTWARE IS AT YOUR SOLE RISK. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY AMAZON OR AN AUTHORIZED REPRESENTATIVE OF AMAZON CREATES A WARRANTY, AND THE SOFTWARE IS PROVIDED �AS IS� AND �AS AVAILABLE,� WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND. AMAZON, ITS SUPPLIERS, ITS LICENSORS, AND ANY OF THEIR AFFILIATES DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, SUCH AS THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, QUIET ENJOYMENT, AND NON-INFRINGEMENT OF THIRD-PARTY RIGHTS. AMAZON, ITS SUPPLIERS, AND ITS LICENSORS DO NOT WARRANT THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE LAWS OF CERTAIN JURISDICTIONS DO NOT ALLOW THE DISCLAIMER OF IMPLIED WARRANTIES. IF THESE LAWS APPLY TO YOU, SOME OR ALL OF THE ABOVE DISCLAIMERS, EXCLUSIONS OR LIMITATIONS MAY NOT APPLY TO YOU, AND YOU MAY HAVE ADDITIONAL RIGHTS.
|
38
|
+
|
39
|
+
LIMITATIONS OF LIABILITY
|
40
|
+
TO THE EXTENT NOT PROHIBITED BY LAW, AMAZON, ITS SUPPLIERS, ITS LICENSORS, AND ANY OF THEIR AFFILIATES WILL NOT BE LIABLE TO YOU FOR ANY INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR BREACH OF ANY EXPRESS OR IMPLIED WARRANTY, BREACH OF CONTRACT, NEGLIGENCE, STRICT LIABILITY, OR ANY OTHER LEGAL THEORY RELATED TO THE SOFTWARE, SUCH AS ANY DAMAGES ARISING OUT OF LOSS OF PROFITS, REVENUE, DATA, OR USE OF THE SOFTWARE OR ANY ASSOCIATED PRODUCT, EVEN IF AMAZON HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN ANY CASE, AMAZON'S AGGREGATE LIABILITY UNDER THIS AGREEMENT SHALL BE LIMITED TO FIVE DOLLARS (US $5.00). THE LAWS OF CERTAIN JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES. IF THESE LAWS APPLY TO YOU, SOME OR ALL OF THE ABOVE EXCLUSIONS OR LIMITATIONS MAY NOT APPLY TO YOU, AND YOU MAY HAVE ADDITIONAL RIGHTS.
|
41
|
+
|
42
|
+
GOVERNING LAW
|
43
|
+
The laws of the state of Washington, without regard to principles of conflict of laws, will govern this Agreement and any dispute of any sort that might arise between you and Amazon.
|
44
|
+
|
45
|
+
DISPUTES
|
46
|
+
Any dispute relating in any way to the Software in which the aggregate total claim for relief sought on behalf of one or more parties exceeds $7,500 shall be adjudicated in any state or federal court in King County, Washington, and you consent to exclusive jurisdiction and venue in such courts.
|
47
|
+
|
48
|
+
U.S. GOVERNMENT RIGHTS
|
49
|
+
The Software is provided to the U.S. Government as �commercial items,� �commercial computer software,� �commercial computer software documentation,� and �technical data,� as defined in the U.S. Federal Acquisition Regulation and the U.S. Defense Federal Acquisition Regulation Supplement, with the same rights and restrictions customarily provided to end users.
|
50
|
+
|
51
|
+
AMENDMENT
|
52
|
+
We may amend any of the terms of this Agreement in our sole discretion by posting the revised terms on the Amazon.com website. Your continued use of the Software after the effective date of any such amendment constitutes your agreement to be bound by such amendment.
|
53
|
+
|
54
|
+
NO WAIVER
|
55
|
+
Amazon's failure to enforce the strict performance of any provision of this Agreement will not constitute a waiver of Amazon's right to subsequently enforce such provisions or any other provisions of this Agreement. No waiver of any provision of this Agreement shall be effective unless in writing.
|
56
|
+
|
57
|
+
ENTIRE AGREEMENT AND SEVERABILITY
|
58
|
+
This is the entire agreement between Amazon and you regarding the Software and supersedes all prior understandings regarding such subject matter. If any term or condition of this Agreement is deemed invalid, void, or for any reason unenforceable, that part will be deemed severable and will not affect the validity and enforceability of any remaining term or condition.
|
59
|
+
|
60
|
+
CONTACT INFORMATION
|
61
|
+
For communications concerning this Agreement, you may contact Amazon by writing to Amazon.com, Attn: Legal Department, 410 Terry Avenue North Seattle, WA 98109-5210 USA.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
ICU4C 4.2.1
|
2
|
+
|
3
|
+
ICU License - ICU 1.8.1 and later
|
4
|
+
|
5
|
+
COPYRIGHT AND PERMISSION NOTICE
|
6
|
+
|
7
|
+
Copyright (c) 1995-2009 International Business Machines Corporation and others
|
8
|
+
|
9
|
+
All rights reserved.
|
10
|
+
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
14
|
+
|
15
|
+
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
|
16
|
+
|
17
|
+
libjpeg 6b
|
18
|
+
|
19
|
+
This software is copyright (C) 1991-1998, Thomas G. Lane. This software is based in part on the work of the Independent JPEG Group.
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
ICU4C 4.2.1
|
2
|
+
|
3
|
+
ICU License - ICU 1.8.1 and later
|
4
|
+
|
5
|
+
COPYRIGHT AND PERMISSION NOTICE
|
6
|
+
|
7
|
+
Copyright (c) 1995-2009 International Business Machines Corporation and others
|
8
|
+
|
9
|
+
All rights reserved.
|
10
|
+
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
14
|
+
|
15
|
+
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
|
16
|
+
|
17
|
+
libjpeg 6b
|
18
|
+
|
19
|
+
This software is copyright (C) 1991-1998, Thomas G. Lane. This software is based in part on the work of the Independent JPEG Group.
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
libjpeg 6b
|
2
|
+
|
3
|
+
This software is copyright (C) 1991-1998, Thomas G. Lane. This software is based in part on the work of the Independent JPEG Group.
|
4
|
+
|
5
|
+
ZipUtils 1.1.4
|
6
|
+
|
7
|
+
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
|
8
|
+
|
9
|
+
For the purposes of this copyright and license, "Info-ZIP" is defined as the following set of individuals:
|
10
|
+
|
11
|
+
Mark Adler, John Bush, Karl Davis, Harald Denker, Jean-Michel Dubois, Jean-loup Gailly, Hunter Goatley, Ed Gordon, Ian Gorman, Chris Herborth, Dirk Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz, David Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko, Steve P. Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs, Kai Uwe Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda, Christian Spieler, Cosmin Truta, Antoine Verheijen, Paul von Behren, Rich Wales, Mike White.
|
12
|
+
This software is provided "as is," without warranty of any kind, express or implied. In no event shall Info-ZIP or its contributors be held liable for any direct, indirect, incidental, special or consequential damages arising out of the use of or inability to use this software.
|
13
|
+
|
14
|
+
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the above disclaimer and the following restrictions:
|
15
|
+
|
16
|
+
- Redistributions of source code (in whole or in part) must retain the above copyright notice, definition, disclaimer, and this list of conditions.
|
17
|
+
- Redistributions in binary form (compiled executables and libraries) must reproduce the above copyright notice, definition, disclaimer, and this list of conditions in documentation and/or other materials provided with the distribution. The sole exception to this condition is redistribution of a standard UnZipSFX binary (including SFXWiz) as part of a self-extracting archive; that is permitted without inclusion of this license, as long as the normal SFX banner has not been removed from the binary or disabled.
|
18
|
+
- Altered versions--including, but not limited to, ports to new operating systems, existing ports with new graphical interfaces, versions with modified or added functionality, and dynamic, shared, or static library versions not from Info-ZIP--must be plainly marked as such and must not be misrepresented as being the original source or, if binaries, compiled from the original source. Such altered versions also must not be misrepresented as being Info-ZIP releases--including, but not limited to, labeling of the altered versions with the names "Info-ZIP" (or any variation thereof, including, but not limited to, different capitalizations), "Pocket UnZip," "WiZ" or "MacZip" without the explicit permission of Info-ZIP. Such altered versions are further prohibited from misrepresentative use of the Zip-Bugs or Info-ZIP e-mail addresses or the Info-ZIP URL(s), such as to imply Info-ZIP will provide support for the altered versions.
|
19
|
+
- Info-ZIP retains the right to use the names "Info-ZIP," "Zip," "UnZip," "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its own source and binary releases.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
Feature: Copy assets directory
|
3
|
+
In order to customize assets
|
4
|
+
As a CLI
|
5
|
+
I want to get the assets folder
|
6
|
+
|
7
|
+
Scenario: Inside a book project folder
|
8
|
+
When I run `prophecy new "The Hidden Way"`
|
9
|
+
Given I cd to "thehiddenway"
|
10
|
+
When I run `prophecy assets`
|
11
|
+
Then the following files should exist:
|
12
|
+
| book.yml |
|
13
|
+
| assets/epub_template/OEBPS/toc.ncx.erb |
|
14
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
Feature: Generate new books
|
3
|
+
In order to start a new book
|
4
|
+
As a CLI
|
5
|
+
I want to get a skeleton folder
|
6
|
+
|
7
|
+
Scenario: Starting a new book
|
8
|
+
When I run `prophecy new "The Hidden Way"`
|
9
|
+
Then the following files should exist:
|
10
|
+
| thehiddenway/book.yml |
|
11
|
+
Then the file "thehiddenway/book.yml" should contain:
|
12
|
+
"""
|
13
|
+
title: "The Hidden Way"
|
14
|
+
"""
|
15
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Require any additional compass plugins here.
|
2
|
+
|
3
|
+
# Set this to the root of your project when deployed:
|
4
|
+
http_path = "/"
|
5
|
+
css_dir = "stylesheets"
|
6
|
+
sass_dir = "sass"
|
7
|
+
images_dir = "images"
|
8
|
+
javascripts_dir = "javascripts"
|
9
|
+
fonts_dir = "fonts"
|
10
|
+
|
11
|
+
# You can select your preferred output style here (can be overridden via the command line):
|
12
|
+
# output_style = :expanded or :nested or :compact or :compressed
|
13
|
+
|
14
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
15
|
+
# relative_assets = true
|
16
|
+
|
17
|
+
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
18
|
+
# line_comments = false
|
19
|
+
|
20
|
+
preferred_syntax = :sass
|
File without changes
|
File without changes
|
@@ -0,0 +1,114 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
2
|
+
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="<%= book.bookid %>" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
3
|
+
<metadata xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
|
5
|
+
<!-- ISBN -->
|
6
|
+
<% unless book.isbn.nil? %><dc:identifier id="<%= book.bookid %>" opf:scheme="ISBN">urn:isbn:<%= book.isbn %></dc:identifier><% end %>
|
7
|
+
<!-- UUID generator: http://www.famkruithof.net/uuid/uuidgen -->
|
8
|
+
<% unless book.uuid.nil? %><dc:identifier opf:scheme="UUID">urn:uuid:<%= book.uuid %></dc:identifier><% end %>
|
9
|
+
|
10
|
+
<dc:title><%= book.title %></dc:title>
|
11
|
+
<dc:rights><%= book.rights %></dc:rights>
|
12
|
+
|
13
|
+
<!-- BISAC Subject Headings List: http://www.bisg.org/what-we-do-0-136-bisac-subject-headings-list-major-subjects.php-->
|
14
|
+
<% unless book.subject.nil? %><dc:subject><%= book.subject %></dc:subject><% end %>
|
15
|
+
|
16
|
+
<dc:creator opf:file-as="<%= book.creator %>" opf:role="aut"><%= book.creator %></dc:creator>
|
17
|
+
|
18
|
+
<% unless book.source.nil? %><dc:source><%= book.source %></dc:source><% end %>
|
19
|
+
|
20
|
+
<!-- List of contributors
|
21
|
+
|
22
|
+
See: MARC Code List for Relators: http://www.loc.gov/marc/relators/relaterm.html
|
23
|
+
|
24
|
+
Examples:
|
25
|
+
|
26
|
+
* Editor [edt]
|
27
|
+
Use for a person or organization who prepares for publication a work not primarily his/her own,
|
28
|
+
such as by elucidating text, adding introductory or other critical matter, or technically directing
|
29
|
+
an editorial staff.
|
30
|
+
|
31
|
+
* Cover designer [cov]
|
32
|
+
Use for a person or organization responsible for the graphic design of a book cover,
|
33
|
+
album cover, slipcase, box, container, etc. For a person or organization responsible
|
34
|
+
for the graphic design of an entire book, use Book designer; for book jackets, use Bookjacket designer.
|
35
|
+
|
36
|
+
* Translator [trl]
|
37
|
+
Use for a person or organization who renders a text from one language into another, or from an older
|
38
|
+
form of a language into the modern form.
|
39
|
+
|
40
|
+
-->
|
41
|
+
|
42
|
+
<% unless book.contributors.nil? %>
|
43
|
+
<% book.contributors.each do |c| %>
|
44
|
+
<% role = c.first[0] %>
|
45
|
+
<% name = c.first[1] %>
|
46
|
+
<dc:contributor opf:file-as="<%= name %>" opf:role="<%= role %>"><%= book.personal_name_first(name) %></dc:contributor>
|
47
|
+
<% end %>
|
48
|
+
<% end %>
|
49
|
+
|
50
|
+
<% unless book.publisher.nil? %><dc:publisher><%= book.publisher %></dc:publisher><% end %>
|
51
|
+
<dc:date opf:event="publication"><%= book.date %></dc:date>
|
52
|
+
|
53
|
+
<!-- Language code: http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes -->
|
54
|
+
<dc:language><%= book.lang_iso_639_2 %></dc:language>
|
55
|
+
|
56
|
+
<% unless book.cover_image.nil? %><meta name="cover" content="cover-image" /><% end %>
|
57
|
+
|
58
|
+
</metadata>
|
59
|
+
|
60
|
+
<!-- MANIFEST (mandatory)
|
61
|
+
List of all the resources of the book (XHTML, CSS, images,…).
|
62
|
+
The order of item elements in the manifest is NOT significant.
|
63
|
+
|
64
|
+
http://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.3
|
65
|
+
-->
|
66
|
+
|
67
|
+
<manifest>
|
68
|
+
<% book.manifest.items.each do |item| %>
|
69
|
+
<item href="<%= item.href %>" id="<%= item.id %>" media-type="<%= item.media_type %>" />
|
70
|
+
<% end %>
|
71
|
+
</manifest>
|
72
|
+
|
73
|
+
<!-- SPINE (mandatory)
|
74
|
+
|
75
|
+
The spine element defines the default reading order of the content. It doesn't list every file in the manifest,
|
76
|
+
just the reading order.
|
77
|
+
|
78
|
+
The value of the idref tag in the spine has to match the ID tag for that entry in the manifest.
|
79
|
+
|
80
|
+
For example, if you have the following reference in your manifest:
|
81
|
+
|
82
|
+
<item id="chapter-1" href="chapter01.xhtml" media-type="application/xhtml+xml" />
|
83
|
+
|
84
|
+
your spine entry would be:
|
85
|
+
|
86
|
+
<itemref idref="chapter-1" />
|
87
|
+
|
88
|
+
http://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.4
|
89
|
+
|
90
|
+
-->
|
91
|
+
<spine toc="ncx">
|
92
|
+
<% book.chapters.each do |ch| %>
|
93
|
+
<%= ch.to_spineitem %>
|
94
|
+
<% end %>
|
95
|
+
</spine>
|
96
|
+
|
97
|
+
<!-- GUIDE (optional, recommended by Apple)
|
98
|
+
|
99
|
+
The guide lets you specify the role of the book's files.
|
100
|
+
|
101
|
+
Available tags: cover, title-page, toc, index, glossary, acknowledgements, bibliography,
|
102
|
+
colophon, copyright-page, dedication, epigraph, foreword, loi (list of illustrations),
|
103
|
+
lot (list of tables), notes, preface, and text.
|
104
|
+
|
105
|
+
http://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6
|
106
|
+
|
107
|
+
-->
|
108
|
+
<guide>
|
109
|
+
<% book.chapters.each do |ch| %>
|
110
|
+
<%= ch.to_guide_reference %>
|
111
|
+
<% end %>
|
112
|
+
</guide>
|
113
|
+
|
114
|
+
</package>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
2
|
+
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
|
3
|
+
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
|
4
|
+
<head>
|
5
|
+
<meta content="urn:isbn:<%= book.isbn %>" name="dtb:uid"/>
|
6
|
+
<meta content="1" name="dtb:depth"/>
|
7
|
+
|
8
|
+
<!-- totalPageCount and maxPageNumber are mandatory, but they're not used in ebooks -->
|
9
|
+
<meta content="-1" name="dtb:totalPageCount"/>
|
10
|
+
<meta content="-1" name="dtb:maxPageNumber"/>
|
11
|
+
</head>
|
12
|
+
<docTitle>
|
13
|
+
<text><%= book.title %></text>
|
14
|
+
</docTitle>
|
15
|
+
<navMap>
|
16
|
+
<%= book.render_navpoints %>
|
17
|
+
</navMap>
|
18
|
+
</ncx>
|
@@ -0,0 +1 @@
|
|
1
|
+
application/epub+zip
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# check for typical typos in the body text
|
3
|
+
|
4
|
+
# find un-accented spelling of Pali
|
5
|
+
grep -iE -f pali_typos ./*.tex
|
6
|
+
|
7
|
+
# find - instead of --
|
8
|
+
grep -E '[^[:alpha:]-]-[^[:alpha:]-]' ./*.tex
|
9
|
+
# %s/\([^[:alpha:]-]\)-\([^[:alpha:]-]\)/\1--\2/gc
|
10
|
+
|
11
|
+
# find ... instead of \ldots{}
|
12
|
+
grep -E '\.\.\.' ./*.tex
|
13
|
+
|
14
|
+
# find un-smart double quotes
|
15
|
+
# find un-smart single quotes
|
16
|
+
grep -E " '{1,2}\w" ./*.tex
|
17
|
+
grep -E ' "{1,2}\w' ./*.tex
|
18
|
+
# %s/ '\{1,2\}\(\w\)/ `\1/gc
|
19
|
+
# sed -i 's/ '"'"'\(\w\)/ `\1/g' ./*.tex
|
20
|
+
|
21
|
+
# find wrong quote and puncuation placement
|
22
|
+
grep -E '['"'"'"]{1,2}[,;:.?!]' ./*.tex
|
23
|
+
# sed -i 's/\(['"'"'"]\)\([,;:.?!]\)/\2\1/g' ./*.tex
|
24
|
+
|
25
|
+
# will not match a footnote w/ {} inside
|
26
|
+
grep -E '\\footnote\{[^}]+\}[,;:.?!]' ./*.tex
|
27
|
+
|
File without changes
|