metanorma-ribose 1.6.11 → 1.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09692ec54e7186049ced9245aa545eec4014cef2ed4870c3b2316ddb5baa9c26'
4
- data.tar.gz: 9bae1a6920887f47f736c29af7eb769a941a1874a70624e125951a23824481b3
3
+ metadata.gz: aa8a5850aab200ce451f3f80eb1c469938c22d51116cf7eba406868b678b5277
4
+ data.tar.gz: 1b79657578876f5241a5ce3bd1a84d8bfdb0abbf2733c8c95c4b25691da28536
5
5
  SHA512:
6
- metadata.gz: 751876bd18696125f64ddff27d8965c752653d69cde5816278cc9f1939521eedf7b5d456a99b7beb25bc6b5846bcdbe72a99298a70196aec0a2a50fb816e17cf
7
- data.tar.gz: 1693d7cb5bd93863b3b685cbc25ee3209a0e60d545d78b3041eb3ad5f438e2fad7e314f879f89d12fb8637a2c326b60ebef7facf076eacf30140f9e0dc9e2989
6
+ metadata.gz: 024526b40521713d0b975f3e1fd480bdea460294fe37630f43a6fcc02b04a26f677c31118c385c2cf14dc701461822ac676b54fda28b0d14a1b9de7791c7c142
7
+ data.tar.gz: 68cdf413a3c7540df45f7410c9e4949ceec2d816475a1150cd1ac93d9595b9c27536633ba3ccbcd076e816c8cf0252d14d7a371fa0f9d23c966efabf117aed26
@@ -729,9 +729,11 @@
729
729
  </define>
730
730
  <define name="index">
731
731
  <element name="index">
732
- <attribute name="to">
733
- <data type="IDREF"/>
734
- </attribute>
732
+ <optional>
733
+ <attribute name="to">
734
+ <data type="IDREF"/>
735
+ </attribute>
736
+ </optional>
735
737
  <element name="primary">
736
738
  <oneOrMore>
737
739
  <ref name="PureTextElement"/>
@@ -789,6 +789,9 @@
789
789
  <attribute name="width"/>
790
790
  </element>
791
791
  </define>
792
+ <define name="BibItemType" combine="choice">
793
+ <value>internal</value>
794
+ </define>
792
795
  <define name="TextElement" combine="choice">
793
796
  <ref name="concept"/>
794
797
  </define>
@@ -505,7 +505,7 @@ h3 {
505
505
  mso-list: l1 level3 lfo6;
506
506
  mso-hyphenate: none;
507
507
  tab-stops: list 36.0pt left 44.0pt;
508
- font-size: {{smallerfontsize}};
508
+ font-size: {{normalfontsize}};
509
509
  font-family: {{headerfont}};
510
510
  font-weight: normal;
511
511
  color: #0E1A85;
@@ -533,7 +533,7 @@ h4 {
533
533
  mso-list: l1 level4 lfo6;
534
534
  mso-hyphenate: none;
535
535
  tab-stops: 51.05pt 57.0pt 68.0pt;
536
- font-size: {{smallerfontsize}};
536
+ font-size: {{normalfontsize}};
537
537
  font-family: {{headerfont}};
538
538
  font-weight: normal;
539
539
  color: #0E1A85;
@@ -561,7 +561,7 @@ h5 {
561
561
  mso-list: l1 level5 lfo6;
562
562
  mso-hyphenate: none;
563
563
  tab-stops: 51.05pt list 54.0pt;
564
- font-size: {{smallerfontsize}};
564
+ font-size: {{normalfontsize}};
565
565
  font-family: {{headerfont}};
566
566
  font-weight: normal;
567
567
  mso-fareast-font-family: {{headerfont}};
@@ -589,7 +589,7 @@ h6 {
589
589
  mso-list: l1 level6 lfo6;
590
590
  mso-hyphenate: none;
591
591
  tab-stops: 51.05pt list 72.0pt;
592
- font-size: {{smallerfontsize}};
592
+ font-size: {{normalfontsize}};
593
593
  font-family: {{headerfont}};
594
594
  font-weight: normal;
595
595
  color: #0E1A85;
@@ -471,7 +471,7 @@ h3
471
471
  mso-list:l1 level3 lfo6;
472
472
  mso-hyphenate:none;
473
473
  tab-stops:list 36.0pt left 44.0pt;
474
- font-size:$smallerfontsize;
474
+ font-size:$normalfontsize;
475
475
  font-family:$headerfont;
476
476
  font-weight:normal;
477
477
  color:#0E1A85;
@@ -498,7 +498,7 @@ h4
498
498
  mso-list:l1 level4 lfo6;
499
499
  mso-hyphenate:none;
500
500
  tab-stops:51.05pt 57.0pt 68.0pt;
501
- font-size:$smallerfontsize;
501
+ font-size:$normalfontsize;
502
502
  font-family:$headerfont;
503
503
  font-weight:normal;
504
504
  color:#0E1A85;
@@ -525,7 +525,7 @@ h5
525
525
  mso-list:l1 level5 lfo6;
526
526
  mso-hyphenate:none;
527
527
  tab-stops:51.05pt list 54.0pt;
528
- font-size:$smallerfontsize;
528
+ font-size:$normalfontsize;
529
529
  font-family:$headerfont;
530
530
  font-weight:normal;
531
531
  mso-fareast-font-family:$headerfont;
@@ -552,7 +552,7 @@ h6
552
552
  mso-list:l1 level6 lfo6;
553
553
  mso-hyphenate:none;
554
554
  tab-stops:51.05pt list 72.0pt;
555
- font-size:$smallerfontsize;
555
+ font-size:$normalfontsize;
556
556
  font-family:$headerfont;
557
557
  font-weight:normal;
558
558
  color:#0E1A85;
@@ -1297,6 +1297,7 @@
1297
1297
 
1298
1298
 
1299
1299
 
1300
+
1300
1301
  </xsl:attribute-set><xsl:attribute-set name="quote-source-style">
1301
1302
 
1302
1303
  <xsl:attribute name="text-align">right</xsl:attribute>
@@ -1440,7 +1441,7 @@
1440
1441
  </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
1441
1442
  <!-- <xsl:call-template name="add-zero-spaces"/> -->
1442
1443
  <xsl:call-template name="add-zero-spaces-java"/>
1443
- </xsl:template><xsl:template match="*[local-name()='table']">
1444
+ </xsl:template><xsl:template match="*[local-name()='table']" name="table">
1444
1445
 
1445
1446
  <xsl:variable name="simple-table">
1446
1447
  <xsl:call-template name="getSimpleTable"/>
@@ -2669,6 +2670,7 @@
2669
2670
 
2670
2671
 
2671
2672
 
2673
+
2672
2674
  10
2673
2675
 
2674
2676
  </xsl:variable>
@@ -3271,7 +3273,7 @@
3271
3273
  </xsl:if> -->
3272
3274
  </fo:inline>
3273
3275
  </xsl:if>
3274
- </xsl:template><xsl:template match="*[local-name() = 'figure']">
3276
+ </xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
3275
3277
  <fo:block-container id="{@id}">
3276
3278
 
3277
3279
  <fo:block>
@@ -3478,6 +3480,12 @@
3478
3480
  <!-- <xsl:text> </xsl:text> -->
3479
3481
  </xsl:template><xsl:template name="getSection">
3480
3482
  <xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
3483
+ <!--
3484
+ <xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
3485
+ <xsl:value-of select="."/>
3486
+ </xsl:for-each>
3487
+ -->
3488
+
3481
3489
  </xsl:template><xsl:template name="getName">
3482
3490
  <xsl:choose>
3483
3491
  <xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
@@ -3530,6 +3538,10 @@
3530
3538
  <xsl:copy>
3531
3539
  <xsl:apply-templates mode="contents_item"/>
3532
3540
  </xsl:copy>
3541
+ </xsl:template><xsl:template match="*[local-name() = 'em']" mode="contents_item">
3542
+ <xsl:copy>
3543
+ <xsl:apply-templates mode="contents_item"/>
3544
+ </xsl:copy>
3533
3545
  </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
3534
3546
  <xsl:text> </xsl:text>
3535
3547
  </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
@@ -3555,6 +3567,7 @@
3555
3567
 
3556
3568
 
3557
3569
 
3570
+
3558
3571
 
3559
3572
 
3560
3573
 
@@ -4085,6 +4098,7 @@
4085
4098
 
4086
4099
 
4087
4100
 
4101
+
4088
4102
 
4089
4103
 
4090
4104
  <xsl:variable name="pos"><xsl:number count="rsd:sections/rsd:clause[not(@type='scope') and not(@type='conformance')]"/></xsl:variable> <!-- | rsd:sections/rsd:terms -->
@@ -4101,7 +4115,7 @@
4101
4115
 
4102
4116
 
4103
4117
 
4104
- </xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2">
4118
+ </xsl:template><xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
4105
4119
  <fo:block break-after="page"/>
4106
4120
  <fo:block>
4107
4121
  <xsl:call-template name="setId"/>
@@ -4109,7 +4123,8 @@
4109
4123
  </fo:block>
4110
4124
  </xsl:template><xsl:template match="*[local-name() = 'clause']">
4111
4125
  <fo:block>
4112
- <xsl:call-template name="setId"/>
4126
+ <xsl:call-template name="setId"/>
4127
+
4113
4128
 
4114
4129
  <xsl:apply-templates/>
4115
4130
  </fo:block>
@@ -4281,6 +4296,57 @@
4281
4296
  </xsl:variable>
4282
4297
  <xsl:variable name="result">
4283
4298
  <xsl:choose>
4299
+ <xsl:when test="$format = 'ddMMyyyy'">
4300
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4301
+ <xsl:text> </xsl:text>
4302
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
4303
+ </xsl:when>
4304
+ <xsl:when test="$format = 'ddMM'">
4305
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4306
+ <xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
4307
+ </xsl:when>
4308
+ <xsl:when test="$format = 'short' or $day = ''">
4309
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
4310
+ </xsl:when>
4311
+ <xsl:otherwise>
4312
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
4313
+ </xsl:otherwise>
4314
+ </xsl:choose>
4315
+ </xsl:variable>
4316
+ <xsl:value-of select="$result"/>
4317
+ </xsl:template><xsl:template name="convertDateLocalized">
4318
+ <xsl:param name="date"/>
4319
+ <xsl:param name="format" select="'short'"/>
4320
+ <xsl:variable name="year" select="substring($date, 1, 4)"/>
4321
+ <xsl:variable name="month" select="substring($date, 6, 2)"/>
4322
+ <xsl:variable name="day" select="substring($date, 9, 2)"/>
4323
+ <xsl:variable name="monthStr">
4324
+ <xsl:choose>
4325
+ <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>
4326
+ <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>
4327
+ <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>
4328
+ <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>
4329
+ <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>
4330
+ <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>
4331
+ <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>
4332
+ <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>
4333
+ <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>
4334
+ <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>
4335
+ <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>
4336
+ <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>
4337
+ </xsl:choose>
4338
+ </xsl:variable>
4339
+ <xsl:variable name="result">
4340
+ <xsl:choose>
4341
+ <xsl:when test="$format = 'ddMMyyyy'">
4342
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4343
+ <xsl:text> </xsl:text>
4344
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
4345
+ </xsl:when>
4346
+ <xsl:when test="$format = 'ddMM'">
4347
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4348
+ <xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
4349
+ </xsl:when>
4284
4350
  <xsl:when test="$format = 'short' or $day = ''">
4285
4351
  <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
4286
4352
  </xsl:when>
@@ -4475,6 +4541,7 @@
4475
4541
 
4476
4542
 
4477
4543
 
4544
+
4478
4545
  </xsl:variable>
4479
4546
  <xsl:if test="$documentNS != $XSLNS">
4480
4547
  <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.6.11"
3
+ VERSION = "1.6.12"
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ["lib"]
29
29
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
30
30
 
31
- spec.add_dependency 'metanorma-generic', '~> 1.8.2'
31
+ spec.add_dependency 'metanorma-generic', '~> 1.9.0'
32
32
 
33
33
  spec.add_development_dependency "byebug", "~> 9.1"
34
34
  spec.add_development_dependency "sassc", "2.4.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.11
4
+ version: 1.6.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-generic
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.8.2
19
+ version: 1.9.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.8.2
26
+ version: 1.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement