metanorma-ribose 2.2.11 → 2.2.12

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: de1b7b4d819ecf4191da99de7f00b9dfbfbc73f02c26abbdee4ef9d4274c73d3
4
- data.tar.gz: 4ba0a78c55a12df977d40e247b6f5c29b20f1edc19882722f3d962802eb9d797
3
+ metadata.gz: 2597a251bd77d5c5d9bca4f9901956a69bd0e4a04a99c81da66d587fbbb153dd
4
+ data.tar.gz: ec498d468745f70797c3b3460bfff9d155fa58061e49d41b6323ce09727a9bec
5
5
  SHA512:
6
- metadata.gz: 4646478457e5708c1d83eb408e8ea77d06e1574e47e390df2240c681811afb71e02e5e85cef5f2e3f7b2ba225974184c8e65a9b5b06466c68af110ec9ba777a7
7
- data.tar.gz: 6bee01be652e3c07a9b43445cc01ced533e6321c5bbb967f02acd79ccad660cc06dd01b8ac6346afe27a65e5656c987b218c5d086a5b30a09a6ff4272e67159a
6
+ metadata.gz: 5caa1261ccd6b4f0ca92013e60fe2bd0a8f7413cc187ffac8b1a1adbd000ad5c0f44736557cba729845dff04abb3f71480b6e5d370f5f7860fd9450439b00044
7
+ data.tar.gz: 219923a62718f199b9cd5d95548c1ac78dc8fba367f3871b4c5f63657d9245fe92e1cd6a7791c3d846e3d63ac3b6525cf294ee77a0ecf03dcecfe18bbd2e9cbc
@@ -2213,6 +2213,7 @@
2213
2213
  </xsl:attribute-set>
2214
2214
 
2215
2215
  <xsl:attribute-set name="figure-block-style">
2216
+ <xsl:attribute name="role">SKIP</xsl:attribute>
2216
2217
 
2217
2218
  </xsl:attribute-set>
2218
2219
 
@@ -2230,6 +2231,7 @@
2230
2231
  </xsl:attribute-set>
2231
2232
 
2232
2233
  <xsl:attribute-set name="figure-name-style">
2234
+ <xsl:attribute name="role">Caption</xsl:attribute>
2233
2235
 
2234
2236
  <xsl:attribute name="font-size">13pt</xsl:attribute>
2235
2237
  <xsl:attribute name="font-weight">300</xsl:attribute>
@@ -2279,6 +2281,7 @@
2279
2281
  </xsl:template>
2280
2282
 
2281
2283
  <xsl:attribute-set name="image-style">
2284
+ <xsl:attribute name="role">SKIP</xsl:attribute>
2282
2285
  <xsl:attribute name="text-align">center</xsl:attribute>
2283
2286
 
2284
2287
  </xsl:attribute-set>
@@ -2580,6 +2583,13 @@
2580
2583
 
2581
2584
  </xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
2582
2585
 
2586
+ <xsl:attribute-set name="bibitem-non-normative-list-item-style">
2587
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
2588
+
2589
+ <xsl:attribute name="margin-bottom">4pt</xsl:attribute>
2590
+
2591
+ </xsl:attribute-set>
2592
+
2583
2593
  <!-- bibitem in bibliography section (references/@normative="false"), list body -->
2584
2594
  <xsl:attribute-set name="bibitem-normative-list-body-style">
2585
2595
 
@@ -2973,14 +2983,14 @@
2973
2983
  <xsl:value-of select="$sep"/><xsl:value-of select="$zero_width_space"/>
2974
2984
  </xsl:when>
2975
2985
  <xsl:otherwise>
2976
- <fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
2986
+ <fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
2977
2987
  </xsl:otherwise>
2978
2988
  </xsl:choose>
2979
2989
  </xsl:for-each>
2980
2990
  </xsl:when>
2981
2991
 
2982
2992
  <xsl:otherwise>
2983
- <fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
2993
+ <fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
2984
2994
  </xsl:otherwise>
2985
2995
 
2986
2996
  </xsl:choose>
@@ -2990,7 +3000,7 @@
2990
3000
  <!-- Preface boilerplate sections processing -->
2991
3001
  <!-- ================================= -->
2992
3002
  <xsl:template match="*[local-name()='copyright-statement']">
2993
- <fo:block xsl:use-attribute-sets="copyright-statement-style">
3003
+ <fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
2994
3004
  <xsl:apply-templates/>
2995
3005
  </fo:block>
2996
3006
  </xsl:template> <!-- copyright-statement -->
@@ -3163,7 +3173,7 @@
3163
3173
  </xsl:choose>
3164
3174
  </xsl:variable>
3165
3175
 
3166
- <fo:block-container xsl:use-attribute-sets="table-container-style">
3176
+ <fo:block-container xsl:use-attribute-sets="table-container-style" role="SKIP">
3167
3177
 
3168
3178
  <xsl:call-template name="refine_table-container-style">
3169
3179
  <xsl:with-param name="margin-side" select="$margin-side"/>
@@ -4196,7 +4206,7 @@
4196
4206
  </xsl:choose>
4197
4207
  </xsl:variable>
4198
4208
  <xsl:variable name="footnote_inline">
4199
- <fo:inline>
4209
+ <fo:inline role="Reference">
4200
4210
 
4201
4211
  <xsl:variable name="fn_styles">
4202
4212
  <xsl:choose>
@@ -4219,7 +4229,7 @@
4219
4229
 
4220
4230
  <xsl:call-template name="insert_basic_link">
4221
4231
  <xsl:with-param name="element">
4222
- <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
4232
+ <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}" role="Lbl">
4223
4233
  <xsl:copy-of select="$current_fn_number_text"/>
4224
4234
  </fo:basic-link>
4225
4235
  </xsl:with-param>
@@ -4232,17 +4242,17 @@
4232
4242
  <xsl:copy-of select="$footnote_inline"/>
4233
4243
  </xsl:when>
4234
4244
  <xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
4235
- <fo:footnote xsl:use-attribute-sets="fn-style">
4245
+ <fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
4236
4246
  <xsl:copy-of select="$footnote_inline"/>
4237
- <fo:footnote-body>
4247
+ <fo:footnote-body role="Note">
4238
4248
 
4239
- <fo:block-container xsl:use-attribute-sets="fn-container-body-style">
4249
+ <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
4240
4250
 
4241
- <fo:block xsl:use-attribute-sets="fn-body-style">
4251
+ <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
4242
4252
 
4243
4253
  <xsl:call-template name="refine_fn-body-style"/>
4244
4254
 
4245
- <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
4255
+ <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
4246
4256
 
4247
4257
  <xsl:call-template name="refine_fn-body-num-style"/>
4248
4258
 
@@ -4504,11 +4514,11 @@
4504
4514
  </xsl:template>
4505
4515
 
4506
4516
  <xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
4507
- <fo:inline><xsl:value-of select="."/></fo:inline>
4517
+ <fo:inline role="SKIP"><xsl:value-of select="."/></fo:inline>
4508
4518
  </xsl:template>
4509
4519
 
4510
4520
  <xsl:template match="*[local-name()='fn']//*[local-name()='p']">
4511
- <fo:inline>
4521
+ <fo:inline role="P">
4512
4522
  <xsl:apply-templates/>
4513
4523
  </fo:inline>
4514
4524
  </xsl:template>
@@ -4523,7 +4533,7 @@
4523
4533
  <xsl:variable name="isAdded" select="@added"/>
4524
4534
  <xsl:variable name="isDeleted" select="@deleted"/>
4525
4535
  <!-- <dl><xsl:copy-of select="."/></dl> -->
4526
- <fo:block-container xsl:use-attribute-sets="dl-block-style">
4536
+ <fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
4527
4537
 
4528
4538
  <xsl:call-template name="setBlockSpanAll"/>
4529
4539
 
@@ -4558,7 +4568,7 @@
4558
4568
  <xsl:with-param name="isDeleted" select="$isDeleted"/>
4559
4569
  </xsl:call-template>
4560
4570
 
4561
- <fo:block-container margin-left="0mm">
4571
+ <fo:block-container margin-left="0mm" role="SKIP">
4562
4572
 
4563
4573
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
4564
4574
 
@@ -4623,7 +4633,7 @@
4623
4633
 
4624
4634
  <!-- a few components -->
4625
4635
  <xsl:if test="$onlyOneComponent = 'false'">
4626
- <fo:block>
4636
+ <fo:block role="SKIP">
4627
4637
 
4628
4638
  <xsl:call-template name="refine_multicomponent_style"/>
4629
4639
 
