metanorma-iec 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/iec.international-standard.xsl +23 -3
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/isodoc/ref_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd38c355c3d2dd1cdf7e109be5e326c18f18c9f5d7b9f5cbe815c58687eafd56
|
|
4
|
+
data.tar.gz: 8441df7cd2ba4eed2d0015391b06b4058fb74f428a7e8cd27beeafe6d10d7f6b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f568d89fbe727d8b21040c8f56a2457ac08acc67b598e2a9ad8a03a03ff67974162ad687096df66d6eb6c153dd72abec30ec717307fbdf59373954dfbc28b66e
|
|
7
|
+
data.tar.gz: af527efbfcdeb9cd6ffa68bfe1f598b08fb57201bd217a90f860e62e20e3588f5a7ec4e90f7e263634f9dba417ed6c15db332ce913a718466da9dd98f03383f0
|
|
@@ -3343,8 +3343,27 @@
|
|
|
3343
3343
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
3344
3344
|
<xsl:apply-templates select="."/>
|
|
3345
3345
|
</xsl:for-each>
|
|
3346
|
-
</xsl:template><xsl:template match="text()">
|
|
3347
|
-
<xsl:
|
|
3346
|
+
</xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
|
|
3347
|
+
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
|
3348
|
+
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
|
|
3349
|
+
<xsl:call-template name="replace_fo_inline">
|
|
3350
|
+
<xsl:with-param name="text" select="$text"/>
|
|
3351
|
+
</xsl:call-template>
|
|
3352
|
+
</xsl:template><xsl:template name="replace_fo_inline">
|
|
3353
|
+
<xsl:param name="text"/>
|
|
3354
|
+
<xsl:choose>
|
|
3355
|
+
<xsl:when test="contains($text, $tag_open)">
|
|
3356
|
+
<xsl:value-of select="substring-before($text, $tag_open)"/>
|
|
3357
|
+
<xsl:text disable-output-escaping="yes"><fo:inline keep-together.within-line="always"></xsl:text>
|
|
3358
|
+
<xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
|
|
3359
|
+
<xsl:value-of select="substring-before($text_after, $tag_close)"/>
|
|
3360
|
+
<xsl:text disable-output-escaping="yes"></fo:inline></xsl:text>
|
|
3361
|
+
<xsl:call-template name="replace_fo_inline">
|
|
3362
|
+
<xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
|
|
3363
|
+
</xsl:call-template>
|
|
3364
|
+
</xsl:when>
|
|
3365
|
+
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
|
3366
|
+
</xsl:choose>
|
|
3348
3367
|
</xsl:template><xsl:template match="*[local-name()='br']">
|
|
3349
3368
|
<xsl:value-of select="$linebreak"/>
|
|
3350
3369
|
</xsl:template><xsl:template match="*[local-name()='copyright-statement']">
|
|
@@ -7033,7 +7052,8 @@
|
|
|
7033
7052
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
|
7034
7053
|
</xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
|
|
7035
7054
|
<xsl:if test="normalize-space() != ''">
|
|
7036
|
-
<xsl:value-of select="."/>
|
|
7055
|
+
<!-- <xsl:value-of select="."/> -->
|
|
7056
|
+
<xsl:call-template name="text"/>
|
|
7037
7057
|
</xsl:if>
|
|
7038
7058
|
</xsl:template><xsl:template match="*[local-name() = 'quote']">
|
|
7039
7059
|
<fo:block-container margin-left="0mm">
|
data/spec/isodoc/ref_spec.rb
CHANGED
|
@@ -220,7 +220,7 @@ RSpec.describe IsoDoc::Iec do
|
|
|
220
220
|
<note><name>NOTE</name><p>This is another annotation of document ISSN.</p></note>
|
|
221
221
|
<bibitem id="ISO3696" type="standard">
|
|
222
222
|
<title format="text/plain">Water for analytical laboratory use</title>
|
|
223
|
-
<docidentifier type='metanorma-ordinal'>[
|
|
223
|
+
<docidentifier type='metanorma-ordinal'>[3]</docidentifier>
|
|
224
224
|
<docidentifier type="ISO">ISO 3696</docidentifier>
|
|
225
225
|
<contributor>
|
|
226
226
|
<role type="publisher"/>
|
|
@@ -235,7 +235,7 @@ RSpec.describe IsoDoc::Iec do
|
|
|
235
235
|
</bibitem>
|
|
236
236
|
<bibitem id="ref11">
|
|
237
237
|
<title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
|
|
238
|
-
<docidentifier type='metanorma-ordinal'>[
|
|
238
|
+
<docidentifier type='metanorma-ordinal'>[4]</docidentifier>
|
|
239
239
|
<docidentifier type="IETF">IETF RFC 10</docidentifier>
|
|
240
240
|
</bibitem>
|
|
241
241
|
<bibitem id="ref12">
|
|
@@ -337,7 +337,7 @@ RSpec.describe IsoDoc::Iec do
|
|
|
337
337
|
</p>
|
|
338
338
|
</div>
|
|
339
339
|
<p id='ISO3696' class='Biblio'>
|
|
340
|
-
[
|
|
340
|
+
[3]  ISO 3696,
|
|
341
341
|
<i>Water for analytical laboratory use</i>
|
|
342
342
|
</p>
|
|
343
343
|
<p id='ref10' class='Biblio'>
|
|
@@ -354,7 +354,7 @@ RSpec.describe IsoDoc::Iec do
|
|
|
354
354
|
)
|
|
355
355
|
</p>
|
|
356
356
|
<p id='ref11' class='Biblio'>
|
|
357
|
-
[
|
|
357
|
+
[4]  IETF RFC 10,
|
|
358
358
|
<i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i>
|
|
359
359
|
</p>
|
|
360
360
|
<p id='ref12' class='Biblio'>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-iec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-iso
|