prophecy 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/prophecy/assets/{fonts → Fonts-latex}/Crimson-Bold.otf +0 -0
  4. data/lib/prophecy/assets/{fonts → Fonts-latex}/Crimson-BoldItalic.otf +0 -0
  5. data/lib/prophecy/assets/{fonts → Fonts-latex}/Crimson-Italic.otf +0 -0
  6. data/lib/prophecy/assets/{fonts → Fonts-latex}/Crimson-Roman.otf +0 -0
  7. data/lib/prophecy/assets/{fonts → Fonts-latex}/Crimson-Semibold.otf +0 -0
  8. data/lib/prophecy/assets/{fonts → Fonts-latex}/Crimson-SemiboldItalic.otf +0 -0
  9. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBasB.ttf +0 -0
  10. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBasBI.ttf +0 -0
  11. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBasI.ttf +0 -0
  12. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBasR.ttf +0 -0
  13. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBkBasB.ttf +0 -0
  14. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBkBasBI.ttf +0 -0
  15. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBkBasI.ttf +0 -0
  16. data/lib/prophecy/assets/{fonts → Fonts-latex}/GenBkBasR.ttf +0 -0
  17. data/lib/prophecy/assets/{fonts → Fonts-latex}/GentiumPlus-I.ttf +0 -0
  18. data/lib/prophecy/assets/{fonts → Fonts-latex}/GentiumPlus-R.ttf +0 -0
  19. data/lib/prophecy/assets/{webfonts-extra → Fonts-notused}/sourcesanspro-bolditalic.ttf +0 -0
  20. data/lib/prophecy/assets/{webfonts → Fonts-notused}/sourcesanspro-extralight.ttf +0 -0
  21. data/lib/prophecy/assets/{webfonts-extra → Fonts-notused}/sourcesanspro-extralightitalic.ttf +0 -0
  22. data/lib/prophecy/assets/{webfonts-extra → Fonts-notused}/sourcesanspro-semibold.ttf +0 -0
  23. data/lib/prophecy/assets/{webfonts-extra → Fonts-notused}/sourcesanspro-semibolditalic.ttf +0 -0
  24. data/lib/prophecy/assets/{webfonts → Fonts}/existence-light.ttf +0 -0
  25. data/lib/prophecy/assets/{webfonts → Fonts}/sourcesanspro-bold.ttf +0 -0
  26. data/lib/prophecy/assets/{webfonts → Fonts}/sourcesanspro-italic.ttf +0 -0
  27. data/lib/prophecy/assets/{webfonts → Fonts}/sourcesanspro-light.ttf +0 -0
  28. data/lib/prophecy/assets/{webfonts → Fonts}/sourcesanspro-lightitalic.ttf +0 -0
  29. data/lib/prophecy/assets/{webfonts → Fonts}/sourcesanspro-regular.ttf +0 -0
  30. data/lib/prophecy/assets/Images/CCLogo.jpg +0 -0
  31. data/lib/prophecy/{generators/book/images → assets/Images}/cover.jpg +0 -0
  32. data/lib/prophecy/{generators/book/images → assets/Images}/cover.xcf +0 -0
  33. data/lib/prophecy/{generators/book/images → assets/Images}/publisher-logo.jpg +0 -0
  34. data/lib/prophecy/assets/{stylesheets → Styles}/style-epub.css +0 -0
  35. data/lib/prophecy/assets/{stylesheets → Styles}/style-mobi-kf8.css +0 -0
  36. data/lib/prophecy/assets/{stylesheets → Styles}/style-mobi.css +0 -0
  37. data/lib/prophecy/assets/config.rb +3 -3
  38. data/lib/prophecy/assets/epub_template/OEBPS/{chapters → Text}/.gitkeep +0 -0
  39. data/lib/prophecy/assets/epub_template/OEBPS/content.opf.erb +6 -2
  40. data/lib/prophecy/assets/layouts/page.xhtml.erb +10 -7
  41. data/lib/prophecy/assets/sass/_font-existence.scss +1 -1
  42. data/lib/prophecy/assets/sass/_font-source-sans-pro.scss +10 -10
  43. data/lib/prophecy/book.rb +7 -4
  44. data/lib/prophecy/chapter.rb +16 -13
  45. data/lib/prophecy/generators/book/.gitignore +10 -0
  46. data/lib/prophecy/generators/book/book.yml.tt +11 -22
  47. data/lib/prophecy/generators/book/epub.yml +1 -0
  48. data/lib/prophecy/generators/book/{epub_mobi.yml → epub_mobi.yml.tt} +6 -0
  49. data/lib/prophecy/{assets → generators/book}/helpers/check_typos.sh +0 -0
  50. data/lib/prophecy/{assets → generators/book}/helpers/helpers.rb +0 -0
  51. data/lib/prophecy/{assets → generators/book}/helpers/pali_typos +0 -0
  52. data/lib/prophecy/generators/book/helpers/post-export-tex-tidyup.sh +72 -0
  53. data/lib/prophecy/{assets → generators/book}/helpers/sed_chars +3 -0
  54. data/lib/prophecy/{assets → generators/book}/helpers/sed_dumb_ebook +0 -0
  55. data/lib/prophecy/{assets → generators/book}/helpers/sed_tex2uni +0 -0
  56. data/lib/prophecy/{assets → generators/book}/helpers/tex2html.sh +3 -2
  57. data/lib/prophecy/{assets → generators/book}/helpers/tex2md.sh +1 -0
  58. data/lib/prophecy/{assets → generators/book}/helpers/tidy_quotes +0 -0
  59. data/lib/prophecy/{assets → generators/book}/helpers/tidy_quotes.sh +0 -0
  60. data/lib/prophecy/{assets → generators/book}/helpers/to-html.sh +0 -0
  61. data/lib/prophecy/generators/book/latex.yml.tt +4 -0
  62. data/lib/prophecy/generators/book/manuscript/markdown/copyright.md.erb +43 -0
  63. data/lib/prophecy/generators/book/manuscript/xhtml/cover.xhtml.erb +1 -1
  64. data/lib/prophecy/generators/book/manuscript/xhtml/titlepage.xhtml.erb +1 -1
  65. data/lib/prophecy/generators/book/mobi.yml +1 -0
  66. data/lib/prophecy/manifest.rb +15 -11
  67. data/lib/prophecy/version.rb +1 -1
  68. metadata +86 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ad2d7d113428f7aeb90f224aacf76bc7048b646
