metanorma-itu 1.3.12 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -2719,6 +2719,11 @@
2719
2719
 
2720
2720
 
2721
2721
 
2722
+ </xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
2723
+
2724
+
2725
+
2726
+
2722
2727
  </xsl:attribute-set><xsl:attribute-set name="note-p-style">
2723
2728
 
2724
2729
 
@@ -3871,9 +3876,8 @@
3871
3876
 
3872
3877
  <!-- Table's note name (NOTE, for example) -->
3873
3878
 
3874
- <fo:inline padding-right="2mm">
3879
+ <fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
3875
3880
 
3876
-
3877
3881
 
3878
3882
 
3879
3883
 
@@ -4521,6 +4525,8 @@
4521
4525
  <xsl:if test="$font-size != ''">
4522
4526
  <xsl:attribute name="font-size">
4523
4527
  <xsl:choose>
4528
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
4529
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
4524
4530
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
4525
4531
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
4526
4532
  </xsl:choose>
@@ -5985,12 +5991,16 @@
5985
5991
  <xsl:if test="$font-size != ''">
5986
5992
  <xsl:attribute name="font-size">
5987
5993
  <xsl:choose>
5994
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
5995
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
5988
5996
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
5989
5997
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
5990
5998
  </xsl:choose>
5991
5999
  </xsl:attribute>
5992
6000
  </xsl:if>
5993
6001
 
6002
+
6003
+
5994
6004
  <xsl:apply-templates/>
5995
6005
  </fo:block>
5996
6006
 
@@ -2719,6 +2719,11 @@
2719
2719
 
2720
2720
 
2721
2721
 
2722
+ </xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
2723
+
2724
+
2725
+
2726
+
2722
2727
  </xsl:attribute-set><xsl:attribute-set name="note-p-style">
2723
2728
 
2724
2729
 
@@ -3871,9 +3876,8 @@
3871
3876
 
3872
3877
  <!-- Table's note name (NOTE, for example) -->
3873
3878
 
3874
- <fo:inline padding-right="2mm">
3879
+ <fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
3875
3880
 
3876
-
3877
3881
 
3878
3882
 
3879
3883
 
@@ -4521,6 +4525,8 @@
4521
4525
  <xsl:if test="$font-size != ''">
4522
4526
  <xsl:attribute name="font-size">
4523
4527
  <xsl:choose>
4528
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
4529
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
4524
4530
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
4525
4531
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
4526
4532
  </xsl:choose>
@@ -5985,12 +5991,16 @@
5985
5991
  <xsl:if test="$font-size != ''">
5986
5992
  <xsl:attribute name="font-size">
5987
5993
  <xsl:choose>
5994
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
5995
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
5988
5996
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
5989
5997
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
5990
5998
  </xsl:choose>
5991
5999
  </xsl:attribute>
5992
6000
  </xsl:if>
5993
6001
 
6002
+
6003
+
5994
6004
  <xsl:apply-templates/>
5995
6005
  </fo:block>
5996
6006
 
@@ -2719,6 +2719,11 @@
2719
2719
 
2720
2720
 
2721
2721
 
2722
+ </xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
2723
+
2724
+
2725
+
2726
+
2722
2727
  </xsl:attribute-set><xsl:attribute-set name="note-p-style">
2723
2728
 
2724
2729
 
@@ -3871,9 +3876,8 @@
3871
3876
 
3872
3877
  <!-- Table's note name (NOTE, for example) -->
3873
3878
 
3874
- <fo:inline padding-right="2mm">
3879
+ <fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
3875
3880
 
3876
-
3877
3881
 
3878
3882
 
3879
3883
 
@@ -4521,6 +4525,8 @@
4521
4525
  <xsl:if test="$font-size != ''">
4522
4526
  <xsl:attribute name="font-size">
4523
4527
  <xsl:choose>
4528
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
4529
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
4524
4530
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
4525
4531
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
4526
4532
  </xsl:choose>
@@ -5985,12 +5991,16 @@
5985
5991
  <xsl:if test="$font-size != ''">
5986
5992
  <xsl:attribute name="font-size">
5987
5993
  <xsl:choose>
5994
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
5995
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
5988
5996
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
5989
5997
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
5990
5998
  </xsl:choose>
5991
5999
  </xsl:attribute>
5992
6000
  </xsl:if>
5993
6001
 
6002
+
6003
+
5994
6004
  <xsl:apply-templates/>
5995
6005
  </fo:block>
5996
6006
 
@@ -2719,6 +2719,11 @@
2719
2719
 
2720
2720
 
2721
2721
 
2722
+ </xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
2723
+
2724
+
2725
+
2726
+
2722
2727
  </xsl:attribute-set><xsl:attribute-set name="note-p-style">
2723
2728
 
2724
2729
 
@@ -3871,9 +3876,8 @@
3871
3876
 
3872
3877
  <!-- Table's note name (NOTE, for example) -->
3873
3878
 
3874
- <fo:inline padding-right="2mm">
3879
+ <fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
3875
3880
 
3876
-
3877
3881
 
3878
3882
 
3879
3883
 
@@ -4521,6 +4525,8 @@
4521
4525
  <xsl:if test="$font-size != ''">
4522
4526
  <xsl:attribute name="font-size">
4523
4527
  <xsl:choose>
4528
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
4529
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
4524
4530
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
4525
4531
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
4526
4532
  </xsl:choose>
@@ -5985,12 +5991,16 @@
5985
5991
  <xsl:if test="$font-size != ''">
5986
5992
  <xsl:attribute name="font-size">
5987
5993
  <xsl:choose>
5994
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
5995
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
5988
5996
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
5989
5997
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
5990
5998
  </xsl:choose>
5991
5999
  </xsl:attribute>
5992
6000
  </xsl:if>
5993
6001
 
6002
+
6003
+
5994
6004
  <xsl:apply-templates/>
5995
6005
  </fo:block>
5996
6006
 
@@ -2719,6 +2719,11 @@
2719
2719
 
2720
2720
 
2721
2721
 
2722
+ </xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
2723
+
2724
+
2725
+
2726
+
2722
2727
  </xsl:attribute-set><xsl:attribute-set name="note-p-style">
2723
2728
 
2724
2729
 
@@ -3871,9 +3876,8 @@
3871
3876
 
3872
3877
  <!-- Table's note name (NOTE, for example) -->
3873
3878
 
3874
- <fo:inline padding-right="2mm">
3879
+ <fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
3875
3880
 
3876
-
3877
3881
 
3878
3882
 
3879
3883
 
@@ -4521,6 +4525,8 @@
4521
4525
  <xsl:if test="$font-size != ''">
4522
4526
  <xsl:attribute name="font-size">
4523
4527
  <xsl:choose>
4528
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
4529
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
4524
4530
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
4525
4531
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
4526
4532
  </xsl:choose>
@@ -5985,12 +5991,16 @@
5985
5991
  <xsl:if test="$font-size != ''">
5986
5992
  <xsl:attribute name="font-size">
5987
5993
  <xsl:choose>
5994
+ <xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
5995
+ <xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
5988
5996
  <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
5989
5997
  <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
5990
5998
  </xsl:choose>
5991
5999
  </xsl:attribute>
5992
6000
  </xsl:if>
5993
6001
 
6002
+
6003
+
5994
6004
  <xsl:apply-templates/>
5995
6005
  </fo:block>
5996
6006
 
@@ -139,9 +139,10 @@ module IsoDoc
139
139
  if d == "recommendation-annex"
140
140
  set(:doctype, "Recommendation")
141
141
  set(:doctype_display, "Recommendation")
142
- else
143
- super
142
+ else super
144
143
  end
144
+ d = get[:doctype] and
145
+ set(:draft_new_doctype, @labels["draft_new"].sub(/%/, d))
145
146
  end
146
147
 
147
148
  def ip_notice_received(isoxml, _out)
@@ -14,10 +14,11 @@ module IsoDoc
14
14
 
15
15
  def pdf_stylesheet(docxml)
16
16
  doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
17
-
18
- "itu.#{doctype}.xsl" if File.exist?(File.join(@libdir, "itu.#{doctype}.xsl"))
19
-
20
- "itu.recommendation.xsl"
17
+ if File.exist?(File.join(@libdir, "itu.#{doctype}.xsl"))
18
+ "itu.#{doctype}.xsl"
19
+ else
20
+ "itu.recommendation.xsl"
21
+ end
21
22
  end
22
23
  end
23
24
  end
data/lib/isodoc/itu.rb CHANGED
@@ -7,6 +7,5 @@ require "isodoc/itu/presentation_xml_convert"
7
7
 
8
8
  module IsoDoc
9
9
  module ITU
10
-
11
10
  end
12
11
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.3.12".freeze
3
+ VERSION = "1.3.13".freeze
4
4
  end
5
5
  end
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.3.12
4
+ version: 1.3.13
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-09-27 00:00:00.000000000 Z
11
+ date: 2021-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities