metanorma-plateau 1.1.1 → 1.1.2

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: 3b9502dbb12bc7774d093699d7859cbabce81c4e290f14e6a0921c97b30068f1
4
- data.tar.gz: 885b279f620ec1f8ca940c46d8226106c92b6a79a83735a8c85f833c902f2f4e
3
+ metadata.gz: 38805e986aa828aaf5643505c602f768a9fcca059f609fd9277ea19d27a96d75
4
+ data.tar.gz: 80505ea36d9ad9add5ad0bbf58e263914ff98510c824dac89e5c221164baca6a
5
5
  SHA512:
6
- metadata.gz: fd5b15979492ead604a2b194a33b88359cc7c8abdb9e54f46074f40d40ffdf9686bf6caa83f64f3d617a1028c753207ad32d9644a13297ada7d64d514426619e
7
- data.tar.gz: f8b6f02d94ecd5148be9aaddb50097d4c69d1087fc2412da2b510730386dabdfeace0d58fb822064ae4d6cfd862422a2134ee5625a989044e0a03d7037c9429f
6
+ metadata.gz: 55b12233299061c56b7de9977489402fb1c3410b6e3f1740a19347e6673b2b5ec5c869ed0707e9464146e67fd1d769eaa3c9bcead010ea4c48f9261933ccd676
7
+ data.tar.gz: b2926315ab374f5227748b6216db23e501dd00dcdb3984f3814854cbfc6ddb038b637541e69f3497b31ede8b9ee579381c7149d3192f8646b841d588b60a38b6
data/README.adoc CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-plateau.svg["Gem Version", link="https://rubygems.org/gems/metanorma-plateau"]
4
4
  image:https://github.com/metanorma/metanorma-plateau/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-plateau/actions?workflow=rake"]
5
- image:https://codeclimate.com/github/metanorma/metanorma-plateau/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-plateau"]
5
+ // image:https://codeclimate.com/github/metanorma/metanorma-plateau/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-plateau"]
6
6
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-plateau.svg["Pull Requests", link="https://github.com/metanorma/metanorma-plateau/pulls"]
7
7
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-plateau/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-plateau/releases"]
8
8
 
@@ -457,7 +457,7 @@
457
457
  </xsl:call-template>
458
458
  </xsl:template> <!-- END: processPrefaceAndMainSectionsPlateau_items -->
459
459
 
460
- <xsl:template match="mn:preface//mn:clause[@type = 'toc']" priority="4">
460
+ <xsl:template match="mn:preface//mn:clause[@type = 'toc']" name="toc" priority="4">
461
461
  <xsl:param name="num"/>
462
462
  <xsl:if test="$doctype = 'technical-report'">
463
463
  <fo:block font-size="16pt" margin-top="5mm"><xsl:value-of select="$i18n_table_of_contents"/></fo:block>
@@ -466,11 +466,10 @@
466
466
  <xsl:apply-templates/>
467
467
  <xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
468
468
  <!-- fill ToC -->
469
- <fo:block role="TOC" font-weight="bold">
470
- <xsl:if test="$doctype = 'technical-report'">
471
- <xsl:attribute name="font-weight">normal</xsl:attribute>
472
- <xsl:attribute name="line-height">1.2</xsl:attribute>
473
- </xsl:if>
469
+ <fo:block role="TOC" xsl:use-attribute-sets="toc-style">
470
+
471
+ <xsl:call-template name="refine_toc-style"/>
472
+
474
473
  <xsl:if test="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true']">
475
474
  <xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true'][@level &lt;= $toc_level or @type='figure' or @type = 'table']">
476
475
  <fo:block role="TOCI">
@@ -564,7 +563,7 @@
564
563
 
565
564
  <xsl:template name="insertTocItem">
566
565
  <xsl:param name="printSection">false</xsl:param>
567
- <fo:block text-align-last="justify" role="TOCI">
566
+ <fo:block xsl:use-attribute-sets="toc-item-style">
568
567
  <fo:basic-link internal-destination="{@id}" fox:alt-text="{mnx:title}">
569
568
  <xsl:if test="$printSection = 'true' and @section != ''">
570
569
  <xsl:value-of select="@section"/>
@@ -572,7 +571,7 @@
572
571
  </xsl:if>
573
572
  <fo:inline><xsl:apply-templates select="mnx:title"/><xsl:text> </xsl:text></fo:inline>
574
573
  <fo:inline keep-together.within-line="always">
575
- <fo:leader leader-pattern="dots"/>
574
+ <fo:leader xsl:use-attribute-sets="toc-leader-style"/>
576
575
  <fo:inline>
577
576
  <xsl:if test="$doctype = 'technical-report'"><xsl:text>- </xsl:text></xsl:if>
578
577
  <fo:page-number-citation ref-id="{@id}"/>
@@ -11641,7 +11640,7 @@
11641
11640
 