@@ -4631,7 +4641,7 @@
4631
4641
  <xsl:attribute name="margin-top">0</xsl:attribute>
4632
4642
  </xsl:if>
4633
4643
 
4634
- <fo:block>
4644
+ <fo:block role="SKIP">
4635
4645
 
4636
4646
  <xsl:call-template name="refine_multicomponent_block_style"/>
4637
4647
 
@@ -5234,6 +5244,9 @@
5234
5244
  <xsl:attribute name="color">black</xsl:attribute>
5235
5245
  </xsl:if>
5236
5246
 
5247
+ <xsl:if test="ancestor::*['preferred']">
5248
+ <xsl:attribute name="role">SKIP</xsl:attribute>
5249
+ </xsl:if>
5237
5250
  </xsl:template>
5238
5251
 
5239
5252
  <xsl:template match="*[local-name()='padding']">
@@ -6170,6 +6183,18 @@
6170
6183
  </xsl:copy>
6171
6184
  </xsl:template>
6172
6185
 
6186
+ <xsl:variable name="font_main_root_style">
6187
+ <root-style xsl:use-attribute-sets="root-style">
6188
+ </root-style>
6189
+ </xsl:variable>
6190
+ <xsl:variable name="font_main_root_style_font_family" select="xalan:nodeset($font_main_root_style)/root-style/@font-family"/>
6191
+ <xsl:variable name="font_main">
6192
+ <xsl:choose>
6193
+ <xsl:when test="contains($font_main_root_style_font_family, ',')"><xsl:value-of select="substring-before($font_main_root_style_font_family, ',')"/></xsl:when>
6194
+ <xsl:otherwise><xsl:value-of select="$font_main_root_style_font_family"/></xsl:otherwise>
6195
+ </xsl:choose>
6196
+ </xsl:variable>
6197
+
6173
6198
  <xsl:template match="*[local-name()='th' or local-name()='td']" mode="simple-table-id">
6174
6199
  <xsl:param name="id"/>
6175
6200
  <xsl:copy>
@@ -6208,6 +6233,33 @@
6208
6233
 
6209
6234
  <!-- td_text='<xsl:copy-of select="$td_text"/>' -->
6210
6235
 
6236
+ <xsl:variable name="words_with_width">
6237
+ <!-- calculate width for 'word' which contain text only (without formatting tags inside) -->
6238
+ <xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][not(*)]">
6239
+ <xsl:copy>
6240
+ <xsl:copy-of select="@*"/>
6241
+ <xsl:attribute name="width">
6242
+ <xsl:value-of select="java:org.metanorma.fop.Util.getStringWidth(., $font_main)"/> <!-- Example: 'Times New Roman' -->
6243
+ </xsl:attribute>
6244
+ <xsl:copy-of select="node()"/>
6245
+ </xsl:copy>
6246
+ </xsl:for-each>
6247
+ </xsl:variable>
6248
+
6249
+ <xsl:variable name="words_with_width_sorted">
6250
+ <xsl:for-each select="xalan:nodeset($words_with_width)//*[local-name() = 'word']">
6251
+ <xsl:sort select="@width" data-type="number" order="descending"/>
6252
+ <!-- select word maximal width only -->
6253
+ <xsl:if test="position() = 1">
6254
+ <xsl:copy-of select="."/>
6255
+ </xsl:if>
6256
+ </xsl:for-each>
6257
+ <!-- add 'word' with formatting tags inside -->
6258
+ <xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][*]">
6259
+ <xsl:copy-of select="."/>
6260
+ </xsl:for-each>
6261
+ </xsl:variable>
6262
+
6211
6263
  <xsl:variable name="words">
6212
6264
  <xsl:for-each select=".//*[local-name() = 'image' or local-name() = 'stem']">
6213
6265
  <word>
@@ -6215,9 +6267,12 @@
6215
6267
  </word>
6216
6268
  </xsl:for-each>
6217
6269
 
6218
- <xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != '']">
6270
+ <xsl:for-each select="xalan:nodeset($words_with_width_sorted)//*[local-name() = 'word'][normalize-space() != '']">
6219
6271
  <xsl:copy-of select="."/>
6220
6272
  </xsl:for-each>
6273
+ <!-- <xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != '']">
6274
+ <xsl:copy-of select="."/>
6275
+ </xsl:for-each> -->
6221
6276
 
6222
6277
  </xsl:variable>
6223
6278
 
@@ -6678,10 +6733,10 @@
6678
6733
  <xsl:copy>
6679
6734
  <xsl:apply-templates select="@*" mode="mathml"/>
6680
6735
  <xsl:if test="not(@lspace)">
6681
- <xsl:attribute name="lspace">0.4em</xsl:attribute>
6736
+ <xsl:attribute name="lspace">0.2em</xsl:attribute>
6682
6737
  </xsl:if>
6683
- <xsl:if test="not(@rspace)">
6684
- <xsl:attribute name="rspace">0.4em</xsl:attribute>
6738
+ <xsl:if test="not(@rspace) and not(following-sibling::*[1][self::mathml:mo and normalize-space(text()) = '|'])">
6739
+ <xsl:attribute name="rspace">0.2em</xsl:attribute>
6685
6740
  </xsl:if>
6686
6741
  <xsl:apply-templates mode="mathml"/>
6687
6742
  </xsl:copy>
@@ -6698,6 +6753,27 @@
6698
6753
  </xsl:copy>
6699
6754
  </xsl:template>
6700
6755
 
6756
+ <!-- increase space before '(' -->
6757
+ <xsl:template match="mathml:mo[normalize-space(text()) = '(']" mode="mathml">
6758
+ <xsl:copy>
6759
+ <xsl:apply-templates select="@*" mode="mathml"/>
6760
+ <xsl:if test="(preceding-sibling::* and not(preceding-sibling::*[1][self::mathml:mo])) or (../preceding-sibling::* and not(../preceding-sibling::*[1][self::mathml:mo]))">
6761
+ <xsl:if test="not(@lspace)">
6762
+ <xsl:attribute name="lspace">0.4em</xsl:attribute>
6763
+ <xsl:choose>
6764
+ <xsl:when test="preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
6765
+ <xsl:attribute name="lspace">0.2em</xsl:attribute>
6766
+ </xsl:when>
6767
+ <xsl:when test="../preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
6768
+ <xsl:attribute name="lspace">0.2em</xsl:attribute>
6769
+ </xsl:when>
6770
+ </xsl:choose>
6771
+ </xsl:if>
6772
+ </xsl:if>
6773
+ <xsl:apply-templates mode="mathml"/>
6774
+ </xsl:copy>
6775
+ </xsl:template>
6776
+
6701
6777
  <!-- Examples:
6702
6778
  <stem type="AsciiMath">x = 1</stem>
6703
6779
  <stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
@@ -6857,7 +6933,7 @@
6857
6933
  <!-- formula -->
6858
6934
  <!-- ====== -->
6859
6935
  <xsl:template match="*[local-name() = 'formula']" name="formula">
6860
- <fo:block-container margin-left="0mm">
6936
+ <fo:block-container margin-left="0mm" role="SKIP">
6861
6937
  <xsl:if test="parent::*[local-name() = 'note']">
6862
6938
  <xsl:attribute name="margin-left">
6863
6939
  <xsl:choose>
@@ -6867,7 +6943,7 @@
6867
6943
  </xsl:attribute>
6868
6944
 
6869
6945
  </xsl:if>
6870
- <fo:block-container margin-left="0mm">
6946
+ <fo:block-container margin-left="0mm" role="SKIP">
6871
6947
  <fo:block id="{@id}">
6872
6948
  <xsl:apply-templates select="node()[not(local-name() = 'name')]"/> <!-- formula's number will be process in 'stem' template -->
6873
6949
  </fo:block>
@@ -6947,13 +7023,13 @@
6947
7023
 
6948
7024
  <xsl:template match="*[local-name() = 'note']" name="note">
6949
7025
 
6950
- <fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
7026
+ <fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
6951
7027
 
6952
7028
  <xsl:call-template name="setBlockSpanAll"/>
6953
7029
 
6954
7030
  <xsl:call-template name="refine_note-style"/>
6955
7031
 
6956
- <fo:block-container margin-left="0mm" margin-right="0mm">
7032
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
6957
7033
 
6958
7034
  <fo:block>
6959
7035
 
@@ -7119,12 +7195,13 @@
7119
7195
 
7120
7196
  <xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']">
7121
7197
  <xsl:if test="normalize-space() != ''">
7122
- <xsl:variable name="level">
7198
+ <!-- <xsl:variable name="level">
7123
7199
  <xsl:call-template name="getLevelTermName"/>
