metanorma-ribose 2.1.11 → 2.1.12
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 +113 -26
- data/lib/metanorma/ribose/biblio.rng +5 -0
- data/lib/metanorma/ribose/isodoc.rng +46 -12
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma-ribose.gemspec +3 -2
- metadata +4 -11
- data/.github/workflows/automerge.yml +0 -31
- data/.github/workflows/rake.yml +0 -15
- data/.github/workflows/release.yml +0 -24
- data/Rakefile +0 -8
- data/bin/console +0 -14
- data/bin/rspec +0 -17
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 268b734209bf9e456b7d95d528e6a2c4f14fe95f1f92e3e83dacb4c16f8ebada
|
4
|
+
data.tar.gz: 0ab71f407a6def8ea94f1e7018fa3a6d13e43e05c700174851fc5e28e0ca8dde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a1d13851816a8cbcccf78966735ecd2054afe1620da5c229a33f256b2f2fbdf8556a210e64318b71d9a4a20fbd01b6dff0b9f80b4fbb8bb07cfec644777518
|
7
|
+
data.tar.gz: 3c4a06497c211388410f5f0890668de4bb6feffa2ae78a9b8598ebb15258eca8604cb21ff87a0ec53e8e0f5f1466c6bbc1c04fc293b8a3f36bc90d07431c7f8d
|
@@ -320,7 +320,7 @@
|
|
320
320
|
</fo:block-container>
|
321
321
|
|
322
322
|
<!-- Ribose logo -->
|
323
|
-
<fo:block-container absolute-position="fixed" left="171mm" top="{$pageHeight - 33.4}mm" height="30mm" width="40mm"> <!-- top="246mm" -->
|
323
|
+
<fo:block-container absolute-position="fixed" left="171mm" top="{$pageHeight - 33.4}mm" height="30mm" width="40mm" id="__internal_layout__logo_{generate-id()}"> <!-- top="246mm" -->
|
324
324
|
<fo:block>
|
325
325
|
<fo:instream-foreign-object content-width="32mm" fox:alt-text="Ribose Logo">
|
326
326
|
<xsl:copy-of select="$Ribose-Logo"/>
|
@@ -405,7 +405,9 @@
|
|
405
405
|
|
406
406
|
<!-- ToC pages -->
|
407
407
|
<fo:page-sequence master-reference="document" force-page-count="no-force"> <!-- master-reference="toc" -->
|
408
|
-
<xsl:call-template name="insertHeaderFooter"
|
408
|
+
<xsl:call-template name="insertHeaderFooter">
|
409
|
+
<xsl:with-param name="section">toc</xsl:with-param>
|
410
|
+
</xsl:call-template>
|
409
411
|
<fo:flow flow-name="xsl-region-body">
|
410
412
|
<xsl:if test="$contents//item[@display = 'true']">
|
411
413
|
<fo:block role="TOC">
|
@@ -493,7 +495,9 @@
|
|
493
495
|
<fo:leader leader-pattern="rule" leader-length="30%"/>
|
494
496
|
</fo:block>
|
495
497
|
</fo:static-content>
|
496
|
-
<xsl:call-template name="insertHeaderFooter"
|
498
|
+
<xsl:call-template name="insertHeaderFooter">
|
499
|
+
<xsl:with-param name="section">main</xsl:with-param>
|
500
|
+
</xsl:call-template>
|
497
501
|
<fo:flow flow-name="xsl-region-body">
|
498
502
|
|
499
503
|
<fo:block line-height="130%">
|
@@ -983,7 +987,7 @@
|
|
983
987
|
</xsl:template>
|
984
988
|
|
985
989
|
<xsl:template name="insertHeaderFooter">
|
986
|
-
|
990
|
+
<xsl:param name="section"/>
|
987
991
|
<!-- LT - left top -->
|
988
992
|
<!-- RT - right top -->
|
989
993
|
<!-- LB - left bottom -->
|
@@ -995,28 +999,28 @@
|
|
995
999
|
<xsl:variable name="top_bottom">194</xsl:variable>
|
996
1000
|
<!-- Yellow -->
|
997
1001
|
<fo:static-content flow-name="header-LT-yellow" role="artifact">
|
998
|
-
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_top}mm" font-size="0">
|
1002
|
+
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_top}mm" font-size="0" id="__internal_layout__header-LT-yellow_{$section}_{generate-id()}">
|
999
1003
|
<fo:block>
|
1000
1004
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-yellow-left))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1001
1005
|
</fo:block>
|
1002
1006
|
</fo:block-container>
|
1003
1007
|
</fo:static-content>
|
1004
1008
|
<fo:static-content flow-name="header-RT-yellow" role="artifact">
|
1005
|
-
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_top}mm" font-size="0">
|
1009
|
+
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_top}mm" font-size="0" id="__internal_layout__header-RT-yellow_{$section}_{generate-id()}">
|
1006
1010
|
<fo:block>
|
1007
1011
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-yellow-right))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1008
1012
|
</fo:block>
|
1009
1013
|
</fo:block-container>
|
1010
1014
|
</fo:static-content>
|
1011
1015
|
<fo:static-content flow-name="header-LB-yellow" role="artifact">
|
1012
|
-
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_bottom}mm" font-size="0">
|
1016
|
+
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_bottom}mm" font-size="0" id="__internal_layout__header-LB-yellow_{$section}_{generate-id()}">
|
1013
1017
|
<fo:block>
|
1014
1018
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-yellow-left))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1015
1019
|
</fo:block>
|
1016
1020
|
</fo:block-container>
|
1017
1021
|
</fo:static-content>
|
1018
1022
|
<fo:static-content flow-name="header-RB-yellow" role="artifact">
|
1019
|
-
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_bottom}mm" font-size="0">
|
1023
|
+
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_bottom}mm" font-size="0" id="__internal_layout__header-RB-yellow_{$section}_{generate-id()}">
|
1020
1024
|
<fo:block>
|
1021
1025
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-yellow-right))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1022
1026
|
</fo:block>
|
@@ -1024,28 +1028,28 @@
|
|
1024
1028
|
</fo:static-content>
|
1025
1029
|
<!-- Blue -->
|
1026
1030
|
<fo:static-content flow-name="header-LT-blue" role="artifact">
|
1027
|
-
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_top}mm" font-size="0">
|
1031
|
+
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_top}mm" font-size="0" id="__internal_layout__header-LT-blue_{$section}_{generate-id()}">
|
1028
1032
|
<fo:block>
|
1029
1033
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-blue-left))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1030
1034
|
</fo:block>
|
1031
1035
|
</fo:block-container>
|
1032
1036
|
</fo:static-content>
|
1033
1037
|
<fo:static-content flow-name="header-RT-blue" role="artifact">
|
1034
|
-
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_top}mm" font-size="0">
|
1038
|
+
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_top}mm" font-size="0" id="__internal_layout__header-RT-blue_{$section}_{generate-id()}">
|
1035
1039
|
<fo:block>
|
1036
1040
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-blue-right))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1037
1041
|
</fo:block>
|
1038
1042
|
</fo:block-container>
|
1039
1043
|
</fo:static-content>
|
1040
1044
|
<fo:static-content flow-name="header-LB-blue" role="artifact">
|
1041
|
-
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_bottom}mm" font-size="0">
|
1045
|
+
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_bottom}mm" font-size="0" id="__internal_layout__header-LB-blue_{$section}_{generate-id()}">
|
1042
1046
|
<fo:block>
|
1043
1047
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-blue-left))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1044
1048
|
</fo:block>
|
1045
1049
|
</fo:block-container>
|
1046
1050
|
</fo:static-content>
|
1047
1051
|
<fo:static-content flow-name="header-RB-blue" role="artifact">
|
1048
|
-
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_bottom}mm" font-size="0">
|
1052
|
+
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_bottom}mm" font-size="0" id="__internal_layout__header-RB-blue_{$section}_{generate-id()}">
|
1049
1053
|
<fo:block>
|
1050
1054
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-blue-right))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1051
1055
|
</fo:block>
|
@@ -1053,28 +1057,28 @@
|
|
1053
1057
|
</fo:static-content>
|
1054
1058
|
<!-- Orange -->
|
1055
1059
|
<fo:static-content flow-name="header-LT-orange" role="artifact">
|
1056
|
-
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_top}mm" font-size="0">
|
1060
|
+
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_top}mm" font-size="0" id="__internal_layout__header-LT-orange_{$section}_{generate-id()}">
|
1057
1061
|
<fo:block>
|
1058
1062
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-orange-left))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1059
1063
|
</fo:block>
|
1060
1064
|
</fo:block-container>
|
1061
1065
|
</fo:static-content>
|
1062
1066
|
<fo:static-content flow-name="header-RT-orange" role="artifact">
|
1063
|
-
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_top}mm" font-size="0">
|
1067
|
+
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_top}mm" font-size="0" id="__internal_layout__header-RT-orange_{$section}_{generate-id()}">
|
1064
1068
|
<fo:block>
|
1065
1069
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-orange-right))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1066
1070
|
</fo:block>
|
1067
1071
|
</fo:block-container>
|
1068
1072
|
</fo:static-content>
|
1069
1073
|
<fo:static-content flow-name="header-LB-orange" role="artifact">
|
1070
|
-
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_bottom}mm" font-size="0">
|
1074
|
+
<fo:block-container absolute-position="fixed" left="{$left_left}mm" top="{$top_bottom}mm" font-size="0" id="__internal_layout__header-LB-orange_{$section}_{generate-id()}">
|
1071
1075
|
<fo:block>
|
1072
1076
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-orange-left))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1073
1077
|
</fo:block>
|
1074
1078
|
</fo:block-container>
|
1075
1079
|
</fo:static-content>
|
1076
1080
|
<fo:static-content flow-name="header-RB-orange" role="artifact">
|
1077
|
-
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_bottom}mm" font-size="0">
|
1081
|
+
<fo:block-container absolute-position="fixed" left="{$left_right}mm" top="{$top_bottom}mm" font-size="0" id="__internal_layout__header-RB-orange_{$section}_{generate-id()}">
|
1078
1082
|
<fo:block>
|
1079
1083
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Page-Background-orange-right))}" content-width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Page"/>
|
1080
1084
|
</fo:block>
|
@@ -1724,6 +1728,11 @@
|
|
1724
1728
|
</xsl:variable>
|
1725
1729
|
<xsl:variable name="table-border" select="normalize-space($table-border_)"/>
|
1726
1730
|
|
1731
|
+
<xsl:variable name="table-cell-border_">
|
1732
|
+
|
1733
|
+
</xsl:variable>
|
1734
|
+
<xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
|
1735
|
+
|
1727
1736
|
<xsl:attribute-set name="table-container-style">
|
1728
1737
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1729
1738
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1735,8 +1744,6 @@
|
|
1735
1744
|
<xsl:attribute-set name="table-style">
|
1736
1745
|
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
|
1737
1746
|
<xsl:attribute name="table-layout">fixed</xsl:attribute>
|
1738
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1739
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1740
1747
|
|
1741
1748
|
<xsl:attribute name="border">0pt solid black</xsl:attribute>
|
1742
1749
|
<xsl:attribute name="font-size">9.5pt</xsl:attribute> <!-- 8pt -->
|
@@ -2917,6 +2924,12 @@
|
|
2917
2924
|
<xsl:variable name="table_attributes">
|
2918
2925
|
|
2919
2926
|
<xsl:element name="table_attributes" use-attribute-sets="table-style">
|
2927
|
+
|
2928
|
+
<xsl:if test="$margin-side != 0">
|
2929
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2930
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2931
|
+
</xsl:if>
|
2932
|
+
|
2920
2933
|
<xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
|
2921
2934
|
|
2922
2935
|
</xsl:element>
|
@@ -3673,6 +3686,10 @@
|
|
3673
3686
|
<xsl:template match="*[local-name()='tr']">
|
3674
3687
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3675
3688
|
|
3689
|
+
<xsl:if test="*[local-name() = 'th']">
|
3690
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3691
|
+
</xsl:if>
|
3692
|
+
|
3676
3693
|
<xsl:variable name="number"><xsl:number/></xsl:variable>
|
3677
3694
|
<xsl:if test="$number mod 2 = 0">
|
3678
3695
|
<xsl:attribute name="background-color">rgb(254, 247, 228)</xsl:attribute>
|
@@ -5653,6 +5670,9 @@
|
|
5653
5670
|
<xsl:value-of select="substring($str, 2)"/>
|
5654
5671
|
</xsl:template>
|
5655
5672
|
|
5673
|
+
<!-- ======================================= -->
|
5674
|
+
<!-- math -->
|
5675
|
+
<!-- ======================================= -->
|
5656
5676
|
<xsl:template match="mathml:math">
|
5657
5677
|
<xsl:variable name="isAdded" select="@added"/>
|
5658
5678
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
@@ -5703,14 +5723,57 @@
|
|
5703
5723
|
<xsl:value-of select="$comment_text"/>
|
5704
5724
|
</xsl:template>
|
5705
5725
|
|
5726
|
+
<xsl:template match="*[local-name() = 'asciimath']">
|
5727
|
+
<xsl:param name="process" select="'false'"/>
|
5728
|
+
<xsl:if test="$process = 'true'">
|
5729
|
+
<xsl:apply-templates/>
|
5730
|
+
</xsl:if>
|
5731
|
+
</xsl:template>
|
5732
|
+
|
5733
|
+
<xsl:template match="*[local-name() = 'latexmath']"/>
|
5734
|
+
|
5735
|
+
<xsl:template name="getMathml_asciimath_text">
|
5736
|
+
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
|
5737
|
+
<xsl:variable name="latexmath">
|
5738
|
+
|
5739
|
+
</xsl:variable>
|
5740
|
+
<xsl:variable name="asciimath_text_following">
|
5741
|
+
<xsl:choose>
|
5742
|
+
<xsl:when test="normalize-space($latexmath) != ''">
|
5743
|
+
<xsl:value-of select="$latexmath"/>
|
5744
|
+
</xsl:when>
|
5745
|
+
<xsl:when test="normalize-space($asciimath) != ''">
|
5746
|
+
<xsl:value-of select="$asciimath"/>
|
5747
|
+
</xsl:when>
|
5748
|
+
<xsl:otherwise>
|
5749
|
+
<xsl:value-of select="following-sibling::node()[1][self::comment()]"/>
|
5750
|
+
</xsl:otherwise>
|
5751
|
+
</xsl:choose>
|
5752
|
+
</xsl:variable>
|
5753
|
+
<xsl:variable name="asciimath_text_">
|
5754
|
+
<xsl:choose>
|
5755
|
+
<xsl:when test="normalize-space($asciimath_text_following) != ''">
|
5756
|
+
<xsl:value-of select="$asciimath_text_following"/>
|
5757
|
+
</xsl:when>
|
5758
|
+
<xsl:otherwise>
|
5759
|
+
<xsl:value-of select="normalize-space(translate(.,' ',' '))"/>
|
5760
|
+
</xsl:otherwise>
|
5761
|
+
</xsl:choose>
|
5762
|
+
</xsl:variable>
|
5763
|
+
<xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
|
5764
|
+
<xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
|
5765
|
+
<xsl:value-of select="$asciimath_text"/>
|
5766
|
+
</xsl:template>
|
5767
|
+
|
5706
5768
|
<xsl:template name="mathml_instream_object">
|
5707
|
-
<xsl:param name="
|
5769
|
+
<xsl:param name="asciimath_text"/>
|
5708
5770
|
<xsl:param name="mathml_content"/>
|
5709
5771
|
|
5710
|
-
<xsl:variable name="
|
5772
|
+
<xsl:variable name="asciimath_text_">
|
5711
5773
|
<xsl:choose>
|
5712
|
-
<xsl:when test="normalize-space($
|
5713
|
-
<xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise>
|
5774
|
+
<xsl:when test="normalize-space($asciimath_text) != ''"><xsl:value-of select="$asciimath_text"/></xsl:when>
|
5775
|
+
<!-- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise> -->
|
5776
|
+
<xsl:otherwise><xsl:call-template name="getMathml_asciimath_text"/></xsl:otherwise>
|
5714
5777
|
</xsl:choose>
|
5715
5778
|
</xsl:variable>
|
5716
5779
|
|
@@ -5727,10 +5790,10 @@
|
|
5727
5790
|
</xsl:attribute>
|
5728
5791
|
|
5729
5792
|
<!-- <xsl:if test="$add_math_as_text = 'true'"> -->
|
5730
|
-
<xsl:if test="normalize-space($
|
5793
|
+
<xsl:if test="normalize-space($asciimath_text_) != ''">
|
5731
5794
|
<!-- put Mathin Alternate Text -->
|
5732
5795
|
<xsl:attribute name="fox:alt-text">
|
5733
|
-
<xsl:value-of select="$
|
5796
|
+
<xsl:value-of select="$asciimath_text_"/>
|
5734
5797
|
</xsl:attribute>
|
5735
5798
|
</xsl:if>
|
5736
5799
|
<!-- </xsl:if> -->
|
@@ -5803,6 +5866,29 @@
|
|
5803
5866
|
<xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
|
5804
5867
|
</xsl:template>
|
5805
5868
|
|
5869
|
+
<!-- Examples:
|
5870
|
+
<stem type="AsciiMath">x = 1</stem>
|
5871
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
5872
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
|
5873
|
+
-->
|
5874
|
+
<xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
|
5875
|
+
<fo:inline xsl:use-attribute-sets="mathml-style">
|
5876
|
+
|
5877
|
+
<xsl:choose>
|
5878
|
+
<xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
|
5879
|
+
<xsl:otherwise>
|
5880
|
+
<xsl:apply-templates>
|
5881
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
5882
|
+
</xsl:apply-templates>
|
5883
|
+
</xsl:otherwise>
|
5884
|
+
</xsl:choose>
|
5885
|
+
|
5886
|
+
</fo:inline>
|
5887
|
+
</xsl:template>
|
5888
|
+
<!-- ======================================= -->
|
5889
|
+
<!-- END: math -->
|
5890
|
+
<!-- ======================================= -->
|
5891
|
+
|
5806
5892
|
<xsl:template match="*[local-name()='localityStack']"/>
|
5807
5893
|
|
5808
5894
|
<xsl:template match="*[local-name()='link']" name="link">
|
@@ -10025,13 +10111,14 @@
|
|
10025
10111
|
</xsl:template>
|
10026
10112
|
|
10027
10113
|
<xsl:template name="setId">
|
10114
|
+
<xsl:param name="prefix"/>
|
10028
10115
|
<xsl:attribute name="id">
|
10029
10116
|
<xsl:choose>
|
10030
10117
|
<xsl:when test="@id">
|
10031
|
-
<xsl:value-of select="@id"/>
|
10118
|
+
<xsl:value-of select="concat($prefix, @id)"/>
|
10032
10119
|
</xsl:when>
|
10033
10120
|
<xsl:otherwise>
|
10034
|
-
<xsl:value-of select="generate-id()"/>
|
10121
|
+
<xsl:value-of select="concat($prefix, generate-id())"/>
|
10035
10122
|
</xsl:otherwise>
|
10036
10123
|
</xsl:choose>
|
10037
10124
|
</xsl:attribute>
|
@@ -188,6 +188,11 @@
|
|
188
188
|
<value>adapter</value>
|
189
189
|
<value>translator</value>
|
190
190
|
<value>distributor</value>
|
191
|
+
<value>realizer</value>
|
192
|
+
<value>owner</value>
|
193
|
+
<value>authorizer</value>
|
194
|
+
<value>enabler</value>
|
195
|
+
<value>subject</value>
|
191
196
|
</choice>
|
192
197
|
</attribute>
|
193
198
|
<zeroOrMore>
|
@@ -177,11 +177,7 @@
|
|
177
177
|
</optional>
|
178
178
|
<optional>
|
179
179
|
<attribute name="style">
|
180
|
-
<
|
181
|
-
<value>basic</value>
|
182
|
-
<value>full</value>
|
183
|
-
<value>short</value>
|
184
|
-
</choice>
|
180
|
+
<ref name="XrefStyleType"/>
|
185
181
|
</attribute>
|
186
182
|
</optional>
|
187
183
|
<ref name="XrefBody"/>
|
@@ -1031,6 +1027,7 @@
|
|
1031
1027
|
<ref name="stem"/>
|
1032
1028
|
<ref name="index"/>
|
1033
1029
|
<ref name="eref"/>
|
1030
|
+
<ref name="erefstack"/>
|
1034
1031
|
<ref name="xref"/>
|
1035
1032
|
<ref name="hyperlink"/>
|
1036
1033
|
</choice>
|
@@ -1045,6 +1042,7 @@
|
|
1045
1042
|
<ref name="stem"/>
|
1046
1043
|
<ref name="index"/>
|
1047
1044
|
<ref name="eref"/>
|
1045
|
+
<ref name="erefstack"/>
|
1048
1046
|
<ref name="xref"/>
|
1049
1047
|
<ref name="hyperlink"/>
|
1050
1048
|
</choice>
|
@@ -1058,6 +1056,7 @@
|
|
1058
1056
|
<ref name="PureTextElement"/>
|
1059
1057
|
<ref name="index"/>
|
1060
1058
|
<ref name="eref"/>
|
1059
|
+
<ref name="erefstack"/>
|
1061
1060
|
<ref name="xref"/>
|
1062
1061
|
<ref name="hyperlink"/>
|
1063
1062
|
</choice>
|
@@ -1195,6 +1194,7 @@
|
|
1195
1194
|
<ref name="add"/>
|
1196
1195
|
<ref name="del"/>
|
1197
1196
|
<ref name="span"/>
|
1197
|
+
<ref name="erefstack"/>
|
1198
1198
|
</choice>
|
1199
1199
|
</define>
|
1200
1200
|
<define name="add">
|
@@ -1202,6 +1202,7 @@
|
|
1202
1202
|
<choice>
|
1203
1203
|
<ref name="PureTextElement"/>
|
1204
1204
|
<ref name="eref"/>
|
1205
|
+
<ref name="erefstack"/>
|
1205
1206
|
<ref name="stem"/>
|
1206
1207
|
<ref name="keyword"/>
|
1207
1208
|
<ref name="xref"/>
|
@@ -1214,6 +1215,7 @@
|
|
1214
1215
|
<choice>
|
1215
1216
|
<ref name="PureTextElement"/>
|
1216
1217
|
<ref name="eref"/>
|
1218
|
+
<ref name="erefstack"/>
|
1217
1219
|
<ref name="stem"/>
|
1218
1220
|
<ref name="keyword"/>
|
1219
1221
|
<ref name="xref"/>
|
@@ -1278,6 +1280,7 @@
|
|
1278
1280
|
</optional>
|
1279
1281
|
<choice>
|
1280
1282
|
<ref name="eref"/>
|
1283
|
+
<ref name="erefstack"/>
|
1281
1284
|
<ref name="xref"/>
|
1282
1285
|
<ref name="termref"/>
|
1283
1286
|
</choice>
|
@@ -1970,6 +1973,7 @@
|
|
1970
1973
|
</element>
|
1971
1974
|
<choice>
|
1972
1975
|
<ref name="eref"/>
|
1976
|
+
<ref name="erefstack"/>
|
1973
1977
|
<ref name="xref"/>
|
1974
1978
|
<ref name="termref"/>
|
1975
1979
|
</choice>
|
@@ -2525,6 +2529,7 @@
|
|
2525
2529
|
<ref name="xref"/>
|
2526
2530
|
<ref name="hyperlink"/>
|
2527
2531
|
<ref name="eref"/>
|
2532
|
+
<ref name="erefstack"/>
|
2528
2533
|
</choice>
|
2529
2534
|
<oneOrMore>
|
2530
2535
|
<element name="coords">
|
@@ -2572,6 +2577,7 @@
|
|
2572
2577
|
<ref name="xref"/>
|
2573
2578
|
<ref name="hyperlink"/>
|
2574
2579
|
<ref name="eref"/>
|
2580
|
+
<ref name="erefstack"/>
|
2575
2581
|
</choice>
|
2576
2582
|
</element>
|
2577
2583
|
</zeroOrMore>
|
@@ -2620,6 +2626,15 @@
|
|
2620
2626
|
<ref name="PureTextElement"/>
|
2621
2627
|
</oneOrMore>
|
2622
2628
|
</define>
|
2629
|
+
<define name="XrefConnectiveType">
|
2630
|
+
<choice>
|
2631
|
+
<value>and</value>
|
2632
|
+
<value>or</value>
|
2633
|
+
<value>from</value>
|
2634
|
+
<value>to</value>
|
2635
|
+
<value/>
|
2636
|
+
</choice>
|
2637
|
+
</define>
|
2623
2638
|
<define name="XrefTarget">
|
2624
2639
|
<element name="location">
|
2625
2640
|
<attribute name="target">
|
@@ -2628,16 +2643,35 @@
|
|
2628
2643
|
</data>
|
2629
2644
|
</attribute>
|
2630
2645
|
<attribute name="connective">
|
2631
|
-
<
|
2632
|
-
<value>and</value>
|
2633
|
-
<value>or</value>
|
2634
|
-
<value>from</value>
|
2635
|
-
<value>to</value>
|
2636
|
-
<value/>
|
2637
|
-
</choice>
|
2646
|
+
<ref name="XrefConnectiveType"/>
|
2638
2647
|
</attribute>
|
2639
2648
|
</element>
|
2640
2649
|
</define>
|
2650
|
+
<define name="XrefStyleType">
|
2651
|
+
<choice>
|
2652
|
+
<value>basic</value>
|
2653
|
+
<value>full</value>
|
2654
|
+
<value>short</value>
|
2655
|
+
<value>id</value>
|
2656
|
+
</choice>
|
2657
|
+
</define>
|
2658
|
+
<define name="erefTypeWithConnective">
|
2659
|
+
<optional>
|
2660
|
+
<attribute name="connective">
|
2661
|
+
<ref name="XrefConnectiveType"/>
|
2662
|
+
</attribute>
|
2663
|
+
</optional>
|
2664
|
+
<ref name="erefType"/>
|
2665
|
+
</define>
|
2666
|
+
<define name="erefstack">
|
2667
|
+
<element name="erefstack">
|
2668
|
+
<oneOrMore>
|
2669
|
+
<element name="eref">
|
2670
|
+
<ref name="erefTypeWithConnective"/>
|
2671
|
+
</element>
|
2672
|
+
</oneOrMore>
|
2673
|
+
</element>
|
2674
|
+
</define>
|
2641
2675
|
<start>
|
2642
2676
|
<ref name="standard-document"/>
|
2643
2677
|
</start>
|
data/metanorma-ribose.gemspec
CHANGED
@@ -21,12 +21,13 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.license = "BSD-2-Clause"
|
22
22
|
|
23
23
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
24
|
-
f.match(%r{^(test|spec|features)/})
|
24
|
+
f.match(%r{^(test|spec|features|bin|.github)/}) \
|
25
|
+
|| f.match(%r{Rakefile|bin/rspec})
|
25
26
|
end
|
26
27
|
spec.bindir = "exe"
|
27
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
29
|
spec.require_paths = ["lib"]
|
29
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
30
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
30
31
|
|
31
32
|
spec.add_dependency "metanorma-generic", "~> 2.2.2"
|
32
33
|
|
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.1.
|
4
|
+
version: 2.1.12
|
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-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -176,9 +176,6 @@ executables: []
|
|
176
176
|
extensions: []
|
177
177
|
extra_rdoc_files: []
|
178
178
|
files:
|
179
|
-
- ".github/workflows/automerge.yml"
|
180
|
-
- ".github/workflows/rake.yml"
|
181
|
-
- ".github/workflows/release.yml"
|
182
179
|
- ".gitignore"
|
183
180
|
- ".hound.yml"
|
184
181
|
- ".rubocop.yml"
|
@@ -186,10 +183,6 @@ files:
|
|
186
183
|
- Gemfile
|
187
184
|
- LICENSE
|
188
185
|
- README.adoc
|
189
|
-
- Rakefile
|
190
|
-
- bin/console
|
191
|
-
- bin/rspec
|
192
|
-
- bin/setup
|
193
186
|
- lib/isodoc/ribose/base_convert.rb
|
194
187
|
- lib/isodoc/ribose/html/header.html
|
195
188
|
- lib/isodoc/ribose/html/html_rsd_intro.html
|
@@ -241,14 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
241
234
|
requirements:
|
242
235
|
- - ">="
|
243
236
|
- !ruby/object:Gem::Version
|
244
|
-
version: 2.
|
237
|
+
version: 2.7.0
|
245
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
239
|
requirements:
|
247
240
|
- - ">="
|
248
241
|
- !ruby/object:Gem::Version
|
249
242
|
version: '0'
|
250
243
|
requirements: []
|
251
|
-
rubygems_version: 3.
|
244
|
+
rubygems_version: 3.3.7
|
252
245
|
signing_key:
|
253
246
|
specification_version: 4
|
254
247
|
summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
# source: https://github.com/marketplace/actions/merge-pull-requests#usage
|
4
|
-
name: automerge
|
5
|
-
on:
|
6
|
-
pull_request:
|
7
|
-
types:
|
8
|
-
- labeled
|
9
|
-
- unlabeled
|
10
|
-
- synchronize
|
11
|
-
- opened
|
12
|
-
- edited
|
13
|
-
- ready_for_review
|
14
|
-
- reopened
|
15
|
-
- unlocked
|
16
|
-
pull_request_review:
|
17
|
-
types:
|
18
|
-
- submitted
|
19
|
-
check_suite:
|
20
|
-
types:
|
21
|
-
- completed
|
22
|
-
status: {}
|
23
|
-
jobs:
|
24
|
-
automerge:
|
25
|
-
runs-on: ubuntu-latest
|
26
|
-
steps:
|
27
|
-
- id: automerge
|
28
|
-
name: automerge
|
29
|
-
uses: "pascalgn/automerge-action@v0.15.3"
|
30
|
-
env:
|
31
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
data/.github/workflows/rake.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: rake
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master, main ]
|
8
|
-
tags: [ v* ]
|
9
|
-
pull_request:
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
notify:
|
13
|
-
uses: metanorma/ci/.github/workflows/mn-processor-rake.yml@main
|
14
|
-
secrets:
|
15
|
-
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: release
|
4
|
-
|
5
|
-
on:
|
6
|
-
workflow_dispatch:
|
7
|
-
inputs:
|
8
|
-
next_version:
|
9
|
-
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
-
required: true
|
12
|
-
default: 'skip'
|
13
|
-
push:
|
14
|
-
tags: [ v* ]
|
15
|
-
|
16
|
-
jobs:
|
17
|
-
release:
|
18
|
-
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
19
|
-
with:
|
20
|
-
next_version: ${{ github.event.inputs.next_version }}
|
21
|
-
secrets:
|
22
|
-
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
23
|
-
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
24
|
-
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "metanorma-ribose"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/rspec
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# This file was generated by Bundler.
|
4
|
-
#
|
5
|
-
# The application 'rspec' is installed as part of a gem, and
|
6
|
-
# this file is here to facilitate running it.
|
7
|
-
#
|
8
|
-
|
9
|
-
require "pathname"
|
10
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
|
11
|
-
"../../Gemfile", Pathname.new(__FILE__).realpath
|
12
|
-
)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("rspec-core", "rspec")
|