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.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iso/base.rb +14 -0
- data/lib/asciidoctor/iso/cleanup.rb +1 -1
- data/lib/asciidoctor/iso/front.rb +11 -7
- data/lib/{isodoc → asciidoctor}/iso/i18n-en.yaml +2 -2
- data/lib/{isodoc → asciidoctor}/iso/i18n-fr.yaml +2 -2
- data/lib/{isodoc → asciidoctor}/iso/i18n-zh-Hans.yaml +2 -2
- data/lib/isodoc/iso/base_convert.rb +0 -15
- data/lib/isodoc/iso/html/html_iso_titlepage.html +5 -3
- data/lib/isodoc/iso/html/isodoc.scss +4 -0
- data/lib/isodoc/iso/html/word_iso_titlepage.html +5 -3
- data/lib/isodoc/iso/metadata.rb +2 -2
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/asciidoctor-iso/base_spec.rb +2 -1
- data/spec/asciidoctor-iso/blocks_spec.rb +4 -0
- data/spec/asciidoctor-iso/cleanup_spec.rb +9 -0
- data/spec/asciidoctor-iso/inline_spec.rb +1 -0
- data/spec/asciidoctor-iso/refs_spec.rb +3 -0
- data/spec/asciidoctor-iso/section_spec.rb +110 -2
- data/spec/isodoc/i18n_spec.rb +10 -50
- data/spec/isodoc/inline_spec.rb +0 -2
- data/spec/isodoc/iso_spec.rb +0 -1
- data/spec/isodoc/metadata_spec.rb +3 -2
- data/spec/isodoc/postproc_spec.rb +3 -12
- data/spec/isodoc/section_spec.rb +3 -166
- data/spec/isodoc/terms_spec.rb +2 -22
- data/spec/isodoc/xref_spec.rb +10 -102
- data/spec/metanorma/processor_spec.rb +1 -11
- data/spec/spec_helper.rb +15 -1
- metadata +5 -5
@@ -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  Terms and definitions</h1
|
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  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.
|
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-
|
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
|