7124
7200
  </xsl:variable>
7125
7201
  <fo:inline role="H{$level}">
7126
- <xsl:apply-templates/>
7127
- </fo:inline>
7202
+ <xsl:apply-templates />
7203
+ </fo:inline> -->
7204
+ <xsl:apply-templates/>
7128
7205
  </xsl:if>
7129
7206
  </xsl:template>
7130
7207
  <!-- ====== -->
@@ -7151,7 +7228,7 @@
7151
7228
  <!-- Example: Dimensions in millimeters -->
7152
7229
  <xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
7153
7230
 
7154
- <fo:block xsl:use-attribute-sets="figure-style">
7231
+ <fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
7155
7232
  <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note' and @type = 'units')]"/>
7156
7233
  </fo:block>
7157
7234
  <xsl:for-each select="*[local-name() = 'note'][not(@type = 'units')]">
@@ -8287,7 +8364,7 @@
8287
8364
  </xsl:when>
8288
8365
 
8289
8366
  <xsl:otherwise>
8290
- <fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
8367
+ <fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
8291
8368
 
8292
8369
  <xsl:if test="not(ancestor::*[local-name() = 'li']) or ancestor::*[local-name() = 'example']">
8293
8370
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
@@ -8308,7 +8385,7 @@
8308
8385
  </xsl:attribute>
8309
8386
 
8310
8387
  </xsl:if>
8311
- <fo:block-container margin-left="0mm">
8388
+ <fo:block-container margin-left="0mm" role="SKIP">
8312
8389
 
8313
8390
  <xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name BEFORE content -->
8314
8391
 
@@ -8854,11 +8931,11 @@
8854
8931
  <!-- requirement, recommendation, permission table -->
8855
8932
  <!-- ========== -->
8856
8933
  <xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
8857
- <fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
8934
+ <fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt" role="SKIP">
8858
8935
  <xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
8859
8936
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
8860
8937
  </xsl:if>
8861
- <fo:block-container margin-left="0mm" margin-right="0mm">
8938
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
8862
8939
  <fo:table id="{@id}" table-layout="fixed" width="100%"> <!-- border="1pt solid black" -->
8863
8940
  <xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
8864
8941
  <!-- <xsl:attribute name="border">0.5pt solid black</xsl:attribute> -->
@@ -9020,7 +9097,7 @@
9020
9097
  -->
9021
9098
  <xsl:template match="*[local-name() = 'example']">
9022
9099
 
9023
- <fo:block-container id="{@id}" xsl:use-attribute-sets="example-style">
9100
+ <fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
9024
9101
 
9025
9102
  <xsl:call-template name="setBlockSpanAll"/>
9026
9103
 
@@ -9031,7 +9108,7 @@
9031
9108
  inline
9032
9109
  </xsl:variable>
9033
9110
 
9034
- <fo:block-container margin-left="0mm">
9111
+ <fo:block-container margin-left="0mm" role="SKIP">
9035
9112
 
9036
9113
  <xsl:choose>
9037
9114
 
@@ -9044,8 +9121,8 @@
9044
9121
  </xsl:apply-templates>
9045
9122
  </fo:block>
9046
9123
 
9047
- <fo:block-container xsl:use-attribute-sets="example-body-style">
9048
- <fo:block-container margin-left="0mm" margin-right="0mm">
9124
+ <fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
9125
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
9049
9126
  <xsl:apply-templates select="node()[not(local-name() = 'name')]">
9050
9127
  <xsl:with-param name="fo_element" select="$fo_element"/>
9051
9128
  </xsl:apply-templates>
@@ -9098,8 +9175,8 @@
9098
9175
 
9099
9176
  <xsl:if test="*[not(local-name() = 'name')][position() &gt; 1]">
9100
9177
  <!-- display further elements in blocks -->
9101
- <fo:block-container xsl:use-attribute-sets="example-body-style">
9102
- <fo:block-container margin-left="0mm" margin-right="0mm">
9178
+ <fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
9179
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
9103
9180
  <xsl:apply-templates select="*[not(local-name() = 'name')][position() &gt; 1]">
9104
9181
  <xsl:with-param name="fo_element" select="'block'"/>
9105
9182
  </xsl:apply-templates>
@@ -9157,7 +9234,7 @@
9157
9234
  </xsl:variable>
9158
9235
  <xsl:choose>
9159
9236
  <xsl:when test="starts-with(normalize-space($element), 'block')">
9160
- <fo:block-container>
9237
+ <fo:block-container role="SKIP">
9161
9238
  <xsl:if test="ancestor::*[local-name() = 'li'] and contains(normalize-space($fo_element), 'block')">
9162
9239
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
9163
9240
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
@@ -9298,7 +9375,7 @@
9298
9375
  <!-- author -->
9299
9376
  <!-- ====== -->
9300
9377
  <xsl:template match="*[local-name() = 'quote']">
9301
- <fo:block-container margin-left="0mm">
9378
+ <fo:block-container margin-left="0mm" role="SKIP">
9302
9379
 
9303
9380
  <xsl:call-template name="setBlockSpanAll"/>
9304
9381
 
@@ -9308,12 +9385,12 @@
9308
9385
  </xsl:if>
9309
9386
  </xsl:if>
9310
9387
 
9311
- <fo:block-container margin-left="0mm">
9312
- <fo:block-container xsl:use-attribute-sets="quote-style">
9388
+ <fo:block-container margin-left="0mm" role="SKIP">
9389
+ <fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
9313
9390
 
9314
9391
  <xsl:call-template name="refine_quote-style"/>
9315
9392
 
9316
- <fo:block-container margin-left="0mm" margin-right="0mm">
9393
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
9317
9394
  <fo:block role="BlockQuote">
9318
9395
  <xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
9319
9396
  </fo:block>
@@ -9467,10 +9544,10 @@
9467
9544
 
9468
9545
  <xsl:choose>
9469
9546
  <xsl:when test="$lang = 'zh'">
9470
- <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
9547
+ <fo:inline role="SKIP"><xsl:value-of select="$tab_zh"/></fo:inline>
9471
9548
  </xsl:when>
9472
9549
  <xsl:when test="../../@inline-header = 'true'">
9473
- <fo:inline font-size="90%">
9550
+ <fo:inline font-size="90%" role="SKIP">
9474
9551
  <xsl:call-template name="insertNonBreakSpaces">
9475
9552
  <xsl:with-param name="count" select="$padding-right"/>
9476
9553
  </xsl:call-template>
@@ -9478,7 +9555,7 @@
9478
9555
  </xsl:when>
9479
9556
  <xsl:otherwise>
9480
9557
  <xsl:variable name="direction"><xsl:if test="$lang = 'ar'"><xsl:value-of select="$RLM"/></xsl:if></xsl:variable>
9481
- <fo:inline padding-right="{$padding-right}mm"><xsl:value-of select="$direction"/>​</fo:inline>
9558
+ <fo:inline padding-right="{$padding-right}mm" role="SKIP"><xsl:value-of select="$direction"/>​</fo:inline>
9482
9559
  </xsl:otherwise>
9483
9560
  </xsl:choose>
9484
9561
 
@@ -9508,12 +9585,12 @@
9508
9585
  <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
9509
9586
 
9510
9587
  <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'preferred'])"> <!-- if first preffered in term, then display term's name -->
9511
- <fo:block xsl:use-attribute-sets="term-name-style">
9588
+ <fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
9512
9589
  <xsl:apply-templates select="ancestor::*[local-name() = 'term'][1]/*[local-name() = 'name']"/>
9513
9590
  </fo:block>
9514
9591
  </xsl:if>
9515
9592
 
9516
- <fo:block xsl:use-attribute-sets="preferred-term-style">
9593
+ <fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
9517
9594
  <xsl:call-template name="setStyle_preferred"/>
9518
9595
  <xsl:apply-templates/>
9519
9596
  </fo:block>
@@ -9554,7 +9631,7 @@
9554
9631
  <!-- definition -->
9555
9632
  <!-- ========== -->
9556
9633
  <xsl:template match="*[local-name() = 'definition']">
9557
- <fo:block xsl:use-attribute-sets="definition-style">
9634
+ <fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
9558
9635
  <xsl:apply-templates/>
9559
9636
  </fo:block>
9560
9637
  </xsl:template>
@@ -9602,6 +9679,10 @@
9602
9679
 
9603
9680
  <xsl:template match="*[local-name() = 'clause']">
9604
9681
  <fo:block>
9682
+ <xsl:if test="parent::*[local-name() = 'copyright-statement']">
9683
+ <xsl:attribute name="role">SKIP</xsl:attribute>
9684
+ </xsl:if>
9685
+
9605
9686
  <xsl:call-template name="setId"/>
