metanorma-generic 2.7.2 → 2.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5aaf13e062eaa9bbeb558f84841502576373ed5ca16b0de408ffb03e4188fd1
4
- data.tar.gz: 426eb64a30385e162c09182980b28b66208aa5f85f2e056c03ffe17ff6d36f83
3
+ metadata.gz: 544489629e8593f44323300cb1055fb6ae045d123c71b6e0488d2e7fffcb0fa6
4
+ data.tar.gz: e32109c06d37c4346c2962f44b633e86aa69936859255592ebdcb27d7971d06b
5
5
  SHA512:
6
- metadata.gz: f3ec27cd71d85d72b5ce074b5a6bb2d60ebb1a18b125f0b9801f0ebcf331b80e2c309ef3dc383883484854b61448c9c4167c8be72f69b9e1b2c599aca148fecd
7
- data.tar.gz: 29db4667506fbfe0c578b951cb314ae202c4a3a92e9d085bf17ca2d7bf57713da907649a63b4d8e6c9602efd520efb0f97ad3ac3696f501e58f2daee585d3a0b
6
+ metadata.gz: aa0be32d01a1983b2cd595927651273318bb446e933ab47de201bf65290e688017a1b22984647329614fb4a6fc17a5d9822dc770e687fbf43a8706367279440f
7
+ data.tar.gz: 0cf866748e44a75bec32fe5699247093fa3ea48d914779fac795fd2abc2ae129cbea90e0904d728a1394d8daeaf7a50b5a6246fb275019a27469de0154590b6b
@@ -10,7 +10,7 @@ module IsoDoc
10
10
  super
11
11
  end
12
12
 
13
- def pdf_stylesheet(docxml)
13
+ def pdf_stylesheet(_docxml)
14
14
  configuration.pdf_stylesheet
15
15
  end
16
16
 
@@ -5,12 +5,8 @@ require "isodoc"
5
5
  module IsoDoc
6
6
  module Generic
7
7
  class PresentationXMLConvert < IsoDoc::PresentationXMLConvert
8
- def annex1(elem)
9
- lbl = @xrefs.anchor(elem["id"], :label)
10
- if t = elem.at(ns("./title"))
11
- t.children = "<strong>#{to_xml(t.children)}</strong>"
12
- end
13
- prefix_name(elem, "<br/>", lbl, "title")
8
+ def annex_delim(_elem)
9
+ "<br/>"
14
10
  end
15
11
 
16
12
  include Init
@@ -10,18 +10,9 @@ module IsoDoc
10
10
  end
11
11
 
12
12
  def baselocation(loc)
13
- return nil if loc.nil?
14
- return "" if loc.empty?
15
-
16
- return loc
17
- f = if defined?(self.class::_file)
18
- (self.class::_file || __FILE__)
19
- else
20
- __FILE__
21
- end
22
- File.expand_path(File.join(
23
- File.dirname(f), "..", "..", "..", loc
24
- ))
13
+ loc.nil? and return nil
14
+ loc.empty? and return ""
15
+ loc
25
16
  end
26
17
  end
27
18
  end
@@ -1783,9 +1783,21 @@ that the `number` given for the series applies to the second iteration of number
1783
1783
  May be used to differentiate rendering of notes in bibliographies</a:documentation>
1784
1784
  </attribute>
1785
1785
  </optional>
1786
- <ref name="LocalizedMarkedUpString">
1786
+ <ref name="LocalizedStringAttributes">
1787
1787
  <a:documentation>The content of the note</a:documentation>
1788
1788
  </ref>
1789
+ <choice>
1790
+ <oneOrMore>
1791
+ <ref name="BasicBlockNoId">
1792
+ <a:documentation>Multiple blocks of content</a:documentation>
1793
+ </ref>
1794
+ </oneOrMore>
1795
+ <oneOrMore>
1796
+ <ref name="TextElement">
1797
+ <a:documentation>Single block of content</a:documentation>
1798
+ </ref>
1799
+ </oneOrMore>
1800
+ </choice>
1789
1801
  </element>
1790
1802
  </define>
1791
1803
  <define name="bibabstract">
@@ -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.4.0 -->
20
+ <!-- VERSION v1.4.1 -->
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">
@@ -326,7 +326,7 @@ normative or informative references, some split references into sections organiz
326
326
  <a:documentation>Content of note</a:documentation>
327
327
  <oneOrMore>
328
328
  <choice>
329
- <ref name="paragraph"/>
329
+ <ref name="paragraph-with-footnote"/>
330
330
  <ref name="ul"/>
331
331
  <ref name="ol"/>
332
332
  <ref name="dl"/>
@@ -412,7 +412,7 @@ normative or informative references, some split references into sections organiz
412
412
  <element name="note">
413
413
  <ref name="OptionalId"/>
414
414
  <oneOrMore>
415
- <ref name="paragraph"/>
415
+ <ref name="paragraph-with-footnote"/>
416
416
  </oneOrMore>
417
417
  </element>
418
418
  </define>
@@ -1977,7 +1977,7 @@ used in document amendments</a:documentation>
1977
1977
  <oneOrMore>
1978
1978
  <choice>
1979
1979
  <a:documentation>Content of the verbal representation of the term</a:documentation>
1980
- <ref name="paragraph"/>
1980
+ <ref name="paragraph-with-footnote"/>
1981
1981
  <ref name="dl"/>
1982
1982
  <ref name="ol"/>
1983
1983
  <ref name="ul"/>
@@ -2015,7 +2015,7 @@ used in document amendments</a:documentation>
2015
2015
  <oneOrMore>
2016
2016
  <choice>
2017
2017
  <a:documentation>Content of the term note</a:documentation>
2018
- <ref name="paragraph"/>
2018
+ <ref name="paragraph-with-footnote"/>
2019
2019
  <ref name="ul"/>
2020
2020
  <ref name="ol"/>
2021
2021
  <ref name="dl"/>
@@ -2037,7 +2037,7 @@ used in document amendments</a:documentation>
2037
2037
  <ref name="dl"/>
2038
2038
  <ref name="quote"/>
2039
2039
  <ref name="sourcecode"/>
2040
- <ref name="paragraph"/>
2040
+ <ref name="paragraph-with-footnote"/>
2041
2041
  <ref name="figure"/>
2042
2042
  </choice>
2043
2043
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Generic
3
- VERSION = "2.7.2".freeze
3
+ VERSION = "2.7.3".freeze
4
4
  end
5
5
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.require_paths = ["lib"]
28
28
  spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
29
29
 
30
- spec.add_dependency "metanorma-standoc", "~> 2.10.0"
30
+ spec.add_dependency "metanorma-standoc", "~> 2.10.1"
31
31
 
32
32
  spec.add_development_dependency "debug"
33
33
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-generic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.2
4
+ version: 2.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.10.0
19
+ version: 2.10.1
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.10.0
26
+ version: 2.10.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement