metanorma-bipm 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c1cda232376044f26ca0752d361382aaadbf7b1e8989434a03cbd11e7201221
4
- data.tar.gz: 44e2167a44382df941023c94cdc31bceb3b3b18debc0024767226d6fdfca365e
3
+ metadata.gz: 6dc6dea6bff44b301710108fe0f360f84c9a081c6503ccbf9903a612636ea72a
4
+ data.tar.gz: f58b879ba367233907371bae08d563fd354f5d9e8c06c9bdc65df8ed6457244d
5
5
  SHA512:
6
- metadata.gz: e68c38aec2249e23c2b1c0c6d2cbaecb9c4caf7e7d9bbdb5f47252c10500a22872d6f640934905739b9a8896ef1115590c5958d491edd5d83425ff24bab7e297
7
- data.tar.gz: 8e4019292a726ccd28ade7747eeac7bb722200309d48167e771f605b463871dbba98641825582f435fffade446f5009e44ec1f525cd0066bb417c010a366a517
6
+ metadata.gz: 74bdf97de373be23543a58265d760825cadb8ba489299332ccfffe8ff2515da405e0e3e648d2b62d7e75da1bbe485409e60a6e88cdab0cc36cbb9bc191a1b371
7
+ data.tar.gz: fa377c93817bd81211ef65e09abdc5f41b03256a297b4b130e50f991937600e88e31ebeb5d3bf6b170726e7e8a17178fa77e8df210505dfe8fccc63f898956ca
@@ -5302,8 +5302,27 @@
5302
5302
  <xsl:sort select="@displayorder" data-type="number"/>
5303
5303
  <xsl:apply-templates select="."/>
5304
5304
  </xsl:for-each>
5305
- </xsl:template><xsl:template match="text()">
5306
- <xsl:value-of select="."/>
5305
+ </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">
5306
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
5307
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
5308
+ <xsl:call-template name="replace_fo_inline">
5309
+ <xsl:with-param name="text" select="$text"/>
5310
+ </xsl:call-template>
5311
+ </xsl:template><xsl:template name="replace_fo_inline">
5312
+ <xsl:param name="text"/>
5313
+ <xsl:choose>
5314
+ <xsl:when test="contains($text, $tag_open)">
5315
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
5316
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
5317
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
5318
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
5319
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
5320
+ <xsl:call-template name="replace_fo_inline">
5321
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
5322
+ </xsl:call-template>
5323
+ </xsl:when>
5324
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
5325
+ </xsl:choose>
5307
5326
  </xsl:template><xsl:template match="*[local-name()='br']">
5308
5327
  <xsl:value-of select="$linebreak"/>
5309
5328
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -9080,7 +9099,8 @@
9080
9099
  <fo:inline><xsl:apply-templates/></fo:inline>
9081
9100
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
9082
9101
  <xsl:if test="normalize-space() != ''">
9083
- <xsl:value-of select="."/>
9102
+ <!-- <xsl:value-of select="."/> -->
9103
+ <xsl:call-template name="text"/>
9084
9104
  </xsl:if>
9085
9105
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
9086
9106
  <fo:block-container margin-left="0mm">
@@ -5302,8 +5302,27 @@
5302
5302
  <xsl:sort select="@displayorder" data-type="number"/>
5303
5303
  <xsl:apply-templates select="."/>
5304
5304
  </xsl:for-each>
5305
- </xsl:template><xsl:template match="text()">
5306
- <xsl:value-of select="."/>
5305
+ </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">
5306
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
5307
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
5308
+ <xsl:call-template name="replace_fo_inline">
5309
+ <xsl:with-param name="text" select="$text"/>
5310
+ </xsl:call-template>
5311
+ </xsl:template><xsl:template name="replace_fo_inline">
5312
+ <xsl:param name="text"/>
5313
+ <xsl:choose>
5314
+ <xsl:when test="contains($text, $tag_open)">
5315
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
5316
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
5317
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
5318
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
5319
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
5320
+ <xsl:call-template name="replace_fo_inline">
5321
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
5322
+ </xsl:call-template>
5323
+ </xsl:when>
5324
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
5325
+ </xsl:choose>
5307
5326
  </xsl:template><xsl:template match="*[local-name()='br']">
5308
5327
  <xsl:value-of select="$linebreak"/>
5309
5328
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -9080,7 +9099,8 @@
9080
9099
  <fo:inline><xsl:apply-templates/></fo:inline>
9081
9100
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
9082
9101
  <xsl:if test="normalize-space() != ''">
9083
- <xsl:value-of select="."/>
9102
+ <!-- <xsl:value-of select="."/> -->
9103
+ <xsl:call-template name="text"/>
9084
9104
  </xsl:if>
9085
9105
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
9086
9106
  <fo:block-container margin-left="0mm">
@@ -5302,8 +5302,27 @@
5302
5302
  <xsl:sort select="@displayorder" data-type="number"/>
5303
5303
  <xsl:apply-templates select="."/>
