metanorma-iso 1.3.2 → 1.3.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: c19e6c74f9375995e56a1e37a32ddb30772d952ace1c418e69a9a833c3ab2bd2
4
- data.tar.gz: b0a914f36aea83bc10d3b01f699c6f0362d83e6f63827742dc27c8bea789c958
3
+ metadata.gz: 0a5b90ddbeeef900695b41ef41bfeeaecc8f7863367d8c0e57ae853d55775402
4
+ data.tar.gz: 3bdea2158e471705e5b71f9280144060abe795184fcc625a96ad367970554c52
5
5
  SHA512:
6
- metadata.gz: a98a998ebf542a21aa53996ba826827fcf6a5216b109356c40ea8edd86f4fcf18f4d8d20168e014817fac422632af5ff4326bc297600d4a5b9e42f671698aaa2
7
- data.tar.gz: 004766f312b82a75a7b9831d6da6e024dcc1fc4db75f1971a4496255861e6b7a7a6d102b5e73c17c9872c3a09a0817d61d8a1614afab4c69ebe8a360527136ad
6
+ metadata.gz: 48ba99c04cdd298ef296cc23fb49b707f310ebb1a7d6169be010c1381bc6ab5c5214a534c4e804efe4982cd8a68d0227b9d0496a4537619b4cde4325e594fe2a
7
+ data.tar.gz: bcb88247191f7945477f2aecff592f5d21364b126757a2b8b5e0c9675579aa3c5ab03cdf72997189f790809cce9d80b59c529885d2b2b6089b6af63ce023c1c3
@@ -194,6 +194,14 @@
194
194
  <data type="boolean"/>
195
195
  </attribute>
196
196
  </optional>
197
+ <optional>
198
+ <attribute name="subsequence"/>
199
+ </optional>
200
+ <optional>
201
+ <attribute name="inequality">
202
+ <data type="boolean"/>
203
+ </attribute>
204
+ </optional>
197
205
  <ref name="stem"/>
198
206
  <optional>
199
207
  <ref name="dl"/>
@@ -247,6 +255,9 @@
247
255
  <data type="boolean"/>
248
256
  </attribute>
249
257
  </optional>
258
+ <optional>
259
+ <attribute name="subsequence"/>
260
+ </optional>
250
261
  <optional>
251
262
  <attribute name="lang"/>
252
263
  </optional>
@@ -291,9 +302,15 @@
291
302
  <data type="boolean"/>
292
303
  </attribute>
293
304
  </optional>
305
+ <optional>
306
+ <attribute name="subsequence"/>
307
+ </optional>
294
308
  <optional>
295
309
  <attribute name="alt"/>
296
310
  </optional>
311
+ <optional>
312
+ <attribute name="summary"/>
313
+ </optional>
297
314
  <optional>
298
315
  <attribute name="uri">
299
316
  <data type="anyURI"/>
@@ -423,6 +440,9 @@
423
440
  <data type="boolean"/>
424
441
  </attribute>
425
442
  </optional>
443
+ <optional>
444
+ <attribute name="subsequence"/>
445
+ </optional>
426
446
  <oneOrMore>
427
447
  <choice>
428
448
  <ref name="formula"/>
@@ -486,6 +506,9 @@
486
506
  <data type="boolean"/>
487
507
  </attribute>
488
508
  </optional>
509
+ <optional>
510
+ <attribute name="subsequence"/>
511
+ </optional>
489
512
  <optional>
490
513
  <ref name="source"/>
491
514
  </optional>
@@ -497,6 +520,8 @@
497
520
  </optional>
498
521
  <choice>
499
522
  <ref name="image"/>
523
+ <ref name="video"/>
524
+ <ref name="audio"/>
500
525
  <ref name="pre"/>
501
526
  <zeroOrMore>
502
527
  <ref name="figure"/>
@@ -792,7 +817,7 @@
792
817
  </element>
793
818
  </define>
794
819
  <define name="video">
795
- <element name="image">
820
+ <element name="video">
796
821
  <attribute name="id">
797
822
  <data type="ID"/>
798
823
  </attribute>
@@ -833,7 +858,7 @@
833
858
  </element>
834
859
  </define>
835
860
  <define name="audio">
836
- <element name="image">
861
+ <element name="audio">
837
862
  <attribute name="id">
838
863
  <data type="ID"/>
839
864
  </attribute>
@@ -30,6 +30,9 @@
30
30
  <data type="boolean"/>
31
31
  </attribute>
32
32
  </optional>
33
+ <optional>
34
+ <attribute name="subsequence"/>
35
+ </optional>
33
36
  <attribute name="id">
34
37
  <data type="ID"/>
35
38
  </attribute>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.3.2".freeze
3
+ VERSION = "1.3.3".freeze
4
4
  end
5
5
  end
@@ -37,8 +37,7 @@ RSpec.describe Asciidoctor::ISO do
37
37
  #{BLANK_HDR}
38
38
  <sections>
39
39
  <formula id="_">
40
- <stem type="AsciiMath">r = 1 %
41
- r = 1 %</stem>
40
+ <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi></math></stem>
42
41
  </formula>
43
42
 
44
43
  <formula id="_">
@@ -142,8 +142,7 @@ RSpec.describe Asciidoctor::ISO do
142
142
  INPUT
143
143
  #{BLANK_HDR}
144
144
  <sections><formula id="_">
145
- <stem type="AsciiMath">r = 1 %
146
- r = 1 %</stem>
145
+ <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi><mi>r</mi><mo>=</mo><mn>1</mn><mi>%</mi></math></stem>
147
146
  <note id="_">
148
147
  <p id="_">That formula does not do much</p>
149
148
  </note></formula>
@@ -666,7 +665,7 @@ r = 1 %</stem>
666
665
  <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
667
666
  <bibitem id="iso123" type="standard">
668
667
  <title format="text/plain">Standard</title>
669
- <docidentifier>ISO 123:—</docidentifier>
668
+ <docidentifier>ISO 123:–</docidentifier>
670
669
  <date type="published">
671
670
  <on>--</on>
672
671
  </date>
@@ -20,7 +20,7 @@ RSpec.describe Asciidoctor::ISO do
20
20
  <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
21
21
  <bibitem id="iso123" type="standard">
22
22
  <title format="text/plain">Standard</title>
23
- <docidentifier>ISO 123:—</docidentifier>
23
+ <docidentifier>ISO 123:–</docidentifier>
24
24
  <date type="published">
25
25
  <on>--</on>
26
26
  </date>
@@ -22,7 +22,7 @@ RSpec.describe IsoDoc do
22
22
  </iso-standard>
23
23
  INPUT
24
24
  expect(File.exist?("test.html")).to be true
25
- html = File.read("test.html")
25
+ html = File.read("test.html", encoding: "UTF-8")
26
26
  expect(html).to match(%r{<title>Cereals and pulses\&nbsp;\&mdash; Specifications and test methods\&nbsp;\&mdash; Rice</title>})
27
27
  expect(html).to match(%r{cdnjs\.cloudflare\.com/ajax/libs/mathjax/})
28
28
  expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
@@ -48,7 +48,7 @@ RSpec.describe IsoDoc do
48
48
  </iso-standard>
49
49
  INPUT
50
50
  expect(File.exist?("test.html")).to be true
51
- html = File.read("test.html")
51
+ html = File.read("test.html", encoding: "UTF-8")
52
52
  expect(html).to match(%r{<title>Cereals and pulses\&nbsp;\&mdash; Specifications and test methods\&nbsp;\&mdash; Rice</title>})
53
53
  expect(html).to match(%r{cdnjs\.cloudflare\.com/ajax/libs/mathjax/})
54
54
  expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
@@ -67,7 +67,7 @@ RSpec.describe IsoDoc do
67
67
  </iso-standard>
68
68
  INPUT
69
69
  expect(File.exist?("test.doc")).to be true
70
- word = File.read("test.doc")
70
+ word = File.read("test.doc", encoding: "UTF-8")
71
71
  expect(word).to match(/<style>/)
72
72
  end
73
73
 
@@ -76,7 +76,7 @@ RSpec.describe IsoDoc do
76
76
  FileUtils.rm_f "spec/assets/iso.html"
77
77
  IsoDoc::Iso::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css"}).convert("spec/assets/iso.xml", nil, false)
78
78
  expect(File.exist?("spec/assets/iso.html")).to be true
79
- html = File.read("spec/assets/iso.html")
79
+ html = File.read("spec/assets/iso.html", encoding: "UTF-8")
80
80
  expect(html).to match(/<style>/)
81
81
  expect(html).to match(%r{https://use.fontawesome.com})
82
82
  expect(html).to match(%r{libs/jquery})
@@ -86,7 +86,7 @@ RSpec.describe IsoDoc do
86
86
  FileUtils.rm_f "spec/assets/iso.doc"
87
87
  IsoDoc::Iso::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css"}).convert("spec/assets/iso.xml", nil, false)
88
88
  expect(File.exist?("spec/assets/iso.doc")).to be true
89
- word = File.read("spec/assets/iso.doc")
89
+ word = File.read("spec/assets/iso.doc", encoding: "UTF-8")
90
90
  expect(word).to match(/<w:WordDocument>/)
91
91
  expect(word).to match(/<style>/)
92
92
  end
@@ -107,7 +107,7 @@ RSpec.describe IsoDoc do
107
107
  </annex>
108
108
  </iso-standard>
109
109
  INPUT
110
- word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
110
+ word = File.read("test.doc", encoding: "UTF-8").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
111
111
  sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
112
112
  expect(word).to be_equivalent_to <<~"OUTPUT"
113
113
  <div class="WordSection3">
@@ -150,7 +150,7 @@ RSpec.describe IsoDoc do
150
150
  </iso-standard>
151
151
 
152
152
  INPUT
153
- word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
153
+ word = File.read("test.doc", encoding: "UTF-8").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
154
154
  sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
155
155
  expect(word).to be_equivalent_to <<~"OUTPUT"
156
156
  <div class="WordSection3">
@@ -177,7 +177,7 @@ RSpec.describe IsoDoc do
177
177
  </iso-standard>
178
178
 
179
179
  INPUT
180
- word = File.read("test.doc").sub(%r{^.*Content-Location: file:///C:/Doc/test_files/header.html}m, "Content-Location: file:///C:/Doc/test_files/header.html").
180
+ word = File.read("test.doc", encoding: "UTF-8").sub(%r{^.*Content-Location: file:///C:/Doc/test_files/header.html}m, "Content-Location: file:///C:/Doc/test_files/header.html").
181
181
  sub(/------=_NextPart.*$/m, "")
182
182
  #expect(word).to include(%{Content-Location: file:///C:/Doc/test_files/header.html\nContent-Transfer-Encoding: base64\nContent-Type: text/html charset="utf-8" })
183
183
  expect(word).to include(%{Content-Location: file:///C:/Doc/test_files/header.html})
@@ -204,7 +204,7 @@ RSpec.describe IsoDoc do
204
204
  </iso-standard>
205
205
 
206
206
  INPUT
207
- word = File.read("test.doc").sub(/^.*An empty word intro page\./m, '').
207
+ word = File.read("test.doc", encoding: "UTF-8").sub(/^.*An empty word intro page\./m, '').
208
208
  sub(%r{<br clear="all" class="section"/>\s*<div class="WordSection3">.*$}m, "")
209
209
  expect(word.gsub(/_Toc\d\d+/, "_Toc")).to be_equivalent_to <<~'OUTPUT'
210
210
  <p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
@@ -281,7 +281,7 @@ RSpec.describe IsoDoc do
281
281
  </sections>
282
282
  </iso-standard>
283
283
  INPUT
284
- html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
284
+ html = File.read("test.html", encoding: "UTF-8").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
285
285
  sub(%r{</main>.*$}m, "</main>")
286
286
  expect(html).to be_equivalent_to <<~"OUTPUT"
287
287
  <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
@@ -329,7 +329,7 @@ RSpec.describe IsoDoc do
329
329
  </foreword></preface>
330
330
  </iso-standard>
331
331
  INPUT
332
- html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
332
+ html = File.read("test.html", encoding: "UTF-8").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
333
333
  sub(%r{</main>.*$}m, "</main>")
334
334
  expect(`ls test_htmlimages`).to match(/\.png$/)
335
335
  expect(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png")).to be_equivalent_to <<~"OUTPUT"
@@ -403,7 +403,7 @@ RSpec.describe IsoDoc do
403
403
  </iso-standard>
404
404
  INPUT
405
405
  expect(File.exist?("test.html")).to be true
406
- html = File.read("test.html")
406
+ html = File.read("test.html", encoding: "UTF-8")
407
407
  expect(html).to match(%r{<h2 class="TermNum" id="paddy1">1\.1</h2>})
408
408
  expect(html).to match(%r{<h2 class="TermNum" id="paddy">1\.2</h2>})
409
409
  end
@@ -423,7 +423,7 @@ RSpec.describe IsoDoc do
423
423
  </annex>
424
424
  </iso-standard>
425
425
  INPUT
426
- word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
426
+ word = File.read("test.doc", encoding: "UTF-8").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
427
427
  sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
428
428
  expect(word).to be_equivalent_to <<~"OUTPUT"
429
429
  <div class="WordSection3">
@@ -463,7 +463,7 @@ RSpec.describe IsoDoc do
463
463
  </annex>
464
464
  </iso-standard>
465
465
  INPUT
466
- word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
466
+ word = File.read("test.doc", encoding: "UTF-8").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
467
467
  sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
468
468
  expect(word).to be_equivalent_to <<~"OUTPUT"
469
469
  <div class="WordSection3">
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.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-12 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor