metanorma-iho 1.2.9 → 1.2.10
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/iho/iho.specification.xsl +5 -2
- data/lib/isodoc/iho/iho.standard.xsl +5 -2
- data/lib/isodoc/iho/init.rb +5 -6
- data/lib/isodoc/iho/presentation_xml_convert.rb +2 -3
- data/lib/metanorma/iho/biblio.rng +14 -4
- data/lib/metanorma/iho/isodoc.rng +1 -1
- data/lib/metanorma/iho/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: 8bfe81cc9866e27bda19e3197311473290a0172fd9360c3ef91a9adf6eceb509
|
|
4
|
+
data.tar.gz: 4ef43289558b9c37bed9b54586b4d8ea358be476f4329f3a3bab7355365351a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac3db92b2896957ebfa9d4a44c898fb33afe98bb90869b0a3c688bb9f4a5258640793de9ae2ddf87ae96116cb45f127e1be65698378b34a60bfaaca86678974d
|
|
7
|
+
data.tar.gz: 99faefa3be693eae88a10ee7070ce677980aa3a0d15e20d2d56aa8d04ace15b73fb7501491ac7429ae91c22830f76e3ea6cda4c6d774a957f4eb5277b00e3ecc
|
|
@@ -2493,7 +2493,7 @@
|
|
|
2493
2493
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
|
2494
2494
|
<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>
|
|
2495
2495
|
|
|
2496
|
-
<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">
|
|
2496
|
+
<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">
|
|
2497
2497
|
|
|
2498
2498
|
<xsl:variable name="parent" select="local-name(..)"/>
|
|
2499
2499
|
|
|
@@ -13560,9 +13560,12 @@
|
|
|
13560
13560
|
</xsl:template> <!-- refine_title-style -->
|
|
13561
13561
|
|
|
13562
13562
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
13563
|
+
<xsl:param name="num"/>
|
|
13563
13564
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
13564
13565
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
13565
|
-
<xsl:apply-templates select="."
|
|
13566
|
+
<xsl:apply-templates select=".">
|
|
13567
|
+
<xsl:with-param name="num" select="$num"/>
|
|
13568
|
+
</xsl:apply-templates>
|
|
13566
13569
|
</xsl:for-each>
|
|
13567
13570
|
</xsl:template>
|
|
13568
13571
|
|
|
@@ -2493,7 +2493,7 @@
|
|
|
2493
2493
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
|
2494
2494
|
<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>
|
|
2495
2495
|
|
|
2496
|
-
<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">
|
|
2496
|
+
<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">
|
|
2497
2497
|
|
|
2498
2498
|
<xsl:variable name="parent" select="local-name(..)"/>
|
|
2499
2499
|
|
|
@@ -13560,9 +13560,12 @@
|
|
|
13560
13560
|
</xsl:template> <!-- refine_title-style -->
|
|
13561
13561
|
|
|
13562
13562
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
13563
|
+
<xsl:param name="num"/>
|
|
13563
13564
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
13564
13565
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
13565
|
-
<xsl:apply-templates select="."
|
|
13566
|
+
<xsl:apply-templates select=".">
|
|
13567
|
+
<xsl:with-param name="num" select="$num"/>
|
|
13568
|
+
</xsl:apply-templates>
|
|
13566
13569
|
</xsl:for-each>
|
|
13567
13570
|
</xsl:template>
|
|
13568
13571
|
|
data/lib/isodoc/iho/init.rb
CHANGED
|
@@ -15,16 +15,15 @@ module IsoDoc
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def i18n_init(lang, script, locale, i18nyaml = nil)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Metanorma::Iho.configuration.i18nyaml, @i18nyaml]
|
|
22
|
-
)
|
|
18
|
+
i18ns = [i18nyaml,
|
|
19
|
+
Metanorma::Iho.configuration.i18nyaml, @i18nyaml]
|
|
20
|
+
@i18n = I18n.new(lang, script, locale: locale, i18nyaml: i18ns)
|
|
23
21
|
end
|
|
24
22
|
|
|
25
23
|
def bibrenderer(options = {})
|
|
26
24
|
::Relaton::Render::Iho::General.new(options
|
|
27
|
-
.merge(language: @lang, script: @script, i18nhash: @i18n.get
|
|
25
|
+
.merge(language: @lang, script: @script, i18nhash: @i18n.get,
|
|
26
|
+
config: @relatonrenderconfig))
|
|
28
27
|
end
|
|
29
28
|
|
|
30
29
|
def info(isoxml, out)
|
|
@@ -6,12 +6,11 @@ require_relative "../../relaton/render/general"
|
|
|
6
6
|
module IsoDoc
|
|
7
7
|
module Iho
|
|
8
8
|
class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert
|
|
9
|
-
def norm_ref_entry_code(ordinal, _idents,
|
|
9
|
+
def norm_ref_entry_code(ordinal, _idents, _standard, _datefn, _bib)
|
|
10
10
|
"[#{ordinal}]<tab/>"
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
def biblio_ref_entry_code(ordinal, _idents,
|
|
14
|
-
_bib)
|
|
13
|
+
def biblio_ref_entry_code(ordinal, _idents, _standard, _datefn, _bib)
|
|
15
14
|
"[#{ordinal}]<tab/>"
|
|
16
15
|
end
|
|
17
16
|
|
|
@@ -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
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-iho
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
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-generic
|