metanorma-ogc 1.2.9 → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,15 +17,13 @@ module IsoDoc
17
17
 
18
18
  def default_fonts(options)
19
19
  {
20
- bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' :
21
- '"Times New Roman",serif'),
22
- headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' :
23
- '"Times New Roman",serif'),
24
- monospacefont: '"Courier New",monospace',
25
- normalfontsize: "10.5pt",
26
- monospacefontsize: "10.0pt",
27
- footnotefontsize: "10.0pt",
28
- smallerfontsize: "10.0pt",
20
+ bodyfont: '"Times New Roman",serif',
21
+ headerfont: '"Times New Roman",serif',
22
+ monospacefont: '"Courier New",monospace',
23
+ normalfontsize: "10.5pt",
24
+ monospacefontsize: "10.0pt",
25
+ footnotefontsize: "10.0pt",
26
+ smallerfontsize: "10.0pt",
29
27
  }
30
28
  end
31
29
 
@@ -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 = ::IsoDoc::XrefGen::Counter.new
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 = ::IsoDoc::XrefGen::Counter.new
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 = ::IsoDoc::XrefGen::Counter.new
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 = section_names(d.at(ns("//clause[@type = 'scope']")), 0, 1)
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(
@@ -18,6 +18,22 @@ module Metanorma
18
18
  )
19
19
  end
20
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
+
21
37
  def version
22
38
  "Metanorma::Ogc #{Metanorma::Ogc::VERSION}"
23
39
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "1.2.9"
3
+ VERSION = "1.2.14"
4
4
  end
5
5
  end
@@ -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.6.0"
28
- spec.add_dependency "isodoc", "~> 1.3.0"
27
+ spec.add_dependency "metanorma-standoc", "~> 1.8.0"
28
+ spec.add_dependency "isodoc", "~> 1.5.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.9
4
+ version: 1.2.14
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-12-14 00:00:00.000000000 Z
11
+ date: 2021-02-08 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.6.0
19
+ version: 1.8.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.6.0
26
+ version: 1.8.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.3.0
33
+ version: 1.5.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.3.0
40
+ version: 1.5.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: iso-639
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -277,7 +277,6 @@ files:
277
277
  - lib/isodoc/ogc/xref.rb
278
278
  - lib/metanorma-ogc.rb
279
279
  - lib/metanorma/ogc.rb
280
- - lib/metanorma/ogc/fonts_manifest.yaml
281
280
  - lib/metanorma/ogc/processor.rb
282
281
  - lib/metanorma/ogc/version.rb
283
282
  - metanorma-ogc.gemspec
@@ -300,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
299
  - !ruby/object:Gem::Version
301
300
  version: '0'
302
301
  requirements: []
303
- rubygems_version: 3.0.3
302
+ rubygems_version: 3.1.4
304
303
  signing_key:
305
304
  specification_version: 4
306
305
  summary: Metanorma for the Open Geospatial Consortium.
@@ -1,6 +0,0 @@
1
- ---
2
- Arial:
3
- Courier New:
4
- Times New Roman:
5
- Overpass:
6
- Space Mono: