metanorma-iso 1.10.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +26 -0
- data/Makefile +1 -1
- data/lib/asciidoctor/iso/base.rb +2 -69
- data/lib/asciidoctor/iso/cleanup.rb +2 -175
- data/lib/asciidoctor/iso/converter.rb +2 -17
- data/lib/asciidoctor/iso/deprecated.rb +5 -0
- data/lib/asciidoctor/iso/front.rb +2 -169
- data/lib/asciidoctor/iso/front_id.rb +2 -224
- data/lib/asciidoctor/iso/section.rb +2 -48
- data/lib/asciidoctor/iso/validate.rb +2 -171
- data/lib/asciidoctor/iso/validate_image.rb +2 -96
- data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
- data/lib/asciidoctor/iso/validate_section.rb +2 -246
- data/lib/asciidoctor/iso/validate_style.rb +2 -169
- data/lib/asciidoctor/iso/validate_title.rb +2 -104
- data/lib/isodoc/iso/html/htmlstyle.css +47 -0
- data/lib/isodoc/iso/html/isodoc.css +1327 -0
- data/lib/isodoc/iso/html/style-human.css +1010 -0
- data/lib/isodoc/iso/html/style-iso.css +1036 -0
- data/lib/isodoc/iso/html/wordstyle.css +1701 -0
- data/lib/isodoc/iso/html_convert.rb +6 -4
- data/lib/isodoc/iso/iso.amendment.xsl +96 -154
- data/lib/isodoc/iso/iso.international-standard.xsl +96 -154
- data/lib/metanorma/iso/base.rb +70 -0
- data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
- data/lib/metanorma/iso/cleanup.rb +176 -0
- data/lib/metanorma/iso/converter.rb +18 -0
- data/lib/metanorma/iso/front.rb +170 -0
- data/lib/metanorma/iso/front_id.rb +225 -0
- data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +29 -0
- data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
- data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
- data/lib/metanorma/iso/section.rb +49 -0
- data/lib/metanorma/iso/validate.rb +172 -0
- data/lib/metanorma/iso/validate_image.rb +97 -0
- data/lib/metanorma/iso/validate_requirements.rb +111 -0
- data/lib/metanorma/iso/validate_section.rb +247 -0
- data/lib/metanorma/iso/validate_style.rb +170 -0
- data/lib/metanorma/iso/validate_title.rb +105 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/metanorma-iso.rb +1 -1
- data/metanorma-iso.gemspec +1 -1
- data/spec/isodoc/ref_spec.rb +4 -2
- data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/base_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/refs_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +46 -28
@@ -0,0 +1,170 @@
|
|
1
|
+
require "metanorma-standoc"
|
2
|
+
require "nokogiri"
|
3
|
+
require "tokenizer"
|
4
|
+
|
5
|
+
module Metanorma
|
6
|
+
module ISO
|
7
|
+
class Converter < Standoc::Converter
|
8
|
+
def extract_text(node)
|
9
|
+
return "" if node.nil?
|
10
|
+
|
11
|
+
node1 = Nokogiri::XML.fragment(node.to_s)
|
12
|
+
node1.xpath("//link | //locality | //localityStack").each(&:remove)
|
13
|
+
ret = ""
|
14
|
+
node1.traverse { |x| ret += x.text if x.text? }
|
15
|
+
HTMLEntities.new.decode(ret)
|
16
|
+
end
|
17
|
+
|
18
|
+
# ISO/IEC DIR 2, 12.2
|
19
|
+
def foreword_style(node)
|
20
|
+
return if @novalid
|
21
|
+
|
22
|
+
style_no_guidance(node, extract_text(node), "Foreword")
|
23
|
+
end
|
24
|
+
|
25
|
+
# ISO/IEC DIR 2, 14.2
|
26
|
+
def scope_style(node)
|
27
|
+
return if @novalid
|
28
|
+
|
29
|
+
style_no_guidance(node, extract_text(node), "Scope")
|
30
|
+
end
|
31
|
+
|
32
|
+
# ISO/IEC DIR 2, 13.2
|
33
|
+
def introduction_style(node)
|
34
|
+
return if @novalid
|
35
|
+
|
36
|
+
r = requirement_check(extract_text(node))
|
37
|
+
style_warning(node, "Introduction may contain requirement", r) if r
|
38
|
+
end
|
39
|
+
|
40
|
+
# ISO/IEC DIR 2, 16.5.6
|
41
|
+
def definition_style(node)
|
42
|
+
return if @novalid
|
43
|
+
|
44
|
+
r = requirement_check(extract_text(node))
|
45
|
+
style_warning(node, "Definition may contain requirement", r) if r
|
46
|
+
end
|
47
|
+
|
48
|
+
# ISO/IEC DIR 2, 16.5.7
|
49
|
+
# ISO/IEC DIR 2, 25.5
|
50
|
+
def example_style(node)
|
51
|
+
return if @novalid
|
52
|
+
|
53
|
+
style_no_guidance(node, extract_text(node), "Example")
|
54
|
+
style(node, extract_text(node))
|
55
|
+
end
|
56
|
+
|
57
|
+
# ISO/IEC DIR 2, 24.5
|
58
|
+
def note_style(node)
|
59
|
+
return if @novalid
|
60
|
+
|
61
|
+
style_no_guidance(node, extract_text(node), "Note")
|
62
|
+
style(node, extract_text(node))
|
63
|
+
end
|
64
|
+
|
65
|
+
# ISO/IEC DIR 2, 26.5
|
66
|
+
def footnote_style(node)
|
67
|
+
return if @novalid
|
68
|
+
|
69
|
+
style_no_guidance(node, extract_text(node), "Footnote")
|
70
|
+
style(node, extract_text(node))
|
71
|
+
end
|
72
|
+
|
73
|
+
def style_regex(regex, warning, n, text)
|
74
|
+
(m = regex.match(text)) && style_warning(n, warning, m[:num])
|
75
|
+
end
|
76
|
+
|
77
|
+
# style check with a regex on a token
|
78
|
+
# and a negative match on its preceding token
|
79
|
+
def style_two_regex_not_prev(n, text, regex, re_prev, warning)
|
80
|
+
return if text.nil?
|
81
|
+
|
82
|
+
arr = Tokenizer::WhitespaceTokenizer.new.tokenize(text)
|
83
|
+
arr.each_index do |i|
|
84
|
+
m = regex.match arr[i]
|
85
|
+
m_prev = i.zero? ? nil : re_prev.match(arr[i - 1])
|
86
|
+
if !m.nil? && m_prev.nil?
|
87
|
+
style_warning(n, warning, m[:num])
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def style(node, text)
|
93
|
+
return if @novalid
|
94
|
+
|
95
|
+
style_number(node, text)
|
96
|
+
style_percent(node, text)
|
97
|
+
style_abbrev(node, text)
|
98
|
+
style_units(node, text)
|
99
|
+
end
|
100
|
+
|
101
|
+
# ISO/IEC DIR 2, 9.1
|
102
|
+
# ISO/IEC DIR 2, Table B.1
|
103
|
+
def style_number(node, text)
|
104
|
+
style_two_regex_not_prev(
|
105
|
+
node, text, /^(?<num>-?[0-9]{4,}[,0-9]*)\Z/,
|
106
|
+
%r{\b(ISO|IEC|IEEE/|(in|January|February|March|April|May|June|August|September|October|November|December)\b)\Z},
|
107
|
+
"number not broken up in threes"
|
108
|
+
)
|
109
|
+
style_regex(/\b(?<num>[0-9]+\.[0-9]+)/i,
|
110
|
+
"possible decimal point", node, text)
|
111
|
+
style_regex(/\b(?<num>billions?)\b/i,
|
112
|
+
"ambiguous number", node, text)
|
113
|
+
end
|
114
|
+
|
115
|
+
# ISO/IEC DIR 2, 9.2.1
|
116
|
+
def style_percent(node, text)
|
117
|
+
style_regex(/\b(?<num>[0-9.,]+%)/,
|
118
|
+
"no space before percent sign", node, text)
|
119
|
+
style_regex(/\b(?<num>[0-9.,]+ \u00b1 [0-9,.]+ %)/,
|
120
|
+
"unbracketed tolerance before percent sign", node, text)
|
121
|
+
end
|
122
|
+
|
123
|
+
# ISO/IEC DIR 2, 8.4
|
124
|
+
# ISO/IEC DIR 2, 9.3
|
125
|
+
def style_abbrev(node, text)
|
126
|
+
style_regex(/(\A|\s)(?!e\.g\.|i\.e\.)
|
127
|
+
(?<num>[a-z]{1,2}\.([a-z]{1,2}|\.))\b/ix,
|
128
|
+
"no dots in abbreviations", node, text)
|
129
|
+
style_regex(/\b(?<num>ppm)\b/i,
|
130
|
+
"language-specific abbreviation", node, text)
|
131
|
+
end
|
132
|
+
|
133
|
+
# leaving out as problematic: N J K C S T H h d B o E
|
134
|
+
SI_UNIT = "(m|cm|mm|km|μm|nm|g|kg|mgmol|cd|rad|sr|Hz|Hz|MHz|Pa|hPa|kJ|"\
|
135
|
+
"V|kV|W|MW|kW|F|μF|Ω|Wb|°C|lm|lx|Bq|Gy|Sv|kat|l|t|eV|u|Np|Bd|"\
|
136
|
+
"bit|kB|MB|Hart|nat|Sh|var)".freeze
|
137
|
+
|
138
|
+
# ISO/IEC DIR 2, 9.3
|
139
|
+
def style_units(node, text)
|
140
|
+
style_regex(/\b(?<num>[0-9][0-9,]*\s+[\u00b0\u2032\u2033])/,
|
141
|
+
"space between number and degrees/minutes/seconds",
|
142
|
+
node, text)
|
143
|
+
style_regex(/\b(?<num>[0-9][0-9,]*#{SI_UNIT})\b/o,
|
144
|
+
"no space between number and SI unit", node, text)
|
145
|
+
style_non_std_units(node, text)
|
146
|
+
end
|
147
|
+
|
148
|
+
NONSTD_UNITS = {
|
149
|
+
sec: "s", mins: "min", hrs: "h", hr: "h", cc: "cm^3",
|
150
|
+
lit: "l", amp: "A", amps: "A", rpm: "r/min"
|
151
|
+
}.freeze
|
152
|
+
|
153
|
+
# ISO/IEC DIR 2, 9.3
|
154
|
+
def style_non_std_units(node, text)
|
155
|
+
NONSTD_UNITS.each do |k, v|
|
156
|
+
style_regex(/\b(?<num>[0-9][0-9,]*\s+#{k})\b/,
|
157
|
+
"non-standard unit (should be #{v})", node, text)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
def style_warning(node, msg, text = nil)
|
162
|
+
return if @novalid
|
163
|
+
|
164
|
+
w = msg
|
165
|
+
w += ": #{text}" if text
|
166
|
+
@log.add("Style", node, w)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
require "metanorma-standoc"
|
2
|
+
|
3
|
+
module Metanorma
|
4
|
+
module ISO
|
5
|
+
class Converter < Standoc::Converter
|
6
|
+
def title_lang_part(doc, part, lang)
|
7
|
+
doc.at("//bibdata/title[@type='title-#{part}' and @language='#{lang}']")
|
8
|
+
end
|
9
|
+
|
10
|
+
def title_intro_validate(root)
|
11
|
+
title_intro_en = title_lang_part(root, "intro", "en")
|
12
|
+
title_intro_fr = title_lang_part(root, "intro", "fr")
|
13
|
+
if title_intro_en.nil? && !title_intro_fr.nil?
|
14
|
+
@log.add("Style", title_intro_fr, "No English Title Intro!")
|
15
|
+
end
|
16
|
+
if !title_intro_en.nil? && title_intro_fr.nil?
|
17
|
+
@log.add("Style", title_intro_en, "No French Title Intro!")
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def title_main_validate(root)
|
22
|
+
title_main_en = title_lang_part(root, "main", "en")
|
23
|
+
title_main_fr = title_lang_part(root, "main", "fr")
|
24
|
+
if title_main_en.nil? && !title_main_fr.nil?
|
25
|
+
@log.add("Style", title_main_fr, "No English Title!")
|
26
|
+
end
|
27
|
+
if !title_main_en.nil? && title_main_fr.nil?
|
28
|
+
@log.add("Style", title_main_en, "No French Title!")
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def title_part_validate(root)
|
33
|
+
title_part_en = title_lang_part(root, "part", "en")
|
34
|
+
title_part_fr = title_lang_part(root, "part", "fr")
|
35
|
+
(title_part_en.nil? && !title_part_fr.nil?) &&
|
36
|
+
@log.add("Style", title_part_fr, "No English Title Part!")
|
37
|
+
(!title_part_en.nil? && title_part_fr.nil?) &&
|
38
|
+
@log.add("Style", title_part_en, "No French Title Part!")
|
39
|
+
end
|
40
|
+
|
41
|
+
# ISO/IEC DIR 2, 11.4
|
42
|
+
def title_subpart_validate(root)
|
43
|
+
docid = root.at("//bibdata/docidentifier[@type = 'ISO']")
|
44
|
+
subpart = /-\d+-\d+/.match docid
|
45
|
+
iec = root.at("//bibdata/contributor[role/@type = 'publisher']/"\
|
46
|
+
"organization[abbreviation = 'IEC' or "\
|
47
|
+
"name = 'International Electrotechnical Commission']")
|
48
|
+
subpart && !iec and
|
49
|
+
@log.add("Style", docid, "Subpart defined on non-IEC document!")
|
50
|
+
end
|
51
|
+
|
52
|
+
# ISO/IEC DIR 2, 11.5.2
|
53
|
+
def title_names_type_validate(root)
|
54
|
+
doctypes = /International\sStandard | Technical\sSpecification |
|
55
|
+
Publicly\sAvailable\sSpecification | Technical\sReport | Guide /xi
|
56
|
+
title_main_en = title_lang_part(root, "main", "en")
|
57
|
+
!title_main_en.nil? && doctypes.match(title_main_en.text) and
|
58
|
+
@log.add("Style", title_main_en, "Main Title may name document type")
|
59
|
+
title_intro_en = title_lang_part(root, "intro", "en")
|
60
|
+
!title_intro_en.nil? && doctypes.match(title_intro_en.text) and
|
61
|
+
@log.add("Style", title_intro_en,
|
62
|
+
"Title Intro may name document type")
|
63
|
+
end
|
64
|
+
|
65
|
+
# ISO/IEC DIR 2, 22.2
|
66
|
+
def title_first_level_validate(root)
|
67
|
+
root.xpath(SECTIONS_XPATH).each do |s|
|
68
|
+
title = s&.at("./title")&.text || s.name
|
69
|
+
s.xpath("./clause | ./terms | ./references").each do |ss|
|
70
|
+
subtitle = ss.at("./title")
|
71
|
+
!subtitle.nil? && !subtitle&.text&.empty? or
|
72
|
+
@log.add("Style", ss,
|
73
|
+
"#{title}: each first-level subclause must have a title")
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# ISO/IEC DIR 2, 22.2
|
79
|
+
def title_all_siblings(xpath, label)
|
80
|
+
notitle = false
|
81
|
+
withtitle = false
|
82
|
+
xpath.each do |s|
|
83
|
+
title_all_siblings(s.xpath("./clause | ./terms | ./references"),
|
84
|
+
s&.at("./title")&.text || s["id"])
|
85
|
+
subtitle = s.at("./title")
|
86
|
+
notitle = notitle || (!subtitle || subtitle.text.empty?)
|
87
|
+
withtitle = withtitle || (subtitle && !subtitle.text.empty?)
|
88
|
+
end
|
89
|
+
notitle && withtitle &&
|
90
|
+
@log.add("Style", nil,
|
91
|
+
"#{label}: all subclauses must have a title, or none")
|
92
|
+
end
|
93
|
+
|
94
|
+
def title_validate(root)
|
95
|
+
title_intro_validate(root)
|
96
|
+
title_main_validate(root)
|
97
|
+
title_part_validate(root)
|
98
|
+
title_subpart_validate(root)
|
99
|
+
title_names_type_validate(root)
|
100
|
+
title_first_level_validate(root)
|
101
|
+
title_all_siblings(root.xpath(SECTIONS_XPATH), "(top level)")
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
data/lib/metanorma-iso.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require "asciidoctor" unless defined? Asciidoctor::Converter
|
2
|
-
require_relative "
|
2
|
+
require_relative "metanorma/iso/converter"
|
3
3
|
require_relative "metanorma/iso/version"
|
4
4
|
require_relative "isodoc/iso/html_convert"
|
5
5
|
require_relative "isodoc/iso/word_convert"
|
data/metanorma-iso.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
31
31
|
|
32
|
-
spec.add_dependency "metanorma-standoc", "~>
|
32
|
+
spec.add_dependency "metanorma-standoc", "~> 2.0.0"
|
33
33
|
spec.add_dependency "mnconvert", "~> 1.14"
|
34
34
|
spec.add_dependency "ruby-jing"
|
35
35
|
spec.add_dependency "tokenizer", "~> 0.3.0"
|
data/spec/isodoc/ref_spec.rb
CHANGED
@@ -272,6 +272,7 @@ RSpec.describe IsoDoc do
|
|
272
272
|
</note>
|
273
273
|
<bibitem id="ISO3696" type="standard">
|
274
274
|
<title format="text/plain">Water for analytical laboratory use</title>
|
275
|
+
<docidentifier type='metanorma-ordinal'>[1]</docidentifier>
|
275
276
|
<docidentifier type="ISO">ISO 3696</docidentifier>
|
276
277
|
<contributor>
|
277
278
|
<role type="publisher"/>
|
@@ -294,6 +295,7 @@ RSpec.describe IsoDoc do
|
|
294
295
|
</bibitem>
|
295
296
|
<bibitem id="ref11">
|
296
297
|
<title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
|
298
|
+
<docidentifier type='metanorma-ordinal'>[2]</docidentifier>
|
297
299
|
<docidentifier type="IETF">IETF RFC 10</docidentifier>
|
298
300
|
</bibitem>
|
299
301
|
<bibitem id="ref12">
|
@@ -361,7 +363,7 @@ RSpec.describe IsoDoc do
|
|
361
363
|
<p>
|
362
364
|
<span class="note_label">NOTE</span>  This is another annotation of document ISSN.</p>
|
363
365
|
</div>
|
364
|
-
<p class="Biblio" id="ISO3696">[
|
366
|
+
<p class="Biblio" id="ISO3696">[1]  ISO 3696,
|
365
367
|
<i>Water for analytical laboratory use</i></p>
|
366
368
|
<p class="Biblio" id="ref10">[10]  <span style="font-variant:small-caps;">Standard No I.C.C 167</span>
|
367
369
|
.
|
@@ -369,7 +371,7 @@ RSpec.describe IsoDoc do
|
|
369
371
|
(see
|
370
372
|
<a href="http://www.icc.or.at">http://www.icc.or.at</a>
|
371
373
|
)</p>
|
372
|
-
<p class="Biblio" id="ref11">[
|
374
|
+
<p class="Biblio" id="ref11">[2]  IETF RFC 10,
|
373
375
|
<i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i></p>
|
374
376
|
<p class="Biblio" id="ref12">Citn  IETF RFC 20, CitationWorks. 2019.
|
375
377
|
<i>How to cite a reference</i>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
RSpec.describe
|
3
|
+
RSpec.describe Metanorma::ISO do
|
4
4
|
it "processes inline_quoted formatting" do
|
5
5
|
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
6
|
#{ASCIIDOC_BLANK_HDR}
|
data/spec/spec_helper.rb
CHANGED
@@ -132,7 +132,7 @@ VALIDATING_BLANK_HDR = <<~"HDR".freeze
|
|
132
132
|
HDR
|
133
133
|
|
134
134
|
ASCIIDOCTOR_ISO_DIR = Pathname
|
135
|
-
.new(File.dirname(__FILE__)) / "../lib/
|
135
|
+
.new(File.dirname(__FILE__)) / "../lib/metanorma/iso"
|
136
136
|
|
137
137
|
BOILERPLATE =
|
138
138
|
HTMLEntities.new.decode(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
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-01-
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mnconvert
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -294,19 +294,11 @@ files:
|
|
294
294
|
- docs/navigation.adoc
|
295
295
|
- docs/quickstart.adoc
|
296
296
|
- lib/asciidoctor/iso/base.rb
|
297
|
-
- lib/asciidoctor/iso/basicdoc.rng
|
298
|
-
- lib/asciidoctor/iso/biblio.rng
|
299
|
-
- lib/asciidoctor/iso/boilerplate-fr.xml
|
300
|
-
- lib/asciidoctor/iso/boilerplate.xml
|
301
297
|
- lib/asciidoctor/iso/cleanup.rb
|
302
298
|
- lib/asciidoctor/iso/converter.rb
|
299
|
+
- lib/asciidoctor/iso/deprecated.rb
|
303
300
|
- lib/asciidoctor/iso/front.rb
|
304
301
|
- lib/asciidoctor/iso/front_id.rb
|
305
|
-
- lib/asciidoctor/iso/isodoc.rng
|
306
|
-
- lib/asciidoctor/iso/isostandard-amd.rng
|
307
|
-
- lib/asciidoctor/iso/isostandard.rnc
|
308
|
-
- lib/asciidoctor/iso/isostandard.rng
|
309
|
-
- lib/asciidoctor/iso/reqt.rng
|
310
302
|
- lib/asciidoctor/iso/section.rb
|
311
303
|
- lib/asciidoctor/iso/validate.rb
|
312
304
|
- lib/asciidoctor/iso/validate_image.rb
|
@@ -318,12 +310,17 @@ files:
|
|
318
310
|
- lib/isodoc/iso/html/header.html
|
319
311
|
- lib/isodoc/iso/html/html_iso_intro.html
|
320
312
|
- lib/isodoc/iso/html/html_iso_titlepage.html
|
313
|
+
- lib/isodoc/iso/html/htmlstyle.css
|
321
314
|
- lib/isodoc/iso/html/htmlstyle.scss
|
315
|
+
- lib/isodoc/iso/html/isodoc.css
|
322
316
|
- lib/isodoc/iso/html/isodoc.scss
|
317
|
+
- lib/isodoc/iso/html/style-human.css
|
323
318
|
- lib/isodoc/iso/html/style-human.scss
|
319
|
+
- lib/isodoc/iso/html/style-iso.css
|
324
320
|
- lib/isodoc/iso/html/style-iso.scss
|
325
321
|
- lib/isodoc/iso/html/word_iso_intro.html
|
326
322
|
- lib/isodoc/iso/html/word_iso_titlepage.html
|
323
|
+
- lib/isodoc/iso/html/wordstyle.css
|
327
324
|
- lib/isodoc/iso/html/wordstyle.scss
|
328
325
|
- lib/isodoc/iso/html_convert.rb
|
329
326
|
- lib/isodoc/iso/i18n-en.yaml
|
@@ -345,20 +342,30 @@ files:
|
|
345
342
|
- lib/isodoc/iso/xref.rb
|
346
343
|
- lib/metanorma-iso.rb
|
347
344
|
- lib/metanorma/iso.rb
|
345
|
+
- lib/metanorma/iso/base.rb
|
346
|
+
- lib/metanorma/iso/basicdoc.rng
|
347
|
+
- lib/metanorma/iso/biblio.rng
|
348
|
+
- lib/metanorma/iso/boilerplate-fr.xml
|
349
|
+
- lib/metanorma/iso/boilerplate.xml
|
350
|
+
- lib/metanorma/iso/cleanup.rb
|
351
|
+
- lib/metanorma/iso/converter.rb
|
352
|
+
- lib/metanorma/iso/front.rb
|
353
|
+
- lib/metanorma/iso/front_id.rb
|
354
|
+
- lib/metanorma/iso/isodoc.rng
|
355
|
+
- lib/metanorma/iso/isostandard-amd.rng
|
356
|
+
- lib/metanorma/iso/isostandard.rnc
|
357
|
+
- lib/metanorma/iso/isostandard.rng
|
348
358
|
- lib/metanorma/iso/processor.rb
|
359
|
+
- lib/metanorma/iso/reqt.rng
|
360
|
+
- lib/metanorma/iso/section.rb
|
361
|
+
- lib/metanorma/iso/validate.rb
|
362
|
+
- lib/metanorma/iso/validate_image.rb
|
363
|
+
- lib/metanorma/iso/validate_requirements.rb
|
364
|
+
- lib/metanorma/iso/validate_section.rb
|
365
|
+
- lib/metanorma/iso/validate_style.rb
|
366
|
+
- lib/metanorma/iso/validate_title.rb
|
349
367
|
- lib/metanorma/iso/version.rb
|
350
368
|
- metanorma-iso.gemspec
|
351
|
-
- spec/asciidoctor/amd_spec.rb
|
352
|
-
- spec/asciidoctor/base_spec.rb
|
353
|
-
- spec/asciidoctor/blank_spec.rb
|
354
|
-
- spec/asciidoctor/blocks_spec.rb
|
355
|
-
- spec/asciidoctor/cleanup_spec.rb
|
356
|
-
- spec/asciidoctor/inline_spec.rb
|
357
|
-
- spec/asciidoctor/lists_spec.rb
|
358
|
-
- spec/asciidoctor/refs_spec.rb
|
359
|
-
- spec/asciidoctor/section_spec.rb
|
360
|
-
- spec/asciidoctor/table_spec.rb
|
361
|
-
- spec/asciidoctor/validate_spec.rb
|
362
369
|
- spec/assets/header.html
|
363
370
|
- spec/assets/html.css
|
364
371
|
- spec/assets/htmlcover.html
|
@@ -400,7 +407,18 @@ files:
|
|
400
407
|
- spec/isodoc/table_spec.rb
|
401
408
|
- spec/isodoc/terms_spec.rb
|
402
409
|
- spec/isodoc/xref_spec.rb
|
410
|
+
- spec/metanorma/amd_spec.rb
|
411
|
+
- spec/metanorma/base_spec.rb
|
412
|
+
- spec/metanorma/blank_spec.rb
|
413
|
+
- spec/metanorma/blocks_spec.rb
|
414
|
+
- spec/metanorma/cleanup_spec.rb
|
415
|
+
- spec/metanorma/inline_spec.rb
|
416
|
+
- spec/metanorma/lists_spec.rb
|
403
417
|
- spec/metanorma/processor_spec.rb
|
418
|
+
- spec/metanorma/refs_spec.rb
|
419
|
+
- spec/metanorma/section_spec.rb
|
420
|
+
- spec/metanorma/table_spec.rb
|
421
|
+
- spec/metanorma/validate_spec.rb
|
404
422
|
- spec/spec_helper.rb
|
405
423
|
- spec/vcr_cassettes/docrels.yml
|
406
424
|
- spec/vcr_cassettes/sortrefs.yml
|
@@ -408,7 +426,7 @@ homepage: https://github.com/metanorma/metanorma-iso
|
|
408
426
|
licenses:
|
409
427
|
- BSD-2-Clause
|
410
428
|
metadata: {}
|
411
|
-
post_install_message:
|
429
|
+
post_install_message:
|
412
430
|
rdoc_options: []
|
413
431
|
require_paths:
|
414
432
|
- lib
|
@@ -423,8 +441,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
423
441
|
- !ruby/object:Gem::Version
|
424
442
|
version: '0'
|
425
443
|
requirements: []
|
426
|
-
rubygems_version: 3.
|
427
|
-
signing_key:
|
444
|
+
rubygems_version: 3.2.32
|
445
|
+
signing_key:
|
428
446
|
specification_version: 4
|
429
447
|
summary: metanorma-iso lets you write ISO standards in AsciiDoc.
|
430
448
|
test_files: []
|