metanorma-ribose 2.2.13 → 2.3.0
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/lib/isodoc/ribose/html/htmlstyle.css +2 -2
- data/lib/isodoc/ribose/html/htmlstyle.scss +2 -2
- data/lib/isodoc/ribose/html_convert.rb +0 -10
- data/lib/isodoc/ribose/presentation_xml_convert.rb +2 -0
- data/lib/isodoc/ribose/ribose.standard.xsl +37 -14
- data/lib/metanorma/ribose/isodoc.rng +26 -4
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma-ribose.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 46ea5eea884d1f312eb1d61021968e5f52c9dfa73e2abce1bb18c08851484436
|
|
4
|
+
data.tar.gz: c9b45439c5ab9fd0afe4cf7ad68585a7a6f05630841055f349c4a3e87d75a26d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79d78a621f1a379df14692eaa491726c4ed4750d794fcb379c711b198c40599dab55a26e32e8cb545013211ab96fd796bc790fb2346dfddb42ff2a99519e3bac
|
|
7
|
+
data.tar.gz: 54b348ae16bff0db1922456350040d073689be99619c4927bc364dd36918ec4a0e27b12f7215e4ac7abcbd885a0ee45f357bbb45df16cdec41248fcabad2a175
|
|
@@ -681,7 +681,7 @@ ol {
|
|
|
681
681
|
ul li {
|
|
682
682
|
list-style: none; }
|
|
683
683
|
|
|
684
|
-
ul > li
|
|
684
|
+
ul > li::before {
|
|
685
685
|
content: "\2014";
|
|
686
686
|
display: inline-block;
|
|
687
687
|
width: 1em;
|
|
@@ -705,7 +705,7 @@ ol ul > li:first-child {
|
|
|
705
705
|
#toc-list li {
|
|
706
706
|
list-style-type: none; }
|
|
707
707
|
|
|
708
|
-
#toc li
|
|
708
|
+
#toc li::before {
|
|
709
709
|
content: " ";
|
|
710
710
|
display: none; }
|
|
711
711
|
|
|
@@ -296,7 +296,7 @@ ul li {
|
|
|
296
296
|
list-style: none;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
ul>li
|
|
299
|
+
ul>li::before {
|
|
300
300
|
content: "\2014";
|
|
301
301
|
display: inline-block;
|
|
302
302
|
width: 1em;
|
|
@@ -326,7 +326,7 @@ ol ul > li:first-child {
|
|
|
326
326
|
list-style-type: none;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
#toc li
|
|
329
|
+
#toc li::before {
|
|
330
330
|
content: " ";
|
|
331
331
|
display: none;
|
|
332
332
|
}
|
|
@@ -13,16 +13,6 @@ module IsoDoc
|
|
|
13
13
|
Metanorma::Ribose.configuration
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def make_body3(body, docxml)
|
|
17
|
-
body.div class: "main-section" do |div3|
|
|
18
|
-
boilerplate docxml, div3
|
|
19
|
-
front docxml, div3
|
|
20
|
-
middle docxml, div3
|
|
21
|
-
footnotes div3
|
|
22
|
-
comments div3
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
16
|
include BaseConvert
|
|
27
17
|
include Init
|
|
28
18
|
end
|
|
@@ -5210,6 +5210,9 @@
|
|
|
5210
5210
|
<!-- END Definition List -->
|
|
5211
5211
|
<!-- ===================== -->
|
|
5212
5212
|
|
|
5213
|
+
<!-- default: ignore title in sections/p -->
|
|
5214
|
+
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>
|
|
5215
|
+
|
|
5213
5216
|
<!-- ========================= -->
|
|
5214
5217
|
<!-- Rich text formatting -->
|
|
5215
5218
|
<!-- ========================= -->
|
|
@@ -7303,25 +7306,45 @@
|
|
|
7303
7306
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
|
7304
7307
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
|
7305
7308
|
|
|
7306
|
-
<xsl:
|
|
7307
|
-
<xsl:
|
|
7308
|
-
<xsl:
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
</xsl:variable>
|
|
7309
|
+
<xsl:if test="@width != '' and @width != 'auto'">
|
|
7310
|
+
<xsl:attribute name="width">
|
|
7311
|
+
<xsl:value-of select="@width"/>
|
|
7312
|
+
</xsl:attribute>
|
|
7313
|
+
</xsl:if>
|
|
7312
7314
|
|
|
7313
|
-
<xsl:
|
|
7315
|
+
<xsl:if test="@height != '' and @height != 'auto'">
|
|
7316
|
+
<xsl:attribute name="height">
|
|
7317
|
+
<xsl:value-of select="@height"/>
|
|
7318
|
+
</xsl:attribute>
|
|
7319
|
+
</xsl:if>
|
|
7314
7320
|
|
|
7315
|
-
|
|
7321
|
+
<xsl:choose>
|
|
7322
|
+
<xsl:when test="@width != '' and @width != 'auto' and @height != '' and @height != 'auto'">
|
|
7323
|
+
<xsl:attribute name="scaling">non-uniform</xsl:attribute>
|
|
7324
|
+
</xsl:when>
|
|
7325
|
+
<xsl:otherwise>
|
|
7316
7326
|
|
|
7317
|
-
|
|
7327
|
+
<xsl:variable name="img_src">
|
|
7328
|
+
<xsl:choose>
|
|
7329
|
+
<xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
|
|
7330
|
+
<xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
|
|
7331
|
+
</xsl:choose>
|
|
7332
|
+
</xsl:variable>
|
|
7318
7333
|
|
|
7319
|
-
|
|
7320
|
-
<xsl:if test="number($scale) < 100">
|
|
7334
|
+
<xsl:variable name="image_width_effective">
|
|
7321
7335
|
|
|
7322
|
-
|
|
7336
|
+
<xsl:value-of select="$width_effective"/>
|
|
7323
7337
|
|
|
7324
|
-
|
|
7338
|
+
</xsl:variable>
|
|
7339
|
+
|
|
7340
|
+
<xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $image_width_effective, $height_effective)"/>
|
|
7341
|
+
<xsl:if test="number($scale) < 100">
|
|
7342
|
+
|
|
7343
|
+
<xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
|
|
7344
|
+
|
|
7345
|
+
</xsl:if>
|
|
7346
|
+
</xsl:otherwise>
|
|
7347
|
+
</xsl:choose>
|
|
7325
7348
|
|
|
7326
7349
|
</xsl:if>
|
|
7327
7350
|
|
|
@@ -10975,7 +10998,7 @@
|
|
|
10975
10998
|
<xsl:template match="*[local-name() = 'span']" mode="update_xml_step1">
|
|
10976
10999
|
<xsl:apply-templates mode="update_xml_step1"/>
|
|
10977
11000
|
</xsl:template>
|
|
10978
|
-
<xsl:template match="*[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
|
|
11001
|
+
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]/*[local-name() = 'span'][@class] | *[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
|
|
10979
11002
|
<xsl:copy>
|
|
10980
11003
|
<xsl:copy-of select="@*"/>
|
|
10981
11004
|
<xsl:apply-templates mode="update_xml_step1"/>
|
|
@@ -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.3 -->
|
|
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">
|
|
@@ -192,9 +192,11 @@
|
|
|
192
192
|
</attribute>
|
|
193
193
|
</optional>
|
|
194
194
|
<attribute name="citeas"/>
|
|
195
|
-
<
|
|
196
|
-
<
|
|
197
|
-
|
|
195
|
+
<optional>
|
|
196
|
+
<attribute name="type">
|
|
197
|
+
<ref name="ReferenceFormat"/>
|
|
198
|
+
</attribute>
|
|
199
|
+
</optional>
|
|
198
200
|
<optional>
|
|
199
201
|
<attribute name="alt"/>
|
|
200
202
|
</optional>
|
|
@@ -836,6 +838,26 @@
|
|
|
836
838
|
<ref name="paragraph"/>
|
|
837
839
|
</element>
|
|
838
840
|
</define>
|
|
841
|
+
<define name="stem">
|
|
842
|
+
<element name="stem">
|
|
843
|
+
<attribute name="type">
|
|
844
|
+
<choice>
|
|
845
|
+
<value>MathML</value>
|
|
846
|
+
<value>AsciiMath</value>
|
|
847
|
+
<value>LatexMath</value>
|
|
848
|
+
</choice>
|
|
849
|
+
</attribute>
|
|
850
|
+
<attribute name="block">
|
|
851
|
+
<data type="boolean"/>
|
|
852
|
+
</attribute>
|
|
853
|
+
<oneOrMore>
|
|
854
|
+
<choice>
|
|
855
|
+
<text/>
|
|
856
|
+
<ref name="AnyElement"/>
|
|
857
|
+
</choice>
|
|
858
|
+
</oneOrMore>
|
|
859
|
+
</element>
|
|
860
|
+
</define>
|
|
839
861
|
<define name="em">
|
|
840
862
|
<element name="em">
|
|
841
863
|
<zeroOrMore>
|
data/metanorma-ribose.gemspec
CHANGED
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
spec.require_paths = ["lib"]
|
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
|
31
31
|
|
|
32
|
-
spec.add_dependency "metanorma-generic", "~> 2.
|
|
32
|
+
spec.add_dependency "metanorma-generic", "~> 2.5.0"
|
|
33
33
|
|
|
34
34
|
spec.add_development_dependency "debug"
|
|
35
35
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
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
|
+
version: 2.3.0
|
|
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-07
|
|
11
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-generic
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 2.
|
|
19
|
+
version: 2.5.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 2.
|
|
26
|
+
version: 2.5.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: debug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|