metanorma-ieee 1.6.1 → 1.6.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 +4 -4
- data/lib/isodoc/ieee/ieee.amendment.xsl +5 -2
- data/lib/isodoc/ieee/ieee.standard.xsl +5 -2
- data/lib/isodoc/ieee/metadata.rb +2 -3
- data/lib/isodoc/ieee/presentation_bibitem.rb +1 -3
- data/lib/metanorma/ieee/biblio.rng +14 -4
- data/lib/metanorma/ieee/isodoc.rng +1 -1
- data/lib/metanorma/ieee/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: aca7cddda83247276902cf2d29952fe430450ecb02220fd743d74646293a494a
|
|
4
|
+
data.tar.gz: 00f548b9f73bbc82bd537d76c1941ab2151394b4b97588d70c4e2bc8c8d48bbe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9effc81230faf5a2252d556da0ceac4864fd72dde95bea3a6310fe8c42897a8d82c2e2a163b040cad6ee34ee29a082d4fefc72268939b7a759eb5b0e7a669dec
|
|
7
|
+
data.tar.gz: dd183da8cad2eb8e7f63961b718af3f4986943ec2cc2d7f22e6d64769ba0c2b027163f224ade70c744b4d75dabbf8f60fd78dda1ee588001b370aaaf14d8ee73
|
|
@@ -4966,7 +4966,7 @@
|
|
|
4966
4966
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
|
4967
4967
|
<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>
|
|
4968
4968
|
|
|
4969
|
-
<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">
|
|
4969
|
+
<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">
|
|
4970
4970
|
|
|
4971
4971
|
<xsl:variable name="parent" select="local-name(..)"/>
|
|
4972
4972
|
|
|
@@ -16196,9 +16196,12 @@
|
|
|
16196
16196
|
</xsl:template> <!-- refine_title-style -->
|
|
16197
16197
|
|
|
16198
16198
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
16199
|
+
<xsl:param name="num"/>
|
|
16199
16200
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
16200
16201
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
16201
|
-
<xsl:apply-templates select="."
|
|
16202
|
+
<xsl:apply-templates select=".">
|
|
16203
|
+
<xsl:with-param name="num" select="$num"/>
|
|
16204
|
+
</xsl:apply-templates>
|
|
16202
16205
|
</xsl:for-each>
|
|
16203
16206
|
</xsl:template>
|
|
16204
16207
|
|
|
@@ -4966,7 +4966,7 @@
|
|
|
4966
4966
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
|
4967
4967
|
<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>
|
|
4968
4968
|
|
|
4969
|
-
<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">
|
|
4969
|
+
<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">
|
|
4970
4970
|
|
|
4971
4971
|
<xsl:variable name="parent" select="local-name(..)"/>
|
|
4972
4972
|
|
|
@@ -16196,9 +16196,12 @@
|
|
|
16196
16196
|
</xsl:template> <!-- refine_title-style -->
|
|
16197
16197
|
|
|
16198
16198
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
16199
|
+
<xsl:param name="num"/>
|
|
16199
16200
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
16200
16201
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
16201
|
-
<xsl:apply-templates select="."
|
|
16202
|
+
<xsl:apply-templates select=".">
|
|
16203
|
+
<xsl:with-param name="num" select="$num"/>
|
|
16204
|
+
</xsl:apply-templates>
|
|
16202
16205
|
</xsl:for-each>
|
|
16203
16206
|
</xsl:template>
|
|
16204
16207
|
|
data/lib/isodoc/ieee/metadata.rb
CHANGED
|
@@ -7,10 +7,9 @@ module IsoDoc
|
|
|
7
7
|
def initialize(lang, script, i18n, fonts_options = {})
|
|
8
8
|
super
|
|
9
9
|
@metadata[:ieee_sasb_approveddate] = "<Date Approved>"
|
|
10
|
-
logos
|
|
11
10
|
end
|
|
12
11
|
|
|
13
|
-
def
|
|
12
|
+
def images(_isoxml, _out)
|
|
14
13
|
here = File.join(File.dirname(__FILE__), "html")
|
|
15
14
|
suffix = ".emz"
|
|
16
15
|
@icap and suffix = "_icap.emz"
|
|
@@ -143,7 +142,7 @@ module IsoDoc
|
|
|
143
142
|
d = isoxml.at(ns("//bibdata/ext/subdoctype"))
|
|
144
143
|
@icap = d&.text&.downcase == "icap"
|
|
145
144
|
@icr = d&.text&.downcase == "industry-connection-report"
|
|
146
|
-
|
|
145
|
+
images(isoxml, nil)
|
|
147
146
|
end
|
|
148
147
|
|
|
149
148
|
def ddMMMyyyy(isodate)
|
|
@@ -30,7 +30,7 @@ module IsoDoc
|
|
|
30
30
|
def author_date(xml, renderings)
|
|
31
31
|
author_date?(xml) or return
|
|
32
32
|
cit = renderings[xml["id"]][:citation][:author_date]
|
|
33
|
-
xml << "<docidentifier type='
|
|
33
|
+
xml << "<docidentifier type='author-date'>#{cit}</docidentifier>"
|
|
34
34
|
xml.at(ns("./biblio-tag"))&.remove
|
|
35
35
|
xml << "<biblio-tag>#{cit}, </biblio-tag>"
|
|
36
36
|
end
|
|
@@ -48,8 +48,6 @@ module IsoDoc
|
|
|
48
48
|
def creatornames(bib)
|
|
49
49
|
::Relaton::Render::Ieee::General
|
|
50
50
|
.new(language: @lang, i18nhash: @i18n.get,
|
|
51
|
-
# template: { (bib["type"] || "misc").to_sym =>
|
|
52
|
-
# "{{ creatornames }}" },
|
|
53
51
|
template: "{{ creatornames }}",
|
|
54
52
|
extenttemplate: { (bib["type"] || "misc").to_sym => "{{page}}" },
|
|
55
53
|
sizetemplate: { (bib["type"] || "misc").to_sym => "{{data}}" })
|
|
@@ -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-ieee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.2
|
|
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-standoc
|