metanorma-iho 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iho/html/htmlstyle.css +1048 -0
- data/lib/isodoc/iho/html/iho.css +815 -0
- data/lib/isodoc/iho/html/wordstyle.css +1295 -0
- data/lib/isodoc/iho/iho.specification.xsl +12 -0
- data/lib/isodoc/iho/iho.standard.xsl +12 -0
- data/lib/isodoc/iho/init.rb +5 -4
- data/lib/metanorma/iho/biblio.rng +32 -1
- data/lib/metanorma/iho/version.rb +1 -1
- data/lib/relaton/render/config.yml +1 -2
- data/lib/relaton/render/fields.rb +1 -1
- data/lib/relaton/render/parse.rb +0 -13
- data/metanorma-iho.gemspec +1 -1
- metadata +7 -4
@@ -6556,6 +6556,18 @@
|
|
6556
6556
|
</xsl:copy>
|
6557
6557
|
</xsl:template>
|
6558
6558
|
|
6559
|
+
<xsl:template match="*[local-name() = 'sub']" mode="contents_item">
|
6560
|
+
<xsl:copy>
|
6561
|
+
<xsl:apply-templates mode="contents_item"/>
|
6562
|
+
</xsl:copy>
|
6563
|
+
</xsl:template>
|
6564
|
+
|
6565
|
+
<xsl:template match="*[local-name() = 'sup']" mode="contents_item">
|
6566
|
+
<xsl:copy>
|
6567
|
+
<xsl:apply-templates mode="contents_item"/>
|
6568
|
+
</xsl:copy>
|
6569
|
+
</xsl:template>
|
6570
|
+
|
6559
6571
|
<xsl:template match="*[local-name() = 'stem']" mode="contents_item">
|
6560
6572
|
<xsl:copy-of select="."/>
|
6561
6573
|
</xsl:template>
|
@@ -6556,6 +6556,18 @@
|
|
6556
6556
|
</xsl:copy>
|
6557
6557
|
</xsl:template>
|
6558
6558
|
|
6559
|
+
<xsl:template match="*[local-name() = 'sub']" mode="contents_item">
|
6560
|
+
<xsl:copy>
|
6561
|
+
<xsl:apply-templates mode="contents_item"/>
|
6562
|
+
</xsl:copy>
|
6563
|
+
</xsl:template>
|
6564
|
+
|
6565
|
+
<xsl:template match="*[local-name() = 'sup']" mode="contents_item">
|
6566
|
+
<xsl:copy>
|
6567
|
+
<xsl:apply-templates mode="contents_item"/>
|
6568
|
+
</xsl:copy>
|
6569
|
+
</xsl:template>
|
6570
|
+
|
6559
6571
|
<xsl:template match="*[local-name() = 'stem']" mode="contents_item">
|
6560
6572
|
<xsl:copy-of select="."/>
|
6561
6573
|
</xsl:template>
|
data/lib/isodoc/iho/init.rb
CHANGED
@@ -5,8 +5,8 @@ require_relative "xref"
|
|
5
5
|
module IsoDoc
|
6
6
|
module IHO
|
7
7
|
module Init
|
8
|
-
def metadata_init(lang, script, labels)
|
9
|
-
@meta = Metadata.new(lang, script, labels)
|
8
|
+
def metadata_init(lang, script, locale, labels)
|
9
|
+
@meta = Metadata.new(lang, script, locale, labels)
|
10
10
|
end
|
11
11
|
|
12
12
|
def xref_init(lang, script, _klass, labels, options)
|
@@ -14,9 +14,10 @@ module IsoDoc
|
|
14
14
|
@xrefs = Xref.new(lang, script, html, labels, options)
|
15
15
|
end
|
16
16
|
|
17
|
-
def i18n_init(lang, script, i18nyaml = nil)
|
17
|
+
def i18n_init(lang, script, locale, i18nyaml = nil)
|
18
18
|
@i18n = I18n.new(
|
19
|
-
lang, script,
|
19
|
+
lang, script, locale: locale,
|
20
|
+
i18nyaml: i18nyaml ||
|
20
21
|
Metanorma::IHO.configuration.i18nyaml || @i18nyaml
|
21
22
|
)
|
22
23
|
end
|
@@ -73,8 +73,14 @@
|
|
73
73
|
<text/>
|
74
74
|
</element>
|
75
75
|
</define>
|
76
|
-
<define name="
|
76
|
+
<define name="locale">
|
77
77
|
<a:documentation>ISO-639</a:documentation>
|
78
|
+
<element name="locale">
|
79
|
+
<text/>
|
80
|
+
</element>
|
81
|
+
</define>
|
82
|
+
<define name="script">
|
83
|
+
<a:documentation>ISO-3166</a:documentation>
|
78
84
|
<element name="script">
|
79
85
|
<text/>
|
80
86
|
</element>
|
@@ -93,6 +99,9 @@
|
|
93
99
|
<!-- multiple languages and scripts possible: comma delimit them if so -->
|
94
100
|
<attribute name="language"/>
|
95
101
|
</optional>
|
102
|
+
<optional>
|
103
|
+
<attribute name="locale"/>
|
104
|
+
</optional>
|
96
105
|
<optional>
|
97
106
|
<attribute name="script"/>
|
98
107
|
</optional>
|
@@ -136,6 +145,9 @@
|
|
136
145
|
<!-- multiple languages and scripts possible: comma delimit them if so -->
|
137
146
|
<attribute name="language"/>
|
138
147
|
</optional>
|
148
|
+
<optional>
|
149
|
+
<attribute name="locale"/>
|
150
|
+
</optional>
|
139
151
|
<optional>
|
140
152
|
<attribute name="script"/>
|
141
153
|
</optional>
|
@@ -650,6 +662,9 @@
|
|
650
662
|
<zeroOrMore>
|
651
663
|
<ref name="language"/>
|
652
664
|
</zeroOrMore>
|
665
|
+
<zeroOrMore>
|
666
|
+
<ref name="locale"/>
|
667
|
+
</zeroOrMore>
|
653
668
|
<zeroOrMore>
|
654
669
|
<ref name="script"/>
|
655
670
|
</zeroOrMore>
|
@@ -741,6 +756,9 @@
|
|
741
756
|
<zeroOrMore>
|
742
757
|
<ref name="language"/>
|
743
758
|
</zeroOrMore>
|
759
|
+
<zeroOrMore>
|
760
|
+
<ref name="locale"/>
|
761
|
+
</zeroOrMore>
|
744
762
|
<zeroOrMore>
|
745
763
|
<ref name="script"/>
|
746
764
|
</zeroOrMore>
|
@@ -854,6 +872,15 @@
|
|
854
872
|
<optional>
|
855
873
|
<attribute name="type"/>
|
856
874
|
</optional>
|
875
|
+
<optional>
|
876
|
+
<attribute name="language"/>
|
877
|
+
</optional>
|
878
|
+
<optional>
|
879
|
+
<attribute name="locale"/>
|
880
|
+
</optional>
|
881
|
+
<optional>
|
882
|
+
<attribute name="script"/>
|
883
|
+
</optional>
|
857
884
|
<data type="anyURI"/>
|
858
885
|
</define>
|
859
886
|
<define name="DateType">
|
@@ -882,6 +909,7 @@
|
|
882
909
|
<value>vote-started</value>
|
883
910
|
<value>vote-ended</value>
|
884
911
|
<value>announced</value>
|
912
|
+
<value>stable-until</value>
|
885
913
|
</choice>
|
886
914
|
</define>
|
887
915
|
<define name="bdate">
|
@@ -930,6 +958,9 @@
|
|
930
958
|
<optional>
|
931
959
|
<attribute name="language"/>
|
932
960
|
</optional>
|
961
|
+
<optional>
|
962
|
+
<attribute name="locale"/>
|
963
|
+
</optional>
|
933
964
|
<optional>
|
934
965
|
<attribute name="script"/>
|
935
966
|
</optional>
|
@@ -1,6 +1,5 @@
|
|
1
1
|
template:
|
2
|
-
|
3
|
-
standard: "{{ standardidentifier | first }} edition_{{ edition }} : {{ title }}, {{ creatornames }} ,_{{role}} ({{ uri }}) ."
|
2
|
+
standard: "{{ authoritative_identifier | first }} edition_{{ edition }} : {{ title }}, {{ creatornames }}, {{role}}, {{ publisher }} ({{ uri }}) ."
|
4
3
|
misc: standard
|
5
4
|
nametemplate:
|
6
5
|
one: "{% if nonpersonal[0] %}{{ nonpersonal[0] }}{% else %}{{surname[0] }} {{initials[0]}}{% endif %}"
|
data/lib/relaton/render/parse.rb
CHANGED
@@ -2,19 +2,6 @@ module Relaton
|
|
2
2
|
module Render
|
3
3
|
module IHO
|
4
4
|
class Parse < ::Relaton::Render::Parse
|
5
|
-
def standardidentifier(doc)
|
6
|
-
out = doc.docidentifier.each_with_object([]) do |id, ret|
|
7
|
-
ret << id.id unless standardidentifier_exclude1.include? id.type
|
8
|
-
end
|
9
|
-
return out unless out.empty?
|
10
|
-
|
11
|
-
super
|
12
|
-
end
|
13
|
-
|
14
|
-
def standardidentifier_exclude1
|
15
|
-
%w(metanorma metanorma-ordinal DOI ISSN ISBN rfc-anchor)
|
16
|
-
end
|
17
|
-
|
18
5
|
def uri(doc)
|
19
6
|
uri = nil
|
20
7
|
%w(src).each do |t|
|
data/metanorma-iho.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
28
28
|
|
29
|
-
spec.add_dependency "metanorma-generic", "~> 2.2.
|
29
|
+
spec.add_dependency "metanorma-generic", "~> 2.2.2"
|
30
30
|
|
31
31
|
spec.add_development_dependency "debug"
|
32
32
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
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.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-26 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: 2.2.
|
19
|
+
version: 2.2.2
|
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: 2.2.
|
26
|
+
version: 2.2.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,7 +191,9 @@ files:
|
|
191
191
|
- lib/isodoc/iho/html/header.html
|
192
192
|
- lib/isodoc/iho/html/html_iho_intro.html
|
193
193
|
- lib/isodoc/iho/html/html_iho_titlepage.html
|
194
|
+
- lib/isodoc/iho/html/htmlstyle.css
|
194
195
|
- lib/isodoc/iho/html/htmlstyle.scss
|
196
|
+
- lib/isodoc/iho/html/iho.css
|
195
197
|
- lib/isodoc/iho/html/iho.scss
|
196
198
|
- lib/isodoc/iho/html/image001.png
|
197
199
|
- lib/isodoc/iho/html/image002.png
|
@@ -201,6 +203,7 @@ files:
|
|
201
203
|
- lib/isodoc/iho/html/scripts.html
|
202
204
|
- lib/isodoc/iho/html/word_iho_intro.html
|
203
205
|
- lib/isodoc/iho/html/word_iho_titlepage.html
|
206
|
+
- lib/isodoc/iho/html/wordstyle.css
|
204
207
|
- lib/isodoc/iho/html/wordstyle.scss
|
205
208
|
- lib/isodoc/iho/html_convert.rb
|
206
209
|
- lib/isodoc/iho/i18n-en.yaml
|