metanorma-ogc 1.2.6 → 1.2.11
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 +29 -8
- data/README.adoc +3 -4
- data/lib/asciidoctor/ogc/basicdoc.rng +50 -3
- data/lib/asciidoctor/ogc/boilerplate.xml +1 -1
- data/lib/asciidoctor/ogc/converter.rb +0 -1
- data/lib/asciidoctor/ogc/isodoc.rng +61 -3
- data/lib/isodoc/ogc/base_convert.rb +2 -3
- data/lib/isodoc/ogc/biblio.rb +1 -0
- data/lib/isodoc/ogc/html/htmlstyle.css +206 -206
- data/lib/isodoc/ogc/html/htmlstyle.scss +4 -4
- data/lib/isodoc/ogc/html/ogc.css +21 -21
- data/lib/isodoc/ogc/html/ogc.scss +21 -21
- data/lib/isodoc/ogc/html/ogc_wp.css +35 -35
- data/lib/isodoc/ogc/html/ogc_wp.scss +35 -35
- data/lib/isodoc/ogc/html/wordstyle.css +19 -19
- data/lib/isodoc/ogc/html/wordstyle.scss +19 -19
- data/lib/isodoc/ogc/html/wordstyle_wp.css +23 -23
- data/lib/isodoc/ogc/html/wordstyle_wp.scss +23 -23
- data/lib/isodoc/ogc/html_convert.rb +4 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +293 -69
- data/lib/isodoc/ogc/ogc.best-practice.xsl +293 -69
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +293 -69
- data/lib/isodoc/ogc/ogc.community-practice.xsl +293 -69
- data/lib/isodoc/ogc/ogc.community-standard.xsl +293 -69
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +293 -69
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +293 -69
- data/lib/isodoc/ogc/ogc.other.xsl +293 -69
- data/lib/isodoc/ogc/ogc.policy.xsl +293 -69
- data/lib/isodoc/ogc/ogc.reference-model.xsl +293 -69
- data/lib/isodoc/ogc/ogc.release-notes.xsl +293 -69
- data/lib/isodoc/ogc/ogc.standard.xsl +293 -69
- data/lib/isodoc/ogc/ogc.test-suite.xsl +293 -69
- data/lib/isodoc/ogc/ogc.user-guide.xsl +293 -69
- data/lib/isodoc/ogc/ogc.white-paper.xsl +289 -66
- data/lib/isodoc/ogc/presentation_xml_convert.rb +13 -0
- data/lib/isodoc/ogc/word_convert.rb +7 -1
- data/lib/isodoc/ogc/xref.rb +8 -4
- data/lib/metanorma/ogc.rb +7 -0
- data/lib/metanorma/ogc/processor.rb +16 -8
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.gemspec +2 -2
- metadata +6 -6
@@ -148,6 +148,19 @@ module IsoDoc
|
|
148
148
|
recommendation_to_table(docxml)
|
149
149
|
end
|
150
150
|
|
151
|
+
def section(docxml)
|
152
|
+
super
|
153
|
+
references(docxml)
|
154
|
+
end
|
155
|
+
|
156
|
+
def references(docxml)
|
157
|
+
docxml.xpath(ns("//bibitem/date")).each do |d|
|
158
|
+
d.xpath(ns("./on | ./from | ./to")).each do |d1|
|
159
|
+
d1.children = d1.text.sub(/^(\d\d\d\d).*$/, "\\1")
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
151
164
|
include Init
|
152
165
|
end
|
153
166
|
end
|
@@ -21,7 +21,11 @@ module IsoDoc
|
|
21
21
|
'"Times New Roman",serif'),
|
22
22
|
headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' :
|
23
23
|
'"Times New Roman",serif'),
|
24
|
-
monospacefont: '"Courier New",monospace'
|
24
|
+
monospacefont: '"Courier New",monospace',
|
25
|
+
normalfontsize: "10.5pt",
|
26
|
+
monospacefontsize: "10.0pt",
|
27
|
+
footnotefontsize: "10.0pt",
|
28
|
+
smallerfontsize: "10.0pt",
|
25
29
|
}
|
26
30
|
end
|
27
31
|
|
@@ -47,6 +51,8 @@ module IsoDoc
|
|
47
51
|
@doctype = "white-paper"
|
48
52
|
options[:bodyfont] = '"Arial",sans-serif'
|
49
53
|
options[:headerfont] = '"Lato",sans-serif'
|
54
|
+
options[:normalfontsize] = "11.0pt"
|
55
|
+
options[:footnotefontsize] = "11.0pt"
|
50
56
|
end
|
51
57
|
super
|
52
58
|
end
|
data/lib/isodoc/ogc/xref.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
module IsoDoc
|
2
2
|
module Ogc
|
3
|
+
class Counter < IsoDoc::XrefGen::Counter
|
4
|
+
end
|
5
|
+
|
3
6
|
class Xref < IsoDoc::Xref
|
4
7
|
def initialize(lang, script, klass, labels, options)
|
5
8
|
@reqtlabels = {}
|
@@ -13,7 +16,7 @@ module IsoDoc
|
|
13
16
|
FIRST_LVL_REQ = IsoDoc::XrefGen::Blocks::FIRST_LVL_REQ
|
14
17
|
|
15
18
|
def sequential_permission_names(clause, klass, label)
|
16
|
-
c =
|
19
|
+
c = Counter.new
|
17
20
|
clause.xpath(ns(".//#{klass}#{FIRST_LVL_REQ}")).each do |t|
|
18
21
|
next if t["id"].nil? || t["id"].empty?
|
19
22
|
id = c.increment(t).print
|
@@ -49,7 +52,7 @@ module IsoDoc
|
|
49
52
|
end
|
50
53
|
|
51
54
|
def sequential_permission_names1(block, lbl, klass, label)
|
52
|
-
c =
|
55
|
+
c = Counter.new
|
53
56
|
block.xpath(ns("./#{klass}")).each do |t|
|
54
57
|
next if t["id"].nil? || t["id"].empty?
|
55
58
|
id = "#{lbl}#{hierfigsep}#{c.increment(t).print}"
|
@@ -90,7 +93,7 @@ module IsoDoc
|
|
90
93
|
end
|
91
94
|
|
92
95
|
def hierarchical_permission_names(clause, num, klass, label)
|
93
|
-
c =
|
96
|
+
c = Counter.new
|
94
97
|
clause.xpath(ns(".//#{klass}#{FIRST_LVL_REQ}")).each do |t|
|
95
98
|
next if t["id"].nil? || t["id"].empty?
|
96
99
|
lbl = "#{num}#{hiersep}#{c.increment(t).print}"
|
@@ -119,7 +122,8 @@ module IsoDoc
|
|
119
122
|
sequential_asset_names(d.xpath(ns(
|
120
123
|
"//preface/abstract | //foreword | //introduction | "\
|
121
124
|
"//submitters | //acknowledgements | //preface/clause")))
|
122
|
-
n =
|
125
|
+
n = Counter.new
|
126
|
+
n = section_names(d.at(ns("//clause[@type = 'scope']")), n, 1)
|
123
127
|
n = section_names(d.at(ns("//clause[@type = 'conformance']")), n, 1)
|
124
128
|
n = section_names(d.at(ns(@klass.norm_ref_xpath)), n, 1)
|
125
129
|
n = section_names(
|
data/lib/metanorma/ogc.rb
CHANGED
@@ -3,6 +3,13 @@ require "metanorma/ogc/processor"
|
|
3
3
|
|
4
4
|
module Metanorma
|
5
5
|
module Ogc
|
6
|
+
def self.fonts_used
|
7
|
+
{
|
8
|
+
html: ["Overpass", "SpaceMono"],
|
9
|
+
doc: ["Times New Roman", "Cambria Math", "HanSans", "Courier New"],
|
10
|
+
pdf: ["Lato", "Arial"],
|
11
|
+
}
|
12
|
+
end
|
6
13
|
|
7
14
|
ORGANIZATION_NAME_SHORT = "OGC"
|
8
15
|
ORGANIZATION_NAME_LONG = "Open Geospatial Consortium"
|
@@ -2,14 +2,6 @@ require "metanorma/processor"
|
|
2
2
|
|
3
3
|
module Metanorma
|
4
4
|
module Ogc
|
5
|
-
def self.fonts_used
|
6
|
-
{
|
7
|
-
doc: ["Arial", "Courier New", "Times New Roman"],
|
8
|
-
pdf: ["Arial", "Courier New", "Times New Roman"],
|
9
|
-
html: ["Overpass", "Space Mono"]
|
10
|
-
}
|
11
|
-
end
|
12
|
-
|
13
5
|
class Processor < Metanorma::Processor
|
14
6
|
|
15
7
|
def initialize
|
@@ -26,6 +18,22 @@ module Metanorma
|
|
26
18
|
)
|
27
19
|
end
|
28
20
|
|
21
|
+
|
22
|
+
def fonts_manifest
|
23
|
+
{
|
24
|
+
"Lato" => nil,
|
25
|
+
"Arial" => nil,
|
26
|
+
"STIX Two Math" => nil,
|
27
|
+
"Source Han Sans" => nil,
|
28
|
+
"Fira Code" => nil,
|
29
|
+
"Courier" => nil,
|
30
|
+
"Courier New" => nil,
|
31
|
+
"Times New Roman" => nil,
|
32
|
+
"Overpass" => nil,
|
33
|
+
"Space Mono" => nil,
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
29
37
|
def version
|
30
38
|
"Metanorma::Ogc #{Metanorma::Ogc::VERSION}"
|
31
39
|
end
|
data/metanorma-ogc.gemspec
CHANGED
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
26
26
|
|
27
|
-
spec.add_dependency "metanorma-standoc", "~> 1.
|
28
|
-
spec.add_dependency "isodoc", "~> 1.2
|
27
|
+
spec.add_dependency "metanorma-standoc", "~> 1.7.0"
|
28
|
+
spec.add_dependency "isodoc", "~> 1.4.2"
|
29
29
|
spec.add_dependency "iso-639"
|
30
30
|
|
31
31
|
spec.add_development_dependency "byebug", "~> 9.1"
|
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: 1.2.
|
4
|
+
version: 1.2.11
|
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: 2021-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.7.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: 1.
|
26
|
+
version: 1.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: isodoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.2
|
33
|
+
version: 1.4.2
|
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: 1.2
|
40
|
+
version: 1.4.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: iso-639
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|