metanorma-csa 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 662b71103ad56cc32d0fcbd4926a6b483b82cebc0658f7b7d792d81a36343686
4
- data.tar.gz: 38b71724171ea25595f588335abfd45a9b88e8fc5ff30a962d6341089adb667f
3
+ metadata.gz: d3ce871483aba209182d7c60ee564f676a812ce48ea7b9016a331efc4ebdaac9
4
+ data.tar.gz: 8b73c397a28b544ab66f5414010d66c8b44a358dd9ff3eb9acc191b550ce2ab9
5
5
  SHA512:
6
- metadata.gz: e223eec78966bdf647936260b2da185837a859ae95198bc1eaa459697d1f3d9743fea0a35ada5d6f9e050dce93550aae053d8a05ac9a1e663d63ff3703766b4b
7
- data.tar.gz: c3711271668f6f89107bffa7804fac1b97222ae9a8a553b2e592f4e409b70f899f105acf132cf80eae78697ad0707d541045c8d7be414a68f149324cc9a488a8
6
+ metadata.gz: f291b4a3ff5bdd2d00b9b79cc6525e02896c0a3bb79f9e14af6b80cfe052779a3732bfe925212b6b0b49ffd43b5189b9d97e68f46c09f0df77721d4bcf8d16ea
7
+ data.tar.gz: 167eb0d69a196e816b1bcc6bbfcf9638113404aa26b3de40ae23c8fa7054c980221b3e44be61a5ba3e4909a72adbf4cb5b331215a78f725f766de82f6405ef34
@@ -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>
@@ -1264,6 +1264,7 @@
1264
1264
 
1265
1265
 
1266
1266
 
1267
+
1267
1268
  </xsl:attribute-set><xsl:attribute-set name="quote-source-style">
1268
1269
 
1269
1270
  <xsl:attribute name="text-align">right</xsl:attribute>
@@ -1404,7 +1405,7 @@
1404
1405
  </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
1405
1406
  <!-- <xsl:call-template name="add-zero-spaces"/> -->
1406
1407
  <xsl:call-template name="add-zero-spaces-java"/>
1407
- </xsl:template><xsl:template match="*[local-name()='table']">
1408
+ </xsl:template><xsl:template match="*[local-name()='table']" name="table">
1408
1409
 
1409
1410
  <xsl:variable name="simple-table">
1410
1411
  <xsl:call-template name="getSimpleTable"/>
@@ -2632,6 +2633,7 @@
2632
2633
 
2633
2634
 
2634
2635
 
2636
+
2635
2637
 
2636
2638
  </xsl:variable>
2637
2639
  <xsl:variable name="font-size" select="normalize-space($_font-size)"/>
@@ -3229,7 +3231,7 @@
3229
3231
  </xsl:if> -->
3230
3232
  </fo:inline>
3231
3233
  </xsl:if>
3232
- </xsl:template><xsl:template match="*[local-name() = 'figure']">
3234
+ </xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
3233
3235
  <fo:block-container id="{@id}">
3234
3236
 
3235
3237
  <fo:block>
@@ -3436,6 +3438,12 @@
3436
3438
  <!-- <xsl:text> </xsl:text> -->
3437
3439
  </xsl:template><xsl:template name="getSection">
3438
3440
  <xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
3441
+ <!--
3442
+ <xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
3443
+ <xsl:value-of select="."/>
3444
+ </xsl:for-each>
3445
+ -->
3446
+
3439
3447
  </xsl:template><xsl:template name="getName">
3440
3448
  <xsl:choose>
3441
3449
  <xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
@@ -3488,6 +3496,10 @@
3488
3496
  <xsl:copy>
3489
3497
  <xsl:apply-templates mode="contents_item"/>
3490
3498
  </xsl:copy>
3499
+ </xsl:template><xsl:template match="*[local-name() = 'em']" mode="contents_item">
3500
+ <xsl:copy>
3501
+ <xsl:apply-templates mode="contents_item"/>
3502
+ </xsl:copy>
3491
3503
  </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
3492
3504
  <xsl:text> </xsl:text>
3493
3505
  </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
@@ -3513,6 +3525,7 @@
3513
3525
 
3514
3526
 
3515
3527
 
3528
+
3516
3529
 
3517
3530
 
3518
3531
 
@@ -4048,6 +4061,7 @@
4048
4061
 
4049
4062
 
4050
4063
 
4064
+
4051
4065
 
4052
4066
 
4053
4067
 
@@ -4059,7 +4073,7 @@
4059
4073
 
4060
4074
 
4061
4075
 
4062
- </xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2">
4076
+ </xsl:template><xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
4063
4077
  <fo:block break-after="page"/>
4064
4078
  <fo:block>
4065
4079
  <xsl:call-template name="setId"/>
@@ -4067,7 +4081,8 @@
4067
4081
  </fo:block>
4068
4082
  </xsl:template><xsl:template match="*[local-name() = 'clause']">
4069
4083
  <fo:block>
4070
- <xsl:call-template name="setId"/>
4084
+ <xsl:call-template name="setId"/>
4085
+
4071
4086
 
4072
4087
  <xsl:apply-templates/>
4073
4088
  </fo:block>
@@ -4239,6 +4254,57 @@
4239
4254
  </xsl:variable>
4240
4255
  <xsl:variable name="result">
4241
4256
  <xsl:choose>
4257
+ <xsl:when test="$format = 'ddMMyyyy'">
4258
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4259
+ <xsl:text> </xsl:text>
4260
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
4261
+ </xsl:when>
4262
+ <xsl:when test="$format = 'ddMM'">
4263
+ <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
4264
+ <xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
4265
+ </xsl:when>
4266
+ <xsl:when test="$format = 'short' or $day = ''">
4267
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
4268
+ </xsl:when>
4269
+ <xsl:otherwise>
4270
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
4271
+ </xsl:otherwise>
4272
+ </xsl:choose>
4273
+ </xsl:variable>
4274
+ <xsl:value-of select="$result"/>
4275
+ </xsl:template><xsl:template name="convertDateLocalized">
4276
+ <xsl:param name="date"/>
4277
+ <xsl:param name="format" select="'short'"/>
4278
+ <xsl:variable name="year" select="substring($date, 1, 4)"/>
4279
+ <xsl:variable name="month" select="substring($date, 6, 2)"/>
4280
+ <xsl:variable name="day" select="substring($date, 9, 2)"/>
4281
+ <xsl:variable name="monthStr">
4282
+ <xsl:choose>
4283
+ <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>
4284
+ <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>
4285
+ <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>
4286
+ <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>
4287
+ <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>
4288
+ <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>
4289
+ <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>
4290
+ <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>
4291
+ <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>
4292
+ <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>
4293
+ <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>
4294
+ <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>
4295
+ </xsl:choose>
4296
+ </xsl:variable>
4297
+ <xsl:variable name="result">
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>
4242
4308
  <xsl:when test="$format = 'short' or $day = ''">
4243
4309
  <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
4244
4310
  </xsl:when>
@@ -4433,6 +4499,7 @@
4433
4499
 
4434
4500
 
4435
4501
 
4502
+
4436
4503
  </xsl:variable>
4437
4504
  <xsl:if test="$documentNS != $XSLNS">
4438
4505
  <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
@@ -22,7 +22,8 @@ module Metanorma
22
22
 
23
23
  def fonts_manifest
24
24
  {
25
- "AzoSans" => nil,
25
+ #"AzoSans" => nil,
26
+ "Lato" => nil,
26
27
  "STIX Two Math" => nil,
27
28
  "Source Code Pro" => nil,
28
29
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Csa
5
- VERSION = '1.7.2'
5
+ VERSION = '1.7.3'
6
6
  end
7
7
  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"
@@ -3,8 +3,8 @@ organization_name_short: CSA
3
3
  organization_name_long: Cloud Security Alliance
4
4
  document_namespace: https://www.metanorma.org/ns/csa
5
5
  xml_root_tag: csa-standard
6
- html_bodyfont: 'AzoSans,"Source Sans Pro",sans-serif'
7
- html_headerfont: 'AzoSans,"Source Sans Pro",sans-serif'
6
+ html_bodyfont: 'Lato,"Source Sans Pro",sans-serif'
7
+ html_headerfont: 'Lato,"Source Sans Pro",sans-serif'
8
8
  html_monospacefont: '"Source Code Pro",monospace'
9
9
  validate_rng_file: lib/asciidoctor/csa/csa.rng
10
10
  htmlcoverpage: lib/isodoc/csa/html/html_csa_titlepage.html
@@ -15,8 +15,8 @@ html_monospacefontsize: "1.0em"
15
15
  html_footnotefontsize: "0.9em"
16
16
  scripts: lib/isodoc/csa/html/scripts.html
17
17
  i18nyaml: lib/isodoc/csa/i18n-en.yaml
18
- word_bodyfont: 'AzoSans,Arial,sans-serif'
19
- word_headerfont: 'AzoSans,Arial,sans-serif'
18
+ word_bodyfont: 'Lato,Arial,sans-serif'
19
+ word_headerfont: 'Lato,Arial,sans-serif'
20
20
  word_monospacefont: '"Source Code Pro","Courier New",monospace'
21
21
  word_normalfontsize: "10.5pt"
22
22
  word_smallerfontsize: "10.0pt"
@@ -29,6 +29,7 @@ wordintropage: lib/isodoc/csa/html/word_csa_intro.html
29
29
  wordstylesheet: lib/isodoc/csa/html/wordstyle.scss
30
30
  webfont:
31
31
  - "https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700"
32
+ - "https://fonts.googleapis.com/css?family=Lato:400,400i,700,900"
32
33
  - "https://fonts.googleapis.com/css?family=Rubik:300,300i,500"
33
34
  - "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,700,900"
34
35
  - "https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,300;0,600;1,300;1,600&display=swap"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
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