5304
5304
  </xsl:for-each>
5305
- </xsl:template><xsl:template match="text()">
5306
- <xsl:value-of select="."/>
5305
+ </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">
5306
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
5307
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
5308
+ <xsl:call-template name="replace_fo_inline">
5309
+ <xsl:with-param name="text" select="$text"/>
5310
+ </xsl:call-template>
5311
+ </xsl:template><xsl:template name="replace_fo_inline">
5312
+ <xsl:param name="text"/>
5313
+ <xsl:choose>
5314
+ <xsl:when test="contains($text, $tag_open)">
5315
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
5316
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
5317
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
5318
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
5319
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
5320
+ <xsl:call-template name="replace_fo_inline">
5321
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
5322
+ </xsl:call-template>
5323
+ </xsl:when>
5324
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
5325
+ </xsl:choose>
5307
5326
  </xsl:template><xsl:template match="*[local-name()='br']">
5308
5327
  <xsl:value-of select="$linebreak"/>
5309
5328
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -9080,7 +9099,8 @@
9080
9099
  <fo:inline><xsl:apply-templates/></fo:inline>
9081
9100
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
9082
9101
  <xsl:if test="normalize-space() != ''">
9083
- <xsl:value-of select="."/>
9102
+ <!-- <xsl:value-of select="."/> -->
9103
+ <xsl:call-template name="text"/>
9084
9104
  </xsl:if>
9085
9105
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
9086
9106
  <fo:block-container margin-left="0mm">
@@ -5302,8 +5302,27 @@
5302
5302
  <xsl:sort select="@displayorder" data-type="number"/>
5303
5303
  <xsl:apply-templates select="."/>
5304
5304
  </xsl:for-each>
5305
- </xsl:template><xsl:template match="text()">
5306
- <xsl:value-of select="."/>
5305
+ </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">
5306
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
5307
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
5308
+ <xsl:call-template name="replace_fo_inline">
5309
+ <xsl:with-param name="text" select="$text"/>
5310
+ </xsl:call-template>
5311
+ </xsl:template><xsl:template name="replace_fo_inline">
5312
+ <xsl:param name="text"/>
5313
+ <xsl:choose>
5314
+ <xsl:when test="contains($text, $tag_open)">
5315
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
5316
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
5317
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
5318
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
5319
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
5320
+ <xsl:call-template name="replace_fo_inline">
5321
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
5322
+ </xsl:call-template>
5323
+ </xsl:when>
5324
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
5325
+ </xsl:choose>
5307
5326
  </xsl:template><xsl:template match="*[local-name()='br']">
5308
5327
  <xsl:value-of select="$linebreak"/>
5309
5328
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -9080,7 +9099,8 @@
9080
9099
  <fo:inline><xsl:apply-templates/></fo:inline>
9081
9100
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
9082
9101
  <xsl:if test="normalize-space() != ''">
9083
- <xsl:value-of select="."/>
9102
+ <!-- <xsl:value-of select="."/> -->
9103
+ <xsl:call-template name="text"/>
9084
9104
  </xsl:if>
9085
9105
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
9086
9106
  <fo:block-container margin-left="0mm">
@@ -3159,8 +3159,27 @@
3159
3159
  <xsl:sort select="@displayorder" data-type="number"/>
3160
3160
  <xsl:apply-templates select="."/>
3161
3161
  </xsl:for-each>
3162
- </xsl:template><xsl:template match="text()">
3163
- <xsl:value-of select="."/>
3162
+ </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">
3163
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
3164
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
3165
+ <xsl:call-template name="replace_fo_inline">
3166
+ <xsl:with-param name="text" select="$text"/>
3167
+ </xsl:call-template>
3168
+ </xsl:template><xsl:template name="replace_fo_inline">
3169
+ <xsl:param name="text"/>
3170
+ <xsl:choose>
3171
+ <xsl:when test="contains($text, $tag_open)">
3172
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
3173
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
3174
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
3175
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
3176
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
3177
+ <xsl:call-template name="replace_fo_inline">
3178
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
3179
+ </xsl:call-template>
3180
+ </xsl:when>
3181
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
3182
+ </xsl:choose>
3164
3183
  </xsl:template><xsl:template match="*[local-name()='br']">
3165
3184
  <xsl:value-of select="$linebreak"/>
3166
3185
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6879,7 +6898,8 @@
6879
6898
  <fo:inline><xsl:apply-templates/></fo:inline>
6880
6899
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6881
6900
  <xsl:if test="normalize-space() != ''">
6882
- <xsl:value-of select="."/>
6901
+ <!-- <xsl:value-of select="."/> -->
6902
+ <xsl:call-template name="text"/>
6883
6903
  </xsl:if>
6884
6904
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6885
6905
  <fo:block-container margin-left="0mm">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "2.0.6".freeze
3
+ VERSION = "2.0.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-bipm
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: exe
10
10
  cert_chain: []
11
- date: 2022-03-23 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-generic