prophecy 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c38ed686782795c72ceed5060be8121f2087f49
4
- data.tar.gz: cb5a4edee597d694922694cf1e64a9d284f055ee
3
+ metadata.gz: e10e86a5056fe045d17438b054d22a295f8a77ef
4
+ data.tar.gz: b2dd5720ad6308cbce74ee761f32aa8cb4224eea
5
5
  SHA512:
6
- metadata.gz: 1f0cdbe3e2a55dfc573bab36d529c92211225119ef8e1ae0562141cc9a11ff51f566a7e1c41b77412a3704509bfcbf668fc1cb56ba98d85bc566e32435dca557
7
- data.tar.gz: edcca8ec67afc37b2df1f8e3f88c61832d387a1dcf34603a6d0a7f409588699406159b501acfa5a087561573094a90fa2ae9f096abe12aaed801d956693c4825
6
+ metadata.gz: ee64db92f06632f80f2857a6d0b74a57a84bdc1182dc2f4a4d6bdf413f0e3381c4bd0a92387a5fbdf761e712bb4a7c15802a633dade8324421a49501735f422e
7
+ data.tar.gz: cd1bb1c982fdf0d361278a9130681638d86e81b186641c525c75ad8505c729f0284ae87a04cb2ee5805eb376c10181d1dc343ab0fa807a369e1c16d52e51d366
data/README.md CHANGED
@@ -4,22 +4,23 @@ Prophecy Book Boilerplate
4
4
  Book boilerplate to generate books as EPUB, MOBI, and PDF from simple
5
5
  Markdown text files. Or from HTML. Or from LaTeX. Or mixed.
6
6
 
7
- Repeating, fixing, improving page layout, CSS typography, the format
8
- standards, TOC `<navPoint>`s, `<manifest>`, `<guide>` -- is the litany
9
- of pain.
7
+ Page layout, CSS typography, the format standards, TOC navPoints,
8
+ manifest, guide -- is the litany of pain.
10
9
 
11
- Sounds like the machine should be doing this, and we just go and
10
+ Sounds like the machine should be doing this, and we can just go and
12
11
  meditate on peace.
13
12
 
14
13
  ## Let's see that
15
14
 
