metanorma-itu 1.1.1 → 1.1.2

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: c64bb790ac1dfa65f1a9f04584d0dd0ffd293c372df9b4812bc29501217bd1a4
4
- data.tar.gz: efe01eee56939ed68f7dd70d846f6d54f1ec71903fa7509bc2f65764c5bb37d4
3
+ metadata.gz: 7c860fb375c12e21bf639732bb67da38c2939cbec214bbba162f4d773d7d530f
4
+ data.tar.gz: 56b4e3f438505bde466d3fd5a4f80e9f041128ddedce299a29904c0adf2209b6
5
5
  SHA512:
6
- metadata.gz: 6a43368112b086f151bbd595a1a48d33563d7dba21435d1a16d78e3d21f2cd7c18a7ea1b22c4e3a3bef9cdb518e3e51207179df5e49a862bf9312bda2eaad72f
7
- data.tar.gz: 57c8ef4499538f54207e74757834138aa515c2f4100ed546824f2ed44d416d9908a301afcbce1d8636e926d6b5a04d128467128ce3cc68956da58350d0622c34
6
+ metadata.gz: d25adca47938c84b4bebea5e090648d0d337529b6266e858c09353337a1079aad4092f4fc95039cb1fd81b60a23c84063b34288561360beeb49bafacf919f472
7
+ data.tar.gz: b884cce668cc56da6dd132074686fabc166ea20ffb2dd0694594bf0e9014842e443d22084a6f2cfd4f45d1cd11e55d96fcbe4f571924558afde3e5ec9259645c
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
+ require 'isodoc/gem_tasks'
3
4
 
5
+ IsoDoc::GemTasks.install
4
6
  RSpec::Core::RakeTask.new(:spec)
5
7
 
6
8
  task :default => :spec
@@ -1,3 +1,5 @@
1
+ @import 'base_style/all';
2
+
1
3
  .icon-svg {
2
4
  width: 100%;
3
5
  color: #5ecf86;
@@ -1095,4 +1095,3 @@ table.dl
1095
1095
  table.biblio td {
1096
1096
  margin-bottom: 6pt;
1097
1097
  }
1098
-
@@ -1677,4 +1677,3 @@ ol
1677
1677
  ul
1678
1678
  {margin-bottom:0cm;
1679
1679
  margin-left:18pt;}
1680
-
@@ -3259,6 +3259,7 @@
3259
3259
  <fo:inline padding-right="2mm">
3260
3260
 
3261
3261
 
3262
+
3262
3263
  <xsl:variable name="title-note">
3263
3264
  <xsl:call-template name="getTitle">
3264
3265
  <xsl:with-param name="name" select="'title-note'"/>
@@ -4355,4 +4356,35 @@
4355
4356
  </xsl:if>
4356
4357
  </xsl:template><xsl:template name="getDocumentId">
4357
4358
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
4359
+ </xsl:template><xsl:template name="namespaceCheck">
4360
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
4361
+ <xsl:variable name="XSLNS">
4362
+
4363
+
4364
+
4365
+ <xsl:value-of select="document('')//*/namespace::itu"/>
4366
+
4367
+
4368
+
4369
+
4370
+
4371
+
4372
+
4373
+
4374
+
4375
+
4376
+ </xsl:variable>
4377
+ <xsl:if test="$documentNS != $XSLNS">
4378
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
4379
+ </xsl:if>
4380
+ </xsl:template><xsl:template name="getLanguage">
4381
+ <xsl:param name="lang"/>
4382
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
4383
+ <xsl:choose>
4384
+ <xsl:when test="$language = 'en'">English</xsl:when>
4385
+ <xsl:when test="$language = 'fr'">French</xsl:when>
4386
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
4387
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
4388
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
4389
+ </xsl:choose>
4358
4390
  </xsl:template></xsl:stylesheet>
@@ -3259,6 +3259,7 @@
3259
3259
  <fo:inline padding-right="2mm">
3260
3260
 
3261
3261
 
3262
+
3262
3263
  <xsl:variable name="title-note">
3263
3264
  <xsl:call-template name="getTitle">
3264
3265
  <xsl:with-param name="name" select="'title-note'"/>
@@ -4355,4 +4356,35 @@
4355
4356
  </xsl:if>
4356
4357
  </xsl:template><xsl:template name="getDocumentId">
4357
4358
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
4359
+ </xsl:template><xsl:template name="namespaceCheck">
4360
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
4361
+ <xsl:variable name="XSLNS">
4362
+
4363
+
4364
+
4365
+ <xsl:value-of select="document('')//*/namespace::itu"/>
4366
+
4367
+
4368
+
4369
+
4370
+
4371
+
4372
+
4373
+
4374
+
4375
+
4376
+ </xsl:variable>
4377
+ <xsl:if test="$documentNS != $XSLNS">
4378
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
4379
+ </xsl:if>
4380
+ </xsl:template><xsl:template name="getLanguage">
4381
+ <xsl:param name="lang"/>
4382
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
4383
+ <xsl:choose>
4384
+ <xsl:when test="$language = 'en'">English</xsl:when>
4385
+ <xsl:when test="$language = 'fr'">French</xsl:when>
4386
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
4387
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
4388
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
4389
+ </xsl:choose>
4358
4390
  </xsl:template></xsl:stylesheet>
@@ -3259,6 +3259,7 @@
3259
3259
  <fo:inline padding-right="2mm">
3260
3260
 
3261
3261
 
3262
+
3262
3263
  <xsl:variable name="title-note">
3263
3264
  <xsl:call-template name="getTitle">
3264
3265
  <xsl:with-param name="name" select="'title-note'"/>
@@ -4355,4 +4356,35 @@
4355
4356
  </xsl:if>
4356
4357
  </xsl:template><xsl:template name="getDocumentId">
4357
4358
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
4359
+ </xsl:template><xsl:template name="namespaceCheck">
4360
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
4361
+ <xsl:variable name="XSLNS">
4362
+
4363
+
4364
+
4365
+ <xsl:value-of select="document('')//*/namespace::itu"/>
4366
+
4367
+
4368
+
4369
+
4370
+
4371
+
4372
+
4373
+
4374
+
4375
+
4376
+ </xsl:variable>
4377
+ <xsl:if test="$documentNS != $XSLNS">
4378
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
4379
+ </xsl:if>
4380
+ </xsl:template><xsl:template name="getLanguage">
4381
+ <xsl:param name="lang"/>
4382
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
4383
+ <xsl:choose>
4384
+ <xsl:when test="$language = 'en'">English</xsl:when>
4385
+ <xsl:when test="$language = 'fr'">French</xsl:when>
4386
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
4387
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
4388
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
4389
+ </xsl:choose>
4358
4390
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "isodoc", "~> 1.1.0"
31
31
 
32
32
  spec.add_development_dependency "byebug", "~> 9.1"
33
+ spec.add_development_dependency "sassc", "2.4.0"
33
34
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
34
35
  spec.add_development_dependency "guard", "~> 2.14"
35
36
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
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-07-10 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '9.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sassc
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 2.4.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 2.4.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: equivalent-xml
85
99
  requirement: !ruby/object:Gem::Requirement