metanorma-ogc 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +4 -5
  3. data/lib/isodoc/ogc/html/htmlstyle.css +206 -206
  4. data/lib/isodoc/ogc/html/htmlstyle.scss +4 -4
  5. data/lib/isodoc/ogc/html/ogc.css +21 -21
  6. data/lib/isodoc/ogc/html/ogc.scss +21 -21
  7. data/lib/isodoc/ogc/html/ogc_wp.css +35 -35
  8. data/lib/isodoc/ogc/html/ogc_wp.scss +35 -35
  9. data/lib/isodoc/ogc/html/wordstyle.css +19 -19
  10. data/lib/isodoc/ogc/html/wordstyle.scss +19 -19
  11. data/lib/isodoc/ogc/html/wordstyle_wp.css +23 -23
  12. data/lib/isodoc/ogc/html/wordstyle_wp.scss +23 -23
  13. data/lib/isodoc/ogc/html_convert.rb +4 -1
  14. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +10 -6
  15. data/lib/isodoc/ogc/ogc.best-practice.xsl +10 -6
  16. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +10 -6
  17. data/lib/isodoc/ogc/ogc.community-practice.xsl +10 -6
  18. data/lib/isodoc/ogc/ogc.community-standard.xsl +10 -6
  19. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +10 -6
  20. data/lib/isodoc/ogc/ogc.engineering-report.xsl +10 -6
  21. data/lib/isodoc/ogc/ogc.other.xsl +10 -6
  22. data/lib/isodoc/ogc/ogc.policy.xsl +10 -6
  23. data/lib/isodoc/ogc/ogc.reference-model.xsl +10 -6
  24. data/lib/isodoc/ogc/ogc.release-notes.xsl +10 -6
  25. data/lib/isodoc/ogc/ogc.standard.xsl +10 -6
  26. data/lib/isodoc/ogc/ogc.test-suite.xsl +10 -6
  27. data/lib/isodoc/ogc/ogc.user-guide.xsl +10 -6
  28. data/lib/isodoc/ogc/ogc.white-paper.xsl +9 -5
  29. data/lib/isodoc/ogc/presentation_xml_convert.rb +13 -0
  30. data/lib/isodoc/ogc/word_convert.rb +7 -1
  31. data/lib/metanorma/ogc.rb +7 -0
  32. data/lib/metanorma/ogc/fonts_manifest.yaml +6 -0
  33. data/lib/metanorma/ogc/processor.rb +0 -8
  34. data/lib/metanorma/ogc/version.rb +1 -1
  35. data/metanorma-ogc.gemspec +1 -1
  36. metadata +5 -4
@@ -69,7 +69,7 @@
69
69
 
70
70
  <xsl:template match="/">
71
71
  <xsl:call-template name="namespaceCheck"/>
72
- <fo:root font-family="Lato, STIX Two Math, HanSans" font-size="11pt" color="{$color_main}" xml:lang="{$lang}">
72
+ <fo:root font-family="Lato, STIX Two Math, Source Han Sans" font-size="11pt" color="{$color_main}" xml:lang="{$lang}">
73
73
  <fo:layout-master-set>
74
74
  <!-- Cover page -->
75
75
  <fo:simple-page-master master-name="cover-page" page-width="{$pageWidth}" page-height="{$pageHeight}">
@@ -1633,7 +1633,7 @@
1633
1633
 
1634
1634
 
1635
1635
 
1636
- <xsl:attribute name="font-family">FiraCode</xsl:attribute>
1636
+ <xsl:attribute name="font-family">Fira Code</xsl:attribute>
1637
1637
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1638
1638
  <xsl:attribute name="line-height">113%</xsl:attribute>
1639
1639
 
@@ -1922,6 +1922,7 @@
1922
1922
  </xsl:attribute-set><xsl:attribute-set name="term-style">
1923
1923
 
1924
1924
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1925
+
1925
1926
 
1926
1927
 
1927
1928
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
@@ -1971,7 +1972,7 @@
1971
1972
 
1972
1973
 
1973
1974
 
1974
- <xsl:attribute name="font-family">FiraCode</xsl:attribute>
1975
+ <xsl:attribute name="font-family">Fira Code</xsl:attribute>
1975
1976
 
1976
1977
  </xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
1977
1978
  <xsl:attribute name="font-size">11pt</xsl:attribute>
@@ -3233,6 +3234,7 @@
3233
3234
  </fo:inline>
3234
3235
  </xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
3235
3236
  <fo:inline font-weight="bold">
3237
+
3236
3238
  <xsl:apply-templates/>
3237
3239
  </fo:inline>
3238
3240
  </xsl:template><xsl:template match="*[local-name()='sup']">
@@ -3637,6 +3639,7 @@
3637
3639
  </xsl:choose>
3638
3640
  </xsl:variable>
3639
3641
  <fo:inline xsl:use-attribute-sets="link-style">
3642
+
3640
3643
  <xsl:choose>
3641
3644
  <xsl:when test="$target = ''">
3642
3645
  <xsl:apply-templates/>
@@ -3856,7 +3859,8 @@
3856
3859
  </fo:inline>
3857
3860
  </xsl:if>
3858
3861
  </xsl:template><xsl:template match="*[local-name() = 'figure']">
3859
- <fo:block-container id="{@id}">
3862
+ <fo:block-container id="{@id}">
3863
+
3860
3864
  <fo:block>
3861
3865
  <xsl:apply-templates/>
3862
3866
  </fo:block>
@@ -3907,7 +3911,7 @@
3907
3911
  <xsl:apply-templates mode="bookmarks"/>
3908
3912
  </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
3909
3913
  <xsl:apply-templates select="."/>
3910
- </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
3914
+ </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
3911
3915
  <xsl:apply-templates mode="bookmarks"/>
3912
3916
  </xsl:template><xsl:template name="addBookmarks">
3913
3917
  <xsl:param name="contents"/>
@@ -4696,7 +4700,7 @@
4696
4700
  <fo:block id="{@id}">
4697
4701
  <xsl:apply-templates/>
4698
4702
  </fo:block>
4699
- </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
4703
+ </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/><xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"/><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
4700
4704
 
4701
4705
  <fo:block id="{@id}">
4702
4706
  <xsl:apply-templates/>
@@ -91,7 +91,7 @@
91
91
 
92
92
  <xsl:template match="/">
93
93
  <xsl:call-template name="namespaceCheck"/>
94
- <fo:root font-family="Arial, STIX Two Math, HanSans" font-size="11pt" xml:lang="{$lang}">
94
+ <fo:root font-family="Arial, STIX Two Math, Source Han Sans" font-size="11pt" xml:lang="{$lang}">
95
95
  <fo:layout-master-set>
96
96
 
97
97
  <!-- Document pages -->
@@ -124,7 +124,7 @@
124
124
  </fo:block-container>
125
125
  </fo:block-container>
126
126
 
127
- <fo:block font-family="Lato Light" font-size="14pt" font-style="italic" margin-top="6pt" color="rgb(21, 43, 77)">
127
+ <fo:block font-family="Lato" font-weight="300" font-size="14pt" font-style="italic" margin-top="6pt" color="rgb(21, 43, 77)">
128
128
  <xsl:text>Additional context, inspirational quote, etc. fits into this subheading area</xsl:text>
129
129
  </fo:block>
130
130
 
@@ -1328,6 +1328,7 @@
1328
1328
  </xsl:attribute-set><xsl:attribute-set name="term-style">
1329
1329
 
1330
1330
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1331
+
1331
1332
 
1332
1333
 
1333
1334
 
@@ -2631,6 +2632,7 @@
2631
2632
  </fo:inline>
2632
2633
  </xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
2633
2634
  <fo:inline font-weight="bold">
2635
+
2634
2636
  <xsl:apply-templates/>
2635
2637
  </fo:inline>
2636
2638
  </xsl:template><xsl:template match="*[local-name()='sup']">
@@ -3035,6 +3037,7 @@
3035
3037
  </xsl:choose>
3036
3038
  </xsl:variable>
3037
3039
  <fo:inline xsl:use-attribute-sets="link-style">
3040
+
3038
3041
  <xsl:choose>
3039
3042
  <xsl:when test="$target = ''">
3040
3043
  <xsl:apply-templates/>
@@ -3252,7 +3255,8 @@
3252
3255
  </fo:inline>
3253
3256
  </xsl:if>
3254
3257
  </xsl:template><xsl:template match="*[local-name() = 'figure']">
3255
- <fo:block-container id="{@id}">
3258
+ <fo:block-container id="{@id}">
3259
+
3256
3260
  <fo:block>
3257
3261
  <xsl:apply-templates/>
3258
3262
  </fo:block>
@@ -3303,7 +3307,7 @@
3303
3307
  <xsl:apply-templates mode="bookmarks"/>
3304
3308
  </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
3305
3309
  <xsl:apply-templates select="."/>
3306
- </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
3310
+ </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
3307
3311
  <xsl:apply-templates mode="bookmarks"/>
3308
3312
  </xsl:template><xsl:template name="addBookmarks">
3309
3313
  <xsl:param name="contents"/>
@@ -4067,7 +4071,7 @@
4067
4071
  <fo:block id="{@id}">
4068
4072
  <xsl:apply-templates/>
4069
4073
  </fo:block>
4070
- </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
4074
+ </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/><xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"/><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
4071
4075
 
4072
4076
  <fo:block id="{@id}">
4073
4077
  <xsl:apply-templates/>
@@ -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
@@ -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"
@@ -0,0 +1,6 @@
1
+ ---
2
+ Arial:
3
+ Courier New:
4
+ Times New Roman:
5
+ Overpass:
6
+ Space Mono:
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "1.2.7"
3
+ VERSION = "1.2.8"
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
26
26
 
27
27
  spec.add_dependency "metanorma-standoc", "~> 1.6.0"
28
- spec.add_dependency "isodoc", "~> 1.2.0"
28
+ spec.add_dependency "isodoc", "~> 1.3.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.7
4
+ version: 1.2.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: 2020-11-09 00:00:00.000000000 Z
11
+ date: 2020-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.0
33
+ version: 1.3.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.2.0
40
+ version: 1.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: iso-639
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -277,6 +277,7 @@ 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
280
281
  - lib/metanorma/ogc/processor.rb
281
282
  - lib/metanorma/ogc/version.rb
282
283
  - metanorma-ogc.gemspec