16
- Screencast.
15
+ [![Screencast demo][demo-jpg]](http://asciinema.org/a/5680)
16
+
17
+ [demo-jpg]: http://profound-labs.github.io/images/screenshots/prophecy-screencast.jpg
17
18
 
18
19
  ## And then this happens
19
20
 
20
- - Screeshots
21
+ Add Screeshots.
21
22
 
22
- Embedded fonts and CSS typography for the ebooks, and a pretty LaTeX
23
+ Embedded fonts and CSS typography for the ebooks, and a LaTeX
23
24
  documentclass for the PDF.
24
25
 
25
26
  ## Onwards
@@ -33,3 +34,9 @@ Home: [profound-labs.github.io/projects/prophecy/](http://profound-labs.github.i
33
34
 
34
35
  Github: [profound-labs/prophecy](https://github.com/profound-labs/prophecy)
35
36
 
37
+ Rubygems: [prophecy](https://rubygems.org/gems/prophecy)
38
+
39
+ ## Inspried by
40
+
41
+ [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).
42
+
@@ -35,47 +35,74 @@
35
35
  \RequirePackage{fontspec}
36
36
  \defaultfontfeatures{Ligatures={TeX}}
37
37
 
38
+ % Dummy font commands to use system defaults instead of custom fonts
39
+
40
+ \newcommand\crimsonRomanFont{}
41
+ \newcommand\crimsonRomanFontOldNum{}
42
+ \newcommand\gentiumFont{}
43
+ \newcommand\footFont{}
44
+ \newcommand\partTitleFont{}
45
+ \newcommand\chapterNameFont{}
46
+ \newcommand\chapterTitleFont{}
47
+ \newcommand\chapterNumberFont{}
48
+ \newcommand\chapterAuthorFont{}
49
+ \newcommand\chapterNoteFont{}
50
+ \newcommand\sectionFont{}
51
+
38
52
  % If -- dashes don't work for your font, try
39
53
  % Renderer = Basic
40
54
  % http://tex.stackexchange.com/questions/20580/how-to-enable-ligatures-for-emdash-endash-in-luatex
41
55
 
42
- \setmainfont[
43
- SmallCapsFont = Crimson Roman,
44
- SmallCapsFeatures= { Ligatures = TeX, Letters = SmallCaps },
45
- BoldFont = Gentium Book Basic Bold,
46
- ]{Gentium}
47
-
48
- \newfontfamily\crimsonRomanFont[
49
- BoldFont = Crimson Semibold,
50
- ItalicFont = Crimson Italic,
51
- ]{Crimson Roman}
52
- \newfontfamily\crimsonRomanFontOldNum[
53
- Numbers = OldStyle,
54
- ]{Crimson Roman}
55
- \newfontfamily\gentiumFont{Gentium}
56
-
57
- % header and footer
58
-
59
- \newfontfamily\footFont[Renderer = Basic]{Shaker Pali}
56
+ %\setmainfont[
57
+ % Path = {./fonts/},
58
+ % SmallCapsFont = Crimson-Roman.otf,
59
+ % SmallCapsFeatures= { Ligatures = TeX, Letters = SmallCaps },
60
+ % ItalicFont = GentiumPlus-I.ttf,
61
+ % BoldFont = GenBkBasB.ttf,
62
+ % BoldItalicFont = GenBkBasBI.ttf,
63
+ %]{GentiumPlus-R.ttf}
64
+ %
65
+ %\newfontfamily\crimsonRomanFont[
66
+ % Path = {./fonts/},
67
+ % ItalicFont = Crimson-Italic.otf,
68
+ % BoldFont = Crimson-Semibold.otf,
69
+ % BoldItalicFont = Crimson-SemiboldItalic.otf,
70
+ %]{Crimson-Roman.otf}
71
+ %
72
+ %\newfontfamily\crimsonRomanFontOldNum[
73
+ % Path = {./fonts/},
74
+ % Numbers = OldStyle,
75
+ %]{Crimson-Roman.otf}
76
+ %
77
+ %\newfontfamily\gentiumFont[
78
+ % Path = {./fonts/},
79
+ %]{GentiumPlus-R.ttf}
80
+ %
81
+ %% header and footer
82
+ %
83
+ %\newfontfamily\footFont[
84
+ % Path = {./fonts/},
85
+ % %Renderer = Basic,
86
+ %]{Crimson-Roman.otf}
60
87
 
61
88
  \newcommand{\footSize}
62
89
  {\@setfontsize\footSize{9}{9}}
63
90
 
64
91
  % chapter
65
92
 
66
- \newfontfamily\partTitleFont[
67
- ItalicFont = Shaker 2 Light Italic,
68
- Renderer = Basic,
69
- ]{Shaker 2 Light}
70
-
71
- \newfontfamily\chapterNameFont{Crimson Roman}
72
- \newfontfamily\chapterTitleFont{Crimson Roman}
73
- \newfontfamily\chapterNumberFont{Crimson Roman}
74
- \newfontfamily\chapterAuthorFont{Crimson Roman}
75
- \newfontfamily\chapterNoteFont[
76
- BoldFont = Crimson Semibold,
77
- ItalicFont = Crimson Italic,
78
- ]{Crimson Roman}
93
+ %\newfontfamily\partTitleFont[
94
+ % ItalicFont = Shaker 2 Light Italic,
95
+ % %Renderer = Basic,
96
+ %]{Crimson Roman}
97
+ %
98
+ %\newfontfamily\chapterNameFont{Crimson Roman}
99
+ %\newfontfamily\chapterTitleFont{Crimson Roman}
100
+ %\newfontfamily\chapterNumberFont{Crimson Roman}
101
+ %\newfontfamily\chapterAuthorFont{Crimson Roman}
102
+ %\newfontfamily\chapterNoteFont[
103
+ % BoldFont = Crimson Semibold,
104
+ % ItalicFont = Crimson Italic,
105
+ %]{Crimson Roman}
79
106
 
80
107
  \newcommand{\chapterNameSize}
81
108
  {\@setfontsize\chapterNameSize{22}{24}}
@@ -90,10 +117,10 @@
90
117
 
91
118
  % section
92
119
 
93
- \newfontfamily\sectionFont[
94
- BoldFont = Crimson Semibold,
95
- ItalicFont = Crimson Italic,
96
- ]{Crimson Roman}
120
+ %\newfontfamily\sectionFont[
121
+ % BoldFont = Crimson Semibold,
122
+ % ItalicFont = Crimson Italic,
123
+ %]{Crimson Roman}
97
124
 
98
125
  \newcommand{\sectionSize}
99
126
  {\@setfontsize\sectionSize{13}{15}}
@@ -11,12 +11,16 @@
11
11
 
12
12
  @import "compass/typography/links/link-colors"
13
13
 
14
- $contentPadding: 22px
15
- $headerRightMargin: 0px
16
- $titlePageRuleWidth: 40px
14
+ $contentFontFamily: 'SourceSansPro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', 'Tahoma', 'Palatino', 'Caecilia', sans-serif !default
15
+ $contentHeaderFontFamily: 'SourceSansPro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', 'Tahoma', 'Palatino', 'Caecilia', sans-serif !default
16
+ $titlePageHeaderFontFamily: 'ExistenceLight' !default
17
+
18
+ $contentPadding: 22px !default
19
+ $headerRightMargin: 0px !default
20
+ $titlePageRuleWidth: 40px !default
17
21
 
18
22
  #content
19
- font-family: 'SourceSansPro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', 'Tahoma', 'Palatino', 'Caecilia', sans-serif
23
+ font-family: $contentFontFamily
20
24
  font-weight: normal
21
25
  line-height: 1.5em
22
26
  padding: $contentPadding
@@ -28,7 +32,7 @@ $titlePageRuleWidth: 40px
28
32
 
29
33
  h1, h2, h3, h4, h5, h6
30
34
  font-weight: normal
31
- font-family: 'SourceSansPro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', 'Tahoma', 'Palatino', 'Caecilia', sans-serif
35
+ font-family: $contentHeaderFontFamily
32
36
  page-break-after: avoid
33
37
 
34
38
  h1, h2
@@ -86,7 +90,7 @@ a
86
90
  text-align: right
87
91
  padding-right: $headerRightMargin
88
92
  h1, h2, h3
89
- font-family: 'ExistenceLight'
93
+ font-family: $titlePageHeaderFontFamily
90
94
  text-align: right
91
95
  text-transform: none
92
96
  h1, h2
@@ -91,7 +91,7 @@
91
91
  *
92
92
  * Released under the Creative Commons Attribution License.
93
93
  * http://creativecommons.org/licenses/by/3.0/ */
94
- /* line 18, ../sass/_byronic.sass */
94
+ /* line 22, ../sass/_byronic.sass */
95
95
  #content {
96
96
  font-family: "SourceSansPro", "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", "Tahoma", "Palatino", "Caecilia", sans-serif;
97
97
  font-weight: normal;
@@ -101,21 +101,21 @@
101
101
  margin-right: 0;
102
102
  }
103
103
 
104
- /* line 29, ../sass/_byronic.sass */
104
+ /* line 33, ../sass/_byronic.sass */
105
105
  h1, h2, h3, h4, h5, h6 {
106
106
  font-weight: normal;
107
107
  font-family: "SourceSansPro", "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", "Tahoma", "Palatino", "Caecilia", sans-serif;
108
108
  page-break-after: avoid;
109
109
  }
110
110
 
111
- /* line 34, ../sass/_byronic.sass */
111
+ /* line 38, ../sass/_byronic.sass */
112
112
  h1, h2 {
113
113
  text-align: left;
114
114
  text-transform: uppercase;
115
115
  padding-top: 10px;
116
116
  }
117
117
 
118
- /* line 41, ../sass/_byronic.sass */
118
+ /* line 45, ../sass/_byronic.sass */
119
119
  h1 {
120
120
  font-size: 2em;
121
121
  margin: 0.5em 0 1em 0px;
@@ -127,17 +127,17 @@ h1 {
127
127
  * chapter-name (always contains the word "Chapter") and
128
128
  * chapter-number (as a roman numeral) */
129
129
  }
130
- /* line 52, ../sass/_byronic.sass */
130
+ /* line 56, ../sass/_byronic.sass */
131
131
  h1 .chapter-name {
132
132
  font-weight: normal;
133
133
  }
134
- /* line 54, ../sass/_byronic.sass */
134
+ /* line 58, ../sass/_byronic.sass */
135
135
  h1 .chapter-number {
136
136
  font-size: 0.8em;
137
137
  letter-spacing: 0.1em;
138
138
  }
139
139
 
140
- /* line 58, ../sass/_byronic.sass */
140
+ /* line 62, ../sass/_byronic.sass */
141
141
  h2 {
142
142
  font-size: 1.5em;
143
143
  font-weight: 300;
@@ -146,14 +146,14 @@ h2 {
146
146
  letter-spacing: 1pt;
147
147
  }
148
148
 
149
- /* line 65, ../sass/_byronic.sass */
149
+ /* line 69, ../sass/_byronic.sass */
150
150
  h3, h4 {
151
151
  font-weight: bold;
152
152
  text-transform: none;
153
153
  margin-bottom: 0.1em;
154
154
  }
155
155
 
156
- /* line 70, ../sass/_byronic.sass */
156
+ /* line 74, ../sass/_byronic.sass */
157
157
  a {
158
158
  color: #323232;
159
159
  }
@@ -166,13 +166,13 @@ a {
166
166
  * h1 - Part I
167
167
  * h2 - part title
168
168
  * h3 - part subtitle */
169
- /* line 85, ../sass/_byronic.sass */
169
+ /* line 89, ../sass/_byronic.sass */
170
170
  #content.title-page p,
171
171
  #content.part-page p {
172
172
  text-align: right;
173
173
  padding-right: 0px;
174
174
  }
175
- /* line 88, ../sass/_byronic.sass */
175
+ /* line 92, ../sass/_byronic.sass */
176
176
  #content.title-page h1, #content.title-page h2, #content.title-page h3,
177
177
  #content.part-page h1,
178
178
  #content.part-page h2,
@@ -181,13 +181,13 @@ a {
181
181
  text-align: right;
182
182
  text-transform: none;
183
183
  }
184
- /* line 92, ../sass/_byronic.sass */
184
+ /* line 96, ../sass/_byronic.sass */
185
185
  #content.title-page h1, #content.title-page h2,
186
186
  #content.part-page h1,
187
187
  #content.part-page h2 {
188
188
  letter-spacing: 1.5pt;
189
189
  }
190
- /* line 94, ../sass/_byronic.sass */
190
+ /* line 98, ../sass/_byronic.sass */
191
191
  #content.title-page h1,
192
192
  #content.part-page h1 {
193
193
  font-size: 2em;
@@ -198,7 +198,7 @@ a {
198
198
  padding-right: 0px;
199
199
  line-height: 1em;
200
200
  }
201
- /* line 102, ../sass/_byronic.sass */
201
+ /* line 106, ../sass/_byronic.sass */
202
202
  #content.title-page h2,
203
203
  #content.part-page h2 {
204
204
  font-size: 1.5em;
@@ -207,7 +207,7 @@ a {
207
207
  padding-top: 0.3em;
208
208
  padding-right: 0px;
209
209
  }
210
- /* line 108, ../sass/_byronic.sass */
210
+ /* line 112, ../sass/_byronic.sass */
211
211
  #content.title-page h3,
212
212
  #content.part-page h3 {
213
213
  font-size: 1.2em;
@@ -215,7 +215,7 @@ a {
215
215
  padding-right: 0px;
216
216
  }
217
217
 
218
- /* line 113, ../sass/_byronic.sass */
218
+ /* line 117, ../sass/_byronic.sass */
219
219
  div.title-page-rule {
220
220
  height: 40px;
221
221
  margin-left: 0;
@@ -225,7 +225,7 @@ div.title-page-rule {
225
225
  padding-right: 0px;
226
226
  }
227
227
 
228
- /* line 121, ../sass/_byronic.sass */
228
+ /* line 125, ../sass/_byronic.sass */
229
229
  div.publisher-logo {
230
230
  float: right;
231
231
  clear: right;
@@ -234,21 +234,21 @@ div.publisher-logo {
234
234
  padding-bottom: 20px;
235
235
  }
236
236
 
237
- /* line 129, ../sass/_byronic.sass */
237
+ /* line 133, ../sass/_byronic.sass */
238
238
  table.toc td.section {
239
239
  text-align: right;
240
240
  color: #323232;
241
241
  }
242
- /* line 133, ../sass/_byronic.sass */
242
+ /* line 137, ../sass/_byronic.sass */
243
243
  table.toc td.title a {
244
244
  text-decoration: none;
245
245
  color: #1a1a1a;
246
246
  }
247
- /* line 136, ../sass/_byronic.sass */
247
+ /* line 140, ../sass/_byronic.sass */
248
248
  table.toc td.title.frontmatter, table.toc td.title.backmatter {
249
249
  font-style: italic;
250
250
  }
251
- /* line 139, ../sass/_byronic.sass */
251
+ /* line 143, ../sass/_byronic.sass */
252
252
  table.toc td.separator {
253
253
  width: 30px;
254
254
  text-align: center;
@@ -257,7 +257,7 @@ table.toc td.separator {
257
257
  }
258
258
 
259
259
  /* Epigraphs at the beginning of each chapter are in blockquotes */
260
- /* line 146, ../sass/_byronic.sass */
260
+ /* line 150, ../sass/_byronic.sass */
261
261
  h1 + blockquote,
262
262
  blockquote.epigraph {
263
263
  margin-right: 1em;
@@ -266,7 +266,7 @@ blockquote.epigraph {
266
266
  font-size: 0.9em;
267
267
  font-style: italic;
268
268
  }
269
- /* line 154, ../sass/_byronic.sass */
269
+ /* line 158, ../sass/_byronic.sass */
270
270
  h1 + blockquote p,
271
271
  blockquote.epigraph p {
272
272
  text-indent: 0;
@@ -274,13 +274,13 @@ blockquote.epigraph p {
274
274
  margin-top: 2pt;
275
275
  }
276
276
 
277
- /* line 159, ../sass/_byronic.sass */
277
+ /* line 163, ../sass/_byronic.sass */
278
278
  blockquote {
279
279
  border-left: 1px solid #989898;
280
280
  padding: 0.3em 0 0.3em 1em;
281
281
  }
282
282
 
283
- /* line 163, ../sass/_byronic.sass */
283
+ /* line 167, ../sass/_byronic.sass */
284
284
  #content.verse blockquote {
285
285
  font-style: normal;
286
286
  font-size: 1em;
@@ -288,7 +288,7 @@ blockquote {
288
288
  }
289
289
 
290
290
  /* The attribution of the blockquote */
291
- /* line 169, ../sass/_byronic.sass */
291
+ /* line 173, ../sass/_byronic.sass */
292
292
  span.attribution,
293
293
  p.attribution {
294
294
  display: block;
@@ -301,7 +301,7 @@ p.attribution {
301
301
 
302
302
  /* ...which also contains an attribution-name, wrapping the name of
303
303
  * the person who made the quotation */
304
- /* line 180, ../sass/_byronic.sass */
304
+ /* line 184, ../sass/_byronic.sass */
305
305
  span.attribution-name,
306
306
  p.attribution-name {
307
307
  text-align: left;
@@ -313,13 +313,13 @@ p.attribution-name {
313
313
 
314
314
  /* Outside of the content area you can address the style of the
315
315
  * running book and author headings. */
316
- /* line 190, ../sass/_byronic.sass */
316
+ /* line 194, ../sass/_byronic.sass */
317
317
  #content-title {
318
318
  text-align: right;
319
319
  font-size: 0.8em;
320
320
  }
321
321
 
322
- /* line 198, ../sass/_byronic.sass */
322
+ /* line 202, ../sass/_byronic.sass */
323
323
  p {
324
324
  text-align: justify;
325
325
  }
@@ -327,7 +327,7 @@ p {
327
327
  /* The first paragraph in the work has a class called "noindent" which
328
328
  * suppresses any paragraph indentation applied by default, but you
329
329
  * can override this. */
330
- /* line 208, ../sass/_byronic.sass */
330
+ /* line 212, ../sass/_byronic.sass */
331
331
  h1 + p, h2 + p, h3 + p, h4 + p,
332
332
  h1 + blockquote + p,
333
333
  blockquote.epigraph + p,
@@ -340,62 +340,62 @@ p.noindent {
340
340
  * the class 'firstletter', which can be used for dropcaps. */
341
341
  /* Middlemarch contains a number of letters, which can be styled
342
342
  * differently. */
343
- /* line 226, ../sass/_byronic.sass */
343
+ /* line 230, ../sass/_byronic.sass */
344
344
  #content p.letter {
345
345
  padding-left: 1.5em;
346
346
  padding-right: 0.5em;
347
347
  }
348
348
 
349
349
  /* Found in a letter */
350
- /* line 231, ../sass/_byronic.sass */
350
+ /* line 235, ../sass/_byronic.sass */
351
351
  #content p.salutation {
352
352
  display: block;
353
353
  font-variant: small-caps;
354
354
  }
355
355
 
356
- /* line 235, ../sass/_byronic.sass */
356
+ /* line 239, ../sass/_byronic.sass */
357
357
  #content p.closing {
358
358
  display: block;
359
359
  text-indent: 1em;
360
360
  }
361
361
 
362
- /* line 239, ../sass/_byronic.sass */
362
+ /* line 243, ../sass/_byronic.sass */
363
363
  div.page-break {
364
364
  page-break-after: always;
365
365
  }
366
366
 
367
- /* line 242, ../sass/_byronic.sass */
367
+ /* line 246, ../sass/_byronic.sass */
368
368
  .page-break-after {
369
369
  page-break-after: always;
370
370
  }
371
371
 
372
- /* line 245, ../sass/_byronic.sass */
372
+ /* line 249, ../sass/_byronic.sass */
373
373
  .page-break-before {
374
374
  page-break-before: always;
375
375
  }
376
376
 
377
- /* line 248, ../sass/_byronic.sass */
377
+ /* line 252, ../sass/_byronic.sass */
378
378
  pre {
379
379
  margin-top: 1em;
380
380
  margin-bottom: 1em;
381
381
  }
382
382
 
383
- /* line 252, ../sass/_byronic.sass */
383
+ /* line 256, ../sass/_byronic.sass */
384
384
  .small {
385
385
  font-size: 0.9em;
386
386
  }
387
387
 
388
- /* line 255, ../sass/_byronic.sass */
388
+ /* line 259, ../sass/_byronic.sass */
389
389
  .footnotesize {
390
390
  font-size: 0.8em;
391
391
  }
392
392
 
393
- /* line 258, ../sass/_byronic.sass */
393
+ /* line 262, ../sass/_byronic.sass */
394
394
  .tiny {
395
395
  font-size: 0.7em;
396
396
  }
397
397
 
398
- /* line 261, ../sass/_byronic.sass */
398
+ /* line 265, ../sass/_byronic.sass */
399
399
  .noborder {
400
400
  border: none;
401
401
  }