metanorma-ogc 1.2.5 → 1.2.10
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 +62 -0
- 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 +36 -43
- data/lib/isodoc/ogc/base_convert.rb +1 -2
- data/lib/isodoc/ogc/biblio.rb +1 -0
- data/lib/isodoc/ogc/html/htmlstyle.css +210 -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 +319 -74
- data/lib/isodoc/ogc/ogc.best-practice.xsl +319 -74
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +319 -74
- data/lib/isodoc/ogc/ogc.community-practice.xsl +319 -74
- data/lib/isodoc/ogc/ogc.community-standard.xsl +319 -74
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +319 -74
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +319 -74
- data/lib/isodoc/ogc/ogc.other.xsl +319 -74
- data/lib/isodoc/ogc/ogc.policy.xsl +319 -74
- data/lib/isodoc/ogc/ogc.reference-model.xsl +319 -74
- data/lib/isodoc/ogc/ogc.release-notes.xsl +319 -74
- data/lib/isodoc/ogc/ogc.standard.xsl +319 -74
- data/lib/isodoc/ogc/ogc.test-suite.xsl +319 -74
- data/lib/isodoc/ogc/ogc.user-guide.xsl +319 -74
- data/lib/isodoc/ogc/ogc.white-paper.xsl +299 -68
- data/lib/isodoc/ogc/presentation_xml_convert.rb +13 -0
- data/lib/isodoc/ogc/word_convert.rb +7 -1
- 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 +7 -9
- data/.github/workflows/macos.yml +0 -38
- data/.github/workflows/ubuntu.yml +0 -56
- data/.github/workflows/windows.yml +0 -40
@@ -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/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.
|
27
|
+
spec.add_dependency "metanorma-standoc", "~> 1.7.0"
|
28
|
+
spec.add_dependency "isodoc", "~> 1.4.0"
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-28 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.
|
33
|
+
version: 1.4.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: 1.
|
40
|
+
version: 1.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: iso-639
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,9 +201,7 @@ executables: []
|
|
201
201
|
extensions: []
|
202
202
|
extra_rdoc_files: []
|
203
203
|
files:
|
204
|
-
- ".github/workflows/
|
205
|
-
- ".github/workflows/ubuntu.yml"
|
206
|
-
- ".github/workflows/windows.yml"
|
204
|
+
- ".github/workflows/rake.yml"
|
207
205
|
- ".gitignore"
|
208
206
|
- ".hound.yml"
|
209
207
|
- ".rubocop.yml"
|
data/.github/workflows/macos.yml
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: macos
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
pull_request:
|
9
|
-
paths-ignore:
|
10
|
-
- .github/workflows/ubuntu.yml
|
11
|
-
- .github/workflows/windows.yml
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
test-macos:
|
15
|
-
name: Test on Ruby ${{ matrix.ruby }} macOS
|
16
|
-
runs-on: macos-latest
|
17
|
-
continue-on-error: ${{ matrix.experimental }}
|
18
|
-
strategy:
|
19
|
-
fail-fast: false
|
20
|
-
matrix:
|
21
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
22
|
-
experimental: [false]
|
23
|
-
include:
|
24
|
-
- ruby: '2.7'
|
25
|
-
experimental: true
|
26
|
-
steps:
|
27
|
-
- uses: actions/checkout@master
|
28
|
-
- name: Use Ruby
|
29
|
-
uses: actions/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
32
|
-
- name: Update gems
|
33
|
-
run: |
|
34
|
-
sudo gem install bundler --force
|
35
|
-
bundle install --jobs 4 --retry 3
|
36
|
-
- name: Run specs
|
37
|
-
run: |
|
38
|
-
bundle exec rake
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: ubuntu
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
tags:
|
9
|
-
- '*'
|
10
|
-
pull_request:
|
11
|
-
paths-ignore:
|
12
|
-
- .github/workflows/macos.yml
|
13
|
-
- .github/workflows/windows.yml
|
14
|
-
|
15
|
-
jobs:
|
16
|
-
test-linux:
|
17
|
-
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
18
|
-
runs-on: ubuntu-latest
|
19
|
-
continue-on-error: ${{ matrix.experimental }}
|
20
|
-
strategy:
|
21
|
-
fail-fast: false
|
22
|
-
matrix:
|
23
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
24
|
-
experimental: [false]
|
25
|
-
include:
|
26
|
-
- ruby: '2.7'
|
27
|
-
experimental: true
|
28
|
-
steps:
|
29
|
-
- uses: actions/checkout@master
|
30
|
-
- name: Use Ruby
|
31
|
-
uses: actions/setup-ruby@v1
|
32
|
-
with:
|
33
|
-
ruby-version: ${{ matrix.ruby }}
|
34
|
-
- name: Update gems
|
35
|
-
run: |
|
36
|
-
gem install bundler
|
37
|
-
bundle install --jobs 4 --retry 3
|
38
|
-
- name: Run specs
|
39
|
-
run: |
|
40
|
-
bundle exec rake
|
41
|
-
- name: Trigger repositories
|
42
|
-
if: matrix.ruby == '2.6'
|
43
|
-
env:
|
44
|
-
GH_USERNAME: metanorma-ci
|
45
|
-
GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
46
|
-
run: |
|
47
|
-
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
|
48
|
-
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
49
|
-
CLIENT_PAYLOAD=$(cat <<EOF
|
50
|
-
"{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
|
51
|
-
EOF
|
52
|
-
)
|
53
|
-
for repo in $REPOS
|
54
|
-
do
|
55
|
-
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
|
56
|
-
done
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: windows
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
pull_request:
|
9
|
-
paths-ignore:
|
10
|
-
- .github/workflows/macos.yml
|
11
|
-
- .github/workflows/ubuntu.yml
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
test-windows:
|
15
|
-
name: Test on Ruby ${{ matrix.ruby }} Windows
|
16
|
-
runs-on: windows-latest
|
17
|
-
continue-on-error: ${{ matrix.experimental }}
|
18
|
-
strategy:
|
19
|
-
fail-fast: false
|
20
|
-
matrix:
|
21
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
22
|
-
experimental: [false]
|
23
|
-
include:
|
24
|
-
- ruby: '2.7'
|
25
|
-
experimental: true
|
26
|
-
steps:
|
27
|
-
- uses: actions/checkout@master
|
28
|
-
- name: Use Ruby
|
29
|
-
uses: actions/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
32
|
-
- name: Update gems
|
33
|
-
shell: pwsh
|
34
|
-
run: |
|
35
|
-
gem install bundler
|
36
|
-
bundle config --local path vendor/bundle
|
37
|
-
bundle install --jobs 4 --retry 3
|
38
|
-
- name: Run specs
|
39
|
-
run: |
|
40
|
-
bundle exec rake
|