metanorma-ogc 2.5.7 → 2.5.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/ogc/html/htmlstyle.css +44 -0
- data/lib/isodoc/ogc/i18n-en.yaml +1 -0
- data/lib/isodoc/ogc/presentation_xml_convert.rb +7 -0
- data/lib/isodoc/ogc/xref.rb +41 -3
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ef5866d7b49fc11574257b7a48ce843441996b2a7b76dea6db8dd1b1fe351b2
|
4
|
+
data.tar.gz: 764832074d256805c933ab69bc65d7a2fca9c362d221abc9f82d537c7b6b259e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71373f3e5f38707756dfa51bf10ead71a8f5344af730dd7978f361e4f2cc895152cb98aa5400365c74e59805838d1b6a0e8cb71aac388ba9107ebf2b303f84d7
|
7
|
+
data.tar.gz: cca19498cb273834993a4b4d82b576b24a3e95a096a4c7a56a6ee08c27979e12f2ee6761f2a0f168d4c38e23db95589b5678183a9ef97f8c79812a3f67fa86e0
|
@@ -169,6 +169,50 @@ table.rouge-line-table pre {
|
|
169
169
|
overflow-x: visible;
|
170
170
|
font-size: 100%; }
|
171
171
|
|
172
|
+
a.header {
|
173
|
+
color: inherit;
|
174
|
+
text-decoration: none; }
|
175
|
+
|
176
|
+
a.header:hover {
|
177
|
+
color: #a53221; }
|
178
|
+
|
179
|
+
a.header:visited {
|
180
|
+
color: inherit;
|
181
|
+
text-decoration: none; }
|
182
|
+
|
183
|
+
a.anchor {
|
184
|
+
position: absolute;
|
185
|
+
z-index: 1001;
|
186
|
+
width: 1.5ex;
|
187
|
+
margin-left: -1.5ex;
|
188
|
+
display: block;
|
189
|
+
text-decoration: none !important;
|
190
|
+
visibility: hidden;
|
191
|
+
text-align: center;
|
192
|
+
font-weight: 400; }
|
193
|
+
|
194
|
+
a.anchor::before {
|
195
|
+
content: "\00A7";
|
196
|
+
font-size: .85em;
|
197
|
+
display: block;
|
198
|
+
padding-top: .1em; }
|
199
|
+
|
200
|
+
h1 > a.anchor:hover,
|
201
|
+
h2 > a.anchor:hover,
|
202
|
+
h3 > a.anchor:hover,
|
203
|
+
h4 > a.anchor:hover,
|
204
|
+
h5 > a.anchor:hover,
|
205
|
+
h6 > a.anchor:hover,
|
206
|
+
.inline-header > a.anchor:hover,
|
207
|
+
h1:hover > a.anchor,
|
208
|
+
h2:hover > a.anchor,
|
209
|
+
h3:hover > a.anchor,
|
210
|
+
h4:hover > a.anchor,
|
211
|
+
h5:hover > a.anchor,
|
212
|
+
h6:hover > a.anchor,
|
213
|
+
.inline-header:hover > a.anchor {
|
214
|
+
visibility: visible; }
|
215
|
+
|
172
216
|
#standard-band {
|
173
217
|
background-color: #3D9970; }
|
174
218
|
|
data/lib/isodoc/ogc/i18n-en.yaml
CHANGED
@@ -186,6 +186,13 @@ module IsoDoc
|
|
186
186
|
elem << " <span class='AdmittedLabel'>#{@i18n.admitted}</span>"
|
187
187
|
end
|
188
188
|
|
189
|
+
def source_label(elem)
|
190
|
+
labelled_ancestor(elem) and return
|
191
|
+
lbl = @xrefs.anchor(elem["id"], :label, false) or return
|
192
|
+
prefix_name(elem, block_delim,
|
193
|
+
l10n("#{lower2cap @i18n.sourcecode} #{lbl}"), "name")
|
194
|
+
end
|
195
|
+
|
189
196
|
include Init
|
190
197
|
end
|
191
198
|
end
|
data/lib/isodoc/ogc/xref.rb
CHANGED
@@ -19,8 +19,6 @@ module IsoDoc
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
# ["//preface/abstract", "//preface/clause[@type = 'executivesummary']", "//preface/clause[@type = 'keywords']", "//foreword", "//preface/clause[@type = 'security']", "//preface/clause[@type = 'submitting_orgs']", "//submitters", "//introduction"]
|
23
|
-
|
24
22
|
def middle_section_asset_names(doc)
|
25
23
|
middle_sections =
|
26
24
|
"//clause[@type = 'scope' or @type = 'conformance'] | //foreword | " \
|
@@ -80,7 +78,8 @@ module IsoDoc
|
|
80
78
|
@anchors[ref["id"]] = { xref: "#{@anchors[ref['id']][:xref]} (draft)" }
|
81
79
|
end
|
82
80
|
|
83
|
-
def sequential_permission_body(id, block, label, klass, model,
|
81
|
+
def sequential_permission_body(id, block, label, klass, model,
|
82
|
+
container: false)
|
84
83
|
@anchors[block["id"]] = model.postprocess_anchor_struct(
|
85
84
|
block, anchor_struct(id, container ? block : nil,
|
86
85
|
label, klass, block["unnumbered"])
|
@@ -90,6 +89,45 @@ module IsoDoc
|
|
90
89
|
n[:klass], false)
|
91
90
|
end
|
92
91
|
end
|
92
|
+
|
93
|
+
FIGURE_NO_CLASS = ".//figure[not(@class)]".freeze
|
94
|
+
|
95
|
+
LISTING = <<~XPATH.freeze
|
96
|
+
.//figure[@class = 'pseudocode'] | .//sourcecode[not(ancestor::example)]
|
97
|
+
XPATH
|
98
|
+
|
99
|
+
def sequential_asset_names(clause, container: false)
|
100
|
+
super
|
101
|
+
sequential_sourcecode_names(clause, container: container)
|
102
|
+
end
|
103
|
+
|
104
|
+
def sequential_sourcecode_names(clause, container: false)
|
105
|
+
c = Counter.new
|
106
|
+
clause.xpath(ns(LISTING)).noblank.each do |t|
|
107
|
+
c.increment(t)
|
108
|
+
@anchors[t["id"]] = anchor_struct(
|
109
|
+
c.print, container ? t : nil,
|
110
|
+
@labels["sourcecode"], "sourcecode",
|
111
|
+
t["unnumbered"]
|
112
|
+
)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
def hierarchical_asset_names(clause, num)
|
117
|
+
super
|
118
|
+
hierarchical_sourcecode_names(clause, num)
|
119
|
+
end
|
120
|
+
|
121
|
+
def hierarchical_sourcecode_names(clause, num)
|
122
|
+
c = Counter.new
|
123
|
+
clause.xpath(ns(LISTING)).noblank.each do |t|
|
124
|
+
c.increment(t)
|
125
|
+
label = "#{num}#{hiersep}#{c.print}"
|
126
|
+
@anchors[t["id"]] =
|
127
|
+
anchor_struct(label, nil, @labels["sourcecode"],
|
128
|
+
"sourcecode", t["unnumbered"])
|
129
|
+
end
|
130
|
+
end
|
93
131
|
end
|
94
132
|
end
|
95
133
|
end
|
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.5.
|
4
|
+
version: 2.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
317
|
- !ruby/object:Gem::Version
|
318
318
|
version: '0'
|
319
319
|
requirements: []
|
320
|
-
rubygems_version: 3.3.
|
320
|
+
rubygems_version: 3.3.27
|
321
321
|
signing_key:
|
322
322
|
specification_version: 4
|
323
323
|
summary: Metanorma for the Open Geospatial Consortium.
|