metanorma-ogc 2.7.1 → 2.7.2
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/ogc/ogc.abstract-specification-topic.xsl +468 -223
- data/lib/isodoc/ogc/ogc.best-practice.xsl +468 -223
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +468 -223
- data/lib/isodoc/ogc/ogc.community-practice.xsl +468 -223
- data/lib/isodoc/ogc/ogc.community-standard.xsl +468 -223
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +468 -223
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +468 -223
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +468 -223
- data/lib/isodoc/ogc/ogc.other.xsl +468 -223
- data/lib/isodoc/ogc/ogc.policy.xsl +468 -223
- data/lib/isodoc/ogc/ogc.reference-model.xsl +468 -223
- data/lib/isodoc/ogc/ogc.release-notes.xsl +468 -223
- data/lib/isodoc/ogc/ogc.standard.xsl +468 -223
- data/lib/isodoc/ogc/ogc.test-suite.xsl +468 -223
- data/lib/isodoc/ogc/ogc.user-guide.xsl +468 -223
- data/lib/isodoc/ogc/ogc.white-paper.xsl +465 -221
- data/lib/isodoc/ogc/presentation_sections.rb +0 -8
- data/lib/isodoc/ogc/presentation_xml_convert.rb +0 -24
- data/lib/isodoc/ogc/xref.rb +0 -12
- data/lib/metanorma/ogc/isodoc.rng +9 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -91,14 +91,6 @@ module IsoDoc
|
|
91
91
|
"<br/>"
|
92
92
|
end
|
93
93
|
|
94
|
-
# KILL
|
95
|
-
def annex1x(elem)
|
96
|
-
lbl = @xrefs.anchor(elem["id"], :label)
|
97
|
-
t = elem.at(ns("./title")) and
|
98
|
-
t.children = "<strong>#{to_xml(t.children)}</strong>"
|
99
|
-
prefix_name(elem, { caption: "<br/>" }, lbl, "title")
|
100
|
-
end
|
101
|
-
|
102
94
|
def clause(docxml)
|
103
95
|
super
|
104
96
|
docxml.xpath(ns("//submitters")).each { |f| clause1(f) }
|
@@ -20,13 +20,6 @@ module IsoDoc
|
|
20
20
|
File.read(File.join(@libdir, "html", "rouge.css"))
|
21
21
|
end
|
22
22
|
|
23
|
-
# KILL
|
24
|
-
def example1x(elem)
|
25
|
-
lbl = @xrefs.anchor(elem["id"], :label, false)
|
26
|
-
prefix_name(elem, block_delim, l10n("#{@i18n.example} #{lbl}"),
|
27
|
-
"name")
|
28
|
-
end
|
29
|
-
|
30
23
|
def bibdata(docxml)
|
31
24
|
docxml.xpath(ns("//bibdata/contributor[@type = 'author']")).each do |a|
|
32
25
|
a.at(ns("./description"))&.text == "contributor" and
|
@@ -145,15 +138,6 @@ module IsoDoc
|
|
145
138
|
%i(arabic alphabet roman alphabet_upper roman_upper)[(idx - 1) % 5]
|
146
139
|
end
|
147
140
|
|
148
|
-
# KILL
|
149
|
-
def termsource1xx(elem)
|
150
|
-
while elem&.next_element&.name == "termsource"
|
151
|
-
elem << "; #{to_xml(elem.next_element.remove.children)}"
|
152
|
-
end
|
153
|
-
elem.children = l10n("[<strong>#{@i18n.source}:</strong> " \
|
154
|
-
"#{to_xml(elem.children).strip}]")
|
155
|
-
end
|
156
|
-
|
157
141
|
def termsource_label(elem, sources)
|
158
142
|
elem.replace(l10n("[<strong>#{@i18n.source}:</strong> " \
|
159
143
|
"#{sources}]"))
|
@@ -167,14 +151,6 @@ module IsoDoc
|
|
167
151
|
|
168
152
|
def bibrender_formattedref(formattedref, xml); end
|
169
153
|
|
170
|
-
# KILL
|
171
|
-
def bibrender_relaton(xml, renderings)
|
172
|
-
f = renderings[xml["id"]][:formattedref]
|
173
|
-
f &&= "<formattedref>#{f}</formattedref>"
|
174
|
-
keep = "./docidentifier | ./uri | ./note | ./status | ./biblio-tag"
|
175
|
-
xml.children = "#{f}#{xml.xpath(ns(keep)).to_xml}"
|
176
|
-
end
|
177
|
-
|
178
154
|
def norm_ref_entry_code(_ordinal, _idents, _ids, _standard, _datefn, _bib)
|
179
155
|
""
|
180
156
|
end
|
data/lib/isodoc/ogc/xref.rb
CHANGED
@@ -92,18 +92,6 @@ module IsoDoc
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
# KILL
|
96
|
-
def sequential_permission_bodyx(id, block, label, klass, model, container: false)
|
97
|
-
@anchors[block["id"]] = model.postprocess_anchor_struct(
|
98
|
-
block, anchor_struct(id, container ? block : nil,
|
99
|
-
label, klass, block["unnumbered"])
|
100
|
-
)
|
101
|
-
model.permission_parts(block, id, label, klass).each do |n|
|
102
|
-
@anchors[n[:id]] = anchor_struct(n[:number], n[:elem], n[:label],
|
103
|
-
n[:klass], { unnumb: false, container: container })
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
95
|
FIGURE_NO_CLASS = ".//figure[not(@class)]".freeze
|
108
96
|
|
109
97
|
LISTING = <<~XPATH.freeze
|
@@ -33,6 +33,15 @@
|
|
33
33
|
</zeroOrMore>
|
34
34
|
</element>
|
35
35
|
</define>
|
36
|
+
<define name="fn" combine="interleave">
|
37
|
+
<optional>
|
38
|
+
<attribute name="hiddenref">
|
39
|
+
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
40
|
+
This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
|
41
|
+
<data type="boolean"/>
|
42
|
+
</attribute>
|
43
|
+
</optional>
|
44
|
+
</define>
|
36
45
|
<define name="index-primary">
|
37
46
|
<element name="primary">
|
38
47
|
<oneOrMore>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.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: 2025-03-
|
11
|
+
date: 2025-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|