metanorma-m3aawg 1.4.1 → 1.4.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: 1182f89343c85935169f128297bd1fecd803b61d3d6c3d781025008d6f066143
4
- data.tar.gz: 5b3f3cbd5a0d6d8b1cf130cdd05a12a1d3649495781adc988fdebb3a16845665
3
+ metadata.gz: e740890023f1b2d52f1f9b7f727a2ba15b8ec87d4d3383a62cddadf58ee0bf49
4
+ data.tar.gz: 5b4c4e33450c790a84017c370269e6dd8fbd87574addc193e69d87cd76b70e91
5
5
  SHA512:
6
- metadata.gz: 5ec1373376f2d8c5cf0ce4ae4b1f10b47d9fb8eac648f74555c25382d79fd5c81e2f6868e79b5de05e76c114991ed3c37803c86233ec6186cfe0399fd67b9f84
7
- data.tar.gz: 1f992c6fde4cac20f162e075ba9d052a5ee8366b1886de301784d2987b4699c9f9b8ef436370f2519638727355d03bde492bad6909963ebd8afa95748fa9be19
6
+ metadata.gz: d76ed9c85e2fe5f6d8457d69602a98b224857428d03717a753fd2171ec5dd53aa6142863d25611c51490c542e1f374a010d0068408a5e802ed6e47307b19794e
7
+ data.tar.gz: fb0b34045ed760b3c93e92e176b611d6853eff2e424edb6c660cc2123c5109bc3211b691ea9667d696c5d4ffc13377a3aaf1906ea457f861a518f17cad727b2e
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
@@ -740,4 +740,3 @@ span.note_label, span.example_label, td.example_label, td.note_label
740
740
  font-size: 10.0pt;
741
741
  font-family:$bodyfont;
742
742
  }
743
-
@@ -1172,4 +1172,3 @@ ol
1172
1172
  ul
1173
1173
  {margin-bottom:0cm;
1174
1174
  margin-left:18pt;}
1175
-
@@ -2240,6 +2240,7 @@
2240
2240
  <fo:inline padding-right="2mm">
2241
2241
 
2242
2242
 
2243
+
2243
2244
  <xsl:variable name="title-note">
2244
2245
  <xsl:call-template name="getTitle">
2245
2246
  <xsl:with-param name="name" select="'title-note'"/>
@@ -3296,4 +3297,35 @@
3296
3297
  </xsl:if>
3297
3298
  </xsl:template><xsl:template name="getDocumentId">
3298
3299
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
3300
+ </xsl:template><xsl:template name="namespaceCheck">
3301
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
3302
+ <xsl:variable name="XSLNS">
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+
3310
+
3311
+
3312
+
3313
+ <xsl:value-of select="document('')//*/namespace::m3d"/>
3314
+
3315
+
3316
+
3317
+ </xsl:variable>
3318
+ <xsl:if test="$documentNS != $XSLNS">
3319
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
3320
+ </xsl:if>
3321
+ </xsl:template><xsl:template name="getLanguage">
3322
+ <xsl:param name="lang"/>
3323
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
3324
+ <xsl:choose>
3325
+ <xsl:when test="$language = 'en'">English</xsl:when>
3326
+ <xsl:when test="$language = 'fr'">French</xsl:when>
3327
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
3328
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
3329
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
3330
+ </xsl:choose>
3299
3331
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module M3AAWG
3
- VERSION = "1.4.1"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
@@ -37,9 +37,9 @@ Gem::Specification.new do |spec|
37
37
  spec.add_dependency "uuidtools"
38
38
 
39
39
  spec.add_dependency "metanorma-standoc", "~> 1.4.0"
40
- spec.add_dependency "isodoc", "~> 1.1.0"
41
40
 
42
41
  spec.add_development_dependency "byebug", "~> 9.1"
42
+ spec.add_development_dependency "sassc", "~> 2.4.0"
43
43
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
44
44
  spec.add_development_dependency "guard", "~> 2.14"
45
45
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-m3aawg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.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
@@ -109,33 +109,33 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.4.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: isodoc
112
+ name: byebug
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.1.0
118
- type: :runtime
117
+ version: '9.1'
118
+ type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.1.0
124
+ version: '9.1'
125
125
  - !ruby/object:Gem::Dependency
126
- name: byebug
126
+ name: sassc
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '9.1'
131
+ version: 2.4.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '9.1'
138
+ version: 2.4.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: equivalent-xml
141
141
  requirement: !ruby/object:Gem::Requirement