metanorma-ribose 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ribose/ribose.standard.xsl +81 -21
- data/lib/metanorma/ribose/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6761d38048bebfb77cb9c87b081f032f2e5b1a2c7ead8ae40aed4d8ed5852035
|
4
|
+
data.tar.gz: 80606d37f6866a7e4757ffa96e191797881233671f1a86f067264f64b619fe28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2c47150ee0f8b722a429aeab9b0ed17559ad1ca033699a8912d9a385e7ab683e91d5787d2de71fc24157c51db55b31ad55219ea64244804d148c0ea9a2a9f7f
|
7
|
+
data.tar.gz: 442301d3d936b02edf99de150d594dbb84cbee319917765860f3342c3b228671dd774aee16bf081f7625514df358401d3cc45ad616de3572dfe087adb693cb90
|
@@ -1209,7 +1209,7 @@
|
|
1209
1209
|
|
1210
1210
|
|
1211
1211
|
|
1212
|
-
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:
|
1212
|
+
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:variable name="lang">
|
1213
1213
|
<xsl:call-template name="getLang"/>
|
1214
1214
|
</xsl:variable><xsl:variable name="pageWidth_">
|
1215
1215
|
215.9
|
@@ -5824,7 +5824,51 @@
|
|
5824
5824
|
<xsl:with-param name="text" select="$text_step1"/>
|
5825
5825
|
</xsl:call-template>
|
5826
5826
|
</xsl:variable>
|
5827
|
-
|
5827
|
+
|
5828
|
+
<!-- <xsl:value-of select="$text_step2"/> -->
|
5829
|
+
|
5830
|
+
<!-- add zero-width space after space -->
|
5831
|
+
<xsl:variable name="text_step3" select="java:replaceAll(java:java.lang.String.new($text_step2),' ',' ')"/>
|
5832
|
+
|
5833
|
+
<!-- split text by zero-width space -->
|
5834
|
+
<xsl:variable name="text_step4">
|
5835
|
+
<xsl:call-template name="split">
|
5836
|
+
<xsl:with-param name="pText" select="$text_step3"/>
|
5837
|
+
<xsl:with-param name="sep" select="$zero_width_space"/>
|
5838
|
+
<xsl:with-param name="normalize-space">false</xsl:with-param>
|
5839
|
+
<xsl:with-param name="keep_sep">true</xsl:with-param>
|
5840
|
+
</xsl:call-template>
|
5841
|
+
</xsl:variable>
|
5842
|
+
|
5843
|
+
<xsl:for-each select="xalan:nodeset($text_step4)/item">
|
5844
|
+
<xsl:choose>
|
5845
|
+
<xsl:when test="string-length() > 30"> <!-- word with length more than 30 will be interspersed with zero-width space -->
|
5846
|
+
<xsl:call-template name="interspers">
|
5847
|
+
<xsl:with-param name="str" select="."/>
|
5848
|
+
</xsl:call-template>
|
5849
|
+
</xsl:when>
|
5850
|
+
<xsl:otherwise>
|
5851
|
+
<xsl:value-of select="."/>
|
5852
|
+
</xsl:otherwise>
|
5853
|
+
</xsl:choose>
|
5854
|
+
</xsl:for-each>
|
5855
|
+
|
5856
|
+
</xsl:template><xsl:template name="interspers">
|
5857
|
+
<xsl:param name="str"/>
|
5858
|
+
<xsl:param name="char" select="$zero_width_space"/>
|
5859
|
+
<xsl:if test="$str != ''">
|
5860
|
+
<xsl:value-of select="substring($str, 1, 1)"/>
|
5861
|
+
|
5862
|
+
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
5863
|
+
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
5864
|
+
<xsl:value-of select="$char"/>
|
5865
|
+
</xsl:if>
|
5866
|
+
|
5867
|
+
<xsl:call-template name="interspers">
|
5868
|
+
<xsl:with-param name="str" select="substring($str, 2)"/>
|
5869
|
+
<xsl:with-param name="char" select="$char"/>
|
5870
|
+
</xsl:call-template>
|
5871
|
+
</xsl:if>
|
5828
5872
|
</xsl:template><xsl:template match="*" mode="syntax_highlight">
|
5829
5873
|
<xsl:apply-templates mode="syntax_highlight"/>
|
5830
5874
|
</xsl:template><xsl:variable name="syntax_highlight_styles_">
|
@@ -6342,11 +6386,24 @@
|
|
6342
6386
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
6343
6387
|
<xsl:text>— </xsl:text>
|
6344
6388
|
<xsl:apply-templates/>
|
6345
|
-
</xsl:template><xsl:
|
6389
|
+
</xsl:template><xsl:variable name="bibitems_">
|
6390
|
+
<xsl:for-each select="//*[local-name() = 'bibitem']">
|
6391
|
+
<xsl:copy-of select="."/>
|
6392
|
+
</xsl:for-each>
|
6393
|
+
</xsl:variable><xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/><xsl:variable name="bibitems_hidden_">
|
6394
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
6395
|
+
<xsl:copy-of select="."/>
|
6396
|
+
</xsl:for-each>
|
6397
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
|
6398
|
+
<xsl:copy-of select="."/>
|
6399
|
+
</xsl:for-each>
|
6400
|
+
</xsl:variable><xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
6346
6401
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
6347
|
-
<xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6402
|
+
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
6403
|
+
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6348
6404
|
<xsl:choose>
|
6349
|
-
<xsl:when test="$external-destination != '' or not(key('bibitems_hidden', $current_bibitemid))"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6405
|
+
<!-- <xsl:when test="$external-destination != '' or not(key('bibitems_hidden', $current_bibitemid))"> --> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6406
|
+
<xsl:when test="$external-destination != '' or not($bibitems_hidden/*[local-name() ='bibitem'][@id = $current_bibitemid])"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6350
6407
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
6351
6408
|
<xsl:if test="@type = 'footnote'">
|
6352
6409
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
@@ -7485,7 +7542,7 @@
|
|
7485
7542
|
<xsl:copy>
|
7486
7543
|
<xsl:copy-of select="@*"/>
|
7487
7544
|
<!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
|
7488
|
-
<xsl:for-each select="*[not(@normative='true') and not(*[
|
7545
|
+
<xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
|
7489
7546
|
<xsl:sort select="@displayorder" data-type="number"/>
|
7490
7547
|
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
7491
7548
|
</xsl:for-each>
|
@@ -7734,22 +7791,25 @@
|
|
7734
7791
|
<xsl:param name="pText" select="."/>
|
7735
7792
|
<xsl:param name="sep" select="','"/>
|
7736
7793
|
<xsl:param name="normalize-space" select="'true'"/>
|
7794
|
+
<xsl:param name="keep_sep" select="'false'"/>
|
7737
7795
|
<xsl:if test="string-length($pText) >0">
|
7738
|
-
|
7739
|
-
|
7740
|
-
|
7741
|
-
|
7742
|
-
|
7743
|
-
|
7744
|
-
|
7745
|
-
|
7746
|
-
|
7747
|
-
|
7748
|
-
|
7749
|
-
<xsl:
|
7750
|
-
|
7751
|
-
|
7752
|
-
|
7796
|
+
<item>
|
7797
|
+
<xsl:choose>
|
7798
|
+
<xsl:when test="$normalize-space = 'true'">
|
7799
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
7800
|
+
</xsl:when>
|
7801
|
+
<xsl:otherwise>
|
7802
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
7803
|
+
</xsl:otherwise>
|
7804
|
+
</xsl:choose>
|
7805
|
+
</item>
|
7806
|
+
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></item></xsl:if>
|
7807
|
+
<xsl:call-template name="split">
|
7808
|
+
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
7809
|
+
<xsl:with-param name="sep" select="$sep"/>
|
7810
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
7811
|
+
<xsl:with-param name="keep_sep" select="$keep_sep"/>
|
7812
|
+
</xsl:call-template>
|
7753
7813
|
</xsl:if>
|
7754
7814
|
</xsl:template><xsl:template name="getDocumentId">
|
7755
7815
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
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-
|
11
|
+
date: 2022-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.
|
247
|
+
rubygems_version: 3.3.9
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.
|