asciidoctor-epub3 1.5.0.alpha.12 → 1.5.0.alpha.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +56 -1
- data/Gemfile +10 -6
- data/LICENSE +21 -0
- data/NOTICE.adoc +3 -3
- data/README.adoc +62 -151
- data/asciidoctor-epub3.gemspec +9 -6
- data/data/fonts/awesome/LICENSE.txt +34 -0
- data/data/fonts/awesome/fa-solid-900.ttf +0 -0
- data/data/fonts/awesome/icons.yml +20935 -0
- data/data/fonts/awesome/shims.yml +298 -0
- data/data/styles/epub3-css3-only.css +3 -8
- data/data/styles/epub3-fonts.css +1 -1
- data/data/styles/epub3.css +22 -15
- data/lib/asciidoctor-epub3.rb +0 -1
- data/lib/asciidoctor-epub3/converter.rb +1062 -236
- data/lib/asciidoctor-epub3/font_icon_map.rb +22 -371
- data/lib/asciidoctor-epub3/version.rb +1 -1
- metadata +80 -38
- data/.yardopts +0 -12
- data/LICENSE.adoc +0 -25
- data/data/fonts/fontawesome-icons.ttf +0 -0
- data/lib/asciidoctor-epub3/packager.rb +0 -722
- data/lib/asciidoctor-epub3/spine_item_processor.rb +0 -92
@@ -0,0 +1,298 @@
|
|
1
|
+
area-chart:
|
2
|
+
name: chart-area
|
3
|
+
arrow-circle-o-down:
|
4
|
+
name: arrow-alt-circle-down
|
5
|
+
prefix: far
|
6
|
+
arrow-circle-o-left:
|
7
|
+
name: arrow-alt-circle-left
|
8
|
+
prefix: far
|
9
|
+
arrow-circle-o-right:
|
10
|
+
name: arrow-alt-circle-right
|
11
|
+
prefix: far
|
12
|
+
arrow-circle-o-up:
|
13
|
+
name: arrow-alt-circle-up
|
14
|
+
prefix: far
|
15
|
+
arrows:
|
16
|
+
name: arrows-alt
|
17
|
+
arrows-alt:
|
18
|
+
name: expand-arrows-alt
|
19
|
+
arrows-h:
|
20
|
+
name: arrows-alt-h
|
21
|
+
arrows-v:
|
22
|
+
name: arrows-alt-v
|
23
|
+
bar-chart:
|
24
|
+
name: chart-bar
|
25
|
+
prefix: far
|
26
|
+
bitbucket-square:
|
27
|
+
name: bitbucket
|
28
|
+
prefix: fab
|
29
|
+
calendar:
|
30
|
+
name: calendar-alt
|
31
|
+
calendar-o:
|
32
|
+
name: calendar
|
33
|
+
prefix: far
|
34
|
+
caret-square-o-down:
|
35
|
+
name: caret-square-down
|
36
|
+
prefix: far
|
37
|
+
caret-square-o-left:
|
38
|
+
name: caret-square-left
|
39
|
+
prefix: far
|
40
|
+
caret-square-o-right:
|
41
|
+
name: caret-square-right
|
42
|
+
prefix: far
|
43
|
+
caret-square-o-up:
|
44
|
+
name: caret-square-up
|
45
|
+
prefix: far
|
46
|
+
cc:
|
47
|
+
name: closed-captioning
|
48
|
+
prefix: far
|
49
|
+
chain-broken:
|
50
|
+
name: unlink
|
51
|
+
circle-o-notch:
|
52
|
+
name: circle-notch
|
53
|
+
circle-thin:
|
54
|
+
name: circle
|
55
|
+
prefix: far
|
56
|
+
clipboard:
|
57
|
+
prefix: far
|
58
|
+
clone:
|
59
|
+
prefix: far
|
60
|
+
cloud-download:
|
61
|
+
name: cloud-download-alt
|
62
|
+
cloud-upload:
|
63
|
+
name: cloud-upload-alt
|
64
|
+
code-fork:
|
65
|
+
name: code-branch
|
66
|
+
comment-alt:
|
67
|
+
name: comment-dots
|
68
|
+
prefix: far
|
69
|
+
commenting:
|
70
|
+
name: comment-dots
|
71
|
+
compass:
|
72
|
+
prefix: far
|
73
|
+
compress:
|
74
|
+
name: compress-alt
|
75
|
+
copyright:
|
76
|
+
prefix: far
|
77
|
+
creative-commons:
|
78
|
+
prefix: fab
|
79
|
+
credit-card:
|
80
|
+
prefix: far
|
81
|
+
credit-card-alt:
|
82
|
+
name: credit-card
|
83
|
+
cutlery:
|
84
|
+
name: utensils
|
85
|
+
diamond:
|
86
|
+
name: gem
|
87
|
+
prefix: far
|
88
|
+
eercast:
|
89
|
+
name: sellcast
|
90
|
+
prefix: fab
|
91
|
+
eur:
|
92
|
+
name: euro-sign
|
93
|
+
exchange:
|
94
|
+
name: exchange-alt
|
95
|
+
expand:
|
96
|
+
name: expand-alt
|
97
|
+
external-link:
|
98
|
+
name: external-link-alt
|
99
|
+
external-link-square:
|
100
|
+
name: external-link-square-alt
|
101
|
+
eye:
|
102
|
+
prefix: far
|
103
|
+
eye-dropper:
|
104
|
+
name: eye-dropper
|
105
|
+
prefix: far
|
106
|
+
eye-slash:
|
107
|
+
prefix: far
|
108
|
+
eyedropper:
|
109
|
+
name: eye-dropper
|
110
|
+
facebook:
|
111
|
+
name: facebook-f
|
112
|
+
prefix: fab
|
113
|
+
facebook-official:
|
114
|
+
name: facebook
|
115
|
+
prefix: fab
|
116
|
+
file-text:
|
117
|
+
name: file-alt
|
118
|
+
files-o:
|
119
|
+
name: copy
|
120
|
+
prefix: far
|
121
|
+
floppy-o:
|
122
|
+
name: save
|
123
|
+
prefix: far
|
124
|
+
gbp:
|
125
|
+
name: pound-sign
|
126
|
+
glass:
|
127
|
+
name: glass-martini
|
128
|
+
google-plus:
|
129
|
+
name: google-plus-g
|
130
|
+
prefix: fab
|
131
|
+
google-plus-circle:
|
132
|
+
name: google-plus
|
133
|
+
prefix: fab
|
134
|
+
google-plus-official:
|
135
|
+
name: google-plus
|
136
|
+
prefix: fab
|
137
|
+
hand-o-down:
|
138
|
+
name: hand-point-down
|
139
|
+
prefix: far
|
140
|
+
hand-o-left:
|
141
|
+
name: hand-point-left
|
142
|
+
prefix: far
|
143
|
+
hand-o-right:
|
144
|
+
name: hand-point-right
|
145
|
+
prefix: far
|
146
|
+
hand-o-up:
|
147
|
+
name: hand-point-up
|
148
|
+
prefix: far
|
149
|
+
header:
|
150
|
+
name: heading
|
151
|
+
id-badge:
|
152
|
+
prefix: far
|
153
|
+
ils:
|
154
|
+
name: shekel-sign
|
155
|
+
inr:
|
156
|
+
name: rupee-sign
|
157
|
+
intersex:
|
158
|
+
name: transgender
|
159
|
+
jpy:
|
160
|
+
name: yen-sign
|
161
|
+
krw:
|
162
|
+
name: won-sign
|
163
|
+
level-down:
|
164
|
+
name: level-down-alt
|
165
|
+
level-up:
|
166
|
+
name: level-up-alt
|
167
|
+
life-ring:
|
168
|
+
prefix: far
|
169
|
+
line-chart:
|
170
|
+
name: chart-line
|
171
|
+
linkedin:
|
172
|
+
name: linkedin-in
|
173
|
+
prefix: fab
|
174
|
+
linkedin-square:
|
175
|
+
name: linkedin
|
176
|
+
prefix: fab
|
177
|
+
list-alt:
|
178
|
+
prefix: far
|
179
|
+
long-arrow-down:
|
180
|
+
name: long-arrow-alt-down
|
181
|
+
long-arrow-left:
|
182
|
+
name: long-arrow-alt-left
|
183
|
+
long-arrow-right:
|
184
|
+
name: long-arrow-alt-right
|
185
|
+
long-arrow-up:
|
186
|
+
name: long-arrow-alt-up
|
187
|
+
map-marker:
|
188
|
+
name: map-marker-alt
|
189
|
+
meanpath:
|
190
|
+
name: font-awesome
|
191
|
+
prefix: fab
|
192
|
+
mobile:
|
193
|
+
name: mobile-alt
|
194
|
+
money:
|
195
|
+
name: money-bill-alt
|
196
|
+
prefix: far
|
197
|
+
object-group:
|
198
|
+
prefix: far
|
199
|
+
object-ungroup:
|
200
|
+
prefix: far
|
201
|
+
paste:
|
202
|
+
prefix: far
|
203
|
+
pencil:
|
204
|
+
name: pencil-alt
|
205
|
+
pencil-square:
|
206
|
+
name: pen-square
|
207
|
+
pencil-square-o:
|
208
|
+
name: edit
|
209
|
+
prefix: far
|
210
|
+
picture:
|
211
|
+
name: image
|
212
|
+
pie-chart:
|
213
|
+
name: chart-pie
|
214
|
+
refresh:
|
215
|
+
name: sync
|
216
|
+
registered:
|
217
|
+
prefix: far
|
218
|
+
repeat:
|
219
|
+
name: redo
|
220
|
+
rub:
|
221
|
+
name: ruble-sign
|
222
|
+
scissors:
|
223
|
+
name: cut
|
224
|
+
shield:
|
225
|
+
name: shield-alt
|
226
|
+
sign-in:
|
227
|
+
name: sign-in-alt
|
228
|
+
sign-out:
|
229
|
+
name: sign-out-alt
|
230
|
+
sliders:
|
231
|
+
name: sliders-h
|
232
|
+
sort-alpha-asc:
|
233
|
+
name: sort-alpha-down
|
234
|
+
sort-alpha-desc:
|
235
|
+
name: sort-alpha-down-alt
|
236
|
+
sort-amount-asc:
|
237
|
+
name: sort-amount-down
|
238
|
+
sort-amount-desc:
|
239
|
+
name: sort-amount-down-alt
|
240
|
+
sort-asc:
|
241
|
+
name: sort-up
|
242
|
+
sort-desc:
|
243
|
+
name: sort-down
|
244
|
+
sort-numeric-asc:
|
245
|
+
name: sort-numeric-down
|
246
|
+
sort-numeric-desc:
|
247
|
+
name: sort-numeric-down-alt
|
248
|
+
spoon:
|
249
|
+
name: utensil-spoon
|
250
|
+
star-half-empty:
|
251
|
+
name: star-half
|
252
|
+
star-half-full:
|
253
|
+
name: star-half
|
254
|
+
support:
|
255
|
+
name: life-ring
|
256
|
+
prefix: far
|
257
|
+
tablet:
|
258
|
+
name: tablet-alt
|
259
|
+
tachometer:
|
260
|
+
name: tachometer-alt
|
261
|
+
television:
|
262
|
+
name: tv
|
263
|
+
thumb-tack:
|
264
|
+
name: thumbtack
|
265
|
+
thumbs-o-down:
|
266
|
+
name: thumbs-down
|
267
|
+
prefix: far
|
268
|
+
thumbs-o-up:
|
269
|
+
name: thumbs-up
|
270
|
+
prefix: far
|
271
|
+
ticket:
|
272
|
+
name: ticket-alt
|
273
|
+
trash:
|
274
|
+
name: trash-alt
|
275
|
+
trash-o:
|
276
|
+
name: trash-alt
|
277
|
+
prefix: far
|
278
|
+
try:
|
279
|
+
name: lira-sign
|
280
|
+
usd:
|
281
|
+
name: dollar-sign
|
282
|
+
video-camera:
|
283
|
+
name: video
|
284
|
+
vimeo:
|
285
|
+
name: vimeo-v
|
286
|
+
prefix: fab
|
287
|
+
volume-control-phone:
|
288
|
+
name: phone-volume
|
289
|
+
wheelchair-alt:
|
290
|
+
name: accessible-icon
|
291
|
+
prefix: fab
|
292
|
+
window-maximize:
|
293
|
+
prefix: far
|
294
|
+
window-restore:
|
295
|
+
prefix: far
|
296
|
+
youtube-play:
|
297
|
+
name: youtube
|
298
|
+
prefix: fab
|
@@ -28,8 +28,7 @@ body.gitden-reader {
|
|
28
28
|
}*/
|
29
29
|
|
30
30
|
/* Use tighter margins and smaller font (18px) on phones (Nexus 4 and smaller) */
|
31
|
-
@media only screen and (max-device-width: 768px) and (max-device-height: 1280px),
|
32
|
-
only screen and (max-device-width: 1280px) and (max-device-height: 768px) {
|
31
|
+
@media only screen and (max-device-width: 768px) and (max-device-height: 1280px), only screen and (max-device-width: 1280px) and (max-device-height: 768px) {
|
33
32
|
body.gitden-reader,
|
34
33
|
body.namo-epub-library {
|
35
34
|
font-size: 112.5%;
|
@@ -38,7 +37,6 @@ only screen and (max-device-width: 1280px) and (max-device-height: 768px) {
|
|
38
37
|
/*body.gitden-reader {
|
39
38
|
margin: 0 5pt !important;
|
40
39
|
}*/
|
41
|
-
|
42
40
|
/*body.namo-epub-library > section.chapter {
|
43
41
|
margin: 0 5pt;
|
44
42
|
}*/
|
@@ -69,7 +67,6 @@ body code, body kbd, body pre, pre :not(code) {
|
|
69
67
|
/*body {
|
70
68
|
margin: 0 !important;
|
71
69
|
}*/
|
72
|
-
|
73
70
|
/* text-rendering is the only way to enable kerning in Kindle (and Calibre, though it seems to kern automatically) */
|
74
71
|
/* personally, I think Kindle overdoes kerning, but we're running with it for now */
|
75
72
|
/* text-rendering: optimizeLegibility kills certain Kindle eInk devices */
|
@@ -78,7 +75,6 @@ body code, body kbd, body pre, pre :not(code) {
|
|
78
75
|
th, td, figcaption, caption {
|
79
76
|
text-rendering: optimizeLegibility;
|
80
77
|
}*/
|
81
|
-
|
82
78
|
/* hack line height of subtitle using floats on Kindle */
|
83
79
|
h1.chapter-title .subtitle {
|
84
80
|
margin-top: -0.2em;
|
@@ -105,8 +101,7 @@ body code, body kbd, body pre, pre :not(code) {
|
|
105
101
|
}
|
106
102
|
|
107
103
|
/* Use darker font colors on Kindle Paperwhite */
|
108
|
-
@media amzn-kf8 and (device-height: 1024px) and (device-width: 758px),
|
109
|
-
amzn-kf8 and (device-height: 758px) and (device-width: 1024px) {
|
104
|
+
@media amzn-kf8 and (device-height: 1024px) and (device-width: 758px), amzn-kf8 and (device-height: 758px) and (device-width: 1024px) {
|
110
105
|
body p,
|
111
106
|
div.abstract > p,
|
112
107
|
ul, ol, li, dl, dt, dd, footer,
|
@@ -131,7 +126,7 @@ body code, body kbd, body pre, pre :not(code) {
|
|
131
126
|
color: #191918;
|
132
127
|
border-bottom-color: #191918;
|
133
128
|
}
|
134
|
-
|
129
|
+
|
135
130
|
h1.chapter-title .subtitle,
|
136
131
|
.chapter-header p.byline {
|
137
132
|
color: #000000;
|
data/data/styles/epub3-fonts.css
CHANGED
data/data/styles/epub3.css
CHANGED
@@ -215,8 +215,8 @@ body a:link {
|
|
215
215
|
body:first-of-type a:link {
|
216
216
|
border-bottom: none;
|
217
217
|
background-repeat: no-repeat;
|
218
|
-
background-image: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, #666665 5%, #666665 95%, rgba(255,255,255,0) 100%);
|
219
|
-
background-image: linear-gradient(to right, rgba(255,255,255,0) 0%, #666665 5%, #666665 95%, rgba(255,255,255,0) 100%);
|
218
|
+
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, #666665 5%, #666665 95%, rgba(255, 255, 255, 0) 100%);
|
219
|
+
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #666665 5%, #666665 95%, rgba(255, 255, 255, 0) 100%);
|
220
220
|
background-size: 100% 1px;
|
221
221
|
background-position: 0 1.2em;
|
222
222
|
}
|
@@ -357,6 +357,11 @@ dl dd {
|
|
357
357
|
margin-top: 0.25em;
|
358
358
|
}
|
359
359
|
|
360
|
+
td.hdlist1 {
|
361
|
+
font-weight: bold;
|
362
|
+
padding-right: 0.625em;
|
363
|
+
}
|
364
|
+
|
360
365
|
div.callout-list {
|
361
366
|
margin-top: 0.5em;
|
362
367
|
}
|
@@ -905,7 +910,7 @@ pre {
|
|
905
910
|
font-size: 0.85em;
|
906
911
|
line-height: 1.4; /* matches what Kindle uses and can't go less */
|
907
912
|
background-color: #F2F2F2;
|
908
|
-
padding: 0.5rem 0.75rem
|
913
|
+
padding: 0.6em 0.9em; /* this is supposed to be '0.5rem 0.75rem' but Sony Readers crash when see that (at least, PRS-350, PRS-505, PRS-T1) */
|
909
914
|
/*
|
910
915
|
border-top: 3px solid #DCDCDE;
|
911
916
|
*/
|
@@ -1023,23 +1028,23 @@ aside[class~="admonition"] > div[class~="content"] {
|
|
1023
1028
|
}
|
1024
1029
|
|
1025
1030
|
aside.note::before {
|
1026
|
-
content: "\
|
1031
|
+
content: "\f303"; /* fa-pencil-alt */
|
1027
1032
|
color: #FFC14F;
|
1028
1033
|
}
|
1029
1034
|
|
1030
1035
|
aside[class~="note"] > div[class~="content"] {
|
1031
|
-
background-image: -webkit-linear-gradient(left, rgba(255,255,255,0) 42.5%, #FFC14F 45%, #FFC14F 55%, rgba(255,255,255,0) 57.5%);
|
1032
|
-
background-image: linear-gradient(to right, rgba(255,255,255,0) 42.5%, #FFC14F 45%, #FFC14F 55%, rgba(255,255,255,0) 57.5%);
|
1036
|
+
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 42.5%, #FFC14F 45%, #FFC14F 55%, rgba(255, 255, 255, 0) 57.5%);
|
1037
|
+
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 42.5%, #FFC14F 45%, #FFC14F 55%, rgba(255, 255, 255, 0) 57.5%);
|
1033
1038
|
}
|
1034
1039
|
|
1035
1040
|
aside.tip::before {
|
1036
|
-
content: "\f0eb"; /* fa-lightbulb
|
1041
|
+
content: "\f0eb"; /* fa-lightbulb */
|
1037
1042
|
color: #40403E;
|
1038
1043
|
}
|
1039
1044
|
|
1040
1045
|
aside[class~="tip"] > div[class~="content"] {
|
1041
|
-
background-image: -webkit-linear-gradient(left, rgba(255,255,255,0) 42.5%, #40403E 45%, #40403E 55%, rgba(255,255,255,0) 57.5%);
|
1042
|
-
background-image: linear-gradient(to right, rgba(255,255,255,0) 42.5%, #40403E 45%, #40403E 55%, rgba(255,255,255,0) 57.5%);
|
1046
|
+
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 42.5%, #40403E 45%, #40403E 55%, rgba(255, 255, 255, 0) 57.5%);
|
1047
|
+
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 42.5%, #40403E 45%, #40403E 55%, rgba(255, 255, 255, 0) 57.5%);
|
1043
1048
|
}
|
1044
1049
|
|
1045
1050
|
aside.caution::before {
|
@@ -1048,8 +1053,8 @@ aside.caution::before {
|
|
1048
1053
|
}
|
1049
1054
|
|
1050
1055
|
aside[class~="caution"] > div[class~="content"] {
|
1051
|
-
background-image: -webkit-linear-gradient(left, rgba(255,255,255,0) 42.5%, #7F7F7D 45%, #7F7F7D 55%, rgba(255,255,255,0) 57.5%);
|
1052
|
-
background-image: linear-gradient(to right, rgba(255,255,255,0) 42.5%, #7F7F7D 45%, #7F7F7D 55%, rgba(255,255,255,0) 57.5%);
|
1056
|
+
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 42.5%, #7F7F7D 45%, #7F7F7D 55%, rgba(255, 255, 255, 0) 57.5%);
|
1057
|
+
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 42.5%, #7F7F7D 45%, #7F7F7D 55%, rgba(255, 255, 255, 0) 57.5%);
|
1053
1058
|
}
|
1054
1059
|
|
1055
1060
|
aside.warning::before {
|
@@ -1058,8 +1063,8 @@ aside.warning::before {
|
|
1058
1063
|
}
|
1059
1064
|
|
1060
1065
|
aside[class~="warning"] > div[class~="content"] {
|
1061
|
-
background-image: -webkit-linear-gradient(left, rgba(255,255,255,0) 42.5%, #C83737 45%, #C83737 55%, rgba(255,255,255,0) 57.5%);
|
1062
|
-
background-image: linear-gradient(to right, rgba(255,255,255,0) 42.5%, #C83737 45%, #C83737 55%, rgba(255,255,255,0) 57.5%);
|
1066
|
+
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 42.5%, #C83737 45%, #C83737 55%, rgba(255, 255, 255, 0) 57.5%);
|
1067
|
+
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 42.5%, #C83737 45%, #C83737 55%, rgba(255, 255, 255, 0) 57.5%);
|
1063
1068
|
}
|
1064
1069
|
|
1065
1070
|
aside.important::before {
|
@@ -1068,8 +1073,8 @@ aside.important::before {
|
|
1068
1073
|
}
|
1069
1074
|
|
1070
1075
|
aside[class~="important"] > div[class~="content"] {
|
1071
|
-
background-image: -webkit-linear-gradient(left, rgba(255,255,255,0) 42.5%, #F2642A 45%, #F2642A 55%, rgba(255,255,255,0) 57.5%);
|
1072
|
-
background-image: linear-gradient(to right, rgba(255,255,255,0) 42.5%, #F2642A 45%, #F2642A 55%, rgba(255,255,255,0) 57.5%);
|
1076
|
+
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 42.5%, #F2642A 45%, #F2642A 55%, rgba(255, 255, 255, 0) 57.5%);
|
1077
|
+
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 42.5%, #F2642A 45%, #F2642A 55%, rgba(255, 255, 255, 0) 57.5%);
|
1073
1078
|
}
|
1074
1079
|
|
1075
1080
|
aside.admonition > h2 {
|
@@ -1257,9 +1262,11 @@ nav#toc ol {
|
|
1257
1262
|
table.table th, table.table td, div.verse .attribution {
|
1258
1263
|
font-family: serif;
|
1259
1264
|
}
|
1265
|
+
|
1260
1266
|
h1, h2, h3, h4, h5, h6 {
|
1261
1267
|
font-family: sans-serif;
|
1262
1268
|
}
|
1269
|
+
|
1263
1270
|
code, kbd, pre, i.conum {
|
1264
1271
|
font-family: monospace;
|
1265
1272
|
}
|