9606
9687
 
9607
9688
  <xsl:call-template name="setBlockSpanAll"/>
@@ -9840,7 +9921,7 @@
9840
9921
  <xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
9841
9922
  <xsl:choose>
9842
9923
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
9843
- <fo:block-container>
9924
+ <fo:block-container role="SKIP">
9844
9925
  <xsl:attribute name="margin-left">
9845
9926
  <xsl:choose>
9846
9927
  <xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
@@ -9850,7 +9931,7 @@
9850
9931
 
9851
9932
  <xsl:call-template name="refine_list_container_style"/>
9852
9933
 
9853
- <fo:block-container margin-left="0mm">
9934
+ <fo:block-container margin-left="0mm" role="SKIP">
9854
9935
  <fo:block>
9855
9936
  <xsl:apply-templates select="." mode="list"/>
9856
9937
  </fo:block>
@@ -9859,7 +9940,7 @@
9859
9940
  </xsl:when>
9860
9941
  <xsl:otherwise>
9861
9942
 
9862
- <fo:block>
9943
+ <fo:block role="SKIP">
9863
9944
  <xsl:apply-templates select="." mode="list"/>
9864
9945
  </fo:block>
9865
9946
 
@@ -10277,7 +10358,10 @@
10277
10358
  <!-- Reference sections (Normative References and Bibliography) -->
10278
10359
  <!-- ========================================================== -->
10279
10360
  <xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
10280
- <xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"/>
10361
+ <xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
10362
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/>
10363
+
10364
+ </xsl:template>
10281
10365
  <!-- don't display bibitem with @id starts with '_hidden', that was introduced for references integrity -->
10282
10366
  <xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
10283
10367
 
@@ -10326,6 +10410,7 @@
10326
10410
 
10327
10411
  <!-- Bibliography (non-normative references) -->
10328
10412
  <xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
10413
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
10329
10414
 
10330
10415
  <fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
10331
10416
  <fo:list-item>
@@ -10350,6 +10435,35 @@
10350
10435
 
10351
10436
  </xsl:template> <!-- references[not(@normative='true')]/bibitem -->
10352
10437
 
10438
+ <xsl:template name="insertListItem_Bibitem">
10439
+ <xsl:choose>
10440
+ <xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
10441
+ <xsl:otherwise>
10442
+ <fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
10443
+ <fo:list-item-label end-indent="label-end()">
10444
+ <fo:block role="SKIP">
10445
+ <fo:inline role="SKIP">
10446
+ <xsl:apply-templates select="*[local-name() = 'biblio-tag']">
10447
+ <xsl:with-param name="biblio_tag_part">first</xsl:with-param>
10448
+ </xsl:apply-templates>
10449
+ </fo:inline>
10450
+ </fo:block>
10451
+ </fo:list-item-label>
10452
+ <fo:list-item-body start-indent="body-start()">
10453
+ <fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
10454
+ <xsl:call-template name="processBibitem">
10455
+ <xsl:with-param name="biblio_tag_part">last</xsl:with-param>
10456
+ </xsl:call-template>
10457
+ </fo:block>
10458
+ </fo:list-item-body>
10459
+ </fo:list-item>
10460
+ </xsl:otherwise>
10461
+ </xsl:choose>
10462
+ <xsl:apply-templates select="following-sibling::*[1][local-name() = 'bibitem']">
10463
+ <xsl:with-param name="skip">false</xsl:with-param>
10464
+ </xsl:apply-templates>
10465
+ </xsl:template>
10466
+
10353
10467
  <xsl:template name="processBibitem">
10354
10468
  <xsl:param name="biblio_tag_part">both</xsl:param>
10355
10469
 
@@ -10683,7 +10797,7 @@
10683
10797
 
10684
10798
  <xsl:call-template name="setBlockSpanAll"/>
10685
10799
 
10686
- <fo:block-container xsl:use-attribute-sets="admonition-container-style">
10800
+ <fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
10687
10801
 
10688
10802
  <fo:block xsl:use-attribute-sets="admonition-name-style">
10689
10803
  <xsl:call-template name="displayAdmonitionName"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.2.11".freeze
3
+ VERSION = "2.2.12".freeze
4
4
  end
5
5
  end
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.2.11
4
+ version: 2.2.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: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic