metanorma-ogc 1.5.5 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +4 -32
  3. data/.gitignore +11 -0
  4. data/Gemfile +0 -2
  5. data/lib/isodoc/ogc/biblio.rb +7 -6
  6. data/lib/isodoc/ogc/html/htmlstyle.css +22 -17
  7. data/lib/isodoc/ogc/html/htmlstyle.scss +9 -3
  8. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +164 -139
  9. data/lib/isodoc/ogc/ogc.best-practice.xsl +164 -139
  10. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +164 -139
  11. data/lib/isodoc/ogc/ogc.community-practice.xsl +164 -139
  12. data/lib/isodoc/ogc/ogc.community-standard.xsl +164 -139
  13. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +164 -139
  14. data/lib/isodoc/ogc/ogc.engineering-report.xsl +164 -139
  15. data/lib/isodoc/ogc/ogc.other.xsl +164 -139
  16. data/lib/isodoc/ogc/ogc.policy.xsl +164 -139
  17. data/lib/isodoc/ogc/ogc.reference-model.xsl +164 -139
  18. data/lib/isodoc/ogc/ogc.release-notes.xsl +164 -139
  19. data/lib/isodoc/ogc/ogc.standard.xsl +164 -139
  20. data/lib/isodoc/ogc/ogc.test-suite.xsl +164 -139
  21. data/lib/isodoc/ogc/ogc.user-guide.xsl +164 -139
  22. data/lib/isodoc/ogc/ogc.white-paper.xsl +168 -140
  23. data/lib/isodoc/ogc/presentation_xml_convert.rb +6 -3
  24. data/lib/{asciidoctor → metanorma}/ogc/basicdoc.rng +0 -0
  25. data/lib/{asciidoctor → metanorma}/ogc/biblio.rng +0 -0
  26. data/lib/{asciidoctor → metanorma}/ogc/boilerplate.xml +0 -0
  27. data/lib/{asciidoctor → metanorma}/ogc/cleanup.rb +13 -1
  28. data/lib/{asciidoctor → metanorma}/ogc/converter.rb +12 -2
  29. data/lib/{asciidoctor → metanorma}/ogc/front.rb +2 -2
  30. data/lib/{asciidoctor → metanorma}/ogc/isodoc.rng +29 -0
  31. data/lib/{asciidoctor → metanorma}/ogc/ogc.rng +0 -0
  32. data/lib/{asciidoctor → metanorma}/ogc/reqt.rng +0 -0
  33. data/lib/{asciidoctor → metanorma}/ogc/validate.rb +1 -1
  34. data/lib/metanorma/ogc/version.rb +1 -1
  35. data/lib/metanorma/ogc.rb +1 -0
  36. data/lib/metanorma-ogc.rb +0 -1
  37. data/metanorma-ogc.gemspec +1 -1
  38. metadata +14 -15
  39. data/lib/asciidoctor/ogc.rb +0 -6
@@ -1,8 +1,8 @@
1
1
  require "asciidoctor"
2
- require "asciidoctor/standoc/converter"
2
+ require "metanorma/standoc/converter"
3
3
  require "fileutils"
4
4
 
5
- module Asciidoctor
5
+ module Metanorma
6
6
  module Ogc
7
7
  class Converter < Standoc::Converter
8
8
  def metadata_author(node, xml)
@@ -32,6 +32,19 @@
32
32
  <ref name="DocumentType"/>
33
33
  </element>
34
34
  </define>
35
+ <define name="bibitem">
36
+ <element name="bibitem">
37
+ <attribute name="id">
38
+ <data type="ID"/>
39
+ </attribute>
40
+ <optional>
41
+ <attribute name="hidden">
42
+ <data type="boolean"/>
43
+ </attribute>
44
+ </optional>
45
+ <ref name="BibliographicItem"/>
46
+ </element>
47
+ </define>
35
48
  <define name="section-title">
36
49
  <element name="title">
37
50
  <zeroOrMore>
@@ -690,6 +703,7 @@
690
703
  <ref name="terms"/>
691
704
  <ref name="term-clause"/>
692
705
  <ref name="definitions"/>
706
+ <ref name="floating-title"/>
693
707
  </choice>
694
708
  </oneOrMore>
695
709
  </element>
@@ -1680,6 +1694,7 @@
1680
1694
  <ref name="clause-subsection"/>
1681
1695
  <ref name="terms"/>
1682
1696
  <ref name="definitions"/>
1697
+ <ref name="floating-title"/>
1683
1698
  </choice>
1684
1699
  </oneOrMore>
1685
1700
  </choice>
@@ -1722,6 +1737,7 @@
1722
1737
  <ref name="terms"/>
1723
1738
  <ref name="definitions"/>
1724
1739
  <ref name="references"/>
1740
+ <ref name="floating-title"/>
1725
1741
  </choice>
1726
1742
  </zeroOrMore>
1727
1743
  </group>
@@ -2534,4 +2550,17 @@
2534
2550
  </oneOrMore>
2535
2551
  </element>
2536
2552
  </define>
2553
+ <define name="floating-title">
2554
+ <element name="floating-title">
2555
+ <attribute name="id">
2556
+ <data type="ID"/>
2557
+ </attribute>
2558
+ <attribute name="depth">
2559
+ <data type="int"/>
2560
+ </attribute>
2561
+ <zeroOrMore>
2562
+ <ref name="TextElement"/>
2563
+ </zeroOrMore>
2564
+ </element>
2565
+ </define>
2537
2566
  </grammar>
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- module Asciidoctor
1
+ module Metanorma
2
2
  module Ogc
3
3
  class Converter < Standoc::Converter
4
4
  def validate(doc)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "1.5.5".freeze
3
+ VERSION = "2.0.0".freeze
4
4
  end
5
5
  end
data/lib/metanorma/ogc.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "metanorma/ogc/version"
2
2
  require "metanorma/ogc/processor"
3
+ require "metanorma/ogc/converter"
3
4
 
4
5
  module Metanorma
5
6
  module Ogc
data/lib/metanorma-ogc.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "metanorma/ogc"
2
2
  require "asciidoctor"
3
- require "asciidoctor/ogc"
4
3
  require "isodoc/ogc"
5
4
 
6
5
  if defined? Metanorma
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
26
26
 
27
27
  spec.add_dependency "iso-639"
28
- spec.add_dependency "metanorma-standoc", "~> 1.11.0"
28
+ spec.add_dependency "metanorma-standoc", "~> 2.0.0"
29
29
 
30
30
  spec.add_development_dependency "debug"
31
31
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
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.5.5
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-27 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.11.0
33
+ version: 2.0.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.11.0
40
+ version: 2.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: debug
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -199,17 +199,6 @@ files:
199
199
  - bin/console
200
200
  - bin/rspec
201
201
  - bin/setup
202
- - lib/asciidoctor/ogc.rb
203
- - lib/asciidoctor/ogc/basicdoc.rng
204
- - lib/asciidoctor/ogc/biblio.rng
205
- - lib/asciidoctor/ogc/boilerplate.xml
206
- - lib/asciidoctor/ogc/cleanup.rb
207
- - lib/asciidoctor/ogc/converter.rb
208
- - lib/asciidoctor/ogc/front.rb
209
- - lib/asciidoctor/ogc/isodoc.rng
210
- - lib/asciidoctor/ogc/ogc.rng
211
- - lib/asciidoctor/ogc/reqt.rng
212
- - lib/asciidoctor/ogc/validate.rb
213
202
  - lib/isodoc/ogc.rb
214
203
  - lib/isodoc/ogc/base_convert.rb
215
204
  - lib/isodoc/ogc/biblio.rb
@@ -264,7 +253,17 @@ files:
264
253
  - lib/isodoc/ogc/xref.rb
265
254
  - lib/metanorma-ogc.rb
266
255
  - lib/metanorma/ogc.rb
256
+ - lib/metanorma/ogc/basicdoc.rng
257
+ - lib/metanorma/ogc/biblio.rng
258
+ - lib/metanorma/ogc/boilerplate.xml
259
+ - lib/metanorma/ogc/cleanup.rb
260
+ - lib/metanorma/ogc/converter.rb
261
+ - lib/metanorma/ogc/front.rb
262
+ - lib/metanorma/ogc/isodoc.rng
263
+ - lib/metanorma/ogc/ogc.rng
267
264
  - lib/metanorma/ogc/processor.rb
265
+ - lib/metanorma/ogc/reqt.rng
266
+ - lib/metanorma/ogc/validate.rb
268
267
  - lib/metanorma/ogc/version.rb
269
268
  - metanorma-ogc.gemspec
270
269
  homepage: https://github.com/metanorma/metanorma-ogc
@@ -1,6 +0,0 @@
1
- require "asciidoctor/ogc/converter"
2
-
3
- module Asciidoctor
4
- module Ogc
5
- end
6
- end