4
- data.tar.gz: 99597986cef64cd687e7dd9575c9c10ba45927a6
3
+ metadata.gz: 4cd4b9be28736f7383fa99e83a9fcb659f70a72a
4
+ data.tar.gz: ea6faff226c0a3ac1d58bb63e6ba77ed1615fff8
5
5
  SHA512:
6
- metadata.gz: 07b255f9f8f5eebd2e2a6571ac0f16050dd1283155a8bc5ce2f6097881c47c72ce9de3ae64db9a8c22888e16e94df37c70c6ce448f70d70a875899d6bc207a99
7
- data.tar.gz: 563a3ab641e3556d74f5da4a8434a4badfc4f252985496678e7942865c91a572a372728aec3927835ab114b0900a2d44af2eb5c153bf1f14518b7554955b24a8
6
+ metadata.gz: b06a0d6934bb93530bcdeec1a6e0b8f8a485d2c637493beae1c3dba43c22604cb283a5ecf8c1f5fa8d7a2e9b7cbba2d64d3433d25c4537e727ab2bd3abeb4d1d
7
+ data.tar.gz: 9a2a0412ffb391553be2ada09cf493ab252c71ab6af0b4c4298defca81c4784df69b0ee91ed355a7902696f31cbafb6701fdc193e02eddb616c6859240ce0499
data/README.md CHANGED
@@ -20,7 +20,7 @@ meditate on peace.
20
20
 
21
21
  [![Screencast demo][demo-jpg]](http://asciinema.org/a/5680)
22
22
 
23
- [demo-jpg]: http://profound-labs.github.io/images/screenshots/prophecy-screencast.jpg
23
+ [demo-jpg]: http://profound-labs.github.io/projects/prophecy/prophecy-screencast.jpg
24
24
 
25
25
  Demo: [asciinema.org/a/5680](http://asciinema.org/a/5680)
26
26
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  # Set this to the root of your project when deployed:
4
4
  http_path = "/"
5
- css_dir = "stylesheets"
5
+ css_dir = "Styles"
6
6
  sass_dir = "sass"
7
- images_dir = "images"
7
+ images_dir = "Images"
8
8
  javascripts_dir = "javascripts"
9
- fonts_dir = "fonts"
9
+ fonts_dir = "Fonts"
10
10
 
11
11
  # You can select your preferred output style here (can be overridden via the command line):
12
12
  # output_style = :expanded or :nested or :compact or :compressed
@@ -8,12 +8,16 @@
8
8
  <% unless book.uuid.nil? %><dc:identifier opf:scheme="UUID">urn:uuid:<%= book.uuid %></dc:identifier><% end %>
9
9
 
10
10
  <dc:title><%= book.title %></dc:title>
11
+ <% unless book.rights == "" %>
11
12
  <dc:rights><%= book.rights %></dc:rights>
13
+ <% else %>
14
+ <dc:rights />
15
+ <% end %>
12
16
 
13
- <!-- BISAC Subject Headings List: http://www.bisg.org/what-we-do-0-136-bisac-subject-headings-list-major-subjects.php-->
17
+ <!-- BISAC Subject Headings List: https://www.bisg.org/bisac-subject-codes -->
14
18
  <% unless book.subject.nil? %><dc:subject><%= book.subject %></dc:subject><% end %>
15
19
 
16
- <dc:creator opf:file-as="<%= book.creator %>" opf:role="aut"><%= book.creator %></dc:creator>
20
+ <dc:creator opf:file-as="<%= book.file_as %>" opf:role="aut"><%= book.creator %></dc:creator>
17
21
 
18
22
  <% unless book.source.nil? %><dc:source><%= book.source %></dc:source><% end %>
19
23
 
@@ -1,17 +1,20 @@
1
1
  <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= book.lang_iso_639_2 %>" lang="<%= book.lang_iso_639_2 %>">
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= book.lang_iso_639_2 %>">
4
6
  <head>
5
- <meta http-equiv="content-type" content="text/html;charset=utf-8" />
7
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
8
  <title><%= chapter.title %></title>
7
9
  <% if book.mobi? %>
8
- <link href="../stylesheets/style-mobi.css" media="amzn-mobi" rel="stylesheet" type="text/css" />
9
- <link href="../stylesheets/style-mobi-kf8.css" media="amzn-kf8" rel="stylesheet" type="text/css" />
10
+ <link href="../Styles/style-mobi.css" media="amzn-mobi" rel="stylesheet" type="text/css" />
11
+ <link href="../Styles/style-mobi-kf8.css" media="amzn-kf8" rel="stylesheet" type="text/css" />
10
12
  <% elsif book.epub? %>
11
- <link href="../stylesheets/style-epub.css" media="all, screen" rel="stylesheet" type="text/css" />
13
+ <link href="../Styles/style-epub.css" rel="stylesheet" type="text/css" />
12
14
  <% end %>
13
15
  </head>
14
- <body id="content" class="<%= chapter.class %>">
16
+
17
+ <body class="<%= chapter.class %>" id="content">
15
18
  <div id="<%= chapter.id %>" xml:lang="<%= chapter.lang %>">
16
19
  <%= content %>
17
20
  </div>
@@ -5,7 +5,7 @@
5
5
 
6
6
  @font-face {
7
7
  font-family: 'ExistenceLight';
8
- src: url('../webfonts/existence-light.ttf') format('truetype');
8
+ src: url('../Fonts/existence-light.ttf') format('truetype');
9
9
  font-weight: normal;
10
10
  font-style: normal;
11
11
  }
@@ -5,70 +5,70 @@
5
5
 
6
6
  @font-face {
7
7
  font-family: 'SourceSansPro';
8
- src: url('../webfonts/sourcesanspro-regular.ttf') format('truetype');
8
+ src: url('../Fonts/sourcesanspro-regular.ttf') format('truetype');
9
9
  font-weight: normal;
10
10
  font-style: normal;
11
11
  }
12
12
 
13
13
  @font-face {
14
14
  font-family: 'SourceSansPro';
15
- src: url('../webfonts/sourcesanspro-italic.ttf') format('truetype');
15
+ src: url('../Fonts/sourcesanspro-italic.ttf') format('truetype');
16
16
  font-weight: normal;
17
17
  font-style: italic;
18
18
  }
19
19
 
20
20
  @font-face {
21
21
  font-family: 'SourceSansPro';
22
- src: url('../webfonts/sourcesanspro-bold.ttf') format('truetype');
22
+ src: url('../Fonts/sourcesanspro-bold.ttf') format('truetype');
23
23
  font-weight: bold;
24
24
  font-style: normal;
25
25
  }
26
26
 
27
27
  //@font-face {
28
28
  // font-family: 'SourceSansPro';
29
- // src: url('../webfonts/sourcesanspro-bolditalic.ttf') format('truetype');
29
+ // src: url('../Fonts/sourcesanspro-bolditalic.ttf') format('truetype');
30
30
  // font-weight: bold;
31
31
  // font-style: italic;
32
32
  //}
33
33
 
34
34
  @font-face {
35
35
  font-family: 'SourceSansPro';
36
- src: url('../webfonts/sourcesanspro-lightitalic.ttf') format('truetype');
36
+ src: url('../Fonts/sourcesanspro-lightitalic.ttf') format('truetype');
37
37
  font-weight: 300;
38
38
  font-style: italic;
39
39
  }
40
40
 
41
41
  @font-face {
42
42
  font-family: 'SourceSansPro';
43
- src: url('../webfonts/sourcesanspro-light.ttf') format('truetype');
43
+ src: url('../Fonts/sourcesanspro-light.ttf') format('truetype');
44
44
  font-weight: 300;
45
45
  font-style: normal;
46
46
  }
47
47
 
48
48
  //@font-face {
49
49
  // font-family: 'SourceSansPro';
50
- // src: url('../webfonts/sourcesanspro-extralightitalic.ttf') format('truetype');
50
+ // src: url('../Fonts/sourcesanspro-extralightitalic.ttf') format('truetype');
51
51
  // font-weight: 200;
52
52
  // font-style: italic;
53
53
  //}
54
54
  //
55
55
  //@font-face {
56
56
  // font-family: 'SourceSansPro';
57
- // src: url('../webfonts/sourcesanspro-extralight.ttf') format('truetype');
57
+ // src: url('../Fonts/sourcesanspro-extralight.ttf') format('truetype');
58
58
  // font-weight: 200;
59
59
  // font-style: normal;
60
60
  //}
61
61
  //
62
62
  //@font-face {
63
63
  // font-family: 'SourceSansPro';
64
- // src: url('../webfonts/sourcesanspro-semibolditalic.ttf') format('truetype');
64
+ // src: url('../Fonts/sourcesanspro-semibolditalic.ttf') format('truetype');
65
65
  // font-weight: 600;
66
66
  // font-style: italic;
67
67
  //}
68
68
  //
69
69
  //@font-face {
70
70
  // font-family: 'SourceSansPro';
71
- // src: url('../webfonts/sourcesanspro-semibold.ttf') format('truetype');
71
+ // src: url('../Fonts/sourcesanspro-semibold.ttf') format('truetype');
72
72
  // font-weight: 600;
73
73
  // font-style: normal;
74
74
  //}
@@ -11,7 +11,8 @@ module Prophecy
11
11
  :assets_dir, :tex_dir, :markdown_dir, :xhtml_dir, :chapter_layout,
12
12
  :include_assets, :exclude_assets, :toc, :output_format, :bookid,
13
13
  :rights, :creator, :subject, :source, :contributors, :cover_image,
14
- :date, :compile_name, :show_chapter_name, :chapter_number_format
14
+ :date, :compile_name, :show_chapter_name, :chapter_number_format,
15
+ :cover_credit, :file_as
15
16
 
16
17
  def initialize(config)
17
18
  @config = config.clone
@@ -23,6 +24,7 @@ module Prophecy
23
24
  @subtitle = c['subtitle'] || nil
24
25
  @author = c['author'] || "The Author"
25
26
  @creator = c['creator'] || @author
27
+ @file_as = c['file_as'] || @author
26
28
  @publisher = c['publisher'] || nil
27
29
  @publisher_atag = c['publisher_atag'] || nil
28
30
  @publisher_logo = c['publisher_logo'] || nil
@@ -50,6 +52,7 @@ module Prophecy
50
52
  @source = c['source'] || nil
51
53
  @contributors = c['contributors'] || nil
52
54
  @cover_image = c['cover_image'] || nil
55
+ @cover_credit = c['cover_credit'] || nil
53
56
  @date = c['date'] || Time.now.strftime("%Y-%m-%d")
54
57
  @show_chapter_name = c['show_chapter_name'] || nil
55
58
  @chapter_number_format = c['chapter_number_format'] || nil
@@ -237,9 +240,9 @@ module Prophecy
237
240
  case (self.output_format)
238
241
  when 'epub', 'mobi'
239
242
  inc = [
240
- File.join(self.assets_dir, 'webfonts'),
241
- File.join('.', 'images'),
242
- File.join(self.assets_dir, 'stylesheets')
243
+ File.join(self.assets_dir, 'Fonts'),
244
+ File.join(self.assets_dir, 'Images'),
245
+ File.join(self.assets_dir, 'Styles')
243
246
  ]
244
247
  when 'latex'
245
248
  inc = [
@@ -65,8 +65,8 @@ module Prophecy
65
65
  }
66
66
 
67
67
  chapters_dir_for_output = {
68
- 'epub' => File.join('OEBPS', 'chapters'),
69
- 'mobi' => File.join('OEBPS', 'chapters'),
68
+ 'epub' => File.join('OEBPS', 'Text'),
69
+ 'mobi' => File.join('OEBPS', 'Text'),
70
70
  'latex' => 'chapters',
71
71
  'web' => 'chapters',
72
72
  }
@@ -152,7 +152,7 @@ module Prophecy
152
152
  h.children.select{|i| i.name != 'a'}.each{|s| t += s}
153
153
  @navpoints << {
154
154
  'text' => CGI.escapeHTML(t),
155
- 'src' => "chapters/#{@render_name}##{h.attributes['id']}",
155
+ 'src' => "Text/#{@render_name}##{h.attributes['id']}",
156
156
  'playOrder' => @@playOrder,
157
157
  'level' => @level,
158
158
  }
@@ -161,7 +161,7 @@ module Prophecy
161
161
  else
162
162
  @navpoints << {
163
163
  'text' => @title,
164
- 'src' => "chapters/#{@render_name}",
164
+ 'src' => "Text/#{@render_name}",
165
165
  'playOrder' => @@playOrder,
166
166
  'level' => @level,
167
167
  }
@@ -202,8 +202,8 @@ module Prophecy
202
202
 
203
203
  def to_guide_reference
204
204
  return "" if @type.nil?
205
- ret = "<reference href='#{@href}' title=\"#{@title.gsub('"', "'")}\""
206
- ret += " type='#{@type}'"
205
+ ret = "<reference href=\"#{@href}\" title=\"#{@title.gsub('"', "'")}\""
206
+ ret += " type=\"#{@type}\""
207
207
  ret += " />"
208
208
  end
209
209
 
@@ -251,10 +251,13 @@ module Prophecy
251
251
  unless layout_path.nil?
252
252
  template = ERB.new(IO.read(layout_path))
253
253
  content = ret
254
- template.result(binding)
255
- else
256
- ret
254
+ ret = template.result(binding)
257
255
  end
256
+
257
+ # remove empty attributes
258
+ ret.gsub!(/ *class=""/, "")
259
+
260
+ ret
258
261
  end
259
262
 
260
263
  def to_tex(format = nil, text = nil, layout_path = @layout_path)
@@ -294,8 +297,8 @@ module Prophecy
294
297
  end
295
298
 
296
299
  def to_spineitem
297
- ret = "<itemref idref='#{self.idref}' "
298
- ret += "linear='#{self.linear}'" unless self.linear.nil?
300
+ ret = "<itemref idref=\"#{self.idref}\" "
301
+ ret += "linear=\"#{self.linear}\"" unless self.linear.nil?
299
302
  ret += " />"
300
303
  end
301
304
 
@@ -317,7 +320,7 @@ module Prophecy
317
320
  end
318
321
 
319
322
  def to_toc_li
320
- "<li><a href='../chapters/#{@render_name}'><span>#{@title}</span></a></li>"
323
+ "<li><a href='../Text/#{@render_name}'><span>#{@title}</span></a></li>"
321
324
  end
322
325
 
323
326
  def to_toc_tr
@@ -338,7 +341,7 @@ module Prophecy
338
341
  ret += "</td>\n"
339
342
  # Title
340
343
  ret += "<td class='title #{@the_matter}'>\n"
341
- ret += "<a href='#{File.join('..', 'chapters', File.basename(nav['src']))}'><span>#{nav['text']}</span></a>\n"
344
+ ret += "<a href='#{File.join('..', 'Text', File.basename(nav['src']))}'><span>#{nav['text']}</span></a>\n"
342
345
  ret += "</td>\n"
343
346
  ret += "</tr>"
344
347
  end
@@ -2,3 +2,13 @@
2
2
  *.aux
3
3
  *.log
4
4
  *.toc
5
+ auto/
6
+ publish/epub/
7
+ publish/mobi/
8
+ publish/pdf/
9
+ build/latex/book_main.pdf
10
+ build/latex/cover_back.pdf
11
+ build/latex/cover_spine.pdf
12
+ build/latex/cover_spine_east.pdf
13
+ build/latex/cover_front.pdf
14
+ build/latex/cover.pdf
@@ -2,6 +2,10 @@
2
2
  # General Config
3
3
  # ==============
4
4
 
5
+ title: "<%= title %>"
6
+ author: "The Author"
7
+ file_as: Munindo, Ajahn
8
+
5
9
  # The data in this file is shared between output formats.
6
10
  #
7
11
  # Add format-specific data in the following files, which will add to
@@ -9,19 +13,10 @@
9
13
  # epub_mobi.yml, epub.yml, mobi.yml, latex.yml
10
14
 
11
15
  # These are very minimal settings, for a more complete example see
12
- # example-book.yml
13
-
14
- title: "<%= title %>"
15
- author: "The Author"
16
- date: <%= Time.now.strftime("%Y-%m-%d") %>
17
-
18
- # A general-purpose TOC. Formats will be converted, ERB templates will
19
- # be rendered.
16
+ # example-book.yml and book.yml.combined
20
17
 
21
- # The Contents page comes in a different sequence in EPUB and MOBI,
22
- # because of the book will open on "type: text" in the Kindle, and the
23
- # way the "Frontmatter" menu works in Kindle, that is, it includes the
24
- # contents before the item "type: toc".
18
+ # See also:
19
+ # epub_mobi.yml, epub.yml, mobi.yml, latex.yml
25
20
 
26
21
  toc:
27
22
  - { the_matter: frontmatter }
@@ -43,20 +38,14 @@ toc:
43
38
  - further-comments.markdown
44
39
  - { the_matter: backmatter }
45
40
  - { insert: '\backmatter', target: latex }
41
+ - { title: "Copyright", src: 'copyright.md.erb', type: copyright-page, target: [ epub, mobi ] }
46
42
  - glossary.md
47
43
 
48
44
  cover_image: "cover.jpg"
45
+ cover_credit: Cover photo offered by The Person
49
46
 
50
- exclude_assets: [ "cover.xcf", ]
51
-
52
- # Either an ISBN or an UUID to identify the book.
53
- # If you don't have an ISBN, generate an UUID:
54
- # http://www.famkruithof.net/uuid/uuidgen
55
-
56
- # uuid: "000-000"
57
- isbn: "000-0-0000000-0-0"
58
47
  publisher: "The Publisher"
59
- publisher_atag: "<a href='http://thepublisher.org/' target='_blank'>www.thepublisher.org</a>"
60
48
  publisher_logo: "publisher-logo.jpg"
61
- book_atag: "<a href='http://thepublisher.org/thebookurl/' target='_blank'>www.thepublisher.org/thebookurl</a>"
62
49
 
50
+ publisher_atag: "<a href='http://thepublisher.org/'>www.thepublisher.org</a>"
51
+ book_atag: "<a href='http://thepublisher.org/thebookurl/'>www.thepublisher.org/thebookurl</a>"
@@ -0,0 +1 @@
1
+ exclude_assets: [ "cover.xcf", "buddho.jpg", "cover_photo.jpg", "sourcesanspro-extralight.ttf", "style-mobi-kf8.css" ]
@@ -1,4 +1,7 @@
1
1
 
2
+ date: <%= Time.now.strftime("%Y-%m-%d") %>
3
+ version: 'v1.0'
4
+
2
5
  # Epub and Mobi
3
6
  # =============
4
7
 
@@ -7,6 +10,9 @@ bookid: "ProphecyBookId"
7
10
  # ISBN for the ebook editions
8
11
  isbn: "000-0-000000-00-0"
9
12
 
13
+ # Level 1, 2, 3
14
+ #section_names: [ "", "", "" ]
15
+
10
16
  # BISAC Subject Headings List:
11
17
  # http://www.bisg.org/what-we-do-0-136-bisac-subject-headings-list-major-subjects.php
12
18
 
@@ -0,0 +1,72 @@
1
+ #!/bin/bash
2
+
3
+ SRC="$1"
4
+
5
+ if [ -z "$1" ]; then
6
+ echo "First argument missing: .tex file to tidy."
7
+ exit 2
8
+ fi
9
+
10
+ cat "$1" |\
11
+ # Replace {\textbackslash}{\textbackslash} with \\
12
+ sed -e 's/[{]\\textbackslash[}][{]\\textbackslash[}] */\\\\\n/g' |\
13
+ # Remove =\textcolor[model]{values}{...}=
14
+ # Remove =\textcolor{color}{...}=
15
+ # First with no inner braces, then up to three inner pair of braces, then just remove the command and leave the brace.
16
+ sed -e \
17
+ 's/\\textcolor[[][^]]\+[]][{][^{}]\+[}][{]\([^{}]\+\)[}]/\1/g;
18
+ s/\\textcolor[[][^]]\+[]][{][^{}]\+[}][{]\([^{]*[{][^{}]\+[}][^}]*\)[}]/\1/g;
19
+ s/\\textcolor[[][^]]\+[]][{][^{}]\+[}][{]\([^{]*[{][^{]*[{][^{}]\+[}][^}]*[}][^}]*\)[}]/\1/g;
20
+ s/\\textcolor[[][^]]\+[]][{][^{}]\+[}][{]\([^{]*[{][^{]*[{][^{]*[{][^{}]\+[}][^}]*[}][^}]*[}][^}]*\)[}]/\1/g;
21
+ s/\\textcolor[[][^]]\+[]][{][^{}]\+[}][{]/{/g;
22
+ s/\\textcolor[{][^{}]\+[}][{]\([^{}]\+\)[}]/\1/g;
23
+ s/\\textcolor[{][^{}]\+[}][{]\([^{]*[{][^{}]\+[}][^}]*\)[}]/\1/g;
24
+ s/\\textcolor[{][^{}]\+[}][{]\([^{]*[{][^{]*[{][^{}]\+[}][^}]*[}][^}]*\)[}]/\1/g;
25
+ s/\\textcolor[{][^{}]\+[}][{]\([^{]*[{][^{]*[{][^{]*[{][^{}]\+[}][^}]*[}][^}]*[}][^}]*\)[}]/\1/g;
26
+ s/\\textcolor[{][^{}]\+[}][{]/{/g;' |\
27
+ # Remove =\textstyle*=, no inner braces, then up to three inner pair of braces, then just remove the command and leave the brace.
28
+ sed -e \
29
+ 's/\\textstyle[a-zA-Z]*[{]\([^{}]\+\)[}]/\1/g;
30
+ s/\\textstyle[a-zA-Z]*[{]\([^{]*[{][^{}]\+[}][^}]*\)[}]/\1/g;
31
+ s/\\textstyle[a-zA-Z]*[{]\([^{]*[{][^{]*[{][^{}]\+[}][^}]*[}][^}]*\)[}]/\1/g;
32
+ s/\\textstyle[a-zA-Z]*[{]\([^{]*[{][^{]*[{][^{]*[{][^{}]\+[}][^}]*[}][^}]*[}][^}]*\)[}]/\1/g;
33
+ s/\\textstyle[a-zA-Z]*[{]/{/g;' |\
34
+ # Replace =[1E43?]= character subs.
35
+ sed -e \
36
+ 's/[[]1E6D?[]]/ṭ/g;
37
+ s/[[]1E47?[]]/ṇ/g;
38
+ s/[[]1E45?[]]/ṅ/g;
39
+ s/[[]1E41?[]]/ṁ/g;
40
+ s/[[]1E43?[]]/ṃ/g;
41
+ s/[[]1E0D?[]]/ḍ/g;
42
+ s/[[]1E37?[]]/ḷ/g;' |\
43
+ # TODO Replace non-breaking space and zero-width space.
44
+ # Remove commands with empty braces
45
+ sed -e 's/\\[a-zA-Z]\+[{] \+[}]/ /g' |\
46
+ # Remove spaces from beginning and end of braces
47
+ sed -e \
48
+ 's/\(\\[a-zA-Z]\+[{]\) \+/ \1/g;
49
+ s/\(\\[a-zA-Z]\+[{][^{}]\+\) \+[}]/\1} /g;' |\
50
+ # Fix tricky accent commands that trip up =pandoc=.
51
+ sed 's/\\=\\i/ī/g' |\
52
+ # =\MakeUppercase= and =\MakeLowercase= is swallowed by =pandoc=.
53
+ # Remove the command and leave the empty braces.
54
+ sed -e 's/\\MakeUppercase//g; s/\\MakeLowercase//g;' |\
55
+ tee "$1".tidy.tex |\
56
+ # === Converting to markdown ===
57
+ pandoc -f latex -t markdown --no-wrap |\
58
+ tee "$1".md |\
59
+ # Remove ​, conversion artefact
60
+ sed 's/​//g' |\
61
+ # Remove <span> tags, these remain from removing the \textcolor and \textstyle commands.
62
+ sed 's/<\/*span>//g' |\
63
+ # Normalize bold and italics
64
+ sed 's/\(\*\*[^\*]\+\)\*\* \+\*\*\([^\*]\+\*\*\)/\1 \2/g' |\
65
+ sed 's/\(\*[^\*]\+\)\* \+\*\([^\*]\+\*\)/\1 \2/g' |\
66
+ tee "$1".tidy.md |\
67
+ # === Converting to LaTeX ===
68
+ pandoc -f markdown -t latex --no-wrap |\
69
+ # Linebreaks
70
+ sed 's/\\\\/&\n/g' |\
71
+ # Remove double nbsp (tabs are exported as two escaped spaces from ODT).
72
+ sed 's/~~//g' > "$1".md.tex
@@ -1,5 +1,8 @@
1
1
  s/--/–/g
2
2
  s/``/“/g
3
+ s/"\b/“/g"
3
4
  s/`/‘/g
4
5
  s/''/”/g
6
+ s/\b"/”/g
7
+ s/\([[:punct:]]\)"/\1”/g
5
8
  s/'/’/g
@@ -3,9 +3,10 @@
3
3
  for i in ./tex/*.tex
4
4
  do
5
5
  sed -f sed_tex2uni $i |\
6
- sed -f sed_chars |\
7
6
  # for dumb E-book readers, problematic characters with latin
8
- sed -f sed_dumb_ebook > tmp/`basename $i`
7
+ # No longer necessary.
8
+ # sed -f sed_dumb_ebook |\
9
+ sed -f sed_chars > tmp/`basename $i`
9
10
  done
10
11
 
11
12
  for i in ./tmp/*.tex
@@ -5,6 +5,7 @@ DEST="$2"
5
5
 
6
6
  cat "$SRC" |\
7
7
  sed -e 's/\\label[{][^}]\+[}]//g; s/\\pageref[{][^}]\+[}]/FIXME:pageref/g' |\
8
+ sed 's/\\verseref[{]\([^}]\+\)[}]/\1.\\\\/g' |\
8
9
  pandoc --smart --normalize --from=latex --to=markdown |\
9
10
  sed 's/\([^\\]\)\\$/\1\\\\/' > "$DEST"
10
11
 
@@ -0,0 +1,4 @@
1
+
2
+ # ISBN for printed copies
3
+ isbn: "000-0-000000-00-0"
4
+ date: <%= Time.now.strftime("%Y-%m-%d") %>
@@ -0,0 +1,43 @@
1
+ # Copyright
2
+
3
+ <%= book.title %>\\
4
+ by <%= book.author %>
5
+
6
+ Published by <%= book.publisher %>
7
+
8
+ <%= book.cover_credit %>
9
+
10
+ This electronic edition was published on <%= book.date %>
11
+
12
+ Digital Edition <%= book.version %>
13
+
14
+ ePub ISBN `<%= book.isbn %>`
15
+
16
+ Copyright &copy; <%= book.publisher %> <%= book.date.strftime("%Y") %>
17
+
18
+ ![Creative Commons](../Images/CCLogo.jpg)
19
+ {:style="text-align: center;"}
20
+
21
+ This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.\\
22
+ <http://creativecommons.org/licenses/by-nc-nd/3.0/>
23
+
24
+ You are free:
25
+
26
+ * to Share – to copy, distribute and transmit the work
27
+
28
+ Under the following conditions:
29
+
30
+ * Attribution – You must attribute the work in the manner specified by the author or licensor.
31
+ * Noncommercial – You may not use this work for commercial purposes.
32
+ * No Derivative Works – You may not alter, transform, or build upon this work.
33
+
34
+ With the understanding that:
35
+
36
+ * Waiver – Any of the above conditions can be waived if you get permission from the copyright holder.
37
+ * Public Domain – Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
38
+ * Other Rights – In no way are any of the following rights affected by the license:
39
+ * Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations;
40
+ * The author’s moral rights;
41
+ * Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
42
+ * Notice – For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.
43
+
@@ -15,7 +15,7 @@
15
15
  </head>
16
16
  <body>
17
17
  <div id="cover-image">
18
- <img alt="<%= book.title %>" src="../images/<%= book.cover_image %>" />
18
+ <img alt="<%= book.title %>" src="../Images/<%= book.cover_image %>" />
19
19
  </div>
20
20
  </body>
21
21
  </html>
@@ -20,7 +20,7 @@
20
20
  </td>
21
21
  <td>
22
22
  <% unless book.publisher_logo.nil? %>
23
- <div class="publisher-logo"><img src="../images/<%= book.publisher_logo %>" alt="logo"/></div>
23
+ <div class="publisher-logo"><img src="../Images/<%= book.publisher_logo %>" alt="logo"/></div>
24
24
  <% end %>
25
25
  </td>
26
26
  </tr>
@@ -0,0 +1 @@
1
+ exclude_assets: [ "cover.xcf", "buddho.jpg", "cover_photo.jpg", "sourcesanspro-extralight.ttf", ]
@@ -47,19 +47,23 @@ module Prophecy
47
47
  end
48
48
 
49
49
  def media_type
50
- ret = MIME::Types.type_for(File.basename(@path)).first.to_s
50
+ ret = ""
51
+ # first, use the known list
52
+ ext = File.extname(@path)
53
+ types = {
54
+ '.ncx' => 'application/x-dtbncx+xml',
55
+ '.ttf' => 'application/x-font-ttf',
56
+ }
57
+ if types.has_key?(ext)
58
+ ret = types[ext]
59
+ end
60
+ # if not, ask from MIME::Types
61
+ ret = MIME::Types.type_for(File.basename(@path)).first.to_s if ret == ""
51
62
  if ret == ""
52
- ext = File.extname(@path)
53
- types = {
54
- '.ncx' => 'application/x-dtbncx+xml',
55
- }
56
- if types.has_key?(ext)
57
- ret = types[ext]
58
- else
59
- warn "Can't determine media type for: #{@path}"
60
- raise "Unknown Media Type"
61
- end
63
+ warn "Can't determine media type for: #{@path}"
64
+ raise "Unknown Media Type"
62
65
  end
66
+
63
67
  ret
64
68
  end
65
69
 
@@ -1,3 +1,3 @@
1
1
  module Prophecy
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,209 +1,209 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prophecy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gambhiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-04 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: cucumber
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: aruba
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry-debugger
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: awesome_print
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: compass
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.12.2
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.12.2
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: kramdown
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: 1.2.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: 1.2.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: nokogiri
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: 1.6.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: 1.6.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: roman-numerals
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: 0.3.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.3.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: mime-types
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '1.25'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '1.25'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: thor
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ~>
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0.18'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ~>
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0.18'
209
209
  description: |-
@@ -217,7 +217,7 @@ executables:
217
217
  extensions: []
218
218
  extra_rdoc_files: []
219
219
  files:
220
- - .gitignore
220
+ - ".gitignore"
221
221
  - Gemfile
222
222
  - LICENSE.txt
223
223
  - Overview.md
@@ -264,41 +264,48 @@ files:
264
264
  - features/support/setup.rb
265
265
  - lib/prophecy.rb
266
266
  - lib/prophecy/assets/.gitignore
267
+ - lib/prophecy/assets/Fonts-latex/Crimson-Bold.otf
268
+ - lib/prophecy/assets/Fonts-latex/Crimson-BoldItalic.otf
269
+ - lib/prophecy/assets/Fonts-latex/Crimson-Italic.otf
270
+ - lib/prophecy/assets/Fonts-latex/Crimson-Roman.otf
271
+ - lib/prophecy/assets/Fonts-latex/Crimson-Semibold.otf
272
+ - lib/prophecy/assets/Fonts-latex/Crimson-SemiboldItalic.otf
273
+ - lib/prophecy/assets/Fonts-latex/GenBasB.ttf
274
+ - lib/prophecy/assets/Fonts-latex/GenBasBI.ttf
275
+ - lib/prophecy/assets/Fonts-latex/GenBasI.ttf
276
+ - lib/prophecy/assets/Fonts-latex/GenBasR.ttf
277
+ - lib/prophecy/assets/Fonts-latex/GenBkBasB.ttf
278
+ - lib/prophecy/assets/Fonts-latex/GenBkBasBI.ttf
279
+ - lib/prophecy/assets/Fonts-latex/GenBkBasI.ttf
280
+ - lib/prophecy/assets/Fonts-latex/GenBkBasR.ttf
281
+ - lib/prophecy/assets/Fonts-latex/GentiumPlus-I.ttf
282
+ - lib/prophecy/assets/Fonts-latex/GentiumPlus-R.ttf
283
+ - lib/prophecy/assets/Fonts-notused/sourcesanspro-bolditalic.ttf
284
+ - lib/prophecy/assets/Fonts-notused/sourcesanspro-extralight.ttf
285
+ - lib/prophecy/assets/Fonts-notused/sourcesanspro-extralightitalic.ttf
286
+ - lib/prophecy/assets/Fonts-notused/sourcesanspro-semibold.ttf
287
+ - lib/prophecy/assets/Fonts-notused/sourcesanspro-semibolditalic.ttf
288
+ - lib/prophecy/assets/Fonts/existence-light.ttf
289
+ - lib/prophecy/assets/Fonts/sourcesanspro-bold.ttf
290
+ - lib/prophecy/assets/Fonts/sourcesanspro-italic.ttf
291
+ - lib/prophecy/assets/Fonts/sourcesanspro-light.ttf
292
+ - lib/prophecy/assets/Fonts/sourcesanspro-lightitalic.ttf
293
+ - lib/prophecy/assets/Fonts/sourcesanspro-regular.ttf
294
+ - lib/prophecy/assets/Images/CCLogo.jpg
295
+ - lib/prophecy/assets/Images/cover.jpg
296
+ - lib/prophecy/assets/Images/cover.xcf
297
+ - lib/prophecy/assets/Images/publisher-logo.jpg
298
+ - lib/prophecy/assets/Styles/style-epub.css
299
+ - lib/prophecy/assets/Styles/style-mobi-kf8.css
300
+ - lib/prophecy/assets/Styles/style-mobi.css
267
301
  - lib/prophecy/assets/config.rb
268
302
  - lib/prophecy/assets/epub_template/META-INF/com.apple.ibooks.display-options.xml
269
303
  - lib/prophecy/assets/epub_template/META-INF/container.xml
270
304
  - lib/prophecy/assets/epub_template/OEBPS/.gitkeep
271
- - lib/prophecy/assets/epub_template/OEBPS/chapters/.gitkeep
305
+ - lib/prophecy/assets/epub_template/OEBPS/Text/.gitkeep
272
306
  - lib/prophecy/assets/epub_template/OEBPS/content.opf.erb
273
307
  - lib/prophecy/assets/epub_template/OEBPS/toc.ncx.erb
274
308
  - lib/prophecy/assets/epub_template/mimetype
275
- - lib/prophecy/assets/fonts/Crimson-Bold.otf
276
- - lib/prophecy/assets/fonts/Crimson-BoldItalic.otf
277
- - lib/prophecy/assets/fonts/Crimson-Italic.otf
278
- - lib/prophecy/assets/fonts/Crimson-Roman.otf
279
- - lib/prophecy/assets/fonts/Crimson-Semibold.otf
280
- - lib/prophecy/assets/fonts/Crimson-SemiboldItalic.otf
281
- - lib/prophecy/assets/fonts/GenBasB.ttf
282
- - lib/prophecy/assets/fonts/GenBasBI.ttf
283
- - lib/prophecy/assets/fonts/GenBasI.ttf
284
- - lib/prophecy/assets/fonts/GenBasR.ttf
285
- - lib/prophecy/assets/fonts/GenBkBasB.ttf
286
- - lib/prophecy/assets/fonts/GenBkBasBI.ttf
287
- - lib/prophecy/assets/fonts/GenBkBasI.ttf
288
- - lib/prophecy/assets/fonts/GenBkBasR.ttf
289
- - lib/prophecy/assets/fonts/GentiumPlus-I.ttf
290
- - lib/prophecy/assets/fonts/GentiumPlus-R.ttf
291
- - lib/prophecy/assets/helpers/check_typos.sh
292
- - lib/prophecy/assets/helpers/helpers.rb
293
- - lib/prophecy/assets/helpers/pali_typos
294
- - lib/prophecy/assets/helpers/sed_chars
295
- - lib/prophecy/assets/helpers/sed_dumb_ebook
296
- - lib/prophecy/assets/helpers/sed_tex2uni
297
- - lib/prophecy/assets/helpers/tex2html.sh
298
- - lib/prophecy/assets/helpers/tex2md.sh
299
- - lib/prophecy/assets/helpers/tidy_quotes
300
- - lib/prophecy/assets/helpers/tidy_quotes.sh
301
- - lib/prophecy/assets/helpers/to-html.sh
302
309
  - lib/prophecy/assets/latex_template/Makefile
303
310
  - lib/prophecy/assets/latex_template/anecdote.cls
304
311
  - lib/prophecy/assets/latex_template/book-core-first.sty
@@ -319,20 +326,6 @@ files:
319
326
  - lib/prophecy/assets/sass/style-epub.sass
320
327
  - lib/prophecy/assets/sass/style-mobi-kf8.sass
321
328
  - lib/prophecy/assets/sass/style-mobi.sass
322
- - lib/prophecy/assets/stylesheets/style-epub.css
323
- - lib/prophecy/assets/stylesheets/style-mobi-kf8.css
324
- - lib/prophecy/assets/stylesheets/style-mobi.css
325
- - lib/prophecy/assets/webfonts-extra/sourcesanspro-bolditalic.ttf
326
- - lib/prophecy/assets/webfonts-extra/sourcesanspro-extralightitalic.ttf
327
- - lib/prophecy/assets/webfonts-extra/sourcesanspro-semibold.ttf
328
- - lib/prophecy/assets/webfonts-extra/sourcesanspro-semibolditalic.ttf
329
- - lib/prophecy/assets/webfonts/existence-light.ttf
330
- - lib/prophecy/assets/webfonts/sourcesanspro-bold.ttf
331
- - lib/prophecy/assets/webfonts/sourcesanspro-extralight.ttf
332
- - lib/prophecy/assets/webfonts/sourcesanspro-italic.ttf
333
- - lib/prophecy/assets/webfonts/sourcesanspro-light.ttf
334
- - lib/prophecy/assets/webfonts/sourcesanspro-lightitalic.ttf
335
- - lib/prophecy/assets/webfonts/sourcesanspro-regular.ttf
336
329
  - lib/prophecy/book.rb
337
330
  - lib/prophecy/chapter.rb
338
331
  - lib/prophecy/cli.rb
@@ -345,11 +338,23 @@ files:
345
338
  - lib/prophecy/generators/book/build/epub/.empty_directory
346
339
  - lib/prophecy/generators/book/build/latex/.empty_directory
347
340
  - lib/prophecy/generators/book/build/mobi/.empty_directory
348
- - lib/prophecy/generators/book/epub_mobi.yml
341
+ - lib/prophecy/generators/book/epub.yml
342
+ - lib/prophecy/generators/book/epub_mobi.yml.tt
349
343
  - lib/prophecy/generators/book/example-book.yml
350
- - lib/prophecy/generators/book/images/cover.jpg
351
- - lib/prophecy/generators/book/images/cover.xcf
352
- - lib/prophecy/generators/book/images/publisher-logo.jpg
344
+ - lib/prophecy/generators/book/helpers/check_typos.sh
345
+ - lib/prophecy/generators/book/helpers/helpers.rb
346
+ - lib/prophecy/generators/book/helpers/pali_typos
347
+ - lib/prophecy/generators/book/helpers/post-export-tex-tidyup.sh
348
+ - lib/prophecy/generators/book/helpers/sed_chars
349
+ - lib/prophecy/generators/book/helpers/sed_dumb_ebook
350
+ - lib/prophecy/generators/book/helpers/sed_tex2uni
351
+ - lib/prophecy/generators/book/helpers/tex2html.sh
352
+ - lib/prophecy/generators/book/helpers/tex2md.sh
353
+ - lib/prophecy/generators/book/helpers/tidy_quotes
354
+ - lib/prophecy/generators/book/helpers/tidy_quotes.sh
355
+ - lib/prophecy/generators/book/helpers/to-html.sh
356
+ - lib/prophecy/generators/book/latex.yml.tt
357
+ - lib/prophecy/generators/book/manuscript/markdown/copyright.md.erb
353
358
  - lib/prophecy/generators/book/manuscript/markdown/further-comments.markdown
354
359
  - lib/prophecy/generators/book/manuscript/markdown/glossary.md
355
360
  - lib/prophecy/generators/book/manuscript/markdown/like-a-boat.md
@@ -361,6 +366,7 @@ files:
361
366
  - lib/prophecy/generators/book/manuscript/xhtml/cover.xhtml.erb
362
367
  - lib/prophecy/generators/book/manuscript/xhtml/titlepage.xhtml.erb
363
368
  - lib/prophecy/generators/book/manuscript/xhtml/toc.xhtml.erb
369
+ - lib/prophecy/generators/book/mobi.yml
364
370
  - lib/prophecy/generators/book/publish/epub/.empty_directory
365
371
  - lib/prophecy/generators/book/publish/mobi/.empty_directory
366
372
  - lib/prophecy/generators/book/publish/pdf/.empty_directory
@@ -381,17 +387,17 @@ require_paths:
381
387
  - lib
382
388
  required_ruby_version: !ruby/object:Gem::Requirement
383
389
  requirements:
384
- - - '>='
390
+ - - ">="
385
391
  - !ruby/object:Gem::Version
386
392
  version: '0'
387
393
  required_rubygems_version: !ruby/object:Gem::Requirement
388
394
  requirements:
389
- - - '>='
395
+ - - ">="
390
396
  - !ruby/object:Gem::Version
391
397
  version: '0'
392
398
  requirements: []
393
399
  rubyforge_project:
394
- rubygems_version: 2.0.3
400
+ rubygems_version: 2.4.6
395
401
  signing_key:
396
402
  specification_version: 4
397
403
  summary: Book boilerplate for generating PDF, EPUB and MOBI
@@ -404,4 +410,3 @@ test_files:
404
410
  - spec/book_spec.rb
405
411
  - spec/chapter_spec.rb
406
412
  - spec/manifest_spec.rb
407
- has_rdoc: