asciidoctor-pdf 1.5.0.alpha.16 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.yardopts +12 -0
- data/CHANGELOG.adoc +415 -1
- data/LICENSE.adoc +1 -1
- data/NOTICE.adoc +14 -11
- data/README.adoc +647 -222
- data/asciidoctor-pdf.gemspec +47 -44
- data/bin/asciidoctor-pdf +5 -9
- data/bin/asciidoctor-pdf-optimize +20 -0
- data/data/fonts/ABOUT-mplus1mn-subset +26 -0
- data/data/fonts/ABOUT-mplus1p-subset +26 -0
- data/data/fonts/ABOUT-notoemoji-subset +3 -0
- data/data/fonts/ABOUT-notoserif-subset +26 -0
- data/data/fonts/{LICENSE-mplus-testflight-58 → LICENSE-mplus} +2 -2
- data/data/fonts/{LICENSE-noto-2015-06-05 → LICENSE-notoserif} +0 -0
- data/data/fonts/mplus1mn-bold-ascii.ttf +0 -0
- data/data/fonts/mplus1mn-bold-subset.ttf +0 -0
- data/data/fonts/mplus1mn-bold_italic-ascii.ttf +0 -0
- data/data/fonts/mplus1mn-bold_italic-subset.ttf +0 -0
- data/data/fonts/mplus1mn-italic-ascii.ttf +0 -0
- data/data/fonts/mplus1mn-italic-subset.ttf +0 -0
- data/data/fonts/mplus1mn-regular-ascii-conums.ttf +0 -0
- data/data/fonts/mplus1mn-regular-subset.ttf +0 -0
- data/data/fonts/mplus1p-regular-fallback.ttf +0 -0
- data/data/fonts/notoemoji-subset.ttf +0 -0
- data/data/fonts/notoserif-bold-subset.ttf +0 -0
- data/data/fonts/notoserif-bold_italic-subset.ttf +0 -0
- data/data/fonts/notoserif-italic-subset.ttf +0 -0
- data/data/fonts/notoserif-regular-subset.ttf +0 -0
- data/data/themes/base-theme.yml +26 -4
- data/data/themes/default-theme.yml +76 -60
- data/data/themes/default-with-fallback-font-theme.yml +9 -0
- data/docs/theming-guide.adoc +2731 -922
- data/lib/asciidoctor/pdf/converter.rb +4489 -0
- data/lib/asciidoctor/pdf/ext/asciidoctor/abstract_block.rb +7 -0
- data/lib/asciidoctor/pdf/ext/asciidoctor/abstract_node.rb +7 -0
- data/lib/asciidoctor/pdf/ext/asciidoctor/document.rb +5 -0
- data/lib/asciidoctor/pdf/ext/asciidoctor/image.rb +35 -0
- data/lib/{asciidoctor-pdf/asciidoctor_ext → asciidoctor/pdf/ext/asciidoctor}/list.rb +4 -2
- data/lib/{asciidoctor-pdf/asciidoctor_ext → asciidoctor/pdf/ext/asciidoctor}/list_item.rb +3 -1
- data/lib/asciidoctor/pdf/ext/asciidoctor/logging_shim.rb +33 -0
- data/lib/asciidoctor/pdf/ext/asciidoctor/section.rb +45 -0
- data/lib/asciidoctor/pdf/ext/asciidoctor.rb +11 -0
- data/lib/{asciidoctor-pdf/core_ext → asciidoctor/pdf/ext/core}/array.rb +6 -6
- data/lib/asciidoctor/pdf/ext/core/file.rb +9 -0
- data/lib/asciidoctor/pdf/ext/core/hash.rb +7 -0
- data/lib/asciidoctor/pdf/ext/core/numeric.rb +26 -0
- data/lib/{asciidoctor-pdf/core_ext → asciidoctor/pdf/ext/core}/object.rb +3 -1
- data/lib/{asciidoctor-pdf/core_ext → asciidoctor/pdf/ext/core}/quantifiable_stdout.rb +9 -1
- data/lib/asciidoctor/pdf/ext/core/regexp.rb +5 -0
- data/lib/{asciidoctor-pdf/core_ext → asciidoctor/pdf/ext/core}/string.rb +9 -13
- data/lib/asciidoctor/pdf/ext/core.rb +10 -0
- data/lib/asciidoctor/pdf/ext/pdf-core/page.rb +54 -0
- data/lib/asciidoctor/pdf/ext/pdf-core/pdf_object.rb +8 -0
- data/lib/asciidoctor/pdf/ext/pdf-core.rb +4 -0
- data/lib/asciidoctor/pdf/ext/prawn/coderay_encoder.rb +117 -0
- data/lib/asciidoctor/pdf/ext/prawn/extensions.rb +922 -0
- data/lib/{asciidoctor-pdf/prawn_ext → asciidoctor/pdf/ext/prawn}/font/afm.rb +14 -10
- data/lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb +9 -0
- data/lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb +66 -0
- data/lib/{asciidoctor-pdf/prawn_ext → asciidoctor/pdf/ext/prawn}/formatted_text/fragment.rb +21 -18
- data/lib/asciidoctor/pdf/ext/prawn/images.rb +54 -0
- data/lib/asciidoctor/pdf/ext/prawn-svg/interface.rb +14 -0
- data/lib/asciidoctor/pdf/ext/prawn-svg.rb +6 -0
- data/lib/asciidoctor/pdf/ext/prawn-table/cell/asciidoc.rb +76 -0
- data/lib/{asciidoctor-pdf/prawn-table_ext → asciidoctor/pdf/ext/prawn-table}/cell/text.rb +6 -3
- data/lib/asciidoctor/pdf/ext/prawn-table/cell.rb +60 -0
- data/lib/asciidoctor/pdf/ext/prawn-table.rb +6 -0
- data/lib/{asciidoctor-pdf/prawn-templates_ext.rb → asciidoctor/pdf/ext/prawn-templates.rb} +2 -0
- data/lib/asciidoctor/pdf/ext/prawn.rb +9 -0
- data/lib/asciidoctor/pdf/ext/pygments.rb +34 -0
- data/lib/asciidoctor/pdf/ext/rouge/formatters/prawn.rb +208 -0
- data/lib/{asciidoctor-pdf/rouge_ext/themes/pastie.rb → asciidoctor/pdf/ext/rouge/themes/asciidoctor_pdf_default.rb} +7 -5
- data/lib/asciidoctor/pdf/ext/rouge.rb +5 -0
- data/lib/asciidoctor/pdf/ext.rb +9 -0
- data/lib/asciidoctor/pdf/formatted_text/formatter.rb +43 -0
- data/lib/asciidoctor/pdf/formatted_text/fragment_position_renderer.rb +14 -0
- data/lib/asciidoctor/pdf/formatted_text/inline_destination_marker.rb +21 -0
- data/lib/asciidoctor/pdf/formatted_text/inline_image_arranger.rb +134 -0
- data/lib/asciidoctor/pdf/formatted_text/inline_image_renderer.rb +51 -0
- data/lib/asciidoctor/pdf/formatted_text/inline_text_aligner.rb +22 -0
- data/lib/{asciidoctor-pdf → asciidoctor/pdf}/formatted_text/parser.rb +175 -53
- data/lib/{asciidoctor-pdf → asciidoctor/pdf}/formatted_text/parser.treetop +20 -14
- data/lib/asciidoctor/pdf/formatted_text/source_wrap.rb +43 -0
- data/lib/asciidoctor/pdf/formatted_text/text_background_and_border_renderer.rb +55 -0
- data/lib/asciidoctor/pdf/formatted_text/transform.rb +394 -0
- data/lib/{asciidoctor-pdf → asciidoctor/pdf}/formatted_text.rb +6 -0
- data/lib/asciidoctor/pdf/index_catalog.rb +133 -0
- data/lib/asciidoctor/pdf/measurements.rb +62 -0
- data/lib/asciidoctor/pdf/optimizer.rb +44 -0
- data/lib/asciidoctor/pdf/pdfmark.rb +41 -0
- data/lib/asciidoctor/pdf/roman_numeral.rb +128 -0
- data/lib/asciidoctor/pdf/sanitizer.rb +45 -0
- data/lib/asciidoctor/pdf/text_transformer.rb +116 -0
- data/lib/asciidoctor/pdf/theme_loader.rb +305 -0
- data/lib/asciidoctor/pdf/version.rb +8 -0
- data/lib/asciidoctor/pdf.rb +15 -0
- data/lib/asciidoctor-pdf/converter.rb +2 -3343
- data/lib/asciidoctor-pdf/version.rb +3 -5
- data/lib/asciidoctor-pdf.rb +3 -3
- metadata +242 -128
- data/Gemfile +0 -22
- data/Rakefile +0 -81
- data/lib/asciidoctor-pdf/asciidoctor_ext/image.rb +0 -24
- data/lib/asciidoctor-pdf/asciidoctor_ext/section.rb +0 -34
- data/lib/asciidoctor-pdf/asciidoctor_ext.rb +0 -5
- data/lib/asciidoctor-pdf/core_ext/numeric.rb +0 -15
- data/lib/asciidoctor-pdf/core_ext/ostruct.rb +0 -17
- data/lib/asciidoctor-pdf/core_ext.rb +0 -4
- data/lib/asciidoctor-pdf/formatted_text/formatter.rb +0 -27
- data/lib/asciidoctor-pdf/formatted_text/inline_destination_marker.rb +0 -21
- data/lib/asciidoctor-pdf/formatted_text/inline_image_arranger.rb +0 -172
- data/lib/asciidoctor-pdf/formatted_text/inline_image_renderer.rb +0 -46
- data/lib/asciidoctor-pdf/formatted_text/transform.rb +0 -261
- data/lib/asciidoctor-pdf/implicit_header_processor.rb +0 -63
- data/lib/asciidoctor-pdf/index_catalog.rb +0 -119
- data/lib/asciidoctor-pdf/measurements.rb +0 -58
- data/lib/asciidoctor-pdf/pdf-core_ext/page.rb +0 -25
- data/lib/asciidoctor-pdf/pdf-core_ext/pdf_object.rb +0 -6
- data/lib/asciidoctor-pdf/pdf-core_ext.rb +0 -2
- data/lib/asciidoctor-pdf/pdfmark.rb +0 -33
- data/lib/asciidoctor-pdf/prawn-svg_ext/interface.rb +0 -10
- data/lib/asciidoctor-pdf/prawn-svg_ext.rb +0 -4
- data/lib/asciidoctor-pdf/prawn-table_ext/cell/asciidoc.rb +0 -69
- data/lib/asciidoctor-pdf/prawn-table_ext.rb +0 -3
- data/lib/asciidoctor-pdf/prawn_ext/coderay_encoder.rb +0 -115
- data/lib/asciidoctor-pdf/prawn_ext/extensions.rb +0 -863
- data/lib/asciidoctor-pdf/prawn_ext/images.rb +0 -40
- data/lib/asciidoctor-pdf/prawn_ext.rb +0 -5
- data/lib/asciidoctor-pdf/roman_numeral.rb +0 -114
- data/lib/asciidoctor-pdf/rouge_ext/css_theme.rb +0 -15
- data/lib/asciidoctor-pdf/rouge_ext/formatters/prawn.rb +0 -164
- data/lib/asciidoctor-pdf/rouge_ext.rb +0 -4
- data/lib/asciidoctor-pdf/sanitizer.rb +0 -88
- data/lib/asciidoctor-pdf/temporary_path.rb +0 -13
- data/lib/asciidoctor-pdf/theme_loader.rb +0 -247
- data/lib/asciidoctor-pdf/ttfunk_ext.rb +0 -8
data/lib/asciidoctor-pdf.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require_relative 'asciidoctor
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'asciidoctor/pdf'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Allen
|
@@ -9,277 +9,391 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: asciidoctor
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
21
|
-
|
20
|
+
version: 1.5.3
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.0.0
|
24
|
+
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
28
|
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
30
|
+
version: 1.5.3
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.0
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
35
|
+
name: prawn
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
|
-
- - "
|
38
|
+
- - "~>"
|
33
39
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
40
|
+
version: 2.2.0
|
35
41
|
type: :runtime
|
36
42
|
prerelease: false
|
37
43
|
version_requirements: !ruby/object:Gem::Requirement
|
38
44
|
requirements:
|
39
|
-
- - "
|
45
|
+
- - "~>"
|
40
46
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
47
|
+
version: 2.2.0
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
49
|
+
name: ttfunk
|
44
50
|
requirement: !ruby/object:Gem::Requirement
|
45
51
|
requirements:
|
46
|
-
- - "
|
52
|
+
- - "~>"
|
47
53
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.
|
49
|
-
- - "
|
54
|
+
version: 1.5.0
|
55
|
+
- - ">="
|
50
56
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
57
|
+
version: 1.5.1
|
52
58
|
type: :runtime
|
53
59
|
prerelease: false
|
54
60
|
version_requirements: !ruby/object:Gem::Requirement
|
55
61
|
requirements:
|
56
|
-
- - "
|
62
|
+
- - "~>"
|
57
63
|
- !ruby/object:Gem::Version
|
58
|
-
version: 1.
|
59
|
-
- - "
|
64
|
+
version: 1.5.0
|
65
|
+
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
67
|
+
version: 1.5.1
|
62
68
|
- !ruby/object:Gem::Dependency
|
63
69
|
name: prawn-table
|
64
70
|
requirement: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- -
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.2.
|
74
|
+
version: 0.2.0
|
69
75
|
type: :runtime
|
70
76
|
prerelease: false
|
71
77
|
version_requirements: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- -
|
79
|
+
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.2.
|
81
|
+
version: 0.2.0
|
76
82
|
- !ruby/object:Gem::Dependency
|
77
83
|
name: prawn-templates
|
78
84
|
requirement: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- - "
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.0.3
|
83
|
-
- - "<="
|
86
|
+
- - "~>"
|
84
87
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.1.
|
88
|
+
version: 0.1.0
|
86
89
|
type: :runtime
|
87
90
|
prerelease: false
|
88
91
|
version_requirements: !ruby/object:Gem::Requirement
|
89
92
|
requirements:
|
90
|
-
- - "
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 0.0.3
|
93
|
-
- - "<="
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.1.
|
95
|
+
version: 0.1.0
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: prawn-svg
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - "
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 0.21.0
|
103
|
-
- - "<"
|
100
|
+
- - "~>"
|
104
101
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
102
|
+
version: 0.30.0
|
106
103
|
type: :runtime
|
107
104
|
prerelease: false
|
108
105
|
version_requirements: !ruby/object:Gem::Requirement
|
109
106
|
requirements:
|
110
|
-
- - "
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 0.21.0
|
113
|
-
- - "<"
|
107
|
+
- - "~>"
|
114
108
|
- !ruby/object:Gem::Version
|
115
|
-
version: 0.
|
109
|
+
version: 0.30.0
|
116
110
|
- !ruby/object:Gem::Dependency
|
117
111
|
name: prawn-icon
|
118
112
|
requirement: !ruby/object:Gem::Requirement
|
119
113
|
requirements:
|
120
|
-
- -
|
114
|
+
- - "~>"
|
121
115
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
116
|
+
version: 2.5.0
|
123
117
|
type: :runtime
|
124
118
|
prerelease: false
|
125
119
|
version_requirements: !ruby/object:Gem::Requirement
|
126
120
|
requirements:
|
127
|
-
- -
|
121
|
+
- - "~>"
|
128
122
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
123
|
+
version: 2.5.0
|
130
124
|
- !ruby/object:Gem::Dependency
|
131
125
|
name: safe_yaml
|
132
126
|
requirement: !ruby/object:Gem::Requirement
|
133
127
|
requirements:
|
134
128
|
- - "~>"
|
135
129
|
- !ruby/object:Gem::Version
|
136
|
-
version: 1.0.
|
130
|
+
version: 1.0.0
|
137
131
|
type: :runtime
|
138
132
|
prerelease: false
|
139
133
|
version_requirements: !ruby/object:Gem::Requirement
|
140
134
|
requirements:
|
141
135
|
- - "~>"
|
142
136
|
- !ruby/object:Gem::Version
|
143
|
-
version: 1.0.
|
137
|
+
version: 1.0.0
|
144
138
|
- !ruby/object:Gem::Dependency
|
145
139
|
name: thread_safe
|
146
140
|
requirement: !ruby/object:Gem::Requirement
|
147
141
|
requirements:
|
148
142
|
- - "~>"
|
149
143
|
- !ruby/object:Gem::Version
|
150
|
-
version: 0.3.
|
144
|
+
version: 0.3.0
|
151
145
|
type: :runtime
|
152
146
|
prerelease: false
|
153
147
|
version_requirements: !ruby/object:Gem::Requirement
|
154
148
|
requirements:
|
155
149
|
- - "~>"
|
156
150
|
- !ruby/object:Gem::Version
|
157
|
-
version: 0.3.
|
151
|
+
version: 0.3.0
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: concurrent-ruby
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 1.1.0
|
159
|
+
type: :runtime
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 1.1.0
|
158
166
|
- !ruby/object:Gem::Dependency
|
159
167
|
name: treetop
|
160
168
|
requirement: !ruby/object:Gem::Requirement
|
161
169
|
requirements:
|
162
|
-
- -
|
170
|
+
- - "~>"
|
163
171
|
- !ruby/object:Gem::Version
|
164
|
-
version: 1.
|
172
|
+
version: 1.6.0
|
165
173
|
type: :runtime
|
166
174
|
prerelease: false
|
167
175
|
version_requirements: !ruby/object:Gem::Requirement
|
168
176
|
requirements:
|
169
|
-
- -
|
177
|
+
- - "~>"
|
170
178
|
- !ruby/object:Gem::Version
|
171
|
-
version: 1.
|
172
|
-
|
173
|
-
|
179
|
+
version: 1.6.0
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: rake
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 13.0.0
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 13.0.0
|
194
|
+
- !ruby/object:Gem::Dependency
|
195
|
+
name: rspec
|
196
|
+
requirement: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 3.9.0
|
201
|
+
type: :development
|
202
|
+
prerelease: false
|
203
|
+
version_requirements: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 3.9.0
|
208
|
+
- !ruby/object:Gem::Dependency
|
209
|
+
name: pdf-inspector
|
210
|
+
requirement: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 1.3.0
|
215
|
+
type: :development
|
216
|
+
prerelease: false
|
217
|
+
version_requirements: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - "~>"
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: 1.3.0
|
222
|
+
- !ruby/object:Gem::Dependency
|
223
|
+
name: rouge
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - "~>"
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: '3.0'
|
229
|
+
type: :development
|
230
|
+
prerelease: false
|
231
|
+
version_requirements: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - "~>"
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '3.0'
|
236
|
+
- !ruby/object:Gem::Dependency
|
237
|
+
name: coderay
|
238
|
+
requirement: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - "~>"
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: 1.1.0
|
243
|
+
type: :development
|
244
|
+
prerelease: false
|
245
|
+
version_requirements: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: 1.1.0
|
250
|
+
- !ruby/object:Gem::Dependency
|
251
|
+
name: chunky_png
|
252
|
+
requirement: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - "~>"
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: 1.3.0
|
257
|
+
type: :development
|
258
|
+
prerelease: false
|
259
|
+
version_requirements: !ruby/object:Gem::Requirement
|
260
|
+
requirements:
|
261
|
+
- - "~>"
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: 1.3.0
|
264
|
+
description: An extension for Asciidoctor that converts AsciiDoc documents to PDF
|
265
|
+
using the Prawn PDF library.
|
174
266
|
email: dan@opendevise.com
|
175
267
|
executables:
|
176
268
|
- asciidoctor-pdf
|
269
|
+
- asciidoctor-pdf-optimize
|
177
270
|
extensions: []
|
178
|
-
extra_rdoc_files:
|
179
|
-
- CHANGELOG.adoc
|
180
|
-
- LICENSE.adoc
|
181
|
-
- NOTICE.adoc
|
182
|
-
- README.adoc
|
271
|
+
extra_rdoc_files: []
|
183
272
|
files:
|
273
|
+
- ".yardopts"
|
184
274
|
- CHANGELOG.adoc
|
185
|
-
- Gemfile
|
186
275
|
- LICENSE.adoc
|
187
276
|
- NOTICE.adoc
|
188
277
|
- README.adoc
|
189
|
-
- Rakefile
|
190
278
|
- asciidoctor-pdf.gemspec
|
191
279
|
- bin/asciidoctor-pdf
|
192
|
-
-
|
193
|
-
- data/fonts/
|
280
|
+
- bin/asciidoctor-pdf-optimize
|
281
|
+
- data/fonts/ABOUT-mplus1mn-subset
|
282
|
+
- data/fonts/ABOUT-mplus1p-subset
|
283
|
+
- data/fonts/ABOUT-notoemoji-subset
|
284
|
+
- data/fonts/ABOUT-notoserif-subset
|
285
|
+
- data/fonts/LICENSE-mplus
|
286
|
+
- data/fonts/LICENSE-notoserif
|
194
287
|
- data/fonts/mplus1mn-bold-ascii.ttf
|
288
|
+
- data/fonts/mplus1mn-bold-subset.ttf
|
195
289
|
- data/fonts/mplus1mn-bold_italic-ascii.ttf
|
290
|
+
- data/fonts/mplus1mn-bold_italic-subset.ttf
|
196
291
|
- data/fonts/mplus1mn-italic-ascii.ttf
|
292
|
+
- data/fonts/mplus1mn-italic-subset.ttf
|
197
293
|
- data/fonts/mplus1mn-regular-ascii-conums.ttf
|
294
|
+
- data/fonts/mplus1mn-regular-subset.ttf
|
198
295
|
- data/fonts/mplus1p-regular-fallback.ttf
|
296
|
+
- data/fonts/notoemoji-subset.ttf
|
199
297
|
- data/fonts/notoserif-bold-subset.ttf
|
200
298
|
- data/fonts/notoserif-bold_italic-subset.ttf
|
201
299
|
- data/fonts/notoserif-italic-subset.ttf
|
202
300
|
- data/fonts/notoserif-regular-subset.ttf
|
203
301
|
- data/themes/base-theme.yml
|
204
302
|
- data/themes/default-theme.yml
|
303
|
+
- data/themes/default-with-fallback-font-theme.yml
|
205
304
|
- docs/theming-guide.adoc
|
206
305
|
- lib/asciidoctor-pdf.rb
|
207
|
-
- lib/asciidoctor-pdf/asciidoctor_ext.rb
|
208
|
-
- lib/asciidoctor-pdf/asciidoctor_ext/image.rb
|
209
|
-
- lib/asciidoctor-pdf/asciidoctor_ext/list.rb
|
210
|
-
- lib/asciidoctor-pdf/asciidoctor_ext/list_item.rb
|
211
|
-
- lib/asciidoctor-pdf/asciidoctor_ext/section.rb
|
212
306
|
- lib/asciidoctor-pdf/converter.rb
|
213
|
-
- lib/asciidoctor-pdf/core_ext.rb
|
214
|
-
- lib/asciidoctor-pdf/core_ext/array.rb
|
215
|
-
- lib/asciidoctor-pdf/core_ext/numeric.rb
|
216
|
-
- lib/asciidoctor-pdf/core_ext/object.rb
|
217
|
-
- lib/asciidoctor-pdf/core_ext/ostruct.rb
|
218
|
-
- lib/asciidoctor-pdf/core_ext/quantifiable_stdout.rb
|
219
|
-
- lib/asciidoctor-pdf/core_ext/string.rb
|
220
|
-
- lib/asciidoctor-pdf/formatted_text.rb
|
221
|
-
- lib/asciidoctor-pdf/formatted_text/formatter.rb
|
222
|
-
- lib/asciidoctor-pdf/formatted_text/inline_destination_marker.rb
|
223
|
-
- lib/asciidoctor-pdf/formatted_text/inline_image_arranger.rb
|
224
|
-
- lib/asciidoctor-pdf/formatted_text/inline_image_renderer.rb
|
225
|
-
- lib/asciidoctor-pdf/formatted_text/parser.rb
|
226
|
-
- lib/asciidoctor-pdf/formatted_text/parser.treetop
|
227
|
-
- lib/asciidoctor-pdf/formatted_text/transform.rb
|
228
|
-
- lib/asciidoctor-pdf/implicit_header_processor.rb
|
229
|
-
- lib/asciidoctor-pdf/index_catalog.rb
|
230
|
-
- lib/asciidoctor-pdf/measurements.rb
|
231
|
-
- lib/asciidoctor-pdf/pdf-core_ext.rb
|
232
|
-
- lib/asciidoctor-pdf/pdf-core_ext/page.rb
|
233
|
-
- lib/asciidoctor-pdf/pdf-core_ext/pdf_object.rb
|
234
|
-
- lib/asciidoctor-pdf/pdfmark.rb
|
235
|
-
- lib/asciidoctor-pdf/prawn-svg_ext.rb
|
236
|
-
- lib/asciidoctor-pdf/prawn-svg_ext/interface.rb
|
237
|
-
- lib/asciidoctor-pdf/prawn-table_ext.rb
|
238
|
-
- lib/asciidoctor-pdf/prawn-table_ext/cell/asciidoc.rb
|
239
|
-
- lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb
|
240
|
-
- lib/asciidoctor-pdf/prawn-templates_ext.rb
|
241
|
-
- lib/asciidoctor-pdf/prawn_ext.rb
|
242
|
-
- lib/asciidoctor-pdf/prawn_ext/coderay_encoder.rb
|
243
|
-
- lib/asciidoctor-pdf/prawn_ext/extensions.rb
|
244
|
-
- lib/asciidoctor-pdf/prawn_ext/font/afm.rb
|
245
|
-
- lib/asciidoctor-pdf/prawn_ext/formatted_text/fragment.rb
|
246
|
-
- lib/asciidoctor-pdf/prawn_ext/images.rb
|
247
|
-
- lib/asciidoctor-pdf/roman_numeral.rb
|
248
|
-
- lib/asciidoctor-pdf/rouge_ext.rb
|
249
|
-
- lib/asciidoctor-pdf/rouge_ext/css_theme.rb
|
250
|
-
- lib/asciidoctor-pdf/rouge_ext/formatters/prawn.rb
|
251
|
-
- lib/asciidoctor-pdf/rouge_ext/themes/pastie.rb
|
252
|
-
- lib/asciidoctor-pdf/sanitizer.rb
|
253
|
-
- lib/asciidoctor-pdf/temporary_path.rb
|
254
|
-
- lib/asciidoctor-pdf/theme_loader.rb
|
255
|
-
- lib/asciidoctor-pdf/ttfunk_ext.rb
|
256
307
|
- lib/asciidoctor-pdf/version.rb
|
257
|
-
|
308
|
+
- lib/asciidoctor/pdf.rb
|
309
|
+
- lib/asciidoctor/pdf/converter.rb
|
310
|
+
- lib/asciidoctor/pdf/ext.rb
|
311
|
+
- lib/asciidoctor/pdf/ext/asciidoctor.rb
|
312
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/abstract_block.rb
|
313
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/abstract_node.rb
|
314
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/document.rb
|
315
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/image.rb
|
316
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/list.rb
|
317
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/list_item.rb
|
318
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/logging_shim.rb
|
319
|
+
- lib/asciidoctor/pdf/ext/asciidoctor/section.rb
|
320
|
+
- lib/asciidoctor/pdf/ext/core.rb
|
321
|
+
- lib/asciidoctor/pdf/ext/core/array.rb
|
322
|
+
- lib/asciidoctor/pdf/ext/core/file.rb
|
323
|
+
- lib/asciidoctor/pdf/ext/core/hash.rb
|
324
|
+
- lib/asciidoctor/pdf/ext/core/numeric.rb
|
325
|
+
- lib/asciidoctor/pdf/ext/core/object.rb
|
326
|
+
- lib/asciidoctor/pdf/ext/core/quantifiable_stdout.rb
|
327
|
+
- lib/asciidoctor/pdf/ext/core/regexp.rb
|
328
|
+
- lib/asciidoctor/pdf/ext/core/string.rb
|
329
|
+
- lib/asciidoctor/pdf/ext/pdf-core.rb
|
330
|
+
- lib/asciidoctor/pdf/ext/pdf-core/page.rb
|
331
|
+
- lib/asciidoctor/pdf/ext/pdf-core/pdf_object.rb
|
332
|
+
- lib/asciidoctor/pdf/ext/prawn-svg.rb
|
333
|
+
- lib/asciidoctor/pdf/ext/prawn-svg/interface.rb
|
334
|
+
- lib/asciidoctor/pdf/ext/prawn-table.rb
|
335
|
+
- lib/asciidoctor/pdf/ext/prawn-table/cell.rb
|
336
|
+
- lib/asciidoctor/pdf/ext/prawn-table/cell/asciidoc.rb
|
337
|
+
- lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
|
338
|
+
- lib/asciidoctor/pdf/ext/prawn-templates.rb
|
339
|
+
- lib/asciidoctor/pdf/ext/prawn.rb
|
340
|
+
- lib/asciidoctor/pdf/ext/prawn/coderay_encoder.rb
|
341
|
+
- lib/asciidoctor/pdf/ext/prawn/extensions.rb
|
342
|
+
- lib/asciidoctor/pdf/ext/prawn/font/afm.rb
|
343
|
+
- lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb
|
344
|
+
- lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb
|
345
|
+
- lib/asciidoctor/pdf/ext/prawn/formatted_text/fragment.rb
|
346
|
+
- lib/asciidoctor/pdf/ext/prawn/images.rb
|
347
|
+
- lib/asciidoctor/pdf/ext/pygments.rb
|
348
|
+
- lib/asciidoctor/pdf/ext/rouge.rb
|
349
|
+
- lib/asciidoctor/pdf/ext/rouge/formatters/prawn.rb
|
350
|
+
- lib/asciidoctor/pdf/ext/rouge/themes/asciidoctor_pdf_default.rb
|
351
|
+
- lib/asciidoctor/pdf/formatted_text.rb
|
352
|
+
- lib/asciidoctor/pdf/formatted_text/formatter.rb
|
353
|
+
- lib/asciidoctor/pdf/formatted_text/fragment_position_renderer.rb
|
354
|
+
- lib/asciidoctor/pdf/formatted_text/inline_destination_marker.rb
|
355
|
+
- lib/asciidoctor/pdf/formatted_text/inline_image_arranger.rb
|
356
|
+
- lib/asciidoctor/pdf/formatted_text/inline_image_renderer.rb
|
357
|
+
- lib/asciidoctor/pdf/formatted_text/inline_text_aligner.rb
|
358
|
+
- lib/asciidoctor/pdf/formatted_text/parser.rb
|
359
|
+
- lib/asciidoctor/pdf/formatted_text/parser.treetop
|
360
|
+
- lib/asciidoctor/pdf/formatted_text/source_wrap.rb
|
361
|
+
- lib/asciidoctor/pdf/formatted_text/text_background_and_border_renderer.rb
|
362
|
+
- lib/asciidoctor/pdf/formatted_text/transform.rb
|
363
|
+
- lib/asciidoctor/pdf/index_catalog.rb
|
364
|
+
- lib/asciidoctor/pdf/measurements.rb
|
365
|
+
- lib/asciidoctor/pdf/optimizer.rb
|
366
|
+
- lib/asciidoctor/pdf/pdfmark.rb
|
367
|
+
- lib/asciidoctor/pdf/roman_numeral.rb
|
368
|
+
- lib/asciidoctor/pdf/sanitizer.rb
|
369
|
+
- lib/asciidoctor/pdf/text_transformer.rb
|
370
|
+
- lib/asciidoctor/pdf/theme_loader.rb
|
371
|
+
- lib/asciidoctor/pdf/version.rb
|
372
|
+
homepage: https://asciidoctor.org/docs/asciidoctor-pdf
|
258
373
|
licenses:
|
259
374
|
- MIT
|
260
|
-
metadata:
|
375
|
+
metadata:
|
376
|
+
bug_tracker_uri: https://github.com/asciidoctor/asciidoctor-pdf/issues
|
377
|
+
changelog_uri: https://github.com/asciidoctor/asciidoctor-pdf/blob/master/CHANGELOG.adoc
|
378
|
+
mailing_list_uri: http://discuss.asciidoctor.org
|
379
|
+
source_code_uri: https://github.com/asciidoctor/asciidoctor-pdf
|
261
380
|
post_install_message:
|
262
|
-
rdoc_options:
|
263
|
-
- "--charset=UTF-8"
|
264
|
-
- --title="Asciidoctor PDF"
|
265
|
-
- "--main=README.adoc"
|
266
|
-
- "-ri"
|
381
|
+
rdoc_options: []
|
267
382
|
require_paths:
|
268
383
|
- lib
|
269
384
|
required_ruby_version: !ruby/object:Gem::Requirement
|
270
385
|
requirements:
|
271
386
|
- - ">="
|
272
387
|
- !ruby/object:Gem::Version
|
273
|
-
version:
|
388
|
+
version: '0'
|
274
389
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
390
|
requirements:
|
276
|
-
- - "
|
391
|
+
- - ">="
|
277
392
|
- !ruby/object:Gem::Version
|
278
|
-
version:
|
393
|
+
version: '0'
|
279
394
|
requirements: []
|
280
|
-
|
281
|
-
rubygems_version: 2.6.11
|
395
|
+
rubygems_version: 3.0.6
|
282
396
|
signing_key:
|
283
397
|
specification_version: 4
|
284
|
-
summary: Converts AsciiDoc documents to PDF using Prawn
|
398
|
+
summary: Converts AsciiDoc documents to PDF using Asciidoctor and Prawn
|
285
399
|
test_files: []
|
data/Gemfile
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Look in asciidoctor-pdf.gemspec for runtime and development dependencies
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
if (ruby_version = Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.1.0')
|
7
|
-
if ruby_version < (Gem::Version.new '2.0.0')
|
8
|
-
gem 'addressable', '2.4.0'
|
9
|
-
gem 'prawn', '1.3.0'
|
10
|
-
gem 'prawn-svg', '0.21.0'
|
11
|
-
else
|
12
|
-
gem 'prawn', '2.1.0'
|
13
|
-
gem 'prawn-svg', '0.26.0'
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
group :examples do
|
18
|
-
gem 'rouge', '2.0.7'
|
19
|
-
# Add unicode (preferred) or activesupport to transform case of text containing multibyte chars on Ruby < 2.4
|
20
|
-
#gem 'activesupport', '4.2.7.1' if (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.4.0')
|
21
|
-
#gem 'unicode' if (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.4.0')
|
22
|
-
end
|
data/Rakefile
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
require_relative 'lib/asciidoctor-pdf/version'
|
3
|
-
|
4
|
-
require 'rake/clean'
|
5
|
-
|
6
|
-
default_tasks = []
|
7
|
-
|
8
|
-
begin
|
9
|
-
require 'bundler/gem_tasks'
|
10
|
-
default_tasks << :build
|
11
|
-
|
12
|
-
# Enhance the release task to create an explicit commit for the release
|
13
|
-
#Rake::Task[:release].enhance [:commit_release]
|
14
|
-
|
15
|
-
# NOTE you don't need to push after updating version and committing locally
|
16
|
-
# WARNING no longer works; it's now necessary to get master in a state ready for tagging
|
17
|
-
task :commit_release do
|
18
|
-
Bundler::GemHelper.new.send :guard_clean
|
19
|
-
sh %(git commit --allow-empty -a -m 'Release #{Asciidoctor::Pdf::VERSION}')
|
20
|
-
end
|
21
|
-
rescue LoadError
|
22
|
-
end
|
23
|
-
|
24
|
-
begin
|
25
|
-
require 'rdoc/task'
|
26
|
-
Rake::RDocTask.new do |t|
|
27
|
-
t.rdoc_dir = 'rdoc'
|
28
|
-
t.title = %(Asciidoctor PDF #{Asciidoctor::Pdf::VERSION})
|
29
|
-
t.main = %(README.adoc)
|
30
|
-
t.rdoc_files.include 'README.adoc', 'LICENSE.adoc', 'NOTICE.adoc', 'lib/**/*.rb', 'bin/**/*'
|
31
|
-
end
|
32
|
-
rescue LoadError
|
33
|
-
end
|
34
|
-
|
35
|
-
=begin NOT CURRENTLY IN USE
|
36
|
-
begin
|
37
|
-
require 'rake/testtask'
|
38
|
-
Rake::TestTask.new do |t|
|
39
|
-
t.libs << 'test'
|
40
|
-
t.pattern = 'test/**/*_test.rb'
|
41
|
-
t.verbose = true
|
42
|
-
t.warning = true
|
43
|
-
if RUBY_VERSION >= '2'
|
44
|
-
t.options = '--tty=no'
|
45
|
-
end
|
46
|
-
end
|
47
|
-
default_tasks << :test
|
48
|
-
rescue LoadError
|
49
|
-
end
|
50
|
-
|
51
|
-
begin
|
52
|
-
require 'cucumber'
|
53
|
-
require 'cucumber/rake/task'
|
54
|
-
CUKE_RESULTS_FILE = 'feature-results.html'
|
55
|
-
ARUBA_TMP_DIR = 'tmp'
|
56
|
-
CLEAN << CUKE_RESULTS_FILE if File.file? CUKE_RESULTS_FILE
|
57
|
-
CLEAN << ARUBA_TMP_DIR if File.directory? ARUBA_TMP_DIR
|
58
|
-
desc 'Run features'
|
59
|
-
Cucumber::Rake::Task.new :features do |t|
|
60
|
-
opts = %(features --format html -o #{CUKE_RESULTS_FILE} --format progress -x --tags ~@pending)
|
61
|
-
opts = %(#{opts} --tags #{ENV['TAGS']}) if ENV['TAGS']
|
62
|
-
t.cucumber_opts = opts
|
63
|
-
t.fork = false
|
64
|
-
end
|
65
|
-
|
66
|
-
desc 'Run features tagged as work-in-progress (@wip)'
|
67
|
-
Cucumber::Rake::Task.new 'features:wip' do |t|
|
68
|
-
#t.cucumber_opts = %(features --format html -o #{CUKE_RESULTS_FILE} --format pretty -x -s --tags @wip)
|
69
|
-
t.cucumber_opts = %(features --format html -o #{CUKE_RESULTS_FILE} --format progress -x --tags @wip)
|
70
|
-
t.fork = false
|
71
|
-
end
|
72
|
-
|
73
|
-
default_tasks << :features
|
74
|
-
task :cucumber => :features
|
75
|
-
task 'cucumber:wip' => 'features:wip'
|
76
|
-
task :wip => 'features:wip'
|
77
|
-
rescue LoadError
|
78
|
-
end
|
79
|
-
=end
|
80
|
-
|
81
|
-
task :default => default_tasks unless default_tasks.empty?
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Asciidoctor
|
2
|
-
module Image
|
3
|
-
DataUriRx = /^data:image\/(?<fmt>png|jpe?g|gif|pdf|bmp|tiff);base64,(?<data>.*)$/
|
4
|
-
|
5
|
-
class << self
|
6
|
-
def format path, node = nil
|
7
|
-
(node && (node.attr 'format', nil, false)) || (::File.extname path).downcase[1..-1]
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def format
|
12
|
-
(attr 'format', nil, false) || ::File.extname(inline? ? target : (attr 'target')).downcase[1..-1]
|
13
|
-
end
|
14
|
-
|
15
|
-
def target_and_format
|
16
|
-
image_path = inline? ? target : (attr 'target')
|
17
|
-
if (image_path.start_with? 'data:') && (m = DataUriRx.match image_path)
|
18
|
-
[(m[:data].extend ::Base64), m[:fmt]]
|
19
|
-
else
|
20
|
-
[image_path, (attr 'format', nil, false) || (::File.extname image_path).downcase[1..-1]]
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|