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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1164c6fb0287be4c0c1f9f8d437cbcfedf5c7905d86c13f8992847a0bfb696d
4
- data.tar.gz: 06a084cdde9d262683e457ea5b2f9c3d57a1e3f14dcd17fc255854f8ff9c79e2
3
+ metadata.gz: 884443bd7f066d1f36f6619d27f1c18ccea67e94f7630c1683c316d1f6147a34
4
+ data.tar.gz: 8e6338fa60555339dcf8d1201d899ce9d12dfba028f928e3d9cf3f981560bb80
5
5
  SHA512:
6
- metadata.gz: 0b965a8f12e85d64c07ce2b36ebe51151c38e0c43542b3dd7a497cc2b344fbd7a58b2c4087f2f1ee90f9b1d67e4b9c73d1b7b43ddc2d5847af672602427cd357
7
- data.tar.gz: d3dc91a7831b1f94ec6abffa2f3a925218bb73c002e68c244c7c215ac051c2ac62fb6ba7951da04bf3a2b872d7ce3645bad326872fe50346b7fb8c0b366dade6
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"/>
@@ -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
- File.expand_path(File.join(here, "html", n)))
13
- set(:logo_comb,
14
- File.expand_path(File.join(here, "html", "itu-document-comb.png")))
15
- set(:logo_word,
16
- File.expand_path(File.join(here, "html", n)))
17
- set(:logo_sp,
18
- File.expand_path(File.join(here, "html", "logo-sp.png")))
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"].sub(/%/,
118
- pubdate.text.sub(
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("MMM")
160
- @i18n.l10n("#{m[:dd]} #{mmm} #{m[:yr]}")
157
+ .to_additional_s("yMMM")
158
+ @i18n.l10n("#{m[:dd]} #{mmm}")
161
159
  end
162
160
 
163
161
  def ddMMMMYYYY(date1, date2)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.4.1".freeze
3
+ VERSION = "1.4.2".freeze
4
4
  end
5
5
  end
@@ -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.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: 2021-11-04 00:00:00.000000000 Z
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: '0'
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: '0'
68
+ version: 3.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tzinfo-data
71
71
  requirement: !ruby/object:Gem::Requirement