isodoc 2.1.0.2 → 2.1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/isodoc.gemspec +6 -3
- data/lib/isodoc/base_style/all.css +227 -0
- data/lib/isodoc/base_style/blocks.css +0 -0
- data/lib/isodoc/base_style/blocks.scss +7 -0
- data/lib/isodoc/base_style/coverpage.css +0 -0
- data/lib/isodoc/base_style/defaults.css +0 -0
- data/lib/isodoc/base_style/metanorma_word.css +47 -0
- data/lib/isodoc/base_style/nav.css +0 -0
- data/lib/isodoc/base_style/reset.css +125 -0
- data/lib/isodoc/base_style/typography.css +0 -0
- data/lib/isodoc/class_utils.rb +1 -1
- data/lib/isodoc/function/blocks.rb +1 -1
- data/lib/isodoc/function/cleanup.rb +1 -1
- data/lib/isodoc/function/inline.rb +4 -2
- data/lib/isodoc/function/lists.rb +24 -9
- data/lib/isodoc/function/table.rb +1 -1
- data/lib/isodoc/function/to_word_html.rb +3 -2
- data/lib/isodoc/function/utils.rb +18 -8
- data/lib/isodoc/gem_tasks.rb +19 -10
- data/lib/isodoc/html_function/html.rb +2 -2
- data/lib/isodoc/i18n.rb +19 -0
- data/lib/isodoc/metadata.rb +2 -2
- data/lib/isodoc/presentation_function/block.rb +3 -3
- data/lib/isodoc/presentation_function/image.rb +1 -1
- data/lib/isodoc/presentation_function/inline.rb +13 -6
- data/lib/isodoc/presentation_function/section.rb +3 -1
- data/lib/isodoc/presentation_function/xrefs.rb +22 -6
- data/lib/isodoc/presentation_xml_convert.rb +1 -0
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/body.rb +9 -6
- data/lib/isodoc/word_function/postprocess.rb +1 -1
- data/lib/isodoc/word_function/postprocess_cover.rb +5 -5
- data/lib/isodoc/xref/xref_gen.rb +6 -6
- metadata +16 -69
- data/.github/workflows/rake.yml +0 -15
- data/.github/workflows/release.yml +0 -24
- data/.hound.yml +0 -5
- data/.oss-guides.rubocop.yml +0 -1077
- data/.rubocop.yml +0 -10
- data/Rakefile +0 -8
- data/bin/rspec +0 -17
- data/spec/assets/header.html +0 -7
- data/spec/assets/html.scss +0 -20
- data/spec/assets/html_override.css +0 -1
- data/spec/assets/htmlcover.html +0 -4
- data/spec/assets/htmlintro.html +0 -5
- data/spec/assets/i18n.yaml +0 -41
- data/spec/assets/iso.xml +0 -8
- data/spec/assets/odf.emf +0 -0
- data/spec/assets/odf.svg +0 -1
- data/spec/assets/odf1.svg +0 -4
- data/spec/assets/outputtest/a.xml +0 -66
- data/spec/assets/outputtest/iso.international-standard.xsl +0 -3011
- data/spec/assets/rice_image1 +0 -0
- data/spec/assets/rice_image1.png +0 -0
- data/spec/assets/scripts.html +0 -3
- data/spec/assets/scripts_override.html +0 -3
- data/spec/assets/std.css +0 -2
- data/spec/assets/word.css +0 -2
- data/spec/assets/word_override.css +0 -1
- data/spec/assets/wordcover.html +0 -3
- data/spec/assets/wordintro.html +0 -4
- data/spec/isodoc/blocks_spec.rb +0 -2934
- data/spec/isodoc/cleanup_spec.rb +0 -1056
- data/spec/isodoc/footnotes_spec.rb +0 -264
- data/spec/isodoc/form_spec.rb +0 -160
- data/spec/isodoc/i18n_spec.rb +0 -1201
- data/spec/isodoc/inline_spec.rb +0 -2301
- data/spec/isodoc/lists_spec.rb +0 -469
- data/spec/isodoc/metadata_spec.rb +0 -401
- data/spec/isodoc/postproc_spec.rb +0 -2941
- data/spec/isodoc/presentation_xml_spec.rb +0 -1476
- data/spec/isodoc/ref_spec.rb +0 -955
- data/spec/isodoc/section_spec.rb +0 -2123
- data/spec/isodoc/table_spec.rb +0 -588
- data/spec/isodoc/terms_spec.rb +0 -712
- data/spec/isodoc/utils_spec.rb +0 -57
- data/spec/isodoc/xref_numbering_spec.rb +0 -378
- data/spec/isodoc/xref_spec.rb +0 -1837
- data/spec/isodoc/xslfo_convert_spec.rb +0 -103
- data/spec/spec_helper.rb +0 -81
data/lib/isodoc/gem_tasks.rb
CHANGED
@@ -8,14 +8,20 @@ module IsoDoc
|
|
8
8
|
module GemTasks
|
9
9
|
extend Rake::DSL if defined? Rake::DSL
|
10
10
|
|
11
|
+
@@css_list = []
|
12
|
+
|
11
13
|
module_function
|
12
14
|
|
15
|
+
def self.css_list
|
16
|
+
@@css_list
|
17
|
+
end
|
18
|
+
|
13
19
|
def install
|
14
20
|
rule ".css" => [proc { |tn| tn.sub(/\.css$/, ".scss") }] do |current_task|
|
15
21
|
puts(current_task)
|
16
22
|
compile_scss_task(current_task)
|
17
23
|
rescue StandardError => e
|
18
|
-
|
24
|
+
notify_broken_compilation(e, current_task)
|
19
25
|
end
|
20
26
|
|
21
27
|
scss_files = Rake::FileList["lib/**/*.scss"]
|
@@ -40,25 +46,27 @@ module IsoDoc
|
|
40
46
|
end
|
41
47
|
end
|
42
48
|
|
43
|
-
def
|
49
|
+
def interactive?
|
50
|
+
ENV["CI"] == nil
|
51
|
+
end
|
52
|
+
|
53
|
+
def notify_broken_compilation(error, current_task)
|
44
54
|
puts("Cannot compile #{current_task} because of #{error.message}")
|
55
|
+
return unless interactive?
|
56
|
+
|
45
57
|
puts("continue anyway[y|n]?")
|
46
|
-
answer =
|
47
|
-
|
48
|
-
puts("Cannot compile #{current_task} because of #{error.message}")
|
49
|
-
else
|
50
|
-
exit(0)
|
51
|
-
end
|
58
|
+
answer = $stdin.gets.strip
|
59
|
+
exit(0) unless %w[y yes].include?(answer.strip.downcase)
|
52
60
|
end
|
53
61
|
|
54
62
|
def git_cache_compiled_files
|
55
|
-
|
63
|
+
@@css_list.each do |css_file|
|
56
64
|
sh "git add #{css_file}"
|
57
65
|
end
|
58
66
|
end
|
59
67
|
|
60
68
|
def git_rm_compiled_files
|
61
|
-
|
69
|
+
@@css_list.each do |css_file|
|
62
70
|
sh "git rm --cached #{css_file}"
|
63
71
|
end
|
64
72
|
end
|
@@ -129,6 +137,7 @@ module IsoDoc
|
|
129
137
|
File.open(compiled_path, "w:UTF-8") do |f|
|
130
138
|
f.write(content)
|
131
139
|
end
|
140
|
+
@@css_list << compiled_path
|
132
141
|
CLEAN << compiled_path
|
133
142
|
end
|
134
143
|
end
|
@@ -20,7 +20,7 @@ module IsoDoc
|
|
20
20
|
return if @bare
|
21
21
|
|
22
22
|
body.div **{ class: "title-section" } do |div1|
|
23
|
-
div1.p { |p| p << "
|
23
|
+
div1.p { |p| p << " " } # placeholder
|
24
24
|
end
|
25
25
|
section_break(body)
|
26
26
|
end
|
@@ -29,7 +29,7 @@ module IsoDoc
|
|
29
29
|
return if @bare
|
30
30
|
|
31
31
|
body.div **{ class: "prefatory-section" } do |div2|
|
32
|
-
div2.p { |p| p << "
|
32
|
+
div2.p { |p| p << " " } # placeholder
|
33
33
|
end
|
34
34
|
section_break(body)
|
35
35
|
end
|
data/lib/isodoc/i18n.rb
CHANGED
@@ -23,3 +23,22 @@ module IsoDoc
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
26
|
+
|
27
|
+
class ::Hash
|
28
|
+
def deep_merge(second)
|
29
|
+
merger = proc { |_, v1, v2|
|
30
|
+
if Hash === v1 && Hash === v2
|
31
|
+
v1.merge(v2, &merger)
|
32
|
+
elsif Array === v1 && Array === v2
|
33
|
+
v1 | v2
|
34
|
+
elsif [:undefined, nil,
|
35
|
+
:nil].include?(v2)
|
36
|
+
v1
|
37
|
+
else
|
38
|
+
v2
|
39
|
+
end
|
40
|
+
}
|
41
|
+
merge(second.to_h, &merger)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
data/lib/isodoc/metadata.rb
CHANGED
@@ -31,7 +31,7 @@ module IsoDoc
|
|
31
31
|
return if labelled_ancestor(elem)
|
32
32
|
|
33
33
|
lbl = @xrefs.anchor(elem["id"], :label, false) or return
|
34
|
-
prefix_name(elem, "
|
34
|
+
prefix_name(elem, " — ",
|
35
35
|
l10n("#{lower2cap @i18n.figure} #{lbl}"), "name")
|
36
36
|
end
|
37
37
|
|
@@ -60,7 +60,7 @@ module IsoDoc
|
|
60
60
|
else
|
61
61
|
l10n("#{@i18n.example} #{n[:label]}")
|
62
62
|
end
|
63
|
-
prefix_name(elem, "
|
63
|
+
prefix_name(elem, " — ", lbl, "name")
|
64
64
|
end
|
65
65
|
|
66
66
|
def note(docxml)
|
@@ -130,7 +130,7 @@ module IsoDoc
|
|
130
130
|
return if elem["unnumbered"] && !elem.at(ns("./name"))
|
131
131
|
|
132
132
|
n = @xrefs.anchor(elem["id"], :label, false)
|
133
|
-
prefix_name(elem, "
|
133
|
+
prefix_name(elem, " — ", l10n("#{lower2cap @i18n.table} #{n}"),
|
134
134
|
"name")
|
135
135
|
end
|
136
136
|
|
@@ -32,7 +32,7 @@ module IsoDoc
|
|
32
32
|
return if elem.at(ns("./figure")) && !elem.at(ns("./name"))
|
33
33
|
|
34
34
|
lbl = @xrefs.anchor(elem["id"], :label, false) or return
|
35
|
-
prefix_name(elem, "
|
35
|
+
prefix_name(elem, " — ",
|
36
36
|
l10n("#{lower2cap @i18n.figure} #{lbl}"), "name")
|
37
37
|
end
|
38
38
|
|
@@ -158,7 +158,7 @@ module IsoDoc
|
|
158
158
|
# TODO: move to localization file
|
159
159
|
def eref_localities1_zh(_target, type, from, upto, node)
|
160
160
|
ret = "第#{from}" if from
|
161
|
-
ret += "
|
161
|
+
ret += "–#{upto}" if upto
|
162
162
|
loc = eref_locality_populate(type, node)
|
163
163
|
ret += " #{loc}" unless node["droploc"] == "true"
|
164
164
|
ret
|
@@ -172,19 +172,20 @@ module IsoDoc
|
|
172
172
|
return l10n(eref_localities1_zh(target, type, from, upto, node))
|
173
173
|
ret = eref_locality_populate(type, node)
|
174
174
|
ret += " #{from}" if from
|
175
|
-
ret += "
|
175
|
+
ret += "–#{upto}" if upto
|
176
176
|
l10n(ret)
|
177
177
|
end
|
178
178
|
|
179
179
|
def eref_locality_populate(type, node)
|
180
180
|
return "" if node["droploc"] == "true"
|
181
181
|
|
182
|
-
loc =
|
183
|
-
|
182
|
+
loc = type.sub(/^locality:/, "")
|
183
|
+
ret = @i18n.locality[loc] || loc
|
184
|
+
ret = case node["case"]
|
184
185
|
when "lowercase" then loc.downcase
|
185
|
-
else Metanorma::Utils.strict_capitalize_first(
|
186
|
+
else Metanorma::Utils.strict_capitalize_first(ret)
|
186
187
|
end
|
187
|
-
" #{
|
188
|
+
" #{ret}"
|
188
189
|
end
|
189
190
|
|
190
191
|
def xref(docxml)
|
@@ -226,6 +227,12 @@ module IsoDoc
|
|
226
227
|
end
|
227
228
|
end
|
228
229
|
|
230
|
+
def identifier(docxml)
|
231
|
+
docxml.xpath(ns("//identifier")).each do |n|
|
232
|
+
n.name = "tt"
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
229
236
|
private
|
230
237
|
|
231
238
|
def found_matching_variant_sibling(node)
|
@@ -56,7 +56,7 @@ module IsoDoc
|
|
56
56
|
|
57
57
|
def single_term_clause(elem)
|
58
58
|
t = elem.at(ns("./terms | ./definitions | ./references"))
|
59
|
-
t.at(ns("./title"))
|
59
|
+
t.at(ns("./title"))&.remove
|
60
60
|
t.xpath(ns(".//clause | .//terms | .//definitions | .//references"))
|
61
61
|
.each do |c|
|
62
62
|
tit = c.at(ns("./title")) or return
|
@@ -84,6 +84,8 @@ module IsoDoc
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def bibitem(xml)
|
87
|
+
@xrefs.klass.implicit_reference(xml) and
|
88
|
+
xml["hidden"] = "true"
|
87
89
|
bibrender(xml)
|
88
90
|
end
|
89
91
|
|
@@ -26,24 +26,39 @@ module IsoDoc
|
|
26
26
|
def anchor_linkend1(node)
|
27
27
|
linkend = @xrefs.anchor(node["target"], :xref)
|
28
28
|
container = @xrefs.anchor(node["target"], :container, false)
|
29
|
-
(container
|
30
|
-
@xrefs.get[node["target"]]) and
|
29
|
+
prefix_container?(container, node) and
|
31
30
|
linkend = prefix_container(container, linkend, node["target"])
|
32
31
|
capitalise_xref(node, linkend, anchor_value(node["target"]))
|
33
32
|
end
|
34
33
|
|
34
|
+
def prefix_container?(container, node)
|
35
|
+
type = @xrefs.anchor(node["target"], :type)
|
36
|
+
container &&
|
37
|
+
get_note_container_id(node, type) != container &&
|
38
|
+
@xrefs.get[node["target"]]
|
39
|
+
end
|
40
|
+
|
35
41
|
def combine_xref_locations(node)
|
36
42
|
locs = gather_xref_locations(node)
|
37
43
|
linkend = if can_conflate_xref_rendering?(locs)
|
38
|
-
|
39
|
-
l10n("#{locs.first[:elem]} #{combine_conn(out)}")
|
44
|
+
combine_conflated_xref_locations(locs)
|
40
45
|
else
|
41
|
-
out = locs.each { |l| l[:target] =
|
46
|
+
out = locs.each { |l| l[:target] = anchor_linkend1(l[:node]) }
|
42
47
|
l10n(combine_conn(out))
|
43
48
|
end
|
44
49
|
capitalise_xref(node, linkend, anchor_value(node["target"]))
|
45
50
|
end
|
46
51
|
|
52
|
+
def combine_conflated_xref_locations(locs)
|
53
|
+
out = locs.each { |l| l[:target] = anchor_value(l[:target]) }
|
54
|
+
ret = l10n("#{locs.first[:elem]} #{combine_conn(out)}")
|
55
|
+
container = @xrefs.anchor(locs.first[:node]["target"], :container,
|
56
|
+
false)
|
57
|
+
prefix_container?(container, locs.first[:node]) and
|
58
|
+
ret = prefix_container(container, ret, locs.first[:node]["target"])
|
59
|
+
ret
|
60
|
+
end
|
61
|
+
|
47
62
|
def gather_xref_locations(node)
|
48
63
|
node.xpath(ns("./location")).each_with_object([]) do |l, m|
|
49
64
|
type = @xrefs.anchor(l["target"], :type)
|
@@ -74,7 +89,8 @@ module IsoDoc
|
|
74
89
|
end
|
75
90
|
|
76
91
|
def can_conflate_xref_rendering?(locs)
|
77
|
-
|
92
|
+
(locs.all? { |l| l[:container].nil? } ||
|
93
|
+
locs.all? { |l| l[:container] == locs.first[:container] }) &&
|
78
94
|
locs.all? { |l| l[:type] == locs[0][:type] }
|
79
95
|
end
|
80
96
|
|
data/lib/isodoc/version.rb
CHANGED
@@ -20,7 +20,7 @@ module IsoDoc
|
|
20
20
|
|
21
21
|
def make_body1(body, _docxml)
|
22
22
|
body.div **{ class: "WordSection1" } do |div1|
|
23
|
-
div1.p { |p| p << "
|
23
|
+
div1.p { |p| p << " " } # placeholder
|
24
24
|
end
|
25
25
|
section_break(body)
|
26
26
|
end
|
@@ -34,7 +34,7 @@ module IsoDoc
|
|
34
34
|
introduction docxml, div2
|
35
35
|
preface docxml, div2
|
36
36
|
acknowledgements docxml, div2
|
37
|
-
div2.p { |p| p << "
|
37
|
+
div2.p { |p| p << " " } # placeholder
|
38
38
|
end
|
39
39
|
section_break(body)
|
40
40
|
end
|
@@ -64,7 +64,7 @@ module IsoDoc
|
|
64
64
|
def para_parse(node, out)
|
65
65
|
out.p **attr_code(para_attrs(node)) do |p|
|
66
66
|
unless @termdomain.empty?
|
67
|
-
p << "
|
67
|
+
p << "<#{@termdomain}> "
|
68
68
|
@termdomain = ""
|
69
69
|
end
|
70
70
|
node.children.each { |n| parse(n, p) unless n.name == "note" }
|
@@ -92,8 +92,10 @@ module IsoDoc
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def dl_parse_table(node, out)
|
95
|
+
list_title_parse(node, out)
|
95
96
|
out.table **{ class: "dl" } do |v|
|
96
|
-
node.elements.select { |n| dt_dd?
|
97
|
+
node.elements.select { |n| dt_dd?(n) }
|
98
|
+
.each_slice(2) do |dt, dd|
|
97
99
|
dl_parse_table1(v, dt, dd)
|
98
100
|
end
|
99
101
|
dl_parse_notes(node, v)
|
@@ -112,11 +114,12 @@ module IsoDoc
|
|
112
114
|
end
|
113
115
|
|
114
116
|
def dl_parse_notes(node, out)
|
115
|
-
|
117
|
+
remainder = node.elements.reject { |n| dt_dd?(n) || n.name == "name" }
|
118
|
+
return if remainder.empty?
|
116
119
|
|
117
120
|
out.tr do |tr|
|
118
121
|
tr.td **{ colspan: 2 } do |td|
|
119
|
-
|
122
|
+
remainder.each { |n| parse(n, td) }
|
120
123
|
end
|
121
124
|
end
|
122
125
|
end
|
@@ -60,7 +60,7 @@ module IsoDoc
|
|
60
60
|
<span lang="EN-GB"><span
|
61
61
|
style='mso-element:field-begin'></span><span
|
62
62
|
style='mso-spacerun:yes'> </span>TOC
|
63
|
-
\\o
|
63
|
+
\\o "1-#{level}" \\h \\z \\u <span
|
64
64
|
style='mso-element:field-separator'></span></span>
|
65
65
|
TOC
|
66
66
|
end
|
@@ -68,7 +68,7 @@ module IsoDoc
|
|
68
68
|
WORD_TOC_SUFFIX1 = <<~TOC.freeze
|
69
69
|
<p class="MsoToc1"><span lang="EN-GB"><span
|
70
70
|
style='mso-element:field-end'></span></span><span
|
71
|
-
lang="EN-GB"><o:p
|
71
|
+
lang="EN-GB"><o:p> </o:p></span></p>
|
72
72
|
TOC
|
73
73
|
|
74
74
|
def make_WordToC(docxml, level)
|
@@ -86,7 +86,7 @@ module IsoDoc
|
|
86
86
|
<span lang="EN-GB"><span
|
87
87
|
style='mso-element:field-begin'></span><span
|
88
88
|
style='mso-spacerun:yes'> </span>TOC
|
89
|
-
\\h \\z \\t
|
89
|
+
\\h \\z \\t "RecommendationTitle,RecommendationTestTitle,recommendationtitle,recommendationtesttitle"
|
90
90
|
<span style='mso-element:field-separator'></span></span>
|
91
91
|
TOC
|
92
92
|
|
@@ -94,7 +94,7 @@ module IsoDoc
|
|
94
94
|
<span lang="EN-GB"><span
|
95
95
|
style='mso-element:field-begin'></span><span
|
96
96
|
style='mso-spacerun:yes'> </span>TOC
|
97
|
-
\\h \\z \\t
|
97
|
+
\\h \\z \\t "TableTitle,tabletitle" <span
|
98
98
|
style='mso-element:field-separator'></span></span>
|
99
99
|
TOC
|
100
100
|
|
@@ -102,7 +102,7 @@ module IsoDoc
|
|
102
102
|
<span lang="EN-GB"><span
|
103
103
|
style='mso-element:field-begin'></span><span
|
104
104
|
style='mso-spacerun:yes'> </span>TOC
|
105
|
-
\\h \\z \\t
|
105
|
+
\\h \\z \\t "FigureTitle,figuretitle" <span
|
106
106
|
style='mso-element:field-separator'></span></span>
|
107
107
|
TOC
|
108
108
|
|
data/lib/isodoc/xref/xref_gen.rb
CHANGED
@@ -43,7 +43,7 @@ module IsoDoc
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def termnote_anchor_names(docxml)
|
46
|
-
docxml.xpath(ns("
|
46
|
+
docxml.xpath(ns("//*[termnote]")).each do |t|
|
47
47
|
c = Counter.new
|
48
48
|
t.xpath(ns("./termnote")).reject { |n| blank?(n["id"]) }.each do |n|
|
49
49
|
c.increment(n)
|
@@ -57,7 +57,7 @@ module IsoDoc
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def termexample_anchor_names(docxml)
|
60
|
-
docxml.xpath(ns("
|
60
|
+
docxml.xpath(ns("//*[termexample]")).each do |t|
|
61
61
|
examples = t.xpath(ns("./termexample"))
|
62
62
|
c = Counter.new
|
63
63
|
examples.reject { |n| blank?(n["id"]) }.each do |n|
|
@@ -148,12 +148,12 @@ module IsoDoc
|
|
148
148
|
c = Counter.new(list["start"] ? list["start"].to_i - 1 : 0)
|
149
149
|
list.xpath(ns("./li")).each do |li|
|
150
150
|
label = c.increment(li).listlabel(list, depth)
|
151
|
-
label = "#{prev_label}
|
151
|
+
label = "#{prev_label}) #{label}" unless prev_label.empty?
|
152
152
|
label = "#{list_anchor[:xref]} #{label}" if refer_list
|
153
153
|
li["id"] and @anchors[li["id"]] =
|
154
|
-
{ xref: "#{label})", type: "listitem",
|
155
|
-
container: list_anchor[:container] }
|
156
|
-
li.xpath(ns("
|
154
|
+
{ xref: "#{label})", type: "listitem", refer_list:
|
155
|
+
refer_list, container: list_anchor[:container] }
|
156
|
+
(li.xpath(ns(".//ol")) - li.xpath(ns(".//ol//ol"))).each do |ol|
|
157
157
|
list_item_anchor_names(ol, list_anchor, depth + 1, label, false)
|
158
158
|
end
|
159
159
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.4.
|
33
|
+
version: 1.4.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.4.
|
40
|
+
version: 1.4.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: htmlentities
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: nokogiri
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.12'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '1.12'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: relaton-cli
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -399,17 +385,10 @@ executables: []
|
|
399
385
|
extensions: []
|
400
386
|
extra_rdoc_files: []
|
401
387
|
files:
|
402
|
-
- ".github/workflows/rake.yml"
|
403
|
-
- ".github/workflows/release.yml"
|
404
|
-
- ".hound.yml"
|
405
|
-
- ".oss-guides.rubocop.yml"
|
406
|
-
- ".rubocop.yml"
|
407
388
|
- CODE_OF_CONDUCT.md
|
408
389
|
- Gemfile
|
409
390
|
- LICENSE
|
410
391
|
- README.adoc
|
411
|
-
- Rakefile
|
412
|
-
- bin/rspec
|
413
392
|
- isodoc.gemspec
|
414
393
|
- lib/isodoc-yaml/i18n-ar.yaml
|
415
394
|
- lib/isodoc-yaml/i18n-de.yaml
|
@@ -419,15 +398,23 @@ files:
|
|
419
398
|
- lib/isodoc-yaml/i18n-ru.yaml
|
420
399
|
- lib/isodoc-yaml/i18n-zh-Hans.yaml
|
421
400
|
- lib/isodoc.rb
|
401
|
+
- lib/isodoc/base_style/all.css
|
422
402
|
- lib/isodoc/base_style/all.scss
|
423
403
|
- lib/isodoc/base_style/bands.scss
|
404
|
+
- lib/isodoc/base_style/blocks.css
|
424
405
|
- lib/isodoc/base_style/blocks.scss
|
406
|
+
- lib/isodoc/base_style/coverpage.css
|
425
407
|
- lib/isodoc/base_style/coverpage.scss
|
408
|
+
- lib/isodoc/base_style/defaults.css
|
426
409
|
- lib/isodoc/base_style/defaults.scss
|
410
|
+
- lib/isodoc/base_style/metanorma_word.css
|
427
411
|
- lib/isodoc/base_style/metanorma_word.scss
|
412
|
+
- lib/isodoc/base_style/nav.css
|
428
413
|
- lib/isodoc/base_style/nav.scss
|
414
|
+
- lib/isodoc/base_style/reset.css
|
429
415
|
- lib/isodoc/base_style/reset.scss
|
430
416
|
- lib/isodoc/base_style/scripts.html
|
417
|
+
- lib/isodoc/base_style/typography.css
|
431
418
|
- lib/isodoc/base_style/typography.scss
|
432
419
|
- lib/isodoc/class_utils.rb
|
433
420
|
- lib/isodoc/common.rb
|
@@ -498,51 +485,11 @@ files:
|
|
498
485
|
- lib/metanorma/output/xslfo.rb
|
499
486
|
- lib/relaton/render/config.yml
|
500
487
|
- lib/relaton/render/general.rb
|
501
|
-
- spec/assets/header.html
|
502
|
-
- spec/assets/html.scss
|
503
|
-
- spec/assets/html_override.css
|
504
|
-
- spec/assets/htmlcover.html
|
505
|
-
- spec/assets/htmlintro.html
|
506
|
-
- spec/assets/i18n.yaml
|
507
|
-
- spec/assets/iso.xml
|
508
|
-
- spec/assets/odf.emf
|
509
|
-
- spec/assets/odf.svg
|
510
|
-
- spec/assets/odf1.svg
|
511
|
-
- spec/assets/outputtest/a.xml
|
512
|
-
- spec/assets/outputtest/iso.international-standard.xsl
|
513
|
-
- spec/assets/rice_image1
|
514
|
-
- spec/assets/rice_image1.png
|
515
|
-
- spec/assets/scripts.html
|
516
|
-
- spec/assets/scripts_override.html
|
517
|
-
- spec/assets/std.css
|
518
|
-
- spec/assets/word.css
|
519
|
-
- spec/assets/word_override.css
|
520
|
-
- spec/assets/wordcover.html
|
521
|
-
- spec/assets/wordintro.html
|
522
|
-
- spec/isodoc/blocks_spec.rb
|
523
|
-
- spec/isodoc/cleanup_spec.rb
|
524
|
-
- spec/isodoc/footnotes_spec.rb
|
525
|
-
- spec/isodoc/form_spec.rb
|
526
|
-
- spec/isodoc/i18n_spec.rb
|
527
|
-
- spec/isodoc/inline_spec.rb
|
528
|
-
- spec/isodoc/lists_spec.rb
|
529
|
-
- spec/isodoc/metadata_spec.rb
|
530
|
-
- spec/isodoc/postproc_spec.rb
|
531
|
-
- spec/isodoc/presentation_xml_spec.rb
|
532
|
-
- spec/isodoc/ref_spec.rb
|
533
|
-
- spec/isodoc/section_spec.rb
|
534
|
-
- spec/isodoc/table_spec.rb
|
535
|
-
- spec/isodoc/terms_spec.rb
|
536
|
-
- spec/isodoc/utils_spec.rb
|
537
|
-
- spec/isodoc/xref_numbering_spec.rb
|
538
|
-
- spec/isodoc/xref_spec.rb
|
539
|
-
- spec/isodoc/xslfo_convert_spec.rb
|
540
|
-
- spec/spec_helper.rb
|
541
488
|
homepage: https://github.com/metanorma/isodoc
|
542
489
|
licenses:
|
543
490
|
- BSD-2-Clause
|
544
491
|
metadata: {}
|
545
|
-
post_install_message:
|
492
|
+
post_install_message:
|
546
493
|
rdoc_options: []
|
547
494
|
require_paths:
|
548
495
|
- lib
|
@@ -557,8 +504,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
557
504
|
- !ruby/object:Gem::Version
|
558
505
|
version: '0'
|
559
506
|
requirements: []
|
560
|
-
rubygems_version: 3.
|
561
|
-
signing_key:
|
507
|
+
rubygems_version: 3.3.7
|
508
|
+
signing_key:
|
562
509
|
specification_version: 4
|
563
510
|
summary: Convert documents in IsoDoc into Word and HTML in AsciiDoc.
|
564
511
|
test_files: []
|
data/.github/workflows/rake.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: rake
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master, main ]
|
8
|
-
tags: [ v* ]
|
9
|
-
pull_request:
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
rake:
|
13
|
-
uses: metanorma/metanorma-build-scripts/.github/workflows/inkscape-rake.yml@main
|
14
|
-
secrets:
|
15
|
-
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: release
|
4
|
-
|
5
|
-
on:
|
6
|
-
workflow_dispatch:
|
7
|
-
inputs:
|
8
|
-
next_version:
|
9
|
-
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
-
required: true
|
12
|
-
default: 'skip'
|
13
|
-
push:
|
14
|
-
tags: [ v* ]
|
15
|
-
|
16
|
-
jobs:
|
17
|
-
release:
|
18
|
-
uses: metanorma/metanorma-build-scripts/.github/workflows/rubygems-release.yml@main
|
19
|
-
with:
|
20
|
-
next_version: ${{ github.event.inputs.next_version }}
|
21
|
-
event_name: ${{ github.event_name }}
|
22
|
-
secrets:
|
23
|
-
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
24
|
-
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|