metanorma-ogc 1.2.11 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1303,6 +1303,7 @@
1303
1303
 
1304
1304
 
1305
1305
 
1306
+
1306
1307
  </xsl:attribute-set><xsl:attribute-set name="quote-source-style">
1307
1308
 
1308
1309
  <xsl:attribute name="text-align">right</xsl:attribute>
@@ -1450,7 +1451,7 @@
1450
1451
  </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
1451
1452
  <!-- <xsl:call-template name="add-zero-spaces"/> -->
1452
1453
  <xsl:call-template name="add-zero-spaces-java"/>
1453
- </xsl:template><xsl:template match="*[local-name()='table']">
1454
+ </xsl:template><xsl:template match="*[local-name()='table']" name="table">
1454
1455
 
1455
1456
  <xsl:variable name="simple-table">
1456
1457
  <xsl:call-template name="getSimpleTable"/>
@@ -2718,6 +2719,7 @@
2718
2719
 
2719
2720
 
2720
2721
 
2722
+
2721
2723
  10
2722
2724
 
2723
2725
 
@@ -3319,7 +3321,7 @@
3319
3321
  </xsl:if> -->
3320
3322
  </fo:inline>
3321
3323
  </xsl:if>
3322
- </xsl:template><xsl:template match="*[local-name() = 'figure']">
3324
+ </xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
3323
3325
  <fo:block-container id="{@id}">
3324
3326
 
3325
3327
  <fo:block>
@@ -3537,6 +3539,12 @@
3537
3539
  <!-- <xsl:text> </xsl:text> -->
3538
3540
  </xsl:template><xsl:template name="getSection">
3539
3541
  <xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
3542
+ <!--
3543
+ <xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
3544
+ <xsl:value-of select="."/>
3545
+ </xsl:for-each>
3546
+ -->
3547
+
3540
3548
  </xsl:template><xsl:template name="getName">
3541
3549
  <xsl:choose>
3542
3550
  <xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
@@ -3589,6 +3597,10 @@
3589
3597
  <xsl:copy>
3590
3598
  <xsl:apply-templates mode="contents_item"/>
3591
3599
  </xsl:copy>
3600
+ </xsl:template><xsl:template match="*[local-name() = 'em']" mode="contents_item">
3601
+ <xsl:copy>
3602
+ <xsl:apply-templates mode="contents_item"/>
3603
+ </xsl:copy>
3592
3604
  </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
3593
3605
  <xsl:text> </xsl:text>
3594
3606
  </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
@@ -3614,6 +3626,7 @@
3614
3626
 
3615
3627
 
3616
3628
 
3629
+
3617
3630
 
3618
3631
 
3619
3632
 
@@ -4164,6 +4177,7 @@
4164
4177
 
4165
4178
 
4166
4179
 
4180
+
4167
4181
 
4168
4182
 
4169
4183
 
@@ -4180,7 +4194,7 @@
4180
4194
 
4181
4195
 
4182
4196
 
4183
- </xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2">
4197
+ </xsl:template><xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
4184
4198
  <fo:block break-after="page"/>
4185
4199
  <fo:block>
4186
4200
  <xsl:call-template name="setId"/>
@@ -4188,7 +4202,8 @@
4188
4202
  </fo:block>
4189
4203
  </xsl:template><xsl:template match="*[local-name() = 'clause']">
4190
4204
  <fo:block>
4191
- <xsl:call-template name="setId"/>
4205
+ <xsl:call-template name="setId"/>
4206
+
4192
4207
 
4193
4208
  <xsl:apply-templates/>
4194
4209
  </fo:block>
@@ -4500,6 +4515,57 @@
4500
4515
  </xsl:variable>
4501
4516
  <xsl:variable name="result">
4502
4517
  <xsl:choose>
4518
+ <xsl:when test="$format = 'ddMMyyyy'">
4519
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4520
+ <xsl:text> </xsl:text>
4521
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
4522
+ </xsl:when>
4523
+ <xsl:when test="$format = 'ddMM'">
4524
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4525
+ <xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
4526
+ </xsl:when>
4527
+ <xsl:when test="$format = 'short' or $day = ''">
4528
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
4529
+ </xsl:when>
4530
+ <xsl:otherwise>
4531
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
4532
+ </xsl:otherwise>
4533
+ </xsl:choose>
4534
+ </xsl:variable>
4535
+ <xsl:value-of select="$result"/>
4536
+ </xsl:template><xsl:template name="convertDateLocalized">
4537
+ <xsl:param name="date"/>
4538
+ <xsl:param name="format" select="'short'"/>
4539
+ <xsl:variable name="year" select="substring($date, 1, 4)"/>
4540
+ <xsl:variable name="month" select="substring($date, 6, 2)"/>
4541
+ <xsl:variable name="day" select="substring($date, 9, 2)"/>
4542
+ <xsl:variable name="monthStr">
4543
+ <xsl:choose>
4544
+ <xsl:when test="$month = '01'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_january</xsl:with-param></xsl:call-template></xsl:when>
4545
+ <xsl:when test="$month = '02'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_february</xsl:with-param></xsl:call-template></xsl:when>
4546
+ <xsl:when test="$month = '03'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_march</xsl:with-param></xsl:call-template></xsl:when>
4547
+ <xsl:when test="$month = '04'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_april</xsl:with-param></xsl:call-template></xsl:when>
4548
+ <xsl:when test="$month = '05'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_may</xsl:with-param></xsl:call-template></xsl:when>
4549
+ <xsl:when test="$month = '06'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_june</xsl:with-param></xsl:call-template></xsl:when>
4550
+ <xsl:when test="$month = '07'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_july</xsl:with-param></xsl:call-template></xsl:when>
4551
+ <xsl:when test="$month = '08'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_august</xsl:with-param></xsl:call-template></xsl:when>
4552
+ <xsl:when test="$month = '09'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_september</xsl:with-param></xsl:call-template></xsl:when>
4553
+ <xsl:when test="$month = '10'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_october</xsl:with-param></xsl:call-template></xsl:when>
4554
+ <xsl:when test="$month = '11'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_november</xsl:with-param></xsl:call-template></xsl:when>
4555
+ <xsl:when test="$month = '12'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_december</xsl:with-param></xsl:call-template></xsl:when>
4556
+ </xsl:choose>
4557
+ </xsl:variable>
4558
+ <xsl:variable name="result">
4559
+ <xsl:choose>
4560
+ <xsl:when test="$format = 'ddMMyyyy'">
4561
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4562
+ <xsl:text> </xsl:text>
4563
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
4564
+ </xsl:when>
4565
+ <xsl:when test="$format = 'ddMM'">
4566
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4567
+ <xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
4568
+ </xsl:when>
4503
4569
  <xsl:when test="$format = 'short' or $day = ''">
4504
4570
  <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
4505
4571
  </xsl:when>
@@ -4694,6 +4760,7 @@
4694
4760
 
4695
4761
 
4696
4762
 
4763
+
4697
4764
  </xsl:variable>
4698
4765
  <xsl:if test="$documentNS != $XSLNS">
4699
4766
  <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
@@ -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,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "1.2.11"
3
+ VERSION = "1.2.12"
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.7.0"
28
- spec.add_dependency "isodoc", "~> 1.4.2"
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.11
4
+ version: 1.2.12
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-01-11 00:00:00.000000000 Z
11
+ date: 2021-01-25 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.7.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.7.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.4.2
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.4.2
40
+ version: 1.5.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: iso-639
43
43
  requirement: !ruby/object:Gem::Requirement