metanorma-standoc 2.2.6 → 2.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/html/htmlstyle.css +6 -0
- data/lib/metanorma/standoc/base.rb +3 -5
- data/lib/metanorma/standoc/biblio.rng +5 -0
- data/lib/metanorma/standoc/cleanup.rb +17 -17
- data/lib/metanorma/standoc/cleanup_amend.rb +2 -2
- data/lib/metanorma/standoc/cleanup_biblio.rb +5 -4
- data/lib/metanorma/standoc/cleanup_maths.rb +12 -4
- data/lib/metanorma/standoc/cleanup_section.rb +19 -9
- data/lib/metanorma/standoc/cleanup_symbols.rb +14 -7
- data/lib/metanorma/standoc/cleanup_text.rb +10 -4
- data/lib/metanorma/standoc/cleanup_toc.rb +1 -2
- data/lib/metanorma/standoc/cleanup_xref.rb +58 -16
- data/lib/metanorma/standoc/inline.rb +27 -12
- data/lib/metanorma/standoc/isodoc.rng +47 -13
- data/lib/metanorma/standoc/ref_utility.rb +1 -0
- data/lib/metanorma/standoc/render.rb +12 -3
- data/lib/metanorma/standoc/section.rb +10 -3
- data/lib/metanorma/standoc/utils.rb +6 -1
- data/lib/metanorma/standoc/validate.rb +1 -1
- data/lib/metanorma/standoc/version.rb +1 -1
- data/metanorma-standoc.gemspec +5 -2
- metadata +4 -128
- 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/a1.adoc +0 -8
- data/spec/assets/a2.adoc +0 -10
- data/spec/assets/a3.adoc +0 -9
- data/spec/assets/a3a.adoc +0 -7
- data/spec/assets/a4.adoc +0 -4
- data/spec/assets/boilerplate.xml +0 -4
- data/spec/assets/codes.yml +0 -695
- data/spec/assets/correct.png +0 -0
- data/spec/assets/corrupt.png +0 -0
- data/spec/assets/header.html +0 -7
- data/spec/assets/html-override.css +0 -1
- data/spec/assets/html.scss +0 -13
- data/spec/assets/htmlcover.html +0 -4
- data/spec/assets/htmlintro.html +0 -5
- data/spec/assets/i18n.yaml +0 -17
- data/spec/assets/iso.adoc +0 -10
- data/spec/assets/iso.headless.html +0 -33
- data/spec/assets/iso.xml +0 -8
- data/spec/assets/iso123.rxl +0 -107
- data/spec/assets/rice_image1.png +0 -0
- data/spec/assets/scripts.html +0 -3
- data/spec/assets/std.css +0 -2
- data/spec/assets/word-override.css +0 -1
- data/spec/assets/word.scss +0 -13
- data/spec/assets/wordcover.html +0 -3
- data/spec/assets/wordintro.html +0 -4
- data/spec/assets/xref_error.adoc +0 -8
- data/spec/examples/103_01_02.html +0 -247
- data/spec/examples/codes_table.html +0 -3174
- data/spec/examples/datamodel/address_class_profile.adoc +0 -5
- data/spec/examples/datamodel/address_class_profile.presentation.xml +0 -14
- data/spec/examples/datamodel/address_component_profile.adoc +0 -5
- data/spec/examples/datamodel/blank_definition_profile.adoc +0 -5
- data/spec/examples/datamodel/common_models_diagram.adoc +0 -5
- data/spec/examples/datamodel/models/models/AddressClassProfile.yml +0 -90
- data/spec/examples/datamodel/models/models/AddressComponentProfile.yml +0 -63
- data/spec/examples/datamodel/models/models/AddressComponentSpecification.yml +0 -15
- data/spec/examples/datamodel/models/models/AddressProfile.yml +0 -36
- data/spec/examples/datamodel/models/models/AttributeProfile.yml +0 -32
- data/spec/examples/datamodel/models/models/InterchangeAddressClassProfile.yml +0 -79
- data/spec/examples/datamodel/models/models/Localization copy.yml +0 -23
- data/spec/examples/datamodel/models/models/Localization.yml +0 -23
- data/spec/examples/datamodel/models/models/ProfileCompliantAddress.yml +0 -36
- data/spec/examples/datamodel/models/models/ProfileCompliantAddressComponent.yml +0 -15
- data/spec/examples/datamodel/models/models/Signature.yml +0 -20
- data/spec/examples/datamodel/models/models/SignatureBlankDefinition.yml +0 -20
- data/spec/examples/datamodel/models/models/TextDirectionCode copy.yml +0 -16
- data/spec/examples/datamodel/models/models/TextDirectionCode.yml +0 -16
- data/spec/examples/datamodel/models/models/Validity.yml +0 -14
- data/spec/examples/datamodel/models/models/iso19160-1/Address.yml +0 -22
- data/spec/examples/datamodel/models/models/iso19160-1/AddressComponent.yml +0 -2
- data/spec/examples/datamodel/models/style.uml.inc +0 -37
- data/spec/examples/datamodel/models/views/CommonModels.yml +0 -9
- data/spec/examples/datamodel/models/views/TopDown.yml +0 -62
- data/spec/examples/datamodel/top_down_diagram.adoc +0 -5
- data/spec/examples/english.yaml +0 -69
- data/spec/examples/iso_123_.xml +0 -46
- data/spec/examples/iso_123_all_parts.xml +0 -46
- data/spec/examples/iso_123_no_year_note.xml +0 -47
- data/spec/examples/iso_124_.xml +0 -42
- data/spec/examples/iso_216_.xml +0 -48
- data/spec/examples/iso_iec_12382_.xml +0 -49
- data/spec/examples/rice.adoc +0 -715
- data/spec/examples/rice.preview.html +0 -1877
- data/spec/examples/rice.sh +0 -4
- data/spec/examples/rice_images/rice_image1.png +0 -0
- data/spec/examples/rice_images/rice_image2.png +0 -0
- data/spec/examples/rice_images/rice_image3_1.png +0 -0
- data/spec/examples/rice_images/rice_image3_2.png +0 -0
- data/spec/examples/rice_images/rice_image3_3.png +0 -0
- data/spec/fixtures/action_schemaexpg1.svg +0 -122
- data/spec/fixtures/datamodel_description_sections_tree.xml +0 -327
- data/spec/fixtures/diagram_definitions.lutaml +0 -22
- data/spec/fixtures/macros_datamodel/address_class_profile.xml +0 -149
- data/spec/fixtures/macros_datamodel/address_component_profile.xml +0 -71
- data/spec/fixtures/macros_datamodel/blank_definition_profile.xml +0 -51
- data/spec/fixtures/macros_datamodel/common_models_diagram.xml +0 -7
- data/spec/fixtures/macros_datamodel/top_down_diagram.xml +0 -7
- data/spec/fixtures/test.exp +0 -121
- data/spec/fixtures/test.xmi +0 -9250
- data/spec/metanorma/base_spec.rb +0 -1125
- data/spec/metanorma/biblio_spec.rb +0 -1012
- data/spec/metanorma/blank_spec.rb +0 -37
- data/spec/metanorma/blocks_spec.rb +0 -1784
- data/spec/metanorma/cleanup_blocks_spec.rb +0 -1099
- data/spec/metanorma/cleanup_sections_spec.rb +0 -1849
- data/spec/metanorma/cleanup_spec.rb +0 -1931
- data/spec/metanorma/cleanup_terms_spec.rb +0 -1543
- data/spec/metanorma/datamodel/attributes_table_preprocessor_spec.rb +0 -111
- data/spec/metanorma/datamodel/diagram_preprocessor_spec.rb +0 -72
- data/spec/metanorma/inline_spec.rb +0 -785
- data/spec/metanorma/isobib_cache_spec.rb +0 -742
- data/spec/metanorma/lists_spec.rb +0 -232
- data/spec/metanorma/macros_concept_spec.rb +0 -1052
- data/spec/metanorma/macros_json2text_spec.rb +0 -10
- data/spec/metanorma/macros_plantuml_spec.rb +0 -402
- data/spec/metanorma/macros_spec.rb +0 -1183
- data/spec/metanorma/macros_yaml2text_spec.rb +0 -10
- data/spec/metanorma/processor_spec.rb +0 -96
- data/spec/metanorma/refs_spec.rb +0 -2807
- data/spec/metanorma/reqt_spec.rb +0 -130
- data/spec/metanorma/section_spec.rb +0 -1325
- data/spec/metanorma/table_spec.rb +0 -474
- data/spec/metanorma/validate_spec.rb +0 -886
- data/spec/spec_helper.rb +0 -290
- data/spec/support/shared_examples/structured_data_2_text_preprocessor.rb +0 -781
- data/spec/vcr_cassettes/bsi16341.yml +0 -486
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +0 -611
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +0 -149
- data/spec/vcr_cassettes/hide_refs.yml +0 -587
- data/spec/vcr_cassettes/isobib_get_123.yml +0 -149
- data/spec/vcr_cassettes/isobib_get_123_1.yml +0 -295
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +0 -385
- data/spec/vcr_cassettes/isobib_get_123_2.yml +0 -295
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +0 -149
- data/spec/vcr_cassettes/isobib_get_124.yml +0 -149
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +0 -367
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +0 -560
- data/spec/vcr_cassettes/std-link.yml +0 -149
@@ -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>
|
@@ -19,7 +19,7 @@ module Metanorma
|
|
19
19
|
datauriimage: node.attr("data-uri-image") != "false",
|
20
20
|
htmltoclevels: node.attr("htmltoclevels") || node.attr("toclevels"),
|
21
21
|
doctoclevels: node.attr("doctoclevels") || node.attr("toclevels"),
|
22
|
-
|
22
|
+
breakupurlsintables: node.attr("break-up-urls-in-tables"),
|
23
23
|
suppressasciimathdup: node.attr("suppress-asciimath-dup"),
|
24
24
|
bare: node.attr("bare"),
|
25
25
|
sectionsplit: node.attr("sectionsplit"),
|
@@ -31,6 +31,7 @@ module Metanorma
|
|
31
31
|
fonts: node.attr("fonts"),
|
32
32
|
fontlicenseagreement: node.attr("font-license-agreement"),
|
33
33
|
localizenumber: node.attr("localize-number"),
|
34
|
+
modspecidentifierbase: node.attr("modspec-identifier-base"),
|
34
35
|
}
|
35
36
|
end
|
36
37
|
|
@@ -62,7 +63,7 @@ module Metanorma
|
|
62
63
|
olstyle: node.attr("olstyle"),
|
63
64
|
htmltoclevels: node.attr("htmltoclevels") || node.attr("toclevels"),
|
64
65
|
doctoclevels: node.attr("doctoclevels") || node.attr("toclevels"),
|
65
|
-
|
66
|
+
breakupurlsintables: node.attr("break-up-urls-in-tables"),
|
66
67
|
suppressasciimathdup: node.attr("suppress-asciimath-dup"),
|
67
68
|
bare: node.attr("bare"),
|
68
69
|
baseassetpath: node.attr("base-asset-path"),
|
@@ -82,7 +83,7 @@ module Metanorma
|
|
82
83
|
end
|
83
84
|
|
84
85
|
def pdf_extract_attributes(node)
|
85
|
-
%w(pdf-encrypt pdf-encryption-length pdf-user-password
|
86
|
+
pdf_options = %w(pdf-encrypt pdf-encryption-length pdf-user-password
|
86
87
|
pdf-owner-password pdf-allow-copy-content pdf-allow-edit-content
|
87
88
|
pdf-allow-assemble-document pdf-allow-edit-annotations
|
88
89
|
pdf-allow-print pdf-allow-print-hq pdf-allow-fill-in-forms
|
@@ -91,6 +92,8 @@ module Metanorma
|
|
91
92
|
.each_with_object({}) do |x, m|
|
92
93
|
m[x.gsub(/-/, "").to_i] = node.attr(x)
|
93
94
|
end
|
95
|
+
|
96
|
+
pdf_options.merge(fonts_manifest_option(node) || {})
|
94
97
|
end
|
95
98
|
|
96
99
|
def doc_converter(node)
|
@@ -120,6 +123,12 @@ module Metanorma
|
|
120
123
|
pdf_converter(node)&.convert("#{@filename}.presentation.xml",
|
121
124
|
nil, false, "#{@filename}.pdf")
|
122
125
|
end
|
126
|
+
|
127
|
+
def fonts_manifest_option(node)
|
128
|
+
if node.attr(FONTS_MANIFEST)
|
129
|
+
{ mn2pdf: { font_manifest: node.attr(FONTS_MANIFEST) } }
|
130
|
+
end
|
131
|
+
end
|
123
132
|
end
|
124
133
|
end
|
125
134
|
end
|
@@ -52,8 +52,8 @@ module Metanorma
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
PREFACE_CLAUSE_NAMES =
|
56
|
-
|
55
|
+
PREFACE_CLAUSE_NAMES =
|
56
|
+
%w(abstract foreword introduction misc-container acknowledgements).freeze
|
57
57
|
|
58
58
|
MAIN_CLAUSE_NAMES =
|
59
59
|
["normative references", "terms and definitions", "scope",
|
@@ -62,7 +62,7 @@ module Metanorma
|
|
62
62
|
def start_main_section(ret, node)
|
63
63
|
@preface = false if self.class::MAIN_CLAUSE_NAMES.include?(ret) &&
|
64
64
|
node.role != "preface" && node.attr("style") != "preface"
|
65
|
-
@preface = false if
|
65
|
+
@preface = false if self.class::PREFACE_CLAUSE_NAMES
|
66
66
|
.intersection(@seen_headers_canonical + [ret]).empty?
|
67
67
|
end
|
68
68
|
|
@@ -106,6 +106,7 @@ module Metanorma
|
|
106
106
|
a = section_attributes(node)
|
107
107
|
noko do |xml|
|
108
108
|
case sectiontype(node)
|
109
|
+
when "misc-container" then misccontainer_parse(a, xml, node)
|
109
110
|
when "introduction" then introduction_parse(a, xml, node)
|
110
111
|
when "foreword" then foreword_parse(a, xml, node)
|
111
112
|
when "scope" then scope_parse(a, xml, node)
|
@@ -164,6 +165,12 @@ module Metanorma
|
|
164
165
|
end.join("\n")
|
165
166
|
end
|
166
167
|
|
168
|
+
def misccontainer_parse(_attrs, xml, node)
|
169
|
+
xml.send :"misc-container-clause" do |xml_section|
|
170
|
+
xml_section << node.content
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
167
174
|
def indexsect_parse(attrs, xml, node)
|
168
175
|
xml.indexsect **attr_code(attrs) do |xml_section|
|
169
176
|
xml_section.title { |name| name << node.title }
|
@@ -33,7 +33,12 @@ module Metanorma
|
|
33
33
|
Metanorma::Utils::wrap_in_para(node, out)
|
34
34
|
end
|
35
35
|
|
36
|
-
|
36
|
+
def to_xml(node)
|
37
|
+
node.to_xml(encoding: "UTF-8", indent: 2,
|
38
|
+
save_with: Nokogiri::XML::Node::SaveOptions::AS_XML)
|
39
|
+
end
|
40
|
+
|
41
|
+
SUBCLAUSE_XPATH = "//clause[not(parent::sections)]" \
|
37
42
|
"[not(ancestor::boilerplate)]".freeze
|
38
43
|
|
39
44
|
def isodoc(lang, script, locale, i18nyaml = nil)
|
@@ -124,7 +124,7 @@ module Metanorma
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def schema_validate1(file, doc, schema)
|
127
|
-
file.write(doc
|
127
|
+
file.write(to_xml(doc))
|
128
128
|
file.close
|
129
129
|
errors = Jing.new(schema, encoding: "UTF-8").validate(file.path)
|
130
130
|
warn "Syntax Valid!" if errors.none?
|
data/metanorma-standoc.gemspec
CHANGED
@@ -22,8 +22,11 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.bindir = "bin"
|
24
24
|
spec.require_paths = ["lib"]
|
25
|
-
spec.files = `git ls-files`.split("\
|
26
|
-
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features|bin|.github)/}) \
|
27
|
+
|| f.match(%r{Rakefile|bin/rspec})
|
28
|
+
end
|
29
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
27
30
|
|
28
31
|
spec.add_dependency "asciidoctor", "~> 2.0.0"
|
29
32
|
spec.add_dependency "iev", "~> 0.3.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-standoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.8
|
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: asciidoctor
|
@@ -399,9 +399,6 @@ extensions: []
|
|
399
399
|
extra_rdoc_files: []
|
400
400
|
files:
|
401
401
|
- ".gitattributes"
|
402
|
-
- ".github/workflows/automerge.yml"
|
403
|
-
- ".github/workflows/rake.yml"
|
404
|
-
- ".github/workflows/release.yml"
|
405
402
|
- ".gitignore"
|
406
403
|
- ".hound.yml"
|
407
404
|
- ".oss-guides.rubocop.yml"
|
@@ -412,8 +409,6 @@ files:
|
|
412
409
|
- LICENSE
|
413
410
|
- Makefile
|
414
411
|
- README.adoc
|
415
|
-
- Rakefile
|
416
|
-
- bin/rspec
|
417
412
|
- lib/asciidoctor/standoc/base.rb
|
418
413
|
- lib/asciidoctor/standoc/blocks.rb
|
419
414
|
- lib/asciidoctor/standoc/blocks_notes.rb
|
@@ -534,125 +529,6 @@ files:
|
|
534
529
|
- lib/metanorma/standoc/views/datamodel/model_representation.adoc.erb
|
535
530
|
- lib/metanorma/standoc/views/datamodel/plantuml_representation.adoc.erb
|
536
531
|
- metanorma-standoc.gemspec
|
537
|
-
- spec/assets/a1.adoc
|
538
|
-
- spec/assets/a2.adoc
|
539
|
-
- spec/assets/a3.adoc
|
540
|
-
- spec/assets/a3a.adoc
|
541
|
-
- spec/assets/a4.adoc
|
542
|
-
- spec/assets/boilerplate.xml
|
543
|
-
- spec/assets/codes.yml
|
544
|
-
- spec/assets/correct.png
|
545
|
-
- spec/assets/corrupt.png
|
546
|
-
- spec/assets/header.html
|
547
|
-
- spec/assets/html-override.css
|
548
|
-
- spec/assets/html.scss
|
549
|
-
- spec/assets/htmlcover.html
|
550
|
-
- spec/assets/htmlintro.html
|
551
|
-
- spec/assets/i18n.yaml
|
552
|
-
- spec/assets/iso.adoc
|
553
|
-
- spec/assets/iso.headless.html
|
554
|
-
- spec/assets/iso.xml
|
555
|
-
- spec/assets/iso123.rxl
|
556
|
-
- spec/assets/rice_image1.png
|
557
|
-
- spec/assets/scripts.html
|
558
|
-
- spec/assets/std.css
|
559
|
-
- spec/assets/word-override.css
|
560
|
-
- spec/assets/word.scss
|
561
|
-
- spec/assets/wordcover.html
|
562
|
-
- spec/assets/wordintro.html
|
563
|
-
- spec/assets/xref_error.adoc
|
564
|
-
- spec/examples/103_01_02.html
|
565
|
-
- spec/examples/codes_table.html
|
566
|
-
- spec/examples/datamodel/address_class_profile.adoc
|
567
|
-
- spec/examples/datamodel/address_class_profile.presentation.xml
|
568
|
-
- spec/examples/datamodel/address_component_profile.adoc
|
569
|
-
- spec/examples/datamodel/blank_definition_profile.adoc
|
570
|
-
- spec/examples/datamodel/common_models_diagram.adoc
|
571
|
-
- spec/examples/datamodel/models/models/AddressClassProfile.yml
|
572
|
-
- spec/examples/datamodel/models/models/AddressComponentProfile.yml
|
573
|
-
- spec/examples/datamodel/models/models/AddressComponentSpecification.yml
|
574
|
-
- spec/examples/datamodel/models/models/AddressProfile.yml
|
575
|
-
- spec/examples/datamodel/models/models/AttributeProfile.yml
|
576
|
-
- spec/examples/datamodel/models/models/InterchangeAddressClassProfile.yml
|
577
|
-
- spec/examples/datamodel/models/models/Localization copy.yml
|
578
|
-
- spec/examples/datamodel/models/models/Localization.yml
|
579
|
-
- spec/examples/datamodel/models/models/ProfileCompliantAddress.yml
|
580
|
-
- spec/examples/datamodel/models/models/ProfileCompliantAddressComponent.yml
|
581
|
-
- spec/examples/datamodel/models/models/Signature.yml
|
582
|
-
- spec/examples/datamodel/models/models/SignatureBlankDefinition.yml
|
583
|
-
- spec/examples/datamodel/models/models/TextDirectionCode copy.yml
|
584
|
-
- spec/examples/datamodel/models/models/TextDirectionCode.yml
|
585
|
-
- spec/examples/datamodel/models/models/Validity.yml
|
586
|
-
- spec/examples/datamodel/models/models/iso19160-1/Address.yml
|
587
|
-
- spec/examples/datamodel/models/models/iso19160-1/AddressComponent.yml
|
588
|
-
- spec/examples/datamodel/models/style.uml.inc
|
589
|
-
- spec/examples/datamodel/models/views/CommonModels.yml
|
590
|
-
- spec/examples/datamodel/models/views/TopDown.yml
|
591
|
-
- spec/examples/datamodel/top_down_diagram.adoc
|
592
|
-
- spec/examples/english.yaml
|
593
|
-
- spec/examples/iso_123_.xml
|
594
|
-
- spec/examples/iso_123_all_parts.xml
|
595
|
-
- spec/examples/iso_123_no_year_note.xml
|
596
|
-
- spec/examples/iso_124_.xml
|
597
|
-
- spec/examples/iso_216_.xml
|
598
|
-
- spec/examples/iso_iec_12382_.xml
|
599
|
-
- spec/examples/rice.adoc
|
600
|
-
- spec/examples/rice.preview.html
|
601
|
-
- spec/examples/rice.sh
|
602
|
-
- spec/examples/rice_images/rice_image1.png
|
603
|
-
- spec/examples/rice_images/rice_image2.png
|
604
|
-
- spec/examples/rice_images/rice_image3_1.png
|
605
|
-
- spec/examples/rice_images/rice_image3_2.png
|
606
|
-
- spec/examples/rice_images/rice_image3_3.png
|
607
|
-
- spec/fixtures/action_schemaexpg1.svg
|
608
|
-
- spec/fixtures/datamodel_description_sections_tree.xml
|
609
|
-
- spec/fixtures/diagram_definitions.lutaml
|
610
|
-
- spec/fixtures/macros_datamodel/address_class_profile.xml
|
611
|
-
- spec/fixtures/macros_datamodel/address_component_profile.xml
|
612
|
-
- spec/fixtures/macros_datamodel/blank_definition_profile.xml
|
613
|
-
- spec/fixtures/macros_datamodel/common_models_diagram.xml
|
614
|
-
- spec/fixtures/macros_datamodel/top_down_diagram.xml
|
615
|
-
- spec/fixtures/test.exp
|
616
|
-
- spec/fixtures/test.xmi
|
617
|
-
- spec/metanorma/base_spec.rb
|
618
|
-
- spec/metanorma/biblio_spec.rb
|
619
|
-
- spec/metanorma/blank_spec.rb
|
620
|
-
- spec/metanorma/blocks_spec.rb
|
621
|
-
- spec/metanorma/cleanup_blocks_spec.rb
|
622
|
-
- spec/metanorma/cleanup_sections_spec.rb
|
623
|
-
- spec/metanorma/cleanup_spec.rb
|
624
|
-
- spec/metanorma/cleanup_terms_spec.rb
|
625
|
-
- spec/metanorma/datamodel/attributes_table_preprocessor_spec.rb
|
626
|
-
- spec/metanorma/datamodel/diagram_preprocessor_spec.rb
|
627
|
-
- spec/metanorma/inline_spec.rb
|
628
|
-
- spec/metanorma/isobib_cache_spec.rb
|
629
|
-
- spec/metanorma/lists_spec.rb
|
630
|
-
- spec/metanorma/macros_concept_spec.rb
|
631
|
-
- spec/metanorma/macros_json2text_spec.rb
|
632
|
-
- spec/metanorma/macros_plantuml_spec.rb
|
633
|
-
- spec/metanorma/macros_spec.rb
|
634
|
-
- spec/metanorma/macros_yaml2text_spec.rb
|
635
|
-
- spec/metanorma/processor_spec.rb
|
636
|
-
- spec/metanorma/refs_spec.rb
|
637
|
-
- spec/metanorma/reqt_spec.rb
|
638
|
-
- spec/metanorma/section_spec.rb
|
639
|
-
- spec/metanorma/table_spec.rb
|
640
|
-
- spec/metanorma/validate_spec.rb
|
641
|
-
- spec/spec_helper.rb
|
642
|
-
- spec/support/shared_examples/structured_data_2_text_preprocessor.rb
|
643
|
-
- spec/vcr_cassettes/bsi16341.yml
|
644
|
-
- spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml
|
645
|
-
- spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml
|
646
|
-
- spec/vcr_cassettes/hide_refs.yml
|
647
|
-
- spec/vcr_cassettes/isobib_get_123.yml
|
648
|
-
- spec/vcr_cassettes/isobib_get_123_1.yml
|
649
|
-
- spec/vcr_cassettes/isobib_get_123_1_fr.yml
|
650
|
-
- spec/vcr_cassettes/isobib_get_123_2.yml
|
651
|
-
- spec/vcr_cassettes/isobib_get_123_2001.yml
|
652
|
-
- spec/vcr_cassettes/isobib_get_124.yml
|
653
|
-
- spec/vcr_cassettes/rfcbib_get_rfc8341.yml
|
654
|
-
- spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml
|
655
|
-
- spec/vcr_cassettes/std-link.yml
|
656
532
|
homepage: https://github.com/metanorma/metanorma-standoc
|
657
533
|
licenses:
|
658
534
|
- BSD-2-Clause
|
@@ -665,14 +541,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
665
541
|
requirements:
|
666
542
|
- - ">="
|
667
543
|
- !ruby/object:Gem::Version
|
668
|
-
version: 2.
|
544
|
+
version: 2.7.0
|
669
545
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
670
546
|
requirements:
|
671
547
|
- - ">="
|
672
548
|
- !ruby/object:Gem::Version
|
673
549
|
version: '0'
|
674
550
|
requirements: []
|
675
|
-
rubygems_version: 3.
|
551
|
+
rubygems_version: 3.3.7
|
676
552
|
signing_key:
|
677
553
|
specification_version: 4
|
678
554
|
summary: metanorma-standoc realises standards following the Metanorma standoc model
|
@@ -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
|
-
rake:
|
13
|
-
uses: metanorma/ci/.github/workflows/plantuml-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/a1.adoc
DELETED
data/spec/assets/a2.adoc
DELETED
data/spec/assets/a3.adoc
DELETED
data/spec/assets/a3a.adoc
DELETED
data/spec/assets/a4.adoc
DELETED
data/spec/assets/boilerplate.xml
DELETED