metanorma-iec 2.1.11 → 2.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/html/htmlstyle.css +6 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +460 -152
- data/lib/isodoc/iec/presentation_xml_convert.rb +8 -6
- data/lib/isodoc/iec/word_convert.rb +9 -35
- data/lib/metanorma/iec/biblio.rng +5 -0
- data/lib/metanorma/iec/iec_intro_en.xml +11 -12
- data/lib/metanorma/iec/iec_intro_fr.xml +11 -11
- data/lib/metanorma/iec/isodoc.rng +47 -13
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +5 -2
- metadata +4 -36
- data/.github/workflows/automerge.yml +0 -31
- data/.github/workflows/rake.yml +0 -15
- data/.github/workflows/release.yml +0 -24
- data/Rakefile +0 -8
- data/bin/rspec +0 -18
- data/spec/assets/header.html +0 -7
- data/spec/assets/html.css +0 -2
- data/spec/assets/iso.xml +0 -71
- data/spec/assets/rice_image1.png +0 -0
- data/spec/assets/word.css +0 -2
- data/spec/assets/wordintro.html +0 -4
- data/spec/assets/xref_error.adoc +0 -7
- data/spec/isodoc/blocks_spec.rb +0 -200
- data/spec/isodoc/i18n_spec.rb +0 -607
- data/spec/isodoc/iev_spec.rb +0 -888
- data/spec/isodoc/inline_spec.rb +0 -256
- data/spec/isodoc/iso_spec.rb +0 -211
- data/spec/isodoc/metadata_spec.rb +0 -251
- data/spec/isodoc/postproc_spec.rb +0 -303
- data/spec/isodoc/ref_spec.rb +0 -335
- data/spec/isodoc/section_spec.rb +0 -566
- data/spec/isodoc/terms_spec.rb +0 -192
- data/spec/metanorma/base_spec.rb +0 -1041
- data/spec/metanorma/blocks_spec.rb +0 -470
- data/spec/metanorma/cleanup_spec.rb +0 -372
- data/spec/metanorma/iev_spec.rb +0 -254
- data/spec/metanorma/inline_spec.rb +0 -145
- data/spec/metanorma/lists_spec.rb +0 -194
- data/spec/metanorma/processor_spec.rb +0 -171
- data/spec/metanorma/section_spec.rb +0 -348
- data/spec/metanorma/validate_spec.rb +0 -56
- data/spec/spec_helper.rb +0 -305
@@ -13,10 +13,12 @@ module IsoDoc
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def clause(docxml)
|
16
|
-
docxml.xpath(ns("//clause[not(ancestor::annex)] | "\
|
17
|
-
"//definitions | //references | "\
|
16
|
+
docxml.xpath(ns("//clause[not(ancestor::annex)] | " \
|
17
|
+
"//definitions | //references | " \
|
18
18
|
"//preface/introduction[clause]"))
|
19
19
|
.each do |f|
|
20
|
+
f.parent.name == "annex" &&
|
21
|
+
@xrefs.klass.single_term_clause?(f.parent) and next
|
20
22
|
clause1(f)
|
21
23
|
end
|
22
24
|
docxml.xpath(ns("//terms")).each do |f|
|
@@ -63,7 +65,7 @@ module IsoDoc
|
|
63
65
|
labels = @xrefs.get_anchors.each_with_object({}) do |(k, v), m|
|
64
66
|
m[v[:label]] = k
|
65
67
|
end
|
66
|
-
docpart = docxml&.at(ns("//bibdata/ext/structuredidentifier/"\
|
68
|
+
docpart = docxml&.at(ns("//bibdata/ext/structuredidentifier/" \
|
67
69
|
"project-number/@part"))&.text or return
|
68
70
|
docxml.xpath(ns("//termref[@base = 'IEV']")).each do |t|
|
69
71
|
concept_iev1(t, docpart, labels)
|
@@ -155,8 +157,8 @@ module IsoDoc
|
|
155
157
|
return if pr.empty?
|
156
158
|
|
157
159
|
prefs = pr.map do |p|
|
158
|
-
"<dt>#{p[:lang]}</dt>"\
|
159
|
-
"<dd language='#{p[:lang]}' script='#{p[:script]}'>"\
|
160
|
+
"<dt>#{p[:lang]}</dt>" \
|
161
|
+
"<dd language='#{p[:lang]}' script='#{p[:script]}'>" \
|
160
162
|
"#{cleanup_entities(p[:designation])}</dd>"
|
161
163
|
end
|
162
164
|
term << "<dl type='other-lang'>#{prefs.join}</dl>"
|
@@ -180,7 +182,7 @@ module IsoDoc
|
|
180
182
|
p = node.at(ns("./preferred"))
|
181
183
|
ref = node.at(ns("./xref | ./eref | ./termref"))
|
182
184
|
label = @i18n.relatedterms[node["type"]].upcase
|
183
|
-
node.replace(l10n("<p>#{label}: "\
|
185
|
+
node.replace(l10n("<p>#{label}: " \
|
184
186
|
"#{p.children.to_xml} (#{ref.to_xml})</p>"))
|
185
187
|
@i18n = @i18n_lg["default"]
|
186
188
|
end
|
@@ -42,50 +42,24 @@ module IsoDoc
|
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
-
def
|
45
|
+
def make_table_word_toc(docxml)
|
46
|
+
docxml.at(table_toc_xpath) or return ""
|
46
47
|
toc = ""
|
47
|
-
|
48
|
-
if docxml.at("//p[@class = 'TableTitle']")
|
49
|
-
toc += make_TableWordToC(docxml)
|
50
|
-
end
|
51
|
-
if docxml.at("//p[@class = 'FigureTitle']")
|
52
|
-
toc += make_FigureWordToC(docxml)
|
53
|
-
end
|
54
|
-
intro.sub(/WORDTOC/, toc)
|
55
|
-
end
|
56
|
-
|
57
|
-
WORD_TOC_TABLE_PREFACE1 = <<~TOC.freeze
|
58
|
-
<span lang="EN-GB"><span
|
59
|
-
style='mso-element:field-begin'></span><span
|
60
|
-
style='mso-spacerun:yes'> </span>TOC
|
61
|
-
\\h \\z \\t "TableTitle,tabletitle" <span
|
62
|
-
style='mso-element:field-separator'></span></span>
|
63
|
-
TOC
|
64
|
-
|
65
|
-
WORD_TOC_FIGURE_PREFACE1 = <<~TOC.freeze
|
66
|
-
<span lang="EN-GB"><span
|
67
|
-
style='mso-element:field-begin'></span><span
|
68
|
-
style='mso-spacerun:yes'> </span>TOC
|
69
|
-
\\h \\z \\t "FigureTitle,figuretitle" <span
|
70
|
-
style='mso-element:field-separator'></span></span>
|
71
|
-
TOC
|
72
|
-
|
73
|
-
def make_TableWordToC(docxml)
|
74
|
-
toc = ""
|
75
|
-
docxml.xpath("//p[@class = 'TableTitle']").each do |h|
|
48
|
+
docxml.xpath(table_toc_xpath).each do |h|
|
76
49
|
toc += word_toc_entry(1, header_strip(h))
|
77
50
|
end
|
78
51
|
toc.sub(/(<p class="MsoToc1">)/,
|
79
|
-
%{\\1#{
|
52
|
+
%{\\1#{word_toc_table_preface1}}) + WORD_TOC_SUFFIX1
|
80
53
|
end
|
81
54
|
|
82
|
-
def
|
55
|
+
def make_figure_word_toc(docxml)
|
56
|
+
docxml.at(figure_toc_xpath) or return ""
|
83
57
|
toc = ""
|
84
|
-
docxml.xpath(
|
58
|
+
docxml.xpath(figure_toc_xpath).each do |h|
|
85
59
|
toc += word_toc_entry(1, header_strip(h))
|
86
60
|
end
|
87
61
|
toc.sub(/(<p class="MsoToc1">)/,
|
88
|
-
%{\\1#{
|
62
|
+
%{\\1#{word_toc_figure_preface1}}) + WORD_TOC_SUFFIX1
|
89
63
|
end
|
90
64
|
|
91
65
|
def word_toc_preface(level)
|
@@ -185,7 +159,7 @@ module IsoDoc
|
|
185
159
|
end
|
186
160
|
|
187
161
|
def authority_cleanup(docxml)
|
188
|
-
auth = docxml.at("//div[@id = 'boilerplate-feedback' or "\
|
162
|
+
auth = docxml.at("//div[@id = 'boilerplate-feedback' or " \
|
189
163
|
"@class = 'boilerplate-feedback']")
|
190
164
|
auth&.remove
|
191
165
|
super
|
@@ -188,6 +188,11 @@
|
|
188
188
|
<value>adapter</value>
|
189
189
|
<value>translator</value>
|
190
190
|
<value>distributor</value>
|
191
|
+
<value>realizer</value>
|
192
|
+
<value>owner</value>
|
193
|
+
<value>authorizer</value>
|
194
|
+
<value>enabler</value>
|
195
|
+
<value>subject</value>
|
191
196
|
</choice>
|
192
197
|
</attribute>
|
193
198
|
<zeroOrMore>
|
@@ -9,24 +9,23 @@
|
|
9
9
|
for any other purpose without permission in writing from IEC.
|
10
10
|
{% else %}
|
11
11
|
<p id="boilerplate-year">
|
12
|
-
© {{
|
12
|
+
Copyright © {{ docyear }} {{ agency }}, Geneva, Switzerland
|
13
13
|
</p>
|
14
14
|
<p id="boilerplate-message">
|
15
|
-
All rights
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
at the address below or IEC's member body in the country of the requester.
|
15
|
+
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
|
16
|
+
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
|
17
|
+
either IEC or IEC's member National Committee in the country of the requester. If you have any questions about
|
18
|
+
{{ agency }} copyright or have an enquiry about obtaining additional rights to this publication, please contact the address
|
19
|
+
below or your local IEC member National Committee for further information.
|
21
20
|
</p>
|
22
21
|
<p id="boilerplate-name">IEC Central Office</p>
|
23
22
|
<p id="boilerplate-address" align="left">
|
24
23
|
3, rue de Varembé<br/>
|
25
|
-
CH-1211 Geneva 20
|
26
|
-
|
27
|
-
|
28
|
-
info@iec.ch
|
29
|
-
www.iec.ch
|
24
|
+
CH-1211 Geneva 20<br/>
|
25
|
+
Switzerland<br/>
|
26
|
+
Tel.: +41 22 919 02 11<br/>
|
27
|
+
<link target="mailto:info@iec.ch">info@iec.ch</link><br/>
|
28
|
+
<link target="https://www.iec.ch">www.iec.ch</link>
|
30
29
|
{% endif %}
|
31
30
|
</p>
|
32
31
|
</clause>
|
@@ -9,26 +9,26 @@
|
|
9
9
|
for any other purpose without permission in writing from IEC.
|
10
10
|
{% else %}
|
11
11
|
<p id="boilerplate-year">
|
12
|
-
© {{
|
12
|
+
Copyright © {{ docyear }} {{ agency }}, Geneva, Switzerland
|
13
13
|
</p>
|
14
14
|
|
15
15
|
<p id="boilerplate-message">
|
16
|
-
Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
|
17
|
+
ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
|
18
|
+
et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
|
19
|
+
questions sur le copyright de l'{{ agency }} ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
|
20
|
+
les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence.
|
21
21
|
</p>
|
22
22
|
|
23
23
|
<p id="boilerplate-name">IEC Central Office</p>
|
24
24
|
|
25
25
|
<p id="boilerplate-address" align="left">
|
26
26
|
3, rue de Varembé<br/>
|
27
|
-
CH-1211 Geneva 20
|
28
|
-
|
29
|
-
|
30
|
-
info@iec.ch
|
31
|
-
www.iec.ch
|
27
|
+
CH-1211 Geneva 20<br/>
|
28
|
+
Switzerland<br/>
|
29
|
+
Tel.: +41 22 919 02 11<br/>
|
30
|
+
<link target="mailto:info@iec.ch">info@iec.ch</link><br/>
|
31
|
+
<link target="https://www.iec.ch">www.iec.ch</link>
|
32
32
|
</p>
|
33
33
|
{% endif %}
|
34
34
|
</clause>
|
@@ -177,11 +177,7 @@
|
|
177
177
|
</optional>
|
178
178
|
<optional>
|
179
179
|
<attribute name="style">
|
180
|
-
<
|
181
|
-
<value>basic</value>
|
182
|
-
<value>full</value>
|
183
|
-
<value>short</value>
|
184
|
-
</choice>
|
180
|
+
<ref name="XrefStyleType"/>
|
185
181
|
</attribute>
|
186
182
|
</optional>
|
187
183
|
<ref name="XrefBody"/>
|
@@ -1031,6 +1027,7 @@
|
|
1031
1027
|
<ref name="stem"/>
|
1032
1028
|
<ref name="index"/>
|
1033
1029
|
<ref name="eref"/>
|
1030
|
+
<ref name="erefstack"/>
|
1034
1031
|
<ref name="xref"/>
|
1035
1032
|
<ref name="hyperlink"/>
|
1036
1033
|
</choice>
|
@@ -1045,6 +1042,7 @@
|
|
1045
1042
|
<ref name="stem"/>
|
1046
1043
|
<ref name="index"/>
|
1047
1044
|
<ref name="eref"/>
|
1045
|
+
<ref name="erefstack"/>
|
1048
1046
|
<ref name="xref"/>
|
1049
1047
|
<ref name="hyperlink"/>
|
1050
1048
|
</choice>
|
@@ -1058,6 +1056,7 @@
|
|
1058
1056
|
<ref name="PureTextElement"/>
|
1059
1057
|
<ref name="index"/>
|
1060
1058
|
<ref name="eref"/>
|
1059
|
+
<ref name="erefstack"/>
|
1061
1060
|
<ref name="xref"/>
|
1062
1061
|
<ref name="hyperlink"/>
|
1063
1062
|
</choice>
|
@@ -1153,7 +1152,7 @@
|
|
1153
1152
|
<data type="boolean"/>
|
1154
1153
|
</attribute>
|
1155
1154
|
</optional>
|
1156
|
-
<ref name="
|
1155
|
+
<ref name="ReducedBibliographicItem"/>
|
1157
1156
|
</element>
|
1158
1157
|
</define>
|
1159
1158
|
<define name="image" combine="choice">
|
@@ -1195,6 +1194,7 @@
|
|
1195
1194
|
<ref name="add"/>
|
1196
1195
|
<ref name="del"/>
|
1197
1196
|
<ref name="span"/>
|
1197
|
+
<ref name="erefstack"/>
|
1198
1198
|
</choice>
|
1199
1199
|
</define>
|
1200
1200
|
<define name="add">
|
@@ -1202,6 +1202,7 @@
|
|
1202
1202
|
<choice>
|
1203
1203
|
<ref name="PureTextElement"/>
|
1204
1204
|
<ref name="eref"/>
|
1205
|
+
<ref name="erefstack"/>
|
1205
1206
|
<ref name="stem"/>
|
1206
1207
|
<ref name="keyword"/>
|
1207
1208
|
<ref name="xref"/>
|
@@ -1214,6 +1215,7 @@
|
|
1214
1215
|
<choice>
|
1215
1216
|
<ref name="PureTextElement"/>
|
1216
1217
|
<ref name="eref"/>
|
1218
|
+
<ref name="erefstack"/>
|
1217
1219
|
<ref name="stem"/>
|
1218
1220
|
<ref name="keyword"/>
|
1219
1221
|
<ref name="xref"/>
|
@@ -1278,6 +1280,7 @@
|
|
1278
1280
|
</optional>
|
1279
1281
|
<choice>
|
1280
1282
|
<ref name="eref"/>
|
1283
|
+
<ref name="erefstack"/>
|
1281
1284
|
<ref name="xref"/>
|
1282
1285
|
<ref name="termref"/>
|
1283
1286
|
</choice>
|
@@ -1970,6 +1973,7 @@
|
|
1970
1973
|
</element>
|
1971
1974
|
<choice>
|
1972
1975
|
<ref name="eref"/>
|
1976
|
+
<ref name="erefstack"/>
|
1973
1977
|
<ref name="xref"/>
|
1974
1978
|
<ref name="termref"/>
|
1975
1979
|
</choice>
|
@@ -2525,6 +2529,7 @@
|
|
2525
2529
|
<ref name="xref"/>
|
2526
2530
|
<ref name="hyperlink"/>
|
2527
2531
|
<ref name="eref"/>
|
2532
|
+
<ref name="erefstack"/>
|
2528
2533
|
</choice>
|
2529
2534
|
<oneOrMore>
|
2530
2535
|
<element name="coords">
|
@@ -2572,6 +2577,7 @@
|
|
2572
2577
|
<ref name="xref"/>
|
2573
2578
|
<ref name="hyperlink"/>
|
2574
2579
|
<ref name="eref"/>
|
2580
|
+
<ref name="erefstack"/>
|
2575
2581
|
</choice>
|
2576
2582
|
</element>
|
2577
2583
|
</zeroOrMore>
|
@@ -2620,6 +2626,15 @@
|
|
2620
2626
|
<ref name="PureTextElement"/>
|
2621
2627
|
</oneOrMore>
|
2622
2628
|
</define>
|
2629
|
+
<define name="XrefConnectiveType">
|
2630
|
+
<choice>
|
2631
|
+
<value>and</value>
|
2632
|
+
<value>or</value>
|
2633
|
+
<value>from</value>
|
2634
|
+
<value>to</value>
|
2635
|
+
<value/>
|
2636
|
+
</choice>
|
2637
|
+
</define>
|
2623
2638
|
<define name="XrefTarget">
|
2624
2639
|
<element name="location">
|
2625
2640
|
<attribute name="target">
|
@@ -2628,16 +2643,35 @@
|
|
2628
2643
|
</data>
|
2629
2644
|
</attribute>
|
2630
2645
|
<attribute name="connective">
|
2631
|
-
<
|
2632
|
-
<value>and</value>
|
2633
|
-
<value>or</value>
|
2634
|
-
<value>from</value>
|
2635
|
-
<value>to</value>
|
2636
|
-
<value/>
|
2637
|
-
</choice>
|
2646
|
+
<ref name="XrefConnectiveType"/>
|
2638
2647
|
</attribute>
|
2639
2648
|
</element>
|
2640
2649
|
</define>
|
2650
|
+
<define name="XrefStyleType">
|
2651
|
+
<choice>
|
2652
|
+
<value>basic</value>
|
2653
|
+
<value>full</value>
|
2654
|
+
<value>short</value>
|
2655
|
+
<value>id</value>
|
2656
|
+
</choice>
|
2657
|
+
</define>
|
2658
|
+
<define name="erefTypeWithConnective">
|
2659
|
+
<optional>
|
2660
|
+
<attribute name="connective">
|
2661
|
+
<ref name="XrefConnectiveType"/>
|
2662
|
+
</attribute>
|
2663
|
+
</optional>
|
2664
|
+
<ref name="erefType"/>
|
2665
|
+
</define>
|
2666
|
+
<define name="erefstack">
|
2667
|
+
<element name="erefstack">
|
2668
|
+
<oneOrMore>
|
2669
|
+
<element name="eref">
|
2670
|
+
<ref name="erefTypeWithConnective"/>
|
2671
|
+
</element>
|
2672
|
+
</oneOrMore>
|
2673
|
+
</element>
|
2674
|
+
</define>
|
2641
2675
|
<start>
|
2642
2676
|
<ref name="standard-document"/>
|
2643
2677
|
</start>
|
data/metanorma-iec.gemspec
CHANGED
@@ -23,9 +23,12 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.bindir = "bin"
|
25
25
|
spec.require_paths = ["lib"]
|
26
|
-
spec.files = `git ls-files`.split("\
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features|bin|.github)/}) \
|
28
|
+
|| f.match(%r{Rakefile|bin/rspec})
|
29
|
+
end
|
27
30
|
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
28
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
31
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
29
32
|
|
30
33
|
spec.add_dependency "metanorma-iso", "~> 2.2.0"
|
31
34
|
spec.add_dependency "ruby-jing"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|
@@ -202,9 +202,6 @@ executables: []
|
|
202
202
|
extensions: []
|
203
203
|
extra_rdoc_files: []
|
204
204
|
files:
|
205
|
-
- ".github/workflows/automerge.yml"
|
206
|
-
- ".github/workflows/rake.yml"
|
207
|
-
- ".github/workflows/release.yml"
|
208
205
|
- ".gitignore"
|
209
206
|
- ".hound.yml"
|
210
207
|
- ".rubocop.yml"
|
@@ -212,8 +209,6 @@ files:
|
|
212
209
|
- Gemfile
|
213
210
|
- LICENSE
|
214
211
|
- README.adoc
|
215
|
-
- Rakefile
|
216
|
-
- bin/rspec
|
217
212
|
- lib/isodoc/iec/base_convert.rb
|
218
213
|
- lib/isodoc/iec/html/header.html
|
219
214
|
- lib/isodoc/iec/html/html_iec_intro.html
|
@@ -256,33 +251,6 @@ files:
|
|
256
251
|
- lib/metanorma/iec/reqt.rng
|
257
252
|
- lib/metanorma/iec/version.rb
|
258
253
|
- metanorma-iec.gemspec
|
259
|
-
- spec/assets/header.html
|
260
|
-
- spec/assets/html.css
|
261
|
-
- spec/assets/iso.xml
|
262
|
-
- spec/assets/rice_image1.png
|
263
|
-
- spec/assets/word.css
|
264
|
-
- spec/assets/wordintro.html
|
265
|
-
- spec/assets/xref_error.adoc
|
266
|
-
- spec/isodoc/blocks_spec.rb
|
267
|
-
- spec/isodoc/i18n_spec.rb
|
268
|
-
- spec/isodoc/iev_spec.rb
|
269
|
-
- spec/isodoc/inline_spec.rb
|
270
|
-
- spec/isodoc/iso_spec.rb
|
271
|
-
- spec/isodoc/metadata_spec.rb
|
272
|
-
- spec/isodoc/postproc_spec.rb
|
273
|
-
- spec/isodoc/ref_spec.rb
|
274
|
-
- spec/isodoc/section_spec.rb
|
275
|
-
- spec/isodoc/terms_spec.rb
|
276
|
-
- spec/metanorma/base_spec.rb
|
277
|
-
- spec/metanorma/blocks_spec.rb
|
278
|
-
- spec/metanorma/cleanup_spec.rb
|
279
|
-
- spec/metanorma/iev_spec.rb
|
280
|
-
- spec/metanorma/inline_spec.rb
|
281
|
-
- spec/metanorma/lists_spec.rb
|
282
|
-
- spec/metanorma/processor_spec.rb
|
283
|
-
- spec/metanorma/section_spec.rb
|
284
|
-
- spec/metanorma/validate_spec.rb
|
285
|
-
- spec/spec_helper.rb
|
286
254
|
homepage: https://github.com/metanorma/metanorma-iec
|
287
255
|
licenses:
|
288
256
|
- BSD-2-Clause
|
@@ -295,14 +263,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
295
263
|
requirements:
|
296
264
|
- - ">="
|
297
265
|
- !ruby/object:Gem::Version
|
298
|
-
version: 2.
|
266
|
+
version: 2.7.0
|
299
267
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
268
|
requirements:
|
301
269
|
- - ">="
|
302
270
|
- !ruby/object:Gem::Version
|
303
271
|
version: '0'
|
304
272
|
requirements: []
|
305
|
-
rubygems_version: 3.
|
273
|
+
rubygems_version: 3.3.7
|
306
274
|
signing_key:
|
307
275
|
specification_version: 4
|
308
276
|
summary: metanorma-iec lets you write IEC standards in AsciiDoc.
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
# source: https://github.com/marketplace/actions/merge-pull-requests#usage
|
4
|
-
name: automerge
|
5
|
-
on:
|
6
|
-
pull_request:
|
7
|
-
types:
|
8
|
-
- labeled
|
9
|
-
- unlabeled
|
10
|
-
- synchronize
|
11
|
-
- opened
|
12
|
-
- edited
|
13
|
-
- ready_for_review
|
14
|
-
- reopened
|
15
|
-
- unlocked
|
16
|
-
pull_request_review:
|
17
|
-
types:
|
18
|
-
- submitted
|
19
|
-
check_suite:
|
20
|
-
types:
|
21
|
-
- completed
|
22
|
-
status: {}
|
23
|
-
jobs:
|
24
|
-
automerge:
|
25
|
-
runs-on: ubuntu-latest
|
26
|
-
steps:
|
27
|
-
- id: automerge
|
28
|
-
name: automerge
|
29
|
-
uses: "pascalgn/automerge-action@v0.15.3"
|
30
|
-
env:
|
31
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
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
|
-
notify:
|
13
|
-
uses: metanorma/ci/.github/workflows/mn-processor-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/ci/.github/workflows/rubygems-release.yml@main
|
19
|
-
with:
|
20
|
-
next_version: ${{ github.event.inputs.next_version }}
|
21
|
-
secrets:
|
22
|
-
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
23
|
-
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
24
|
-
|
data/Rakefile
DELETED
data/bin/rspec
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# This file was generated by Bundler.
|
4
|
-
#
|
5
|
-
# The application 'rspec' is installed as part of a gem, and
|
6
|
-
# this file is here to facilitate running it.
|
7
|
-
#
|
8
|
-
|
9
|
-
require "pathname"
|
10
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
|
11
|
-
"../../Gemfile", Pathname.new(__FILE__).realpath
|
12
|
-
)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("rspec-core", "rspec")
|
18
|
-
|
data/spec/assets/header.html
DELETED
data/spec/assets/html.css
DELETED
data/spec/assets/iso.xml
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
<iec-standard xmlns="https://www.metanorma.org/ns/iec">
|
2
|
-
<bibdata type="standard">
|
3
|
-
<title type="title-intro" language="en" format="text/plain">Cereals and pulses</title>
|
4
|
-
<title type="title-main" language="en" format="text/plain">Specifications and test methods</title>
|
5
|
-
<title type="main" language="en" format="text/plain">Specifications and test methods</title>
|
6
|
-
<title type="title-part" language="en" format="text/plain">Rice</title>
|
7
|
-
<title type="title-intro" language="fr" format="text/plain">Céréales et légumineuses</title>
|
8
|
-
<title type="title-main" language="fr" format="text/plain">Spécification et méthodes d'essai</title>
|
9
|
-
<title type="title-part" language="fr" format="text/plain">Riz</title>
|
10
|
-
<docidentifier type="iso">ISO/PreCD3 17301-1</docidentifier>
|
11
|
-
<docidentifier type="iso-tc">17301</docidentifier>
|
12
|
-
<docnumber>1730</docnumber>
|
13
|
-
<date type="published"><on>2011</on></date>
|
14
|
-
<date type="accessed"><on>2012</on></date>
|
15
|
-
<date type="created"><from>2010</from><to>2011</to></date>
|
16
|
-
<date type="activated"><on>2013</on></date>
|
17
|
-
<date type="obsoleted"><on>2014</on></date>
|
18
|
-
<edition>2</edition>
|
19
|
-
<version>
|
20
|
-
<revision-date>2016-05-01</revision-date>
|
21
|
-
<draft>0.4</draft>
|
22
|
-
</version>
|
23
|
-
<contributor>
|
24
|
-
<role type="author"/>
|
25
|
-
<organization>
|
26
|
-
<name>International Organization for Standardization</name>
|
27
|
-
<abbreviation>ISO</abbreviation>
|
28
|
-
</organization>
|
29
|
-
</contributor>
|
30
|
-
<contributor>
|
31
|
-
<role type="publisher"/>
|
32
|
-
<organization>
|
33
|
-
<name>International Organization for Standardization</name>
|
34
|
-
<abbreviation>ISO</abbreviation>
|
35
|
-
</organization>
|
36
|
-
</contributor>
|
37
|
-
<language>en</language>
|
38
|
-
<script>Latn</script>
|
39
|
-
<status>
|
40
|
-
<stage abbreviation="CD">35</stage>
|
41
|
-
<substage abbreviation="3CD">20</substage>
|
42
|
-
<iteration>3</iteration>
|
43
|
-
</status>
|
44
|
-
<copyright>
|
45
|
-
<from>2016</from>
|
46
|
-
<owner>
|
47
|
-
<organization>
|
48
|
-
<abbreviation>ISO</abbreviation>
|
49
|
-
</organization>
|
50
|
-
</owner>
|
51
|
-
</copyright>
|
52
|
-
<ext>
|
53
|
-
<doctype>international-standard</doctype>
|
54
|
-
<editorialgroup>
|
55
|
-
<technical-committee number="34">Food products</technical-committee>
|
56
|
-
<subcommittee number="4">Cereals and pulses</subcommittee>
|
57
|
-
<workgroup number="3">Rice Group</workgroup>
|
58
|
-
<secretariat>GB</secretariat>
|
59
|
-
</editorialgroup>
|
60
|
-
<structuredidentifier>
|
61
|
-
<project-number part="1">ISO/PreCD3 17301</project-number>
|
62
|
-
</structuredidentifier>
|
63
|
-
</ext>
|
64
|
-
</bibdata>
|
65
|
-
<foreword>
|
66
|
-
<note>
|
67
|
-
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
68
|
-
</note>
|
69
|
-
</foreword>
|
70
|
-
</iec-standard>
|
71
|
-
|
data/spec/assets/rice_image1.png
DELETED
Binary file
|
data/spec/assets/word.css
DELETED