asciidoctor-rsd 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -1
- data/Gemfile +0 -4
- data/README.adoc +1 -0
- data/asciidoctor-rsd.gemspec +3 -11
- data/lib/asciidoctor-rsd.rb +3 -2
- data/lib/asciidoctor/rsd.rb +3 -1
- data/lib/asciidoctor/rsd/converter.rb +14 -4
- data/lib/asciidoctor/rsd/isodoc.rng +8 -2
- data/lib/asciidoctor/rsd/rsd.rng +101 -23
- data/lib/asciidoctor/rsd/version.rb +1 -1
- data/lib/isodoc/rsd/html/html_rsd_titlepage.html +10 -5
- data/lib/isodoc/rsd/html/htmlstyle.scss +226 -80
- data/lib/isodoc/rsd/html/rsd.scss +41 -18
- data/lib/isodoc/rsd/html/word_rsd_titlepage.html +13 -1
- data/lib/isodoc/rsd/html/wordstyle.scss +172 -20
- data/lib/isodoc/rsd/html_convert.rb +198 -0
- data/lib/isodoc/rsd/metadata.rb +7 -4
- data/lib/isodoc/rsd/{rsdhtmlconvert.rb → pdf_convert.rb} +69 -4
- data/lib/isodoc/rsd/{rsdwordconvert.rb → word_convert.rb} +71 -5
- data/lib/metanorma/rsd/processor.rb +3 -0
- metadata +16 -119
- data/Gemfile.lock +0 -273
- data/lib/asciidoctor/rsd/m3d.rng +0 -154
- data/lib/isodoc/rsd/html/dots-w@2x.png +0 -0
- data/lib/isodoc/rsd/html/dots@2x.png +0 -0
- data/lib/isodoc/rsd/rsdhtmlrender.rb +0 -68
- data/lib/isodoc/rsd/rsdwordrender.rb +0 -68
@@ -0,0 +1,198 @@
|
|
1
|
+
require "isodoc"
|
2
|
+
require_relative "metadata"
|
3
|
+
|
4
|
+
module IsoDoc
|
5
|
+
module Rsd
|
6
|
+
|
7
|
+
# A {Converter} implementation that generates HTML output, and a document
|
8
|
+
# schema encapsulation of the document for validation
|
9
|
+
#
|
10
|
+
class HtmlConvert < IsoDoc::HtmlConvert
|
11
|
+
def html_doc_path(file)
|
12
|
+
File.join(File.dirname(__FILE__), File.join("html", file))
|
13
|
+
end
|
14
|
+
|
15
|
+
def initialize(options)
|
16
|
+
super
|
17
|
+
@htmlstylesheet = generate_css(html_doc_path("htmlstyle.scss"), true, default_fonts(options))
|
18
|
+
@htmlcoverpage = html_doc_path("html_rsd_titlepage.html")
|
19
|
+
@htmlintropage = html_doc_path("html_rsd_intro.html")
|
20
|
+
@scripts = html_doc_path("scripts.html")
|
21
|
+
system "cp #{html_doc_path('logo.jpg')} logo.jpg"
|
22
|
+
@files_to_delete << "logo.jpg"
|
23
|
+
end
|
24
|
+
|
25
|
+
def default_fonts(options)
|
26
|
+
b = options[:bodyfont] ||
|
27
|
+
(options[:script] == "Hans" ? '"SimSun",serif' :
|
28
|
+
'"Overpass",sans-serif')
|
29
|
+
h = options[:headerfont] ||
|
30
|
+
(options[:script] == "Hans" ? '"SimHei",sans-serif' :
|
31
|
+
'"Overpass",sans-serif')
|
32
|
+
m = options[:monospacefont] || '"Space Mono",monospace'
|
33
|
+
"$bodyfont: #{b};\n$headerfont: #{h};\n$monospacefont: #{m};\n"
|
34
|
+
end
|
35
|
+
|
36
|
+
def metadata_init(lang, script, labels)
|
37
|
+
@meta = Metadata.new(lang, script, labels)
|
38
|
+
end
|
39
|
+
|
40
|
+
def html_head
|
41
|
+
<<~HEAD.freeze
|
42
|
+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
43
|
+
|
44
|
+
<!--TOC script import-->
|
45
|
+
<script type="text/javascript" src="https://cdn.rawgit.com/jgallen23/toc/0.3.2/dist/toc.min.js"></script>
|
46
|
+
|
47
|
+
<!--Google fonts-->
|
48
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet">
|
49
|
+
<link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet">
|
50
|
+
<!--Font awesome import for the link icon-->
|
51
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/solid.css" integrity="sha384-v2Tw72dyUXeU3y4aM2Y0tBJQkGfplr39mxZqlTBDUZAb9BGoC40+rdFCG0m10lXk" crossorigin="anonymous">
|
52
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/fontawesome.css" integrity="sha384-q3jl8XQu1OpdLgGFvNRnPdj5VIlCvgsDQTQB6owSOHWlAurxul7f+JpUOVdAiJ5P" crossorigin="anonymous">
|
53
|
+
<style class="anchorjs"></style>
|
54
|
+
HEAD
|
55
|
+
end
|
56
|
+
|
57
|
+
def make_body(xml, docxml)
|
58
|
+
body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" }
|
59
|
+
xml.body **body_attr do |body|
|
60
|
+
make_body1(body, docxml)
|
61
|
+
make_body2(body, docxml)
|
62
|
+
make_body3(body, docxml)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
def html_toc(docxml)
|
67
|
+
docxml
|
68
|
+
end
|
69
|
+
|
70
|
+
def annex_name(annex, name, div)
|
71
|
+
div.h1 **{ class: "Annex" } do |t|
|
72
|
+
t << "#{get_anchors[annex['id']][:label]} "
|
73
|
+
t << "<b>#{name.text}</b>"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def annex_name_lbl(clause, num)
|
78
|
+
obl = l10n("(#{@inform_annex_lbl})")
|
79
|
+
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
80
|
+
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
81
|
+
end
|
82
|
+
|
83
|
+
def pre_parse(node, out)
|
84
|
+
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
85
|
+
end
|
86
|
+
|
87
|
+
def term_defs_boilerplate(div, source, term, preface)
|
88
|
+
if source.empty? && term.nil?
|
89
|
+
div << @no_terms_boilerplate
|
90
|
+
else
|
91
|
+
div << term_defs_boilerplate_cont(source, term)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def i18n_init(lang, script)
|
96
|
+
super
|
97
|
+
@annex_lbl = "Appendix"
|
98
|
+
end
|
99
|
+
|
100
|
+
def error_parse(node, out)
|
101
|
+
# catch elements not defined in ISO
|
102
|
+
case node.name
|
103
|
+
when "pre"
|
104
|
+
pre_parse(node, out)
|
105
|
+
when "keyword"
|
106
|
+
out.span node.text, **{ class: "keyword" }
|
107
|
+
else
|
108
|
+
super
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
def fileloc(loc)
|
113
|
+
File.join(File.dirname(__FILE__), loc)
|
114
|
+
end
|
115
|
+
|
116
|
+
def cleanup(docxml)
|
117
|
+
super
|
118
|
+
term_cleanup(docxml)
|
119
|
+
end
|
120
|
+
|
121
|
+
def term_cleanup(docxml)
|
122
|
+
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
123
|
+
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
124
|
+
h2.add_child(" ")
|
125
|
+
h2.add_child(d.remove)
|
126
|
+
end
|
127
|
+
docxml
|
128
|
+
end
|
129
|
+
|
130
|
+
def info(isoxml, out)
|
131
|
+
@meta.security isoxml, out
|
132
|
+
super
|
133
|
+
end
|
134
|
+
|
135
|
+
def annex_name(annex, name, div)
|
136
|
+
div.h1 **{ class: "Annex" } do |t|
|
137
|
+
t << "#{get_anchors[annex['id']][:label]} "
|
138
|
+
t << "<b>#{name.text}</b>"
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
def annex_name_lbl(clause, num)
|
143
|
+
obl = l10n("(#{@inform_annex_lbl})")
|
144
|
+
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
145
|
+
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
146
|
+
end
|
147
|
+
|
148
|
+
def pre_parse(node, out)
|
149
|
+
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
150
|
+
end
|
151
|
+
|
152
|
+
def term_defs_boilerplate(div, source, term, preface)
|
153
|
+
if source.empty? && term.nil?
|
154
|
+
div << @no_terms_boilerplate
|
155
|
+
else
|
156
|
+
div << term_defs_boilerplate_cont(source, term)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
def i18n_init(lang, script)
|
161
|
+
super
|
162
|
+
@annex_lbl = "Appendix"
|
163
|
+
end
|
164
|
+
|
165
|
+
def error_parse(node, out)
|
166
|
+
# catch elements not defined in ISO
|
167
|
+
case node.name
|
168
|
+
when "pre"
|
169
|
+
pre_parse(node, out)
|
170
|
+
when "keyword"
|
171
|
+
out.span node.text, **{ class: "keyword" }
|
172
|
+
else
|
173
|
+
super
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
def fileloc(loc)
|
178
|
+
File.join(File.dirname(__FILE__), loc)
|
179
|
+
end
|
180
|
+
|
181
|
+
def cleanup(docxml)
|
182
|
+
super
|
183
|
+
term_cleanup(docxml)
|
184
|
+
end
|
185
|
+
|
186
|
+
def term_cleanup(docxml)
|
187
|
+
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
188
|
+
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
189
|
+
h2.add_child(" ")
|
190
|
+
h2.add_child(d.remove)
|
191
|
+
end
|
192
|
+
docxml
|
193
|
+
end
|
194
|
+
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
data/lib/isodoc/rsd/metadata.rb
CHANGED
@@ -2,8 +2,7 @@ require "isodoc"
|
|
2
2
|
|
3
3
|
module IsoDoc
|
4
4
|
module Rsd
|
5
|
-
|
6
|
-
# schema encapsulation of the document for validation
|
5
|
+
|
7
6
|
class Metadata < IsoDoc::Metadata
|
8
7
|
def initialize(lang, script, labels)
|
9
8
|
super
|
@@ -20,8 +19,7 @@ module IsoDoc
|
|
20
19
|
end
|
21
20
|
|
22
21
|
def author(isoxml, _out)
|
23
|
-
|
24
|
-
tc = isoxml.at(ns("//editorialgroup/technical-committee"))
|
22
|
+
tc = isoxml.at(ns("//editorialgroup/committee"))
|
25
23
|
set(:tc, tc.text) if tc
|
26
24
|
end
|
27
25
|
|
@@ -77,6 +75,11 @@ module IsoDoc
|
|
77
75
|
return isodate unless m && m[:yr] && m[:mo]
|
78
76
|
return "#{MONTHS[m[:mo].to_sym]} #{m[:yr]}"
|
79
77
|
end
|
78
|
+
|
79
|
+
def security(isoxml, _out)
|
80
|
+
security = isoxml.at(ns("//bibdata/security")) || return
|
81
|
+
set(:security, security.text)
|
82
|
+
end
|
80
83
|
end
|
81
84
|
end
|
82
85
|
end
|
@@ -1,12 +1,11 @@
|
|
1
1
|
require "isodoc"
|
2
2
|
require_relative "metadata"
|
3
|
-
require_relative "rsdhtmlrender"
|
4
3
|
|
5
4
|
module IsoDoc
|
6
5
|
module Rsd
|
7
|
-
# A {Converter} implementation that generates
|
8
|
-
# schema encapsulation of the document for validation
|
9
|
-
class
|
6
|
+
# A {Converter} implementation that generates PDF HTML output, and a
|
7
|
+
# document schema encapsulation of the document for validation
|
8
|
+
class PdfConvert < IsoDoc::PdfConvert
|
10
9
|
def html_doc_path(file)
|
11
10
|
File.join(File.dirname(__FILE__), File.join("html", file))
|
12
11
|
end
|
@@ -125,6 +124,72 @@ module IsoDoc
|
|
125
124
|
end
|
126
125
|
docxml
|
127
126
|
end
|
127
|
+
|
128
|
+
def info(isoxml, out)
|
129
|
+
@meta.security isoxml, out
|
130
|
+
super
|
131
|
+
end
|
132
|
+
|
133
|
+
def annex_name(annex, name, div)
|
134
|
+
div.h1 **{ class: "Annex" } do |t|
|
135
|
+
t << "#{get_anchors[annex['id']][:label]} "
|
136
|
+
t << "<b>#{name.text}</b>"
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
def annex_name_lbl(clause, num)
|
141
|
+
obl = l10n("(#{@inform_annex_lbl})")
|
142
|
+
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
143
|
+
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
144
|
+
end
|
145
|
+
|
146
|
+
def pre_parse(node, out)
|
147
|
+
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
148
|
+
end
|
149
|
+
|
150
|
+
def term_defs_boilerplate(div, source, term, preface)
|
151
|
+
if source.empty? && term.nil?
|
152
|
+
div << @no_terms_boilerplate
|
153
|
+
else
|
154
|
+
div << term_defs_boilerplate_cont(source, term)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
def i18n_init(lang, script)
|
159
|
+
super
|
160
|
+
@annex_lbl = "Appendix"
|
161
|
+
end
|
162
|
+
|
163
|
+
def error_parse(node, out)
|
164
|
+
# catch elements not defined in ISO
|
165
|
+
case node.name
|
166
|
+
when "pre"
|
167
|
+
pre_parse(node, out)
|
168
|
+
when "keyword"
|
169
|
+
out.span node.text, **{ class: "keyword" }
|
170
|
+
else
|
171
|
+
super
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
def fileloc(loc)
|
176
|
+
File.join(File.dirname(__FILE__), loc)
|
177
|
+
end
|
178
|
+
|
179
|
+
def cleanup(docxml)
|
180
|
+
super
|
181
|
+
term_cleanup(docxml)
|
182
|
+
end
|
183
|
+
|
184
|
+
def term_cleanup(docxml)
|
185
|
+
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
186
|
+
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
187
|
+
h2.add_child(" ")
|
188
|
+
h2.add_child(d.remove)
|
189
|
+
end
|
190
|
+
docxml
|
191
|
+
end
|
192
|
+
|
128
193
|
end
|
129
194
|
end
|
130
195
|
end
|
@@ -1,10 +1,9 @@
|
|
1
1
|
require "isodoc"
|
2
|
-
require_relative "rsdwordrender"
|
3
2
|
require_relative "metadata"
|
4
3
|
|
5
4
|
module IsoDoc
|
6
5
|
module Rsd
|
7
|
-
# A {Converter} implementation that generates
|
6
|
+
# A {Converter} implementation that generates Word output, and a document
|
8
7
|
# schema encapsulation of the document for validation
|
9
8
|
|
10
9
|
class WordConvert < IsoDoc::WordConvert
|
@@ -27,10 +26,10 @@ module IsoDoc
|
|
27
26
|
def default_fonts(options)
|
28
27
|
b = options[:bodyfont] ||
|
29
28
|
(options[:script] == "Hans" ? '"SimSun",serif' :
|
30
|
-
'"
|
29
|
+
'"Arial",sans-serif')
|
31
30
|
h = options[:headerfont] ||
|
32
31
|
(options[:script] == "Hans" ? '"SimHei",sans-serif' :
|
33
|
-
'"
|
32
|
+
'"Arial",sans-serif')
|
34
33
|
m = options[:monospacefont] || '"Courier New",monospace'
|
35
34
|
"$bodyfont: #{b};\n$headerfont: #{h};\n$monospacefont: #{m};\n"
|
36
35
|
end
|
@@ -53,7 +52,8 @@ module IsoDoc
|
|
53
52
|
info docxml, div2
|
54
53
|
div2.p { |p| p << " " } # placeholder
|
55
54
|
end
|
56
|
-
body.br **{ clear: "all", style: "page-break-before:auto;mso-break-type:section-break;" }
|
55
|
+
#body.br **{ clear: "all", style: "page-break-before:auto;mso-break-type:section-break;" }
|
56
|
+
section_break(body)
|
57
57
|
end
|
58
58
|
|
59
59
|
def title(isoxml, _out)
|
@@ -84,6 +84,72 @@ module IsoDoc
|
|
84
84
|
end
|
85
85
|
from_xhtml(h1)
|
86
86
|
end
|
87
|
+
|
88
|
+
def info(isoxml, out)
|
89
|
+
@meta.security isoxml, out
|
90
|
+
super
|
91
|
+
end
|
92
|
+
|
93
|
+
def annex_name(annex, name, div)
|
94
|
+
div.h1 **{ class: "Annex" } do |t|
|
95
|
+
t << "#{get_anchors[annex['id']][:label]} "
|
96
|
+
t << "<b>#{name.text}</b>"
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
def annex_name_lbl(clause, num)
|
101
|
+
obl = l10n("(#{@inform_annex_lbl})")
|
102
|
+
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
103
|
+
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
104
|
+
end
|
105
|
+
|
106
|
+
def pre_parse(node, out)
|
107
|
+
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
108
|
+
end
|
109
|
+
|
110
|
+
def term_defs_boilerplate(div, source, term, preface)
|
111
|
+
if source.empty? && term.nil?
|
112
|
+
div << @no_terms_boilerplate
|
113
|
+
else
|
114
|
+
div << term_defs_boilerplate_cont(source, term)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
def i18n_init(lang, script)
|
119
|
+
super
|
120
|
+
@annex_lbl = "Appendix"
|
121
|
+
end
|
122
|
+
|
123
|
+
def error_parse(node, out)
|
124
|
+
# catch elements not defined in ISO
|
125
|
+
case node.name
|
126
|
+
when "pre"
|
127
|
+
pre_parse(node, out)
|
128
|
+
when "keyword"
|
129
|
+
out.span node.text, **{ class: "keyword" }
|
130
|
+
else
|
131
|
+
super
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
def fileloc(loc)
|
136
|
+
File.join(File.dirname(__FILE__), loc)
|
137
|
+
end
|
138
|
+
|
139
|
+
def cleanup(docxml)
|
140
|
+
super
|
141
|
+
term_cleanup(docxml)
|
142
|
+
end
|
143
|
+
|
144
|
+
def term_cleanup(docxml)
|
145
|
+
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
146
|
+
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
147
|
+
h2.add_child(" ")
|
148
|
+
h2.add_child(d.remove)
|
149
|
+
end
|
150
|
+
docxml
|
151
|
+
end
|
152
|
+
|
87
153
|
end
|
88
154
|
end
|
89
155
|
end
|
@@ -33,12 +33,15 @@ module Metanorma
|
|
33
33
|
when :doc
|
34
34
|
IsoDoc::Rsd::WordConvert.new(options).convert(outname, isodoc_node)
|
35
35
|
when :pdf
|
36
|
+
IsoDoc::Rsd::PdfConvert.new(options).convert(outname, isodoc_node)
|
37
|
+
=begin
|
36
38
|
require 'tempfile'
|
37
39
|
outname_html = outname + ".html"
|
38
40
|
IsoDoc::Rsd::HtmlConvert.new(options).convert(outname_html, isodoc_node)
|
39
41
|
puts outname_html
|
40
42
|
system "cat #{outname_html}"
|
41
43
|
Metanorma::Output::Pdf.new.convert(outname_html, outname)
|
44
|
+
=end
|
42
45
|
else
|
43
46
|
super
|
44
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-rsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.5.7
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: asciimath
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: htmlentities
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,34 +38,6 @@ dependencies:
|
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: 4.3.4
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: image_size
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: mime-types
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
41
|
- !ruby/object:Gem::Dependency
|
84
42
|
name: nokogiri
|
85
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,90 +52,34 @@ dependencies:
|
|
94
52
|
- - ">="
|
95
53
|
- !ruby/object:Gem::Version
|
96
54
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: ruby-jing
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: ruby-xslt
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: thread_safe
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: uuidtools
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
55
|
- !ruby/object:Gem::Dependency
|
154
56
|
name: asciidoctor-iso
|
155
57
|
requirement: !ruby/object:Gem::Requirement
|
156
58
|
requirements:
|
157
|
-
- - "
|
59
|
+
- - "~>"
|
158
60
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
61
|
+
version: 0.9.6
|
160
62
|
type: :runtime
|
161
63
|
prerelease: false
|
162
64
|
version_requirements: !ruby/object:Gem::Requirement
|
163
65
|
requirements:
|
164
|
-
- - "
|
66
|
+
- - "~>"
|
165
67
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
68
|
+
version: 0.9.6
|
167
69
|
- !ruby/object:Gem::Dependency
|
168
70
|
name: isodoc
|
169
71
|
requirement: !ruby/object:Gem::Requirement
|
170
72
|
requirements:
|
171
73
|
- - ">="
|
172
74
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
75
|
+
version: 0.8.4
|
174
76
|
type: :runtime
|
175
77
|
prerelease: false
|
176
78
|
version_requirements: !ruby/object:Gem::Requirement
|
177
79
|
requirements:
|
178
80
|
- - ">="
|
179
81
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
82
|
+
version: 0.8.4
|
181
83
|
- !ruby/object:Gem::Dependency
|
182
84
|
name: bundler
|
183
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -322,16 +224,16 @@ dependencies:
|
|
322
224
|
name: metanorma
|
323
225
|
requirement: !ruby/object:Gem::Requirement
|
324
226
|
requirements:
|
325
|
-
- - "
|
227
|
+
- - "~>"
|
326
228
|
- !ruby/object:Gem::Version
|
327
|
-
version:
|
229
|
+
version: 0.2.6
|
328
230
|
type: :development
|
329
231
|
prerelease: false
|
330
232
|
version_requirements: !ruby/object:Gem::Requirement
|
331
233
|
requirements:
|
332
|
-
- - "
|
234
|
+
- - "~>"
|
333
235
|
- !ruby/object:Gem::Version
|
334
|
-
version:
|
236
|
+
version: 0.2.6
|
335
237
|
description: |
|
336
238
|
asciidoctor-rsd lets you write RSD in AsciiDoc syntax.
|
337
239
|
|
@@ -346,7 +248,6 @@ files:
|
|
346
248
|
- ".travis.yml"
|
347
249
|
- CODE_OF_CONDUCT.md
|
348
250
|
- Gemfile
|
349
|
-
- Gemfile.lock
|
350
251
|
- LICENSE
|
351
252
|
- README.adoc
|
352
253
|
- Rakefile
|
@@ -360,12 +261,9 @@ files:
|
|
360
261
|
- lib/asciidoctor/rsd/converter.rb
|
361
262
|
- lib/asciidoctor/rsd/isodoc.rng
|
362
263
|
- lib/asciidoctor/rsd/isostandard.rng
|
363
|
-
- lib/asciidoctor/rsd/m3d.rng
|
364
264
|
- lib/asciidoctor/rsd/pdf.js
|
365
265
|
- lib/asciidoctor/rsd/rsd.rng
|
366
266
|
- lib/asciidoctor/rsd/version.rb
|
367
|
-
- lib/isodoc/rsd/html/dots-w@2x.png
|
368
|
-
- lib/isodoc/rsd/html/dots@2x.png
|
369
267
|
- lib/isodoc/rsd/html/header.html
|
370
268
|
- lib/isodoc/rsd/html/html_rsd_intro.html
|
371
269
|
- lib/isodoc/rsd/html/html_rsd_titlepage.html
|
@@ -376,11 +274,10 @@ files:
|
|
376
274
|
- lib/isodoc/rsd/html/word_rsd_intro.html
|
377
275
|
- lib/isodoc/rsd/html/word_rsd_titlepage.html
|
378
276
|
- lib/isodoc/rsd/html/wordstyle.scss
|
277
|
+
- lib/isodoc/rsd/html_convert.rb
|
379
278
|
- lib/isodoc/rsd/metadata.rb
|
380
|
-
- lib/isodoc/rsd/
|
381
|
-
- lib/isodoc/rsd/
|
382
|
-
- lib/isodoc/rsd/rsdwordconvert.rb
|
383
|
-
- lib/isodoc/rsd/rsdwordrender.rb
|
279
|
+
- lib/isodoc/rsd/pdf_convert.rb
|
280
|
+
- lib/isodoc/rsd/word_convert.rb
|
384
281
|
- lib/metanorma/rsd.rb
|
385
282
|
- lib/metanorma/rsd/processor.rb
|
386
283
|
homepage: https://github.com/riboseinc/asciidoctor-rsd
|
@@ -403,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
403
300
|
version: '0'
|
404
301
|
requirements: []
|
405
302
|
rubyforge_project:
|
406
|
-
rubygems_version: 2.7.
|
303
|
+
rubygems_version: 2.7.7
|
407
304
|
signing_key:
|
408
305
|
specification_version: 4
|
409
306
|
summary: asciidoctor-rsd lets you write RSD in AsciiDoc.
|