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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 853d28e406c62d6a579dd28f8cb61c8e94dc133441a98fd7c0bb77a76452387b
4
- data.tar.gz: 7114e1a86ee395f61c13a0f05a1813068da20bda5ca3f402fb91302969a31967
3
+ metadata.gz: fd38c355c3d2dd1cdf7e109be5e326c18f18c9f5d7b9f5cbe815c58687eafd56
4
+ data.tar.gz: 8441df7cd2ba4eed2d0015391b06b4058fb74f428a7e8cd27beeafe6d10d7f6b
5
5
  SHA512:
6
- metadata.gz: a9068350394bd65e4b2593a50ad7a367ba5e55cb1b9a63a60a9a627850052a75a2f57c61199f19cc32667574fca04c163b05d1122fcf07dfd55fb2d8c72a746f
7
- data.tar.gz: abe4a8a6c92df9930eb7be164f93a7fe44dc176b274a7fa06c38a71e22c81016d7a0eae5e71d16be7a1f2c49d5bf99112cfcf0c7e9a3f9f77017ab466280f6bc
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:value-of select="."/>
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">&lt;fo:inline keep-together.within-line="always"&gt;</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">&lt;/fo:inline&gt;</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">
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "2.0.6".freeze
3
+ VERSION = "2.0.7".freeze
4
4
  end
5
5
  end
6
6
 
@@ -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'>[1]</docidentifier>
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'>[2]</docidentifier>
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
- [1]&#160; ISO 3696,
340
+ [3]&#160; 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
- [2]&#160; IETF RFC 10,
357
+ [4]&#160; 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.6
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-03-21 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso