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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 981de660026400309643f712f0472336c1d318c07bff099eb3f79919359d41ae
4
- data.tar.gz: bb78f47367fec5a7862ef9a3a56cbf21d5e18110c4115e470552e3066d1e0be0
3
+ metadata.gz: aca7cddda83247276902cf2d29952fe430450ecb02220fd743d74646293a494a
4
+ data.tar.gz: 00f548b9f73bbc82bd537d76c1941ab2151394b4b97588d70c4e2bc8c8d48bbe
5
5
  SHA512:
6
- metadata.gz: ec4df0967a7721bca9e26755e5a9d43719a14f02e48abb2fd0a4065bfca35f1d1cba1382048b76c5ceca03d805651edfeab250de49b33b57b4fd691bf0669020
7
- data.tar.gz: f534d6ec8797629482c4bde760a08eb7c58505c3408d64ce20b924f31208fd6a24ec8294812344ff5fc0f7511aabd840e0ad7a4853900d8543b692b74daec572
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() &gt; 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() &gt; 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
 
@@ -7,10 +7,9 @@ module IsoDoc
7
7
  def initialize(lang, script, i18n, fonts_options = {})
8
8
  super
9
9
  @metadata[:ieee_sasb_approveddate] = "&lt;Date Approved&gt;"
10
- logos
11
10
  end
12
11
 
13
- def logos
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
- logos
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='metanorma'>#{cit}</docidentifier>"
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
- <optional>
469
+ <zeroOrMore>
470
470
  <ref name="logo">
471
471
  <a:documentation>A logo for the organization</a:documentation>
472
472
  </ref>
473
- </optional>
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
- <optional>
1249
+ <zeroOrMore>
1240
1250
  <ref name="depiction"/>
1241
- </optional>
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.4 -->
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ieee
3
- VERSION = "1.6.1".freeze
3
+ VERSION = "1.6.2".freeze
4
4
  end
5
5
  end
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2025-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc