metanorma-iso 1.5.5 → 1.5.6

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.
@@ -66,9 +66,9 @@ RSpec.describe IsoDoc do
66
66
  <preface>
67
67
  <foreword>
68
68
  <p>
69
- <xref target='N'>[N]</xref>
70
- <xref target='note1'>[note1]</xref>
71
- <xref target='note2'>[note2]</xref>
69
+ <xref target='N'>[scope], Note</xref>
70
+ <xref target='note1'>[widgets1], Note 1</xref>
71
+ <xref target='note2'>[widgets1], Note 2</xref>
72
72
  <xref target='AN'>A.1, Note</xref>
73
73
  <xref target='Anote1'>A.2, Note 1</xref>
74
74
  <xref target='Anote2'>A.2, Note 2</xref>
@@ -86,7 +86,7 @@ RSpec.describe IsoDoc do
86
86
  </p>
87
87
  </note>
88
88
  <p>
89
- <xref target='N'>[n]</xref>
89
+ <xref target='N'>Note</xref>
90
90
  </p>
91
91
  </clause>
92
92
  <terms id='terms'/>
@@ -94,22 +94,22 @@ RSpec.describe IsoDoc do
94
94
  <title depth="1">Widgets</title>
95
95
  <clause id='widgets1' inline-header="true">
96
96
  <note id='note1'>
97
- <name>NOTE</name>
97
+ <name>NOTE 1</name>
98
98
  <p id='_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f'>
99
99
  These results are based on a study carried out on three different
100
100
  types of kernel.
101
101
  </p>
102
102
  </note>
103
103
  <note id='note2'>
104
- <name>NOTE</name>
104
+ <name>NOTE 2</name>
105
105
  <p id='_f06fd0d1-a203-4f3d-a515-0bdba0f8d83a'>
106
106
  These results are based on a study carried out on three different
107
107
  types of kernel.
108
108
  </p>
109
109
  </note>
110
110
  <p>
111
- <xref target='note1'>[note1]</xref>
112
- <xref target='note2'>[note2]</xref>
111
+ <xref target='note1'>Note 1</xref>
112
+ <xref target='note2'>Note 2</xref>
113
113
  </p>
114
114
  </clause>
115
115
  </clause>
@@ -229,8 +229,8 @@ RSpec.describe IsoDoc do
229
229
  <title>Foreword</title>
230
230
  <p id='A'>
231
231
  This is a preamble
232
- <xref target='C'>[C]</xref>
233
- <xref target='C1'>[C1]</xref>
232
+ <xref target='C'>0.1</xref>
233
+ <xref target='C1'>0.2</xref>
234
234
  <xref target='D'>[D]</xref>
235
235
  <xref target='H'>[H]</xref>
236
236
  <xref target='I'>[I]</xref>
@@ -250,7 +250,7 @@ RSpec.describe IsoDoc do
250
250
  <introduction id='B' obligation='informative'>
251
251
  <title depth="1">Introduction</title>
252
252
  <clause id='C' inline-header='false' obligation='informative'>
253
- <title depth="1">Introduction Subsection</title>
253
+ <title depth="2">Introduction Subsection</title>
254
254
  </clause>
255
255
  <clause id='C1' inline-header='true' obligation='informative'>Text</clause>
256
256
  </introduction>
@@ -435,7 +435,7 @@ RSpec.describe IsoDoc do
435
435
  <introduction id='B' obligation='informative'>
436
436
  <title depth='1'>Introduction</title>
437
437
  <clause id='C' inline-header='false' obligation='informative'>
438
- <title depth='1'>Introduction Subsection</title>
438
+ <title depth='2'>Introduction Subsection</title>
439
439
  </clause>
440
440
  </introduction>
441
441
  <clause id='B1'>
@@ -548,7 +548,7 @@ RSpec.describe IsoDoc do
548
548
  <div class='Section3' id='B'>
549
549
  <h1 class='IntroTitle'>Introduction</h1>
550
550
  <div id='C'>
551
- <h1>Introduction Subsection</h1>
551
+ <h2>Introduction Subsection</h2>
552
552
  </div>
553
553
  </div>
554
554
  <br/>
@@ -271,7 +271,7 @@ end
271
271
  <h1 class="ForewordTitle">Foreword</h1>
272
272
  <div id="samplecode" class="example">
273
273
  <p><span class="example_label">EXAMPLE 1</span>&#160; </p>
274
- <div class="Quote">Hello<p class="QuoteAttribution"/></div>
274
+ <div class="Quote">Hello</div>
275
275
  </div>
276
276
  <div id="samplecode2" class="example">
277
277
  <p><span class="example_label">EXAMPLE 2&#160;&#8212; Title</span>&#160; Hello</p>
@@ -330,7 +330,7 @@ end
330
330
 
331
331
 
332
332
  it "processes sequences of examples (Word)" do
333
- expect(IsoDoc::Iso::WordConvert.new({}).convert("test", <<~"INPUT", true).sub(/^.*<body/m, "<body").sub(%r{</body>.*$}m, "</body>")).to be_equivalent_to <<~"OUTPUT"
333
+ expect(xmlpp(IsoDoc::Iso::WordConvert.new({}).convert("test", <<~"INPUT", true).sub(/^.*<body/m, "<body").sub(%r{</body>.*$}m, "</body>"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
334
334
  <iso-standard xmlns='http://riboseinc.com/isoxml'>
335
335
  <preface>
336
336
  <foreword>
@@ -361,7 +361,7 @@ end
361
361
  <h1 class="ForewordTitle">Foreword</h1>
362
362
  <div id="samplecode" class="example">
363
363
  <p><span class="example_label">EXAMPLE 1</span><span style="mso-tab-count:1">&#160; </span></p>
364
- <div class="Quote">Hello<p class="QuoteAttribution"/></div>
364
+ <div class="Quote">Hello</div>
365
365
  </div>
366
366
  <div id="samplecode2" class="example">
367
367
  <p><span class="example_label">EXAMPLE 2&#160;&#8212; Title</span><span style="mso-tab-count:1">&#160; </span>Hello</p>
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
- it "processes IsoXML bibliographies (Presentation XML)" do
4
+ it "processes IsoXML bibliographies" do
5
5
  input = <<~INPUT
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <bibdata>
@@ -15,7 +15,7 @@ RSpec.describe Metanorma::Iso::Processor do
15
15
 
16
16
  it "registers output formats against metanorma" do
17
17
  expect(processor.output_formats.sort.to_s).to be_equivalent_to <<~"OUTPUT"
18
- [[:doc, "doc"], [:html, "html"], [:html_alt, "alt.html"], [:pdf, "pdf"], [:presentation, "presentation.xml"], [:rxl, "rxl"], [:sts, "sts.xml"], [:xml, "xml"]]
18
+ [[:doc, "doc"], [:html, "html"], [:html_alt, "alt.html"], [:isosts, "sts.xml"], [:pdf, "pdf"], [:presentation, "presentation.xml"], [:rxl, "rxl"], [:sts, "sts.xml"], [:xml, "xml"]]
19
19
  OUTPUT
20
20
  end
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-27 00:00:00.000000000 Z
11
+ date: 2020-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-jing
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.2.0
89
+ version: 1.5.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.2.0
96
+ version: 1.5.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: byebug
99
99
  requirement: !ruby/object:Gem::Requirement