metanorma-iso 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,17 +49,7 @@ RSpec.describe Metanorma::Iso::Processor do
49
49
  expect(File.read("test.html", encoding: "utf-8").gsub(%r{^.*<main}m, "<main").gsub(%r{</main>.*}m, "</main>")).to be_equivalent_to <<~"OUTPUT"
50
50
  <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
51
51
  <p class="zzSTDTitle1"></p>
52
- <div id="H"><h1>1&#xA0; Terms and definitions</h1><p>For the purposes of this document,
53
- the following terms and definitions apply.</p>
54
- <p>ISO and IEC maintain terminological databases for use in
55
- standardization at the following addresses:</p>
56
-
57
- <ul>
58
- <li> <p>ISO Online browsing platform: available at
59
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
60
- <li> <p>IEC Electropedia: available at
61
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
62
- </p> </li> </ul>
52
+ <div id="H"><h1>1&#xA0; Terms and definitions</h1>
63
53
  <h2 class="TermNum" id="J">1.1</h2>
64
54
  <p class="Terms" style="text-align:left;">Term2</p>
65
55
  </div>
data/spec/spec_helper.rb CHANGED
@@ -130,8 +130,22 @@ BLANK_HDR = <<~"HDR"
130
130
  </bibdata>
131
131
  HDR
132
132
 
133
+ TERM_BOILERPLATE = <<~END
134
+ <p>For the purposes of this document,
135
+ the following terms and definitions apply.</p>
136
+ <p>ISO and IEC maintain terminological databases for use in
137
+ standardization at the following addresses:</p>
138
+
139
+ <ul>
140
+ <li> <p>ISO Online browsing platform: available at
141
+ <link target="http://www.iso.org/obp"/></p> </li>
142
+ <li> <p>IEC Electropedia: available at
143
+ <link target="http://www.electropedia.org"/>
144
+ </p> </li> </ul>
145
+ END
146
+
133
147
  HTML_HDR = <<~END
134
- <html xmlns:epub="http://www.idpf.org/2007/ops">
148
+ <html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
135
149
  <head/>
136
150
  <body lang="en">
137
151
  <div class="title-section">
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.0
4
+ version: 1.3.1
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-08-20 00:00:00.000000000 Z
11
+ date: 2019-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -273,6 +273,9 @@ files:
273
273
  - lib/asciidoctor/iso/cleanup.rb
274
274
  - lib/asciidoctor/iso/converter.rb
275
275
  - lib/asciidoctor/iso/front.rb
276
+ - lib/asciidoctor/iso/i18n-en.yaml
277
+ - lib/asciidoctor/iso/i18n-fr.yaml
278
+ - lib/asciidoctor/iso/i18n-zh-Hans.yaml
276
279
  - lib/asciidoctor/iso/isodoc.rng
277
280
  - lib/asciidoctor/iso/isostandard.rnc
278
281
  - lib/asciidoctor/iso/isostandard.rng
@@ -295,9 +298,6 @@ files:
295
298
  - lib/isodoc/iso/html/word_iso_titlepage.html
296
299
  - lib/isodoc/iso/html/wordstyle.scss
297
300
  - lib/isodoc/iso/html_convert.rb
298
- - lib/isodoc/iso/i18n-en.yaml
299
- - lib/isodoc/iso/i18n-fr.yaml
300
- - lib/isodoc/iso/i18n-zh-Hans.yaml
301
301
  - lib/isodoc/iso/metadata.rb
302
302
  - lib/isodoc/iso/word_convert.rb
303
303
  - lib/metanorma-iso.rb