metanorma-cc 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/cc/cc.standard.xsl +34 -15
- data/lib/metanorma/cc/isodoc.rng +4 -1
- data/lib/metanorma/cc/version.rb +1 -1
- data/metanorma-cc.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: 40330602d80e0dd98cc08dac602112d1bb30a10028fef79de2ea1c949282e46a
|
4
|
+
data.tar.gz: ad9ccf5a0c533523b269ec1b7129f0fdeea59bc8f967528c39f67651b54c4d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45ec8e44d02e7ade2e331722519d64b4230c714b241f19cd6f76fd756a65d9ac21624533eb620ba96e976dcd536dc696da4d986691562934eec72b237d051e33
|
7
|
+
data.tar.gz: a58bec52d72164d02df9f8efb1f5a565e66b16b381492b3637d9a434e345eb3253538cac553d41114a78fb148fb3b6e6917abc288c007566b8b66e79774763d5
|
@@ -894,11 +894,26 @@
|
|
894
894
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
895
895
|
</xsl:if>
|
896
896
|
|
897
|
-
<xsl:
|
897
|
+
<xsl:variable name="font_family" select="."/>
|
898
898
|
|
899
|
-
<xsl:
|
900
|
-
<xsl:
|
901
|
-
|
899
|
+
<xsl:choose>
|
900
|
+
<xsl:when test="$additional_fonts = ''">
|
901
|
+
<xsl:value-of select="$font_family"/>
|
902
|
+
</xsl:when>
|
903
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
904
|
+
<xsl:choose>
|
905
|
+
<xsl:when test="contains($font_family, ',')">
|
906
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
907
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
908
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
909
|
+
</xsl:when>
|
910
|
+
<xsl:otherwise>
|
911
|
+
<xsl:value-of select="$font_family"/>
|
912
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
913
|
+
</xsl:otherwise>
|
914
|
+
</xsl:choose>
|
915
|
+
</xsl:otherwise>
|
916
|
+
</xsl:choose>
|
902
917
|
</xsl:attribute>
|
903
918
|
</xsl:when>
|
904
919
|
<xsl:otherwise>
|
@@ -3366,21 +3381,21 @@
|
|
3366
3381
|
|
3367
3382
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
3368
3383
|
|
3369
|
-
|
3384
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
3370
3385
|
|
3371
|
-
|
3386
|
+
<xsl:call-template name="refine_table-note-style"/>
|
3372
3387
|
|
3373
|
-
|
3374
|
-
|
3388
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
3389
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
3375
3390
|
|
3376
|
-
|
3391
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
3377
3392
|
|
3378
|
-
|
3393
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
3379
3394
|
|
3380
|
-
|
3395
|
+
</fo:inline>
|
3381
3396
|
|
3382
|
-
|
3383
|
-
|
3397
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
3398
|
+
</fo:block>
|
3384
3399
|
|
3385
3400
|
</xsl:template> <!-- table/note -->
|
3386
3401
|
|
@@ -6495,8 +6510,12 @@
|
|
6495
6510
|
<xsl:variable name="isAdded" select="../@added"/>
|
6496
6511
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
6497
6512
|
<xsl:choose>
|
6498
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
6513
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
6499
6514
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
6515
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
6516
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
6517
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
6518
|
+
</xsl:if>
|
6500
6519
|
<xsl:variable name="src">
|
6501
6520
|
<xsl:call-template name="image_src"/>
|
6502
6521
|
</xsl:variable>
|
@@ -6529,7 +6548,7 @@
|
|
6529
6548
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
6530
6549
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
6531
6550
|
|
6532
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
6551
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
6533
6552
|
<xsl:attribute name="width">
|
6534
6553
|
<xsl:value-of select="@width"/>
|
6535
6554
|
</xsl:attribute>
|
data/lib/metanorma/cc/isodoc.rng
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION v1.2.
|
20
|
+
<!-- VERSION v1.2.4 -->
|
21
21
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -2068,6 +2068,9 @@
|
|
2068
2068
|
</define>
|
2069
2069
|
<define name="termdefinition">
|
2070
2070
|
<element name="definition">
|
2071
|
+
<optional>
|
2072
|
+
<attribute name="type"/>
|
2073
|
+
</optional>
|
2071
2074
|
<choice>
|
2072
2075
|
<ref name="verbaldefinition"/>
|
2073
2076
|
<ref name="nonverbalrep"/>
|
data/lib/metanorma/cc/version.rb
CHANGED
data/metanorma-cc.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
31
31
|
|
32
|
-
spec.add_dependency "metanorma-generic", "~> 2.5.
|
32
|
+
spec.add_dependency "metanorma-generic", "~> 2.5.1"
|
33
33
|
|
34
34
|
spec.add_development_dependency "debug"
|
35
35
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.5.
|
19
|
+
version: 2.5.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.5.
|
26
|
+
version: 2.5.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|