metanorma-iho 0.4.4 → 0.5.2
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 +11 -0
- data/bin/console +1 -1
- data/lib/isodoc/iho/base_convert.rb +11 -9
- data/lib/isodoc/iho/html/htmlstyle.css +44 -28
- data/lib/isodoc/iho/html/htmlstyle.scss +21 -13
- data/lib/isodoc/iho/html/wordstyle.css +30 -18
- data/lib/isodoc/iho/html/wordstyle.scss +30 -18
- data/lib/isodoc/iho/iho.specification.xsl +1613 -1296
- data/lib/isodoc/iho/iho.standard.xsl +1613 -1296
- data/lib/{asciidoctor → metanorma}/iho/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iho/biblio.rng +2 -2
- data/lib/{asciidoctor → metanorma}/iho/boilerplate.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iho/converter.rb +4 -4
- data/lib/{asciidoctor → metanorma}/iho/iho.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iho/isodoc.rng +104 -3
- data/lib/{asciidoctor → metanorma}/iho/reqt.rng +0 -0
- data/lib/metanorma/iho/version.rb +1 -1
- data/lib/metanorma-iho.rb +1 -1
- data/metanorma-iho.gemspec +1 -1
- data/metanorma.yml +1 -1
- metadata +11 -12
- data/lib/asciidoctor/iho.rb +0 -4
File without changes
|
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 IHO
|
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 = "iho-standard".freeze
|
11
11
|
XML_NAMESPACE = "https://www.metanorma.org/ns/iho".freeze
|
12
12
|
|
File without changes
|
@@ -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>
|
@@ -1973,7 +2046,11 @@
|
|
1973
2046
|
</optional>
|
1974
2047
|
<element name="name">
|
1975
2048
|
<zeroOrMore>
|
1976
|
-
<
|
2049
|
+
<choice>
|
2050
|
+
<ref name="PureTextElement"/>
|
2051
|
+
<ref name="stem"/>
|
2052
|
+
<ref name="index"/>
|
2053
|
+
</choice>
|
1977
2054
|
</zeroOrMore>
|
1978
2055
|
</element>
|
1979
2056
|
<optional>
|
@@ -1987,7 +2064,7 @@
|
|
1987
2064
|
</element>
|
1988
2065
|
</optional>
|
1989
2066
|
<optional>
|
1990
|
-
<element name="grammar
|
2067
|
+
<element name="grammar">
|
1991
2068
|
<ref name="Grammar"/>
|
1992
2069
|
</element>
|
1993
2070
|
</optional>
|
@@ -2196,7 +2273,18 @@
|
|
2196
2273
|
<ref name="MultilingualRenderingType"/>
|
2197
2274
|
</attribute>
|
2198
2275
|
</optional>
|
2199
|
-
<
|
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>
|
2200
2288
|
</element>
|
2201
2289
|
</define>
|
2202
2290
|
<define name="termsource">
|
@@ -2530,4 +2618,17 @@
|
|
2530
2618
|
</oneOrMore>
|
2531
2619
|
</element>
|
2532
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>
|
2533
2634
|
</grammar>
|
File without changes
|
data/lib/metanorma-iho.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require "asciidoctor" unless defined? Asciidoctor::Converter
|
2
|
-
require_relative "
|
2
|
+
require_relative "metanorma/iho/converter"
|
3
3
|
require_relative "isodoc/iho/base_convert"
|
4
4
|
require_relative "isodoc/iho/html_convert"
|
5
5
|
require_relative "isodoc/iho/word_convert"
|
data/metanorma-iho.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
28
28
|
|
29
29
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
30
|
-
spec.add_dependency "metanorma-generic", "~>
|
30
|
+
spec.add_dependency "metanorma-generic", "~> 2.0.0"
|
31
31
|
|
32
32
|
spec.add_development_dependency "debug"
|
33
33
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
data/metanorma.yml
CHANGED
@@ -8,7 +8,7 @@ logo_paths:
|
|
8
8
|
- lib/isodoc/iho/html/image001.png
|
9
9
|
- lib/isodoc/iho/html/image002.png
|
10
10
|
- lib/isodoc/iho/html/image003.png
|
11
|
-
validate_rng_file: lib/
|
11
|
+
validate_rng_file: lib/metanorma/iho/iho.rng
|
12
12
|
i18nyaml: lib/isodoc/iho/i18n-en.yaml
|
13
13
|
htmlcoverpage: lib/isodoc/iho/html/html_iho_titlepage.html
|
14
14
|
htmlintropage: lib/isodoc/iho/html/html_iho_intro.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.2
|
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-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.0
|
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:
|
40
|
+
version: 2.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: debug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,14 +200,6 @@ files:
|
|
200
200
|
- bin/console
|
201
201
|
- bin/rspec
|
202
202
|
- bin/setup
|
203
|
-
- lib/asciidoctor/iho.rb
|
204
|
-
- lib/asciidoctor/iho/basicdoc.rng
|
205
|
-
- lib/asciidoctor/iho/biblio.rng
|
206
|
-
- lib/asciidoctor/iho/boilerplate.xml
|
207
|
-
- lib/asciidoctor/iho/converter.rb
|
208
|
-
- lib/asciidoctor/iho/iho.rng
|
209
|
-
- lib/asciidoctor/iho/isodoc.rng
|
210
|
-
- lib/asciidoctor/iho/reqt.rng
|
211
203
|
- lib/isodoc/iho/base_convert.rb
|
212
204
|
- lib/isodoc/iho/html/header.html
|
213
205
|
- lib/isodoc/iho/html/html_iho_intro.html
|
@@ -238,7 +230,14 @@ files:
|
|
238
230
|
- lib/isodoc/iho/xref.rb
|
239
231
|
- lib/metanorma-iho.rb
|
240
232
|
- lib/metanorma/iho.rb
|
233
|
+
- lib/metanorma/iho/basicdoc.rng
|
234
|
+
- lib/metanorma/iho/biblio.rng
|
235
|
+
- lib/metanorma/iho/boilerplate.xml
|
236
|
+
- lib/metanorma/iho/converter.rb
|
237
|
+
- lib/metanorma/iho/iho.rng
|
238
|
+
- lib/metanorma/iho/isodoc.rng
|
241
239
|
- lib/metanorma/iho/processor.rb
|
240
|
+
- lib/metanorma/iho/reqt.rng
|
242
241
|
- lib/metanorma/iho/version.rb
|
243
242
|
- metanorma-iho.gemspec
|
244
243
|
- metanorma.yml
|
data/lib/asciidoctor/iho.rb
DELETED