11642
11641
  <xsl:template name="insertFootnoteSeparatorCommon">
11643
11642
  <xsl:param name="leader_length">30%</xsl:param>
11644
- <fo:static-content flow-name="xsl-footnote-separator">
11643
+ <fo:static-content flow-name="xsl-footnote-separator" role="artifact">
11645
11644
  <fo:block>
11646
11645
  <fo:leader leader-pattern="rule" leader-length="{$leader_length}"/>
11647
11646
  </fo:block>
@@ -12501,17 +12500,28 @@
12501
12500
  <!-- =================== -->
12502
12501
 
12503
12502
  <xsl:attribute-set name="toc-style">
12503
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
12504
12504
  </xsl:attribute-set>
12505
12505
 
12506
12506
  <xsl:template name="refine_toc-style">
12507
+ <xsl:if test="$doctype = 'technical-report'">
12508
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
12509
+ <xsl:attribute name="line-height">1.2</xsl:attribute>
12510
+ </xsl:if>
12507
12511
  </xsl:template>
12508
12512
 
12509
12513
  <xsl:attribute-set name="toc-title-style">
12510
12514
  </xsl:attribute-set>
12511
12515
 
12516
+ <xsl:template name="refine_toc-title-style">
12517
+ </xsl:template>
12518
+
12512
12519
  <xsl:attribute-set name="toc-title-page-style">
12513
12520
  </xsl:attribute-set> <!-- toc-title-page-style -->
12514
12521
 
12522
+ <xsl:template name="refine_toc-title-page-style">
12523
+ </xsl:template>
12524
+
12515
12525
  <xsl:attribute-set name="toc-item-block-style">
12516
12526
  </xsl:attribute-set>
12517
12527
 
@@ -12520,12 +12530,14 @@
12520
12530
 
12521
12531
  <xsl:attribute-set name="toc-item-style">
12522
12532
  <xsl:attribute name="role">TOCI</xsl:attribute>
12533
+ <xsl:attribute name="text-align-last">justify</xsl:attribute>
12523
12534
  </xsl:attribute-set> <!-- END: toc-item-style -->
12524
12535
 
12525
12536
  <xsl:template name="refine_toc-item-style">
12526
12537
  </xsl:template> <!-- END: refine_toc-item-style -->
12527
12538
 
12528
12539
  <xsl:attribute-set name="toc-leader-style">
12540
+ <xsl:attribute name="leader-pattern">dots</xsl:attribute>
12529
12541
  </xsl:attribute-set> <!-- END: toc-leader-style -->
12530
12542
 
12531
12543
  <xsl:attribute-set name="toc-pagenumber-style">
@@ -12535,6 +12547,9 @@
12535
12547
  <xsl:attribute-set name="toc-listof-title-style">
12536
12548
  </xsl:attribute-set>
12537
12549
 
12550
+ <xsl:template name="refine_toc-listof-title-style">
12551
+ </xsl:template>
12552
+
12538
12553
  <xsl:attribute-set name="toc-listof-item-block-style">
12539
12554
  </xsl:attribute-set>
12540
12555
 
@@ -12879,7 +12894,7 @@
12879
12894
  </xsl:if>
12880
12895
 
12881
12896
  <xsl:for-each select="$contents_nodes/mnx:doc">
12882
- <fo:bookmark internal-destination="{contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
12897
+ <fo:bookmark internal-destination="{mnx:contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
12883
12898
  <xsl:if test="@bundle = 'true'">
12884
12899
  <xsl:attribute name="internal-destination"><xsl:value-of select="@firstpage_id"/></xsl:attribute>
12885
12900
  </xsl:if>
@@ -12913,7 +12928,7 @@
12913
12928
  </xsl:choose>
12914
12929
  </fo:bookmark-title>
12915
12930
 
12916
- <xsl:apply-templates select="contents/mnx:item" mode="bookmark"/>
12931
+ <xsl:apply-templates select="mnx:contents/mnx:item" mode="bookmark"/>
12917
12932
 
12918
12933
  <xsl:call-template name="insertFigureBookmarks">
12919
12934
  <xsl:with-param name="contents" select="mnx:contents"/>
@@ -1291,13 +1291,13 @@ Restricted recursively to contain only other such inline elements with no identi
1291
1291
  <ref name="pure_strike"/>
1292
1292
  <ref name="pure_smallcap"/>
1293
1293
  <ref name="br"/>
1294
+ <ref name="stem"/>
1294
1295
  </choice>
1295
1296
  </define>
1296
1297
  <define name="NestedTextElement">
1297
1298
  <a:documentation>Contents of TextElement tags: leaves out tags that should occur only at top level of block: bookmark image hr pagebreak</a:documentation>
1298
1299
  <choice>
1299
1300
  <ref name="PureTextElement"/>
1300
- <ref name="stem"/>
1301
1301
  <ref name="eref"/>
1302
1302
  <ref name="xref"/>
1303
1303
  <ref name="hyperlink"/>
@@ -42,36 +42,6 @@ All IdRefType instances point not to `@id` in Semantic XML, which is the Content
42
42
  but to `@anchor`, the user-supplied cross-reference</a:documentation>
43
43
  <text/>
44
44
  </define>
45
- <define name="index-primary">
46
- <element name="primary">
47
- <oneOrMore>
48
- <choice>
49
- <ref name="PureTextElement"/>
50
- <ref name="stem"/>
51
- </choice>
52
- </oneOrMore>
53
- </element>
54
- </define>
55
- <define name="index-secondary">
56
- <element name="secondary">
57
- <oneOrMore>
58
- <choice>
59
- <ref name="PureTextElement"/>
60
- <ref name="stem"/>
61
- </choice>
62
- </oneOrMore>
63
- </element>
64
- </define>
65
- <define name="index-tertiary">
66
- <element name="tertiary">
67
- <oneOrMore>
68
- <choice>
69
- <ref name="PureTextElement"/>
70
- <ref name="stem"/>
71
- </choice>
72
- </oneOrMore>
73
- </element>
74
- </define>
75
45
  <define name="review">
76
46
  <a:documentation>Generalise BasicDoc element from just review comments, to general annotations;
77
47
  the type attribute defaults to `review` for reviews</a:documentation>
@@ -592,28 +562,6 @@ normative or informative references, some split references into sections organiz
592
562
  </oneOrMore>
593
563
  </element>
594
564
  </define>
595
- <define name="sub">
596
- <a:documentation>Subscript text. Corresponds to HTML `sub</a:documentation>
597
- <element name="sub">
598
- <zeroOrMore>
599
- <choice>
600
- <ref name="PureTextElement"/>
601
- <ref name="stem"/>
602
- </choice>
603
- </zeroOrMore>
604
- </element>
605
- </define>
606
- <define name="sup">
607
- <a:documentation>Superscript text. Corresponds to HTML `sup`</a:documentation>
608
- <element name="sup">
609
- <zeroOrMore>
610
- <choice>
611
- <ref name="PureTextElement"/>
612
- <ref name="stem"/>
613
- </choice>
614
- </zeroOrMore>
615
- </element>
616
- </define>
617
565
  <define name="pagebreak">
618
566
  <a:documentation>Page break. Only applicable in paged layouts (e.g. PDF, Word), and not flow layouts (e.g. HTML)</a:documentation>
619
567
  <element name="pagebreak">
@@ -1094,7 +1042,6 @@ That concept may be defined as a term within the current document, or it may be
1094
1042
  <zeroOrMore>
1095
1043
  <choice>
1096
1044
  <ref name="PureTextElement"/>
1097
- <ref name="stem"/>
1098
1045
  <ref name="index"/>
1099
1046
  <ref name="index-xref"/>
1100
1047
  </choice>
@@ -1107,7 +1054,6 @@ That concept may be defined as a term within the current document, or it may be
1107
1054
  <zeroOrMore>
1108
1055
  <choice>
1109
1056
  <ref name="PureTextElement"/>
1110
- <ref name="stem"/>
1111
1057
  <ref name="index"/>
1112
1058
  <ref name="index-xref"/>
1113
1059
  </choice>
@@ -2025,10 +1971,7 @@ used in document amendments</a:documentation>
2025
1971
  <element name="name">
2026
1972
  <a:documentation>The symbolic form of the designation</a:documentation>
2027
1973
  <oneOrMore>
2028
- <choice>
2029
- <ref name="PureTextElement"/>
2030
- <ref name="stem"/>
2031
- </choice>
1974
+ <ref name="PureTextElement"/>
2032
1975
  </oneOrMore>
2033
1976
  </element>
2034
1977
  </element>
@@ -2081,7 +2024,6 @@ used in document amendments</a:documentation>
2081
2024
  <zeroOrMore>
2082
2025
  <choice>
2083
2026
  <ref name="PureTextElement"/>
2084
- <ref name="stem"/>
2085
2027
  <ref name="index"/>
2086
2028
  <ref name="index-xref"/>
2087
2029
  </choice>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "1.1.1".freeze
3
+ VERSION = "1.1.2".freeze
4
4
  end
5
5
  end
@@ -45,5 +45,5 @@ spec.add_development_dependency "rubocop-performance"
45
45
  spec.add_development_dependency "simplecov", "~> 0.15"
46
46
  spec.add_development_dependency "timecop", "~> 0.9"
47
47
  spec.add_development_dependency "webmock"
48
- spec.add_development_dependency "xml-c14n"
48
+ spec.add_development_dependency "canon"
49
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plateau
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-21 00:00:00.000000000 Z
11
+ date: 2025-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-jis
@@ -221,7 +221,7 @@ dependencies:
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
- name: xml-c14n
224
+ name: canon
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="