metanorma-ribose 2.4.0 → 2.4.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f54534099d4f195cd7d638250e848401f50711778c7bfe551bafee803df48fa
|
4
|
+
data.tar.gz: 84eeed2efb403e100b1130612536bd2e5eff29d6ccead20fece34c2004fc169b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83fcb3bde12f2728f8aa1b3494e3327596df04a62b507889b0b2f41b3dedb75782e93f51dc7bf626a893a410fbbfffd7d2c8f6e748b57dda4a31dc487bc12732
|
7
|
+
data.tar.gz: d6325c85b058bb27c910739f1c3e84c720ce5babd461bb2cc4c130b57eb35365f4d80b1f5ddb17733adcaaef6bb58b5395dd20a4a585df8b14c4a9e12a10d332
|
@@ -3054,7 +3054,9 @@
|
|
3054
3054
|
</xsl:template> <!-- license-statement/p -->
|
3055
3055
|
|
3056
3056
|
<xsl:template match="*[local-name()='legal-statement']">
|
3057
|
+
<xsl:param name="isLegacy">false</xsl:param>
|
3057
3058
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
3059
|
+
|
3058
3060
|
<xsl:apply-templates/>
|
3059
3061
|
</fo:block>
|
3060
3062
|
</xsl:template> <!-- legal-statement -->
|
@@ -5332,13 +5334,14 @@
|
|
5332
5334
|
<!-- ================= -->
|
5333
5335
|
<!-- Added,deleted text -->
|
5334
5336
|
<!-- ================= -->
|
5335
|
-
<xsl:template match="*[local-name()='add']" name="tag_add">
|
5337
|
+
<xsl:template match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
|
5336
5338
|
<xsl:param name="skip">true</xsl:param>
|
5337
5339
|
<xsl:param name="block">false</xsl:param>
|
5338
5340
|
<xsl:param name="type"/>
|
5339
5341
|
<xsl:param name="text-align"/>
|
5340
5342
|
<xsl:choose>
|
5341
|
-
<xsl:when test="starts-with(., $ace_tag)"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start
|
5343
|
+
<xsl:when test="starts-with(., $ace_tag) or local-name() = 'change-open-tag' or local-name() = 'change-close-tag'"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start, or
|
5344
|
+
<change-open-tag>A<sub>1</sub></change-open-tag>, <change-close-tag>A<sub>1</sub></change-close-tag> -->
|
5342
5345
|
<xsl:choose>
|
5343
5346
|
<xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (local-name(..) = 'title' and preceding-sibling::node()[1][local-name() = 'tab']) or local-name(..) = 'formattedref' and not(preceding-sibling::node())) and ../node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]"><!-- start tag displayed in template name="note" and title --></xsl:when>
|
5344
5347
|
<xsl:otherwise>
|
@@ -5346,12 +5349,32 @@
|
|
5346
5349
|
<xsl:call-template name="insertTag">
|
5347
5350
|
<xsl:with-param name="type">
|
5348
5351
|
<xsl:choose>
|
5352
|
+
<xsl:when test="local-name() = 'change-open-tag'">start</xsl:when>
|
5353
|
+
<xsl:when test="local-name() = 'change-close-tag'">end</xsl:when>
|
5349
5354
|
<xsl:when test="$type = ''"><xsl:value-of select="substring-after(substring-after(., $ace_tag), '_')"/> <!-- start or end --></xsl:when>
|
5350
5355
|
<xsl:otherwise><xsl:value-of select="$type"/></xsl:otherwise>
|
5351
5356
|
</xsl:choose>
|
5352
5357
|
</xsl:with-param>
|
5353
|
-
<xsl:with-param name="kind"
|
5354
|
-
|
5358
|
+
<xsl:with-param name="kind">
|
5359
|
+
<xsl:choose>
|
5360
|
+
<xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
|
5361
|
+
<xsl:value-of select="text()"/>
|
5362
|
+
</xsl:when>
|
5363
|
+
<xsl:otherwise>
|
5364
|
+
<xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
|
5365
|
+
</xsl:otherwise>
|
5366
|
+
</xsl:choose>
|
5367
|
+
</xsl:with-param>
|
5368
|
+
<xsl:with-param name="value">
|
5369
|
+
<xsl:choose>
|
5370
|
+
<xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
|
5371
|
+
<xsl:value-of select="*[local-name() = 'sub']"/>
|
5372
|
+
</xsl:when>
|
5373
|
+
<xsl:otherwise>
|
5374
|
+
<xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
|
5375
|
+
</xsl:otherwise>
|
5376
|
+
</xsl:choose>
|
5377
|
+
</xsl:with-param>
|
5355
5378
|
</xsl:call-template>
|
5356
5379
|
</xsl:variable>
|
5357
5380
|
<xsl:choose>
|
@@ -7560,11 +7583,17 @@
|
|
7560
7583
|
</xsl:when>
|
7561
7584
|
<xsl:otherwise>
|
7562
7585
|
|
7586
|
+
<xsl:variable name="image_class" select="ancestor::*[local-name() = 'image']/@class"/>
|
7587
|
+
<xsl:variable name="ancestor_table_cell" select="normalize-space(ancestor::*[local-name() = 'td'] or ancestor::*[local-name() = 'th'])"/>
|
7588
|
+
|
7563
7589
|
<xsl:variable name="element">
|
7564
7590
|
<xsl:choose>
|
7565
7591
|
<xsl:when test="ancestor::*[local-name() = 'tr'] and $isGenerateTableIF = 'true'">
|
7566
7592
|
<fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
|
7567
7593
|
</xsl:when>
|
7594
|
+
<xsl:when test="not(ancestor::*[local-name() = 'figure'])">
|
7595
|
+
<fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
|
7596
|
+
</xsl:when>
|
7568
7597
|
<xsl:otherwise>
|
7569
7598
|
<fo:block xsl:use-attribute-sets="image-style">
|
7570
7599
|
<xsl:if test="ancestor::*[local-name() = 'dt']">
|
@@ -7580,10 +7609,24 @@
|
|
7580
7609
|
<xsl:copy-of select="@*"/>
|
7581
7610
|
<!-- <fo:block xsl:use-attribute-sets="image-style"> -->
|
7582
7611
|
<fo:instream-foreign-object fox:alt-text="{$alt-text}">
|
7583
|
-
|
7584
|
-
|
7585
|
-
|
7586
|
-
|
7612
|
+
|
7613
|
+
<xsl:choose>
|
7614
|
+
<xsl:when test="$image_class = 'corrigenda-tag'">
|
7615
|
+
<xsl:attribute name="fox:alt-text">CorrigendaTag</xsl:attribute>
|
7616
|
+
<xsl:attribute name="baseline-shift">-10%</xsl:attribute>
|
7617
|
+
<xsl:if test="$ancestor_table_cell = 'true'">
|
7618
|
+
<xsl:attribute name="baseline-shift">-25%</xsl:attribute>
|
7619
|
+
</xsl:if>
|
7620
|
+
<xsl:attribute name="height">3.5mm</xsl:attribute>
|
7621
|
+
</xsl:when>
|
7622
|
+
<xsl:otherwise>
|
7623
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
7624
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
7625
|
+
</xsl:if>
|
7626
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
7627
|
+
</xsl:otherwise>
|
7628
|
+
</xsl:choose>
|
7629
|
+
|
7587
7630
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
7588
7631
|
<xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
|
7589
7632
|
<xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
|
@@ -9791,13 +9834,19 @@
|
|
9791
9834
|
<fo:block id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
9792
9835
|
</xsl:when>
|
9793
9836
|
<!-- if there isn't element with id 'from', then create 'bookmark' here -->
|
9794
|
-
<xsl:when test="not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
|
9837
|
+
<xsl:when test="ancestor::*[contains(local-name(), '-standard')] and not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
|
9838
|
+
<fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
9839
|
+
</xsl:when>
|
9840
|
+
<xsl:when test="not(//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
|
9795
9841
|
<fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
9796
9842
|
</xsl:when>
|
9797
9843
|
</xsl:choose>
|
9798
9844
|
|
9799
9845
|
</xsl:template>
|
9800
9846
|
|
9847
|
+
<!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
|
9848
|
+
<xsl:template match="*[local-name() = 'review'][@type = 'other']"/>
|
9849
|
+
|
9801
9850
|
<xsl:template match="*[local-name() = 'name']/text()">
|
9802
9851
|
<!-- 0xA0 to space replacement -->
|
9803
9852
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
@@ -11398,7 +11447,7 @@
|
|
11398
11447
|
|
11399
11448
|
<xsl:template name="printEdition">
|
11400
11449
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
11401
|
-
|
11450
|
+
|
11402
11451
|
<xsl:choose>
|
11403
11452
|
<xsl:when test="$edition_i18n != ''">
|
11404
11453
|
<!-- Example: <edition language="fr">deuxième édition</edition> -->
|
@@ -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.
|
20
|
+
<!-- VERSION v1.3.0 -->
|
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">
|
@@ -146,6 +146,9 @@
|
|
146
146
|
<data type="boolean"/>
|
147
147
|
</attribute>
|
148
148
|
</optional>
|
149
|
+
<optional>
|
150
|
+
<attribute name="style"/>
|
151
|
+
</optional>
|
149
152
|
<oneOrMore>
|
150
153
|
<ref name="PureTextElement"/>
|
151
154
|
</oneOrMore>
|
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.4.
|
4
|
+
version: 2.4.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: 2024-
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|