metanorma-ribose 2.3.4 → 2.3.6
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 +4 -4
- data/Gemfile +2 -8
- data/lib/isodoc/ribose/html/htmlstyle.css +8 -0
- data/lib/isodoc/ribose/ribose.standard.xsl +2 -2
- data/lib/metanorma/ribose/basicdoc.rng +26 -17
- data/lib/metanorma/ribose/biblio.rng +21 -0
- data/lib/metanorma/ribose/isodoc.rng +23 -1
- data/lib/metanorma/ribose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75221df18b333ca9e8840b99200517da645deb6e92f3b7db1b7c4c0db17e4bee
|
|
4
|
+
data.tar.gz: 430460e33e2280a59f940dcc3708e1f8c53c175b831dafd7faa6d87481caf535
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c2dd35fae05720f7b66008d0e2f1ce100d43abf7eee7265751fee080fbf4374d05a8ee48c50e2ecc3207c00c97d36e3ce07b6864366a69eb6d381ec3cafcb76
|
|
7
|
+
data.tar.gz: 6adba7885458dbce192c4cdf881732cf998e15f1b3933a479da84a09b011ae399cd8b24ac91641e009fa05580f07933a2be65ce56c6f2b7b083e5c1283da4da0
|
data/Gemfile
CHANGED
|
@@ -4,12 +4,6 @@ Encoding.default_internal = Encoding::UTF_8
|
|
|
4
4
|
source "https://rubygems.org"
|
|
5
5
|
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
|
6
6
|
|
|
7
|
-
group :development, :test do
|
|
8
|
-
gem "rspec"
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
if File.exist? "Gemfile.devel"
|
|
12
|
-
eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
|
|
13
|
-
end
|
|
14
|
-
|
|
15
7
|
gemspec
|
|
8
|
+
|
|
9
|
+
eval_gemfile("Gemfile.devel") rescue nil
|
|
@@ -139,6 +139,14 @@ a.FootnoteRef, span.FootnoteRef {
|
|
|
139
139
|
color: red;
|
|
140
140
|
text-decoration: line-through; }
|
|
141
141
|
|
|
142
|
+
ruby {
|
|
143
|
+
ruby-position: over;
|
|
144
|
+
-webkit-ruby-position: before; }
|
|
145
|
+
|
|
146
|
+
ruby ruby {
|
|
147
|
+
ruby-position: under;
|
|
148
|
+
-webkit-ruby-position: after; }
|
|
149
|
+
|
|
142
150
|
/* code highlighting with line numbers */
|
|
143
151
|
table.rouge-line-table td.rouge-gutter {
|
|
144
152
|
-moz-user-select: none;
|
|
@@ -10672,10 +10672,10 @@
|
|
|
10672
10672
|
|
|
10673
10673
|
<xsl:variable name="toc_level">
|
|
10674
10674
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
|
10675
|
-
<xsl:variable name="
|
|
10675
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
|
10676
10676
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
|
10677
10677
|
<xsl:choose>
|
|
10678
|
-
<xsl:when test="$
|
|
10678
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
|
10679
10679
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
|
10680
10680
|
<xsl:otherwise><!-- default value -->
|
|
10681
10681
|
2
|
|
@@ -715,27 +715,36 @@
|
|
|
715
715
|
</define>
|
|
716
716
|
<define name="ruby">
|
|
717
717
|
<element name="ruby">
|
|
718
|
-
<
|
|
719
|
-
<
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
718
|
+
<choice>
|
|
719
|
+
<ref name="ruby_pronunciation"/>
|
|
720
|
+
<ref name="ruby_annotation"/>
|
|
721
|
+
</choice>
|
|
722
|
+
<choice>
|
|
723
|
+
<text/>
|
|
724
|
+
<ref name="ruby"/>
|
|
725
|
+
</choice>
|
|
725
726
|
</element>
|
|
726
727
|
</define>
|
|
727
|
-
<define name="
|
|
728
|
-
<element name="
|
|
729
|
-
<
|
|
730
|
-
|
|
731
|
-
|
|
728
|
+
<define name="ruby_pronunciation">
|
|
729
|
+
<element name="pronunciation">
|
|
730
|
+
<attribute name="value"/>
|
|
731
|
+
<optional>
|
|
732
|
+
<attribute name="script"/>
|
|
733
|
+
</optional>
|
|
734
|
+
<optional>
|
|
735
|
+
<attribute name="lang"/>
|
|
736
|
+
</optional>
|
|
732
737
|
</element>
|
|
733
738
|
</define>
|
|
734
|
-
<define name="
|
|
735
|
-
<element name="
|
|
736
|
-
<
|
|
737
|
-
|
|
738
|
-
|
|
739
|
+
<define name="ruby_annotation">
|
|
740
|
+
<element name="annotation">
|
|
741
|
+
<attribute name="value"/>
|
|
742
|
+
<optional>
|
|
743
|
+
<attribute name="script"/>
|
|
744
|
+
</optional>
|
|
745
|
+
<optional>
|
|
746
|
+
<attribute name="lang"/>
|
|
747
|
+
</optional>
|
|
739
748
|
</element>
|
|
740
749
|
</define>
|
|
741
750
|
<define name="br">
|
|
@@ -348,6 +348,9 @@
|
|
|
348
348
|
<zeroOrMore>
|
|
349
349
|
<ref name="contact"/>
|
|
350
350
|
</zeroOrMore>
|
|
351
|
+
<optional>
|
|
352
|
+
<ref name="logo"/>
|
|
353
|
+
</optional>
|
|
351
354
|
</element>
|
|
352
355
|
</define>
|
|
353
356
|
<define name="orgname">
|
|
@@ -366,6 +369,21 @@
|
|
|
366
369
|
</choice>
|
|
367
370
|
</element>
|
|
368
371
|
</define>
|
|
372
|
+
<define name="logo">
|
|
373
|
+
<element name="logo">
|
|
374
|
+
<ref name="image"/>
|
|
375
|
+
</element>
|
|
376
|
+
</define>
|
|
377
|
+
<define name="depiction">
|
|
378
|
+
<element name="depiction">
|
|
379
|
+
<optional>
|
|
380
|
+
<attribute name="scope"/>
|
|
381
|
+
</optional>
|
|
382
|
+
<zeroOrMore>
|
|
383
|
+
<ref name="image"/>
|
|
384
|
+
</zeroOrMore>
|
|
385
|
+
</element>
|
|
386
|
+
</define>
|
|
369
387
|
<define name="NameWithVariants">
|
|
370
388
|
<element name="primary">
|
|
371
389
|
<ref name="LocalizedString"/>
|
|
@@ -752,6 +770,9 @@
|
|
|
752
770
|
<optional>
|
|
753
771
|
<ref name="validity"/>
|
|
754
772
|
</optional>
|
|
773
|
+
<optional>
|
|
774
|
+
<ref name="depiction"/>
|
|
775
|
+
</optional>
|
|
755
776
|
</define>
|
|
756
777
|
<define name="ReducedBibliographicItem">
|
|
757
778
|
<optional>
|
|
@@ -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.2.
|
|
20
|
+
<!-- VERSION v1.2.9 -->
|
|
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">
|
|
@@ -1408,6 +1408,9 @@
|
|
|
1408
1408
|
<optional>
|
|
1409
1409
|
<attribute name="number"/>
|
|
1410
1410
|
</optional>
|
|
1411
|
+
<optional>
|
|
1412
|
+
<attribute name="branch-number"/>
|
|
1413
|
+
</optional>
|
|
1411
1414
|
<optional>
|
|
1412
1415
|
<attribute name="obligation">
|
|
1413
1416
|
<choice>
|
|
@@ -1631,6 +1634,9 @@
|
|
|
1631
1634
|
<optional>
|
|
1632
1635
|
<attribute name="number"/>
|
|
1633
1636
|
</optional>
|
|
1637
|
+
<optional>
|
|
1638
|
+
<attribute name="branch-number"/>
|
|
1639
|
+
</optional>
|
|
1634
1640
|
<optional>
|
|
1635
1641
|
<attribute name="type"/>
|
|
1636
1642
|
</optional>
|
|
@@ -1682,6 +1688,9 @@
|
|
|
1682
1688
|
<optional>
|
|
1683
1689
|
<attribute name="number"/>
|
|
1684
1690
|
</optional>
|
|
1691
|
+
<optional>
|
|
1692
|
+
<attribute name="branch-number"/>
|
|
1693
|
+
</optional>
|
|
1685
1694
|
<optional>
|
|
1686
1695
|
<ref name="section-title"/>
|
|
1687
1696
|
</optional>
|
|
@@ -1779,6 +1788,9 @@
|
|
|
1779
1788
|
<optional>
|
|
1780
1789
|
<attribute name="number"/>
|
|
1781
1790
|
</optional>
|
|
1791
|
+
<optional>
|
|
1792
|
+
<attribute name="branch-number"/>
|
|
1793
|
+
</optional>
|
|
1782
1794
|
<optional>
|
|
1783
1795
|
<attribute name="obligation">
|
|
1784
1796
|
<choice>
|
|
@@ -1946,6 +1958,16 @@
|
|
|
1946
1958
|
<data type="boolean"/>
|
|
1947
1959
|
</attribute>
|
|
1948
1960
|
</optional>
|
|
1961
|
+
<optional>
|
|
1962
|
+
<attribute name="type">
|
|
1963
|
+
<choice>
|
|
1964
|
+
<value>letter</value>
|
|
1965
|
+
<value>symbol</value>
|
|
1966
|
+
<value>formula</value>
|
|
1967
|
+
<value>equation</value>
|
|
1968
|
+
</choice>
|
|
1969
|
+
</attribute>
|
|
1970
|
+
</optional>
|
|
1949
1971
|
<element name="name">
|
|
1950
1972
|
<oneOrMore>
|
|
1951
1973
|
<choice>
|
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.3.
|
|
4
|
+
version: 2.3.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: 2023-
|
|
11
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-generic
|