metanorma-plateau 1.2.2 → 1.2.3
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/plateau/init.rb +2 -1
- data/lib/isodoc/plateau/plateau.international-standard.xsl +5 -2
- data/lib/isodoc/plateau/presentation_xml_convert.rb +1 -1
- data/lib/metanorma/plateau/biblio.rng +14 -4
- data/lib/metanorma/plateau/isodoc.rng +1 -1
- data/lib/metanorma/plateau/version.rb +1 -1
- data/lib/relaton/render-plateau/general.rb +3 -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: 2b4ede8a282db7fb5088115a55e9278b0447cc589054bb791b1b4aa2e489d131
|
|
4
|
+
data.tar.gz: 58fd4dc3eb13d644fc5aad09b802a62d04b802e1c4fd186af425249e838804ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be94be61342f4238cef4b6715d4eb17d818ed3f85ffa4248298f8c3760304d02c69060403a455b7e832e75a61d85ba4c8b3231dc20a8dc3604d96370c65af982
|
|
7
|
+
data.tar.gz: f872733250771b13dca726427203dc2d9a149f611be8b8df9d07e3bbab421abcd8cecd68a46835644f29c0a536254a995b98edcb4ecb3d16efef51f94f70c85e
|
data/lib/isodoc/plateau/init.rb
CHANGED
|
@@ -25,7 +25,8 @@ module IsoDoc
|
|
|
25
25
|
|
|
26
26
|
def bibrenderer(options = {})
|
|
27
27
|
::Relaton::Render::Plateau::General.new(options
|
|
28
|
-
.merge(language: @lang, script: @script, i18nhash: @i18n.get
|
|
28
|
+
.merge(language: @lang, script: @script, i18nhash: @i18n.get,
|
|
29
|
+
config: @relatonrenderconfig))
|
|
29
30
|
end
|
|
30
31
|
end
|
|
31
32
|
end
|
|
@@ -3135,7 +3135,7 @@
|
|
|
3135
3135
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
|
3136
3136
|
<xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
|
|
3137
3137
|
|
|
3138
|
-
<xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
|
3138
|
+
<xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() > 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
|
3139
3139
|
|
|
3140
3140
|
<xsl:variable name="parent" select="local-name(..)"/>
|
|
3141
3141
|
|
|
@@ -14246,9 +14246,12 @@
|
|
|
14246
14246
|
</xsl:template> <!-- refine_title-style -->
|
|
14247
14247
|
|
|
14248
14248
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
14249
|
+
<xsl:param name="num"/>
|
|
14249
14250
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
14250
14251
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
14251
|
-
<xsl:apply-templates select="."
|
|
14252
|
+
<xsl:apply-templates select=".">
|
|
14253
|
+
<xsl:with-param name="num" select="$num"/>
|
|
14254
|
+
</xsl:apply-templates>
|
|
14252
14255
|
</xsl:for-each>
|
|
14253
14256
|
</xsl:template>
|
|
14254
14257
|
|
|
@@ -112,7 +112,7 @@ module IsoDoc
|
|
|
112
112
|
id = elem["bibitemid"] or return
|
|
113
113
|
b = @bibitem_lookup[id] or return
|
|
114
114
|
x = <<~XPATH
|
|
115
|
-
./docidentifier[not(#{
|
|
115
|
+
./docidentifier[not(#{SERIAL_NUM_DOCID} or @scope = 'biblio-tag' or @type = 'metanorma' or @type = 'metanorma-ordinal' or @type='title')]
|
|
116
116
|
XPATH
|
|
117
117
|
!b.at(ns(x)) && b.at(ns("./docidentifier[@type='title']"))
|
|
118
118
|
end
|
|
@@ -466,11 +466,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
|
|
|
466
466
|
<a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
|
|
467
467
|
</ref>
|
|
468
468
|
</optional>
|
|
469
|
-
<
|
|
469
|
+
<zeroOrMore>
|
|
470
470
|
<ref name="logo">
|
|
471
471
|
<a:documentation>A logo for the organization</a:documentation>
|
|
472
472
|
</ref>
|
|
473
|
-
</
|
|
473
|
+
</zeroOrMore>
|
|
474
474
|
</define>
|
|
475
475
|
<define name="orgname">
|
|
476
476
|
<element name="name">
|
|
@@ -502,6 +502,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
|
|
|
502
502
|
</define>
|
|
503
503
|
<define name="logo">
|
|
504
504
|
<element name="logo">
|
|
505
|
+
<optional>
|
|
506
|
+
<attribute name="type">
|
|
507
|
+
<a:documentation>The type of logo</a:documentation>
|
|
508
|
+
</attribute>
|
|
509
|
+
</optional>
|
|
505
510
|
<ref name="image-no-id"/>
|
|
506
511
|
</element>
|
|
507
512
|
</define>
|
|
@@ -513,6 +518,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
|
|
|
513
518
|
<a:documentation>Description of what is being depicted</a:documentation>
|
|
514
519
|
</attribute>
|
|
515
520
|
</optional>
|
|
521
|
+
<optional>
|
|
522
|
+
<attribute name="type">
|
|
523
|
+
<a:documentation>Description of what kind of depiction this</a:documentation>
|
|
524
|
+
</attribute>
|
|
525
|
+
</optional>
|
|
516
526
|
<zeroOrMore>
|
|
517
527
|
<ref name="image-no-id">
|
|
518
528
|
<a:documentation>A visual depiction of the bibliographic item</a:documentation>
|
|
@@ -1236,9 +1246,9 @@ Refer to `BibliographicItem` for definitions</a:documentation>
|
|
|
1236
1246
|
<optional>
|
|
1237
1247
|
<ref name="validity"/>
|
|
1238
1248
|
</optional>
|
|
1239
|
-
<
|
|
1249
|
+
<zeroOrMore>
|
|
1240
1250
|
<ref name="depiction"/>
|
|
1241
|
-
</
|
|
1251
|
+
</zeroOrMore>
|
|
1242
1252
|
</define>
|
|
1243
1253
|
<define name="btitle">
|
|
1244
1254
|
<a:documentation>A title of a bibliographic item, associated with a type of title</a:documentation>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<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">
|
|
3
|
-
<!-- VERSION v2.1.
|
|
3
|
+
<!-- VERSION v2.1.5 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
|
@@ -10,6 +10,7 @@ module Relaton
|
|
|
10
10
|
module Plateau
|
|
11
11
|
class General < ::Relaton::Render::Jis::General
|
|
12
12
|
def initialize(opt = {})
|
|
13
|
+
@configpath = opt[:config]
|
|
13
14
|
i18n = opt[:i18n] ||
|
|
14
15
|
i18n_klass(language: opt[:language], script: opt[:script],
|
|
15
16
|
locale: opt[:locale], i18nhash: opt[:i18nhash])
|
|
@@ -77,7 +78,8 @@ module Relaton
|
|
|
77
78
|
i18n = i18n_config(lang, @i18n.config[@lang]).get
|
|
78
79
|
::Relaton::Render::Plateau::General.new(options
|
|
79
80
|
.deep_merge(yaml)
|
|
80
|
-
.merge(language: lang, script: script, i18nhash: i18n
|
|
81
|
+
.merge(language: lang, script: script, i18nhash: i18n,
|
|
82
|
+
config: @configpath))
|
|
81
83
|
end
|
|
82
84
|
|
|
83
85
|
def bibrenderer_lang_prep(lang)
|
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.2.
|
|
4
|
+
version: 1.2.3
|
|
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-
|
|
11
|
+
date: 2025-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-jis
|