metanorma-iec 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: 1e123d7cd2fe3acbb04fbebfdf53976049971f8f9b88c8bfa349b64fbebaf79f
4
- data.tar.gz: d539598842323c7d723d5c02511bc7966cfd8642ccee84e02b76766ce358d125
3
+ metadata.gz: a03790c16ae55ccf7da30ce41dfe6545ccf0da95ad4d4df47bdd4195df78c1fe
4
+ data.tar.gz: 35343d7963ac64e990d2745982d8973d5e73877a1185a6c6b63793db33ee99fb
5
5
  SHA512:
6
- metadata.gz: 422de6d91b524f4a284bb9bdd8da449f150f17f7455d84c180e3150d26faf6ac87f2a0657e9aaea02fc76de25c9c3c9970c66840056faf83dcbc4381878a4a44
7
- data.tar.gz: a7cfba9b0accd255861edb7ac64e78aca4e7e54f3d0aff449d48dcd5463938866e83904d67152cacbf49d96db297414137a46a3d453b9f30397c7e6655fd9511
6
+ metadata.gz: a99840caae5508f6568548c9b9786027c883872ec659384498c46f42a7e5ed3d7976cd4a8505c4e1382306ed8d7a7ef29dd6e704107e675e36b5a2a11991d945
7
+ data.tar.gz: 2d31918fd1515324b6614518999a5a9575c8426ffedb84076fbd4adcfd7ed7f12708adef7ed196276b8168ab1390abeca2c11c49d28a1df1ccf78c465caba867
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
@@ -701,6 +701,3 @@ span.keyword {
701
701
  .Admonition p, .admonition p {
702
702
  margin: 0;
703
703
  }
704
-
705
-
706
-
@@ -834,4 +834,3 @@ span.note_label, td.note_label
834
834
  font-size: 8.0pt;
835
835
  font-family:$bodyfont;
836
836
  }
837
-
@@ -1852,4 +1852,3 @@ ol
1852
1852
  ul
1853
1853
  {margin-bottom:0cm;
1854
1854
  margin-left:18pt;}
1855
-
@@ -3607,6 +3607,7 @@
3607
3607
  <fo:inline padding-right="2mm">
3608
3608
 
3609
3609
 
3610
+
3610
3611
  <xsl:variable name="title-note">
3611
3612
  <xsl:call-template name="getTitle">
3612
3613
  <xsl:with-param name="name" select="'title-note'"/>
@@ -4704,4 +4705,35 @@
4704
4705
  </xsl:if>
4705
4706
  </xsl:template><xsl:template name="getDocumentId">
4706
4707
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
4708
+ </xsl:template><xsl:template name="namespaceCheck">
4709
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
4710
+ <xsl:variable name="XSLNS">
4711
+
4712
+
4713
+ <xsl:value-of select="document('')//*/namespace::iec"/>
4714
+
4715
+
4716
+
4717
+
4718
+
4719
+
4720
+
4721
+
4722
+
4723
+
4724
+
4725
+ </xsl:variable>
4726
+ <xsl:if test="$documentNS != $XSLNS">
4727
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
4728
+ </xsl:if>
4729
+ </xsl:template><xsl:template name="getLanguage">
4730
+ <xsl:param name="lang"/>
4731
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
4732
+ <xsl:choose>
4733
+ <xsl:when test="$language = 'en'">English</xsl:when>
4734
+ <xsl:when test="$language = 'fr'">French</xsl:when>
4735
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
4736
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
4737
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
4738
+ </xsl:choose>
4707
4739
  </xsl:template></xsl:stylesheet>
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
6
6
 
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency "metanorma-iso", "~> 1.4.0"
33
33
 
34
34
  spec.add_development_dependency "byebug"
35
+ spec.add_development_dependency "sassc", "2.4.0"
35
36
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
36
37
  spec.add_development_dependency "guard", "~> 2.14"
37
38
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
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: bin
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: ruby-jing
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sassc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 2.4.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 2.4.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: equivalent-xml
71
85
  requirement: !ruby/object:Gem::Requirement