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.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Rakefile +2 -2
- data/bin/rspec +1 -2
- data/lib/asciidoctor/itu/basicdoc.rng +21 -4
- data/lib/asciidoctor/itu/isodoc.rng +192 -50
- data/lib/asciidoctor/itu/itu.rng +3 -8
- data/lib/asciidoctor/itu/reqt.rng +23 -2
- data/lib/asciidoctor/itu.rb +0 -1
- data/lib/isodoc/itu/base_convert.rb +5 -2
- data/lib/isodoc/itu/html/wordstyle.css +29 -8
- data/lib/isodoc/itu/html/wordstyle.scss +29 -8
- data/lib/isodoc/itu/i18n-ar.yaml +1 -0
- data/lib/isodoc/itu/i18n-de.yaml +1 -0
- data/lib/isodoc/itu/i18n-en.yaml +1 -0
- data/lib/isodoc/itu/i18n-es.yaml +1 -0
- data/lib/isodoc/itu/i18n-fr.yaml +1 -0
- data/lib/isodoc/itu/i18n-ru.yaml +1 -0
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +1 -0
- data/lib/isodoc/itu/i18n.rb +1 -2
- data/lib/isodoc/itu/init.rb +1 -2
- data/lib/isodoc/itu/itu.implementers-guide.xsl +12 -2
- data/lib/isodoc/itu/itu.in-force.xsl +12 -2
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +12 -2
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +12 -2
- data/lib/isodoc/itu/itu.recommendation.xsl +12 -2
- data/lib/isodoc/itu/itu.resolution.xsl +12 -2
- data/lib/isodoc/itu/itu.service-publication.xsl +12 -2
- data/lib/isodoc/itu/itu.technical-paper.xsl +12 -2
- data/lib/isodoc/itu/itu.technical-report.xsl +12 -2
- data/lib/isodoc/itu/metadata.rb +3 -2
- data/lib/isodoc/itu/pdf_convert.rb +5 -4
- data/lib/isodoc/itu.rb +0 -1
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
@@ -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
|
|
data/lib/isodoc/itu/metadata.rb
CHANGED
@@ -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
|
-
|
19
|
-
|
20
|
-
|
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
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.
|
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-
|
11
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|