metanorma-ribose 1.8.5 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -31
- data/.gitignore +5 -0
- data/bin/console +1 -1
- data/lib/isodoc/ribose/html/htmlstyle.css +22 -17
- data/lib/isodoc/ribose/html/htmlstyle.scss +8 -2
- data/lib/isodoc/ribose/html/rsd.css +1 -2
- data/lib/isodoc/ribose/html/rsd.scss +0 -1
- data/lib/isodoc/ribose/ribose.standard.xsl +2224 -1541
- data/lib/{asciidoctor → metanorma}/ribose/basicdoc.rng +5 -3
- data/lib/{asciidoctor → metanorma}/ribose/biblio.rng +7 -5
- data/lib/{asciidoctor → metanorma}/ribose/boilerplate.xml +0 -0
- data/lib/{asciidoctor → metanorma}/ribose/converter.rb +4 -4
- data/lib/{asciidoctor → metanorma}/ribose/isodoc.rng +98 -1
- data/lib/{asciidoctor → metanorma}/ribose/reqt.rng +0 -0
- data/lib/{asciidoctor → metanorma}/ribose/rsd.rng +0 -0
- data/lib/metanorma/ribose/version.rb +1 -1
- data/lib/metanorma-ribose.rb +1 -1
- data/metanorma-ribose.gemspec +1 -1
- data/metanorma.yml +1 -1
- metadata +11 -12
- data/lib/asciidoctor/ribose.rb +0 -4
@@ -173,9 +173,11 @@
|
|
173
173
|
<data type="dateTime"/>
|
174
174
|
</attribute>
|
175
175
|
</optional>
|
176
|
-
<
|
177
|
-
<
|
178
|
-
|
176
|
+
<optional>
|
177
|
+
<attribute name="from">
|
178
|
+
<data type="IDREF"/>
|
179
|
+
</attribute>
|
180
|
+
</optional>
|
179
181
|
<optional>
|
180
182
|
<attribute name="to">
|
181
183
|
<data type="IDREF"/>
|
@@ -209,9 +209,6 @@
|
|
209
209
|
<zeroOrMore>
|
210
210
|
<ref name="contact"/>
|
211
211
|
</zeroOrMore>
|
212
|
-
<zeroOrMore>
|
213
|
-
<ref name="uri"/>
|
214
|
-
</zeroOrMore>
|
215
212
|
</element>
|
216
213
|
</define>
|
217
214
|
<define name="fullname">
|
@@ -401,9 +398,9 @@
|
|
401
398
|
<choice>
|
402
399
|
<!-- iso191606 TODO -->
|
403
400
|
<group>
|
404
|
-
<
|
401
|
+
<zeroOrMore>
|
405
402
|
<ref name="street"/>
|
406
|
-
</
|
403
|
+
</zeroOrMore>
|
407
404
|
<ref name="city"/>
|
408
405
|
<optional>
|
409
406
|
<ref name="state"/>
|
@@ -828,6 +825,11 @@
|
|
828
825
|
<optional>
|
829
826
|
<attribute name="scope"/>
|
830
827
|
</optional>
|
828
|
+
<optional>
|
829
|
+
<attribute name="primary">
|
830
|
+
<data type="boolean"/>
|
831
|
+
</attribute>
|
832
|
+
</optional>
|
831
833
|
<text/>
|
832
834
|
</element>
|
833
835
|
</define>
|
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
|
-
require "
|
2
|
-
require "
|
1
|
+
require "metanorma/standoc/converter"
|
2
|
+
require "metanorma/generic/converter"
|
3
3
|
|
4
|
-
module
|
4
|
+
module Metanorma
|
5
5
|
module Ribose
|
6
6
|
# A {Converter} implementation that generates RSD output, and a document
|
7
7
|
# schema encapsulation of the document for validation
|
8
8
|
#
|
9
|
-
class Converter <
|
9
|
+
class Converter < Metanorma::Generic::Converter
|
10
10
|
XML_ROOT_TAG = "rsd-standard".freeze
|
11
11
|
XML_NAMESPACE = "https://www.metanorma.org/ns/rsd".freeze
|
12
12
|
|
@@ -32,6 +32,56 @@
|
|
32
32
|
<ref name="DocumentType"/>
|
33
33
|
</element>
|
34
34
|
</define>
|
35
|
+
<define name="index">
|
36
|
+
<element name="index">
|
37
|
+
<optional>
|
38
|
+
<attribute name="to">
|
39
|
+
<data type="IDREF"/>
|
40
|
+
</attribute>
|
41
|
+
</optional>
|
42
|
+
<element name="primary">
|
43
|
+
<oneOrMore>
|
44
|
+
<choice>
|
45
|
+
<ref name="PureTextElement"/>
|
46
|
+
<ref name="stem"/>
|
47
|
+
</choice>
|
48
|
+
</oneOrMore>
|
49
|
+
</element>
|
50
|
+
<optional>
|
51
|
+
<element name="secondary">
|
52
|
+
<oneOrMore>
|
53
|
+
<choice>
|
54
|
+
<ref name="PureTextElement"/>
|
55
|
+
<ref name="stem"/>
|
56
|
+
</choice>
|
57
|
+
</oneOrMore>
|
58
|
+
</element>
|
59
|
+
</optional>
|
60
|
+
<optional>
|
61
|
+
<element name="tertiary">
|
62
|
+
<oneOrMore>
|
63
|
+
<choice>
|
64
|
+
<ref name="PureTextElement"/>
|
65
|
+
<ref name="stem"/>
|
66
|
+
</choice>
|
67
|
+
</oneOrMore>
|
68
|
+
</element>
|
69
|
+
</optional>
|
70
|
+
</element>
|
71
|
+
</define>
|
72
|
+
<define name="bibitem">
|
73
|
+
<element name="bibitem">
|
74
|
+
<attribute name="id">
|
75
|
+
<data type="ID"/>
|
76
|
+
</attribute>
|
77
|
+
<optional>
|
78
|
+
<attribute name="hidden">
|
79
|
+
<data type="boolean"/>
|
80
|
+
</attribute>
|
81
|
+
</optional>
|
82
|
+
<ref name="BibliographicItem"/>
|
83
|
+
</element>
|
84
|
+
</define>
|
35
85
|
<define name="section-title">
|
36
86
|
<element name="title">
|
37
87
|
<zeroOrMore>
|
@@ -690,6 +740,7 @@
|
|
690
740
|
<ref name="terms"/>
|
691
741
|
<ref name="term-clause"/>
|
692
742
|
<ref name="definitions"/>
|
743
|
+
<ref name="floating-title"/>
|
693
744
|
</choice>
|
694
745
|
</oneOrMore>
|
695
746
|
</element>
|
@@ -1013,6 +1064,26 @@
|
|
1013
1064
|
</zeroOrMore>
|
1014
1065
|
</element>
|
1015
1066
|
</define>
|
1067
|
+
<define name="sub">
|
1068
|
+
<element name="sub">
|
1069
|
+
<zeroOrMore>
|
1070
|
+
<choice>
|
1071
|
+
<ref name="PureTextElement"/>
|
1072
|
+
<ref name="stem"/>
|
1073
|
+
</choice>
|
1074
|
+
</zeroOrMore>
|
1075
|
+
</element>
|
1076
|
+
</define>
|
1077
|
+
<define name="sup">
|
1078
|
+
<element name="sup">
|
1079
|
+
<zeroOrMore>
|
1080
|
+
<choice>
|
1081
|
+
<ref name="PureTextElement"/>
|
1082
|
+
<ref name="stem"/>
|
1083
|
+
</choice>
|
1084
|
+
</zeroOrMore>
|
1085
|
+
</element>
|
1086
|
+
</define>
|
1016
1087
|
<define name="pagebreak">
|
1017
1088
|
<element name="pagebreak">
|
1018
1089
|
<optional>
|
@@ -1680,6 +1751,7 @@
|
|
1680
1751
|
<ref name="clause-subsection"/>
|
1681
1752
|
<ref name="terms"/>
|
1682
1753
|
<ref name="definitions"/>
|
1754
|
+
<ref name="floating-title"/>
|
1683
1755
|
</choice>
|
1684
1756
|
</oneOrMore>
|
1685
1757
|
</choice>
|
@@ -1722,6 +1794,7 @@
|
|
1722
1794
|
<ref name="terms"/>
|
1723
1795
|
<ref name="definitions"/>
|
1724
1796
|
<ref name="references"/>
|
1797
|
+
<ref name="floating-title"/>
|
1725
1798
|
</choice>
|
1726
1799
|
</zeroOrMore>
|
1727
1800
|
</group>
|
@@ -2200,7 +2273,18 @@
|
|
2200
2273
|
<ref name="MultilingualRenderingType"/>
|
2201
2274
|
</attribute>
|
2202
2275
|
</optional>
|
2203
|
-
<
|
2276
|
+
<oneOrMore>
|
2277
|
+
<choice>
|
2278
|
+
<ref name="formula"/>
|
2279
|
+
<ref name="ul"/>
|
2280
|
+
<ref name="ol"/>
|
2281
|
+
<ref name="dl"/>
|
2282
|
+
<ref name="quote"/>
|
2283
|
+
<ref name="sourcecode"/>
|
2284
|
+
<ref name="paragraph"/>
|
2285
|
+
<ref name="figure"/>
|
2286
|
+
</choice>
|
2287
|
+
</oneOrMore>
|
2204
2288
|
</element>
|
2205
2289
|
</define>
|
2206
2290
|
<define name="termsource">
|
@@ -2534,4 +2618,17 @@
|
|
2534
2618
|
</oneOrMore>
|
2535
2619
|
</element>
|
2536
2620
|
</define>
|
2621
|
+
<define name="floating-title">
|
2622
|
+
<element name="floating-title">
|
2623
|
+
<attribute name="id">
|
2624
|
+
<data type="ID"/>
|
2625
|
+
</attribute>
|
2626
|
+
<attribute name="depth">
|
2627
|
+
<data type="int"/>
|
2628
|
+
</attribute>
|
2629
|
+
<zeroOrMore>
|
2630
|
+
<ref name="TextElement"/>
|
2631
|
+
</zeroOrMore>
|
2632
|
+
</element>
|
2633
|
+
</define>
|
2537
2634
|
</grammar>
|
File without changes
|
File without changes
|
data/lib/metanorma-ribose.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require "asciidoctor" unless defined? Asciidoctor::Converter
|
2
|
-
require_relative "
|
2
|
+
require_relative "metanorma/ribose/converter"
|
3
3
|
require_relative "isodoc/ribose/base_convert"
|
4
4
|
require_relative "isodoc/ribose/html_convert"
|
5
5
|
require_relative "isodoc/ribose/word_convert"
|
data/metanorma-ribose.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
30
30
|
|
31
|
-
spec.add_dependency "metanorma-generic", "~>
|
31
|
+
spec.add_dependency "metanorma-generic", "~> 2.0.0"
|
32
32
|
|
33
33
|
spec.add_development_dependency "debug"
|
34
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
data/metanorma.yml
CHANGED
@@ -4,7 +4,7 @@ organization_name_long: Ribose
|
|
4
4
|
document_namespace: https://www.metanorma.org/ns/rsd
|
5
5
|
xml_root_tag: 'rsd-standard'
|
6
6
|
logo_path: lib/isodoc/ribose/html/logo.png
|
7
|
-
validate_rng_file: lib/
|
7
|
+
validate_rng_file: lib/metanorma/ribose/rsd.rng
|
8
8
|
i18nyaml: lib/isodoc/ribose/i18n-en.yaml
|
9
9
|
htmlcoverpage: lib/isodoc/ribose/html/html_rsd_titlepage.html
|
10
10
|
htmlintropage: lib/isodoc/ribose/html/html_rsd_intro.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -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: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,14 +188,6 @@ files:
|
|
188
188
|
- bin/console
|
189
189
|
- bin/rspec
|
190
190
|
- bin/setup
|
191
|
-
- lib/asciidoctor/ribose.rb
|
192
|
-
- lib/asciidoctor/ribose/basicdoc.rng
|
193
|
-
- lib/asciidoctor/ribose/biblio.rng
|
194
|
-
- lib/asciidoctor/ribose/boilerplate.xml
|
195
|
-
- lib/asciidoctor/ribose/converter.rb
|
196
|
-
- lib/asciidoctor/ribose/isodoc.rng
|
197
|
-
- lib/asciidoctor/ribose/reqt.rng
|
198
|
-
- lib/asciidoctor/ribose/rsd.rng
|
199
191
|
- lib/isodoc/ribose/base_convert.rb
|
200
192
|
- lib/isodoc/ribose/html/header.html
|
201
193
|
- lib/isodoc/ribose/html/html_rsd_intro.html
|
@@ -222,7 +214,14 @@ files:
|
|
222
214
|
- lib/isodoc/ribose/xref.rb
|
223
215
|
- lib/metanorma-ribose.rb
|
224
216
|
- lib/metanorma/ribose.rb
|
217
|
+
- lib/metanorma/ribose/basicdoc.rng
|
218
|
+
- lib/metanorma/ribose/biblio.rng
|
219
|
+
- lib/metanorma/ribose/boilerplate.xml
|
220
|
+
- lib/metanorma/ribose/converter.rb
|
221
|
+
- lib/metanorma/ribose/isodoc.rng
|
225
222
|
- lib/metanorma/ribose/processor.rb
|
223
|
+
- lib/metanorma/ribose/reqt.rng
|
224
|
+
- lib/metanorma/ribose/rsd.rng
|
226
225
|
- lib/metanorma/ribose/version.rb
|
227
226
|
- metanorma-ribose.gemspec
|
228
227
|
- metanorma.yml
|
data/lib/asciidoctor/ribose.rb
DELETED