metanorma-itu 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 +4 -4
- data/lib/isodoc/itu/itu.implementers-guide.xsl +4 -1
- data/lib/isodoc/itu/itu.in-force.xsl +4 -1
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +4 -1
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +4 -1
- data/lib/isodoc/itu/itu.recommendation.xsl +4 -1
- data/lib/isodoc/itu/itu.resolution.xsl +4 -1
- data/lib/isodoc/itu/itu.service-publication.xsl +4 -1
- data/lib/isodoc/itu/itu.technical-paper.xsl +4 -1
- data/lib/isodoc/itu/itu.technical-report.xsl +4 -1
- data/lib/isodoc/itu/metadata.rb +13 -15
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 884443bd7f066d1f36f6619d27f1c18ccea67e94f7630c1683c316d1f6147a34
|
4
|
+
data.tar.gz: 8e6338fa60555339dcf8d1201d899ce9d12dfba028f928e3d9cf3f981560bb80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0582f0b0770409d595b19e0976f2438b6fff7084b02220d35ac0e29936ba2c2fe98682810b21b502c029a5a6defdcb6e0d4a3f00142174c07ec44df5e2bd5db6'
|
7
|
+
data.tar.gz: f3e40a05f45bcf0f1a87a920210188c1700950aa676a78c7f08c31fa1c0cce04282a2ed47a9f64506528220893bf9d39c484e2f43a3f3a263b63cef4619d0085
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
@@ -7544,12 +7544,15 @@
|
|
7544
7544
|
<xsl:param name="default">left</xsl:param>
|
7545
7545
|
<xsl:attribute name="text-align">
|
7546
7546
|
<xsl:choose>
|
7547
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
7547
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
7548
7548
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
7549
7549
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
7550
7550
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
7551
7551
|
</xsl:choose>
|
7552
7552
|
</xsl:attribute>
|
7553
|
+
<xsl:if test="@align = 'indent'">
|
7554
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
7555
|
+
</xsl:if>
|
7553
7556
|
</xsl:template><xsl:template name="number-to-words">
|
7554
7557
|
<xsl:param name="number"/>
|
7555
7558
|
<xsl:param name="first"/>
|
data/lib/isodoc/itu/metadata.rb
CHANGED
@@ -6,16 +6,16 @@ module IsoDoc
|
|
6
6
|
class Metadata < IsoDoc::Metadata
|
7
7
|
def initialize(lang, script, labels)
|
8
8
|
super
|
9
|
-
here = File.dirname(__FILE__)
|
10
9
|
n = "International_Telecommunication_Union_Logo.svg"
|
11
|
-
set(:logo_html,
|
12
|
-
|
13
|
-
set(:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
set(:logo_html, fileloc(n))
|
11
|
+
set(:logo_comb, fileloc("itu-document-comb.png"))
|
12
|
+
set(:logo_word, fileloc(n))
|
13
|
+
set(:logo_sp, fileloc("logo-sp.png"))
|
14
|
+
end
|
15
|
+
|
16
|
+
def fileloc(file)
|
17
|
+
here = File.dirname(__FILE__)
|
18
|
+
File.expand_path(File.join(here, "html", file))
|
19
19
|
end
|
20
20
|
|
21
21
|
def title(isoxml, _out)
|
@@ -114,10 +114,8 @@ module IsoDoc
|
|
114
114
|
isoxml.at(ns("//bibdata/copyright/from"))
|
115
115
|
pubdate and
|
116
116
|
set(:placedate_year,
|
117
|
-
@labels["placedate"]
|
118
|
-
|
119
|
-
/^(\d\d\d\d).*$/, "\\1"
|
120
|
-
)))
|
117
|
+
@labels["placedate"]
|
118
|
+
.sub(/%/, pubdate.text.sub(/^(\d\d\d\d).*$/, "\\1")))
|
121
119
|
end
|
122
120
|
|
123
121
|
def monthyr(isodate)
|
@@ -156,8 +154,8 @@ module IsoDoc
|
|
156
154
|
return isodate unless m && m[:yr] && m[:mo] && m[:dd]
|
157
155
|
|
158
156
|
mmm = DateTime.parse(isodate).localize(@lang.to_sym)
|
159
|
-
.to_additional_s("
|
160
|
-
@i18n.l10n("#{m[:dd]} #{mmm}
|
157
|
+
.to_additional_s("yMMM")
|
158
|
+
@i18n.l10n("#{m[:dd]} #{mmm}")
|
161
159
|
end
|
162
160
|
|
163
161
|
def ddMMMMYYYY(date1, date2)
|
data/metanorma-itu.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
28
28
|
spec.add_dependency "metanorma-standoc", "~> 1.11.0"
|
29
29
|
spec.add_dependency "ruby-jing"
|
30
|
-
spec.add_dependency "twitter_cldr"
|
30
|
+
spec.add_dependency "twitter_cldr", ">= 3.0.0"
|
31
31
|
spec.add_dependency "tzinfo-data" # we need this for windows only
|
32
32
|
|
33
33
|
spec.add_development_dependency "byebug", "~> 9.1"
|
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.4.
|
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: 2021-11-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 3.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 3.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tzinfo-data
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|