isodoc 1.1.4 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc-yaml/i18n-en.yaml +4 -1
- data/lib/isodoc-yaml/i18n-fr.yaml +4 -1
- data/lib/isodoc-yaml/i18n-zh-Hans.yaml +4 -1
- data/lib/isodoc.rb +1 -0
- data/lib/isodoc/base_style/metanorma_word.css +6 -0
- data/lib/isodoc/base_style/metanorma_word.scss +6 -0
- data/lib/isodoc/common.rb +0 -2
- data/lib/isodoc/convert.rb +34 -28
- data/lib/isodoc/function/blocks.rb +11 -22
- data/lib/isodoc/function/blocks_example_note.rb +14 -15
- data/lib/isodoc/function/cleanup.rb +5 -4
- data/lib/isodoc/function/inline.rb +6 -76
- data/lib/isodoc/function/references.rb +13 -10
- data/lib/isodoc/function/reqt.rb +12 -11
- data/lib/isodoc/function/section.rb +51 -54
- data/lib/isodoc/function/table.rb +2 -6
- data/lib/isodoc/function/terms.rb +13 -6
- data/lib/isodoc/function/to_word_html.rb +3 -0
- data/lib/isodoc/function/utils.rb +6 -5
- data/lib/isodoc/html_function/html.rb +1 -1
- data/lib/isodoc/{function/i18n.rb → i18n.rb} +37 -37
- data/lib/isodoc/metadata.rb +4 -3
- data/lib/isodoc/metadata_date.rb +1 -1
- data/lib/isodoc/presentation_function/block.rb +152 -0
- data/lib/isodoc/presentation_function/inline.rb +131 -0
- data/lib/isodoc/presentation_function/section.rb +46 -0
- data/lib/isodoc/presentation_xml_convert.rb +39 -5
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/body.rb +13 -8
- data/lib/isodoc/word_function/inline.rb +3 -1
- data/lib/isodoc/word_function/postprocess.rb +1 -1
- data/lib/isodoc/word_function/table.rb +3 -2
- data/lib/isodoc/xref.rb +6 -3
- data/lib/isodoc/xref/xref_counter.rb +21 -7
- data/lib/isodoc/xref/xref_gen.rb +27 -4
- data/lib/isodoc/xref/xref_sect_gen.rb +3 -3
- data/spec/assets/i18n.yaml +12 -1
- data/spec/isodoc/blocks_spec.rb +1338 -147
- data/spec/isodoc/cleanup_spec.rb +5 -3
- data/spec/isodoc/footnotes_spec.rb +2 -2
- data/spec/isodoc/i18n_spec.rb +679 -110
- data/spec/isodoc/inline_spec.rb +323 -142
- data/spec/isodoc/lists_spec.rb +2 -2
- data/spec/isodoc/postproc_spec.rb +1347 -1333
- data/spec/isodoc/ref_spec.rb +181 -3
- data/spec/isodoc/section_spec.rb +633 -681
- data/spec/isodoc/table_spec.rb +386 -136
- data/spec/isodoc/terms_spec.rb +111 -79
- data/spec/isodoc/xref_spec.rb +1597 -1186
- metadata +6 -3
data/spec/isodoc/lists_spec.rb
CHANGED
@@ -261,7 +261,7 @@ RSpec.describe IsoDoc do
|
|
261
261
|
</dd>
|
262
262
|
</dl>
|
263
263
|
<div class="Note">
|
264
|
-
<p
|
264
|
+
<p>  This is a note</p>
|
265
265
|
</div>
|
266
266
|
</div>
|
267
267
|
<p class="zzSTDTitle1"/>
|
@@ -324,7 +324,7 @@ RSpec.describe IsoDoc do
|
|
324
324
|
<tr>
|
325
325
|
<td colspan="2">
|
326
326
|
<div class="Note">
|
327
|
-
<p class="Note"><span class="note_label"
|
327
|
+
<p class="Note"><span class="note_label"/><span style="mso-tab-count:1">  </span>This is a note</p>
|
328
328
|
</div>
|
329
329
|
</td>
|
330
330
|
</tr>
|
@@ -1,124 +1,124 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "spec_helper"
|
4
|
+
require "fileutils"
|
5
5
|
|
6
6
|
RSpec.describe IsoDoc do
|
7
|
-
it
|
8
|
-
FileUtils.rm_f
|
9
|
-
FileUtils.rm_f
|
10
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
7
|
+
it "generates file based on string input" do
|
8
|
+
FileUtils.rm_f "test.doc"
|
9
|
+
FileUtils.rm_f "test.html"
|
10
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", filename: "test"}).convert("test", <<~"INPUT", false)
|
11
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
12
|
+
<bibdata>
|
13
|
+
<title language="en">test</title>
|
14
|
+
</bibdata>
|
15
|
+
<preface><foreword>
|
16
|
+
<note>
|
17
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
18
|
+
</note>
|
19
|
+
</foreword></preface>
|
20
|
+
</iso-standard>
|
21
21
|
INPUT
|
22
|
-
expect(File.exist?(
|
23
|
-
html = File.read(
|
22
|
+
expect(File.exist?("test.html")).to be true
|
23
|
+
html = File.read("test.html")
|
24
24
|
expect(html).to match(%r{<title>test</title>})
|
25
25
|
expect(html).to match(/another empty stylesheet/)
|
26
26
|
expect(html).to match(%r{cdnjs\.cloudflare\.com/ajax/libs/mathjax/})
|
27
27
|
expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
|
28
28
|
end
|
29
29
|
|
30
|
-
it
|
31
|
-
FileUtils.rm_f
|
32
|
-
FileUtils.rm_f
|
33
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
30
|
+
it "ignores Liquid markup in the document body" do
|
31
|
+
FileUtils.rm_f "test.doc"
|
32
|
+
FileUtils.rm_f "test.html"
|
33
|
+
IsoDoc::HtmlConvert.new(wordstylesheet: "spec/assets/word.css").convert("test", <<~"INPUT", false)
|
34
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
35
|
+
<bibdata>
|
36
|
+
<title language="en">test</title>
|
37
|
+
</bibdata>
|
38
|
+
<preface><foreword>
|
39
|
+
<note>
|
40
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">{% elif %}These results are based on a study carried out on three different types of kernel.</p>
|
41
|
+
</note>
|
42
|
+
</foreword></preface>
|
43
|
+
</iso-standard>
|
44
44
|
INPUT
|
45
|
-
|
46
|
-
html = File.read(
|
45
|
+
expect(File.exist?("test.html")).to be true
|
46
|
+
html = File.read("test.html")
|
47
47
|
end
|
48
48
|
|
49
|
-
|
50
|
-
FileUtils.rm_f
|
51
|
-
FileUtils.rm_f
|
52
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
49
|
+
it "ignores Liquid markup in the document body (Word)" do
|
50
|
+
FileUtils.rm_f "test.doc"
|
51
|
+
FileUtils.rm_f "test.html"
|
52
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css"}).convert("test", <<~"INPUT", false)
|
53
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
54
|
+
<bibdata>
|
55
|
+
<title language="en">test</title>
|
56
|
+
</bibdata>
|
57
|
+
<preface><foreword>
|
58
|
+
<note>
|
59
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">{% elif %}These results are based on a study carried out on three different types of kernel.</p>
|
60
|
+
</note>
|
61
|
+
</foreword></preface>
|
62
|
+
</iso-standard>
|
63
63
|
INPUT
|
64
|
-
|
65
|
-
html = File.read(
|
64
|
+
expect(File.exist?("test.doc")).to be true
|
65
|
+
html = File.read("test.doc")
|
66
66
|
end
|
67
67
|
|
68
|
-
it
|
69
|
-
FileUtils.rm_f
|
70
|
-
FileUtils.rm_f
|
71
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
68
|
+
it "generates HTML output docs with null configuration" do
|
69
|
+
FileUtils.rm_f "test.doc"
|
70
|
+
FileUtils.rm_f "test.html"
|
71
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css"}).convert("test", <<~"INPUT", false)
|
72
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
73
|
+
<preface><foreword>
|
74
|
+
<note>
|
75
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
76
|
+
</note>
|
77
|
+
</foreword></preface>
|
78
|
+
</iso-standard>
|
79
79
|
INPUT
|
80
|
-
expect(File.exist?(
|
81
|
-
html = File.read(
|
80
|
+
expect(File.exist?("test.html")).to be true
|
81
|
+
html = File.read("test.html")
|
82
82
|
expect(html).not_to match(%r{<title>test</title>})
|
83
83
|
expect(html).not_to match(/another empty stylesheet/)
|
84
84
|
expect(html).to match(%r{cdnjs\.cloudflare\.com/ajax/libs/mathjax/})
|
85
85
|
expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
|
86
86
|
end
|
87
87
|
|
88
|
-
it
|
89
|
-
FileUtils.rm_f
|
90
|
-
FileUtils.rm_f
|
91
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
88
|
+
it "generates Word output docs with null configuration" do
|
89
|
+
FileUtils.rm_f "test.doc"
|
90
|
+
FileUtils.rm_f "test.html"
|
91
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
92
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
93
|
+
<preface><foreword>
|
94
|
+
<note>
|
95
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
96
|
+
</note>
|
97
|
+
</foreword></preface>
|
98
|
+
</iso-standard>
|
99
99
|
INPUT
|
100
|
-
expect(File.exist?(
|
101
|
-
word = File.read(
|
100
|
+
expect(File.exist?("test.doc")).to be true
|
101
|
+
word = File.read("test.doc")
|
102
102
|
expect(word).to match(/one empty stylesheet/)
|
103
103
|
expect(word).to match(/div\.table_container/)
|
104
104
|
end
|
105
105
|
|
106
|
-
it
|
107
|
-
FileUtils.rm_f
|
108
|
-
FileUtils.rm_f
|
109
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
110
|
-
expect(File.exist?(
|
111
|
-
html = File.read(
|
106
|
+
it "generates HTML output docs with null configuration from file" do
|
107
|
+
FileUtils.rm_f "spec/assets/iso.doc"
|
108
|
+
FileUtils.rm_f "spec/assets/iso.html"
|
109
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("spec/assets/iso.xml", nil, false)
|
110
|
+
expect(File.exist?("spec/assets/iso.html")).to be true
|
111
|
+
html = File.read("spec/assets/iso.html")
|
112
112
|
expect(html).to match(/another empty stylesheet/)
|
113
113
|
expect(html).to match(%r{https://use.fontawesome.com})
|
114
114
|
expect(html).to match(%r{libs/jquery})
|
115
115
|
end
|
116
116
|
|
117
|
-
it
|
118
|
-
FileUtils.rm_f
|
119
|
-
IsoDoc::HeadlessHtmlConvert.new(wordstylesheet:
|
120
|
-
expect(File.exist?(
|
121
|
-
html = File.read(
|
117
|
+
it "generates Headless HTML output docs with null configuration from file" do
|
118
|
+
FileUtils.rm_f "spec/assets/iso.html"
|
119
|
+
IsoDoc::HeadlessHtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("spec/assets/iso.xml", nil, false)
|
120
|
+
expect(File.exist?("spec/assets/iso.headless.html")).to be true
|
121
|
+
html = File.read("spec/assets/iso.headless.html")
|
122
122
|
expect(html).not_to match(/another empty stylesheet/)
|
123
123
|
expect(html).not_to match(%r{https://use.fontawesome.com})
|
124
124
|
expect(html).not_to match(%r{libs/jquery})
|
@@ -128,1431 +128,1445 @@ INPUT
|
|
128
128
|
expect(html).to match(%r{<div})
|
129
129
|
end
|
130
130
|
|
131
|
-
it
|
132
|
-
FileUtils.rm_f
|
133
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
134
|
-
expect(File.exist?(
|
135
|
-
word = File.read(
|
131
|
+
it "generates Word output docs with null configuration from file" do
|
132
|
+
FileUtils.rm_f "spec/assets/iso.doc"
|
133
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("spec/assets/iso.xml", nil, false)
|
134
|
+
expect(File.exist?("spec/assets/iso.doc")).to be true
|
135
|
+
word = File.read("spec/assets/iso.doc")
|
136
136
|
expect(word).to match(/one empty stylesheet/)
|
137
137
|
end
|
138
138
|
|
139
|
-
it
|
140
|
-
FileUtils.rm_f
|
141
|
-
FileUtils.rm_f
|
142
|
-
IsoDoc::HtmlConvert.new(bodyfont:
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
139
|
+
it "generates HTML output docs with complete configuration" do
|
140
|
+
FileUtils.rm_f "test.doc"
|
141
|
+
FileUtils.rm_f "test.html"
|
142
|
+
IsoDoc::HtmlConvert.new({bodyfont: "Zapf", htmlstylesheet: "spec/assets/html.scss", htmlcoverpage: "spec/assets/htmlcover.html", htmlintropage: "spec/assets/htmlintro.html", scripts: "spec/assets/scripts.html", i18nyaml: "spec/assets/i18n.yaml", ulstyle: "l1", olstyle: "l2"}).convert("test", <<~"INPUT", false)
|
143
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
144
|
+
<preface><foreword>
|
145
|
+
<note>
|
146
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
147
|
+
</note>
|
148
|
+
</foreword></preface>
|
149
|
+
</iso-standard>
|
150
150
|
INPUT
|
151
|
-
html = File.read(
|
151
|
+
html = File.read("test.html")
|
152
152
|
expect(html).to match(/another empty stylesheet/)
|
153
153
|
expect(html).to match(/font-family: Zapf/)
|
154
154
|
expect(html).to match(/an empty html cover page/)
|
155
155
|
expect(html).to match(/an empty html intro page/)
|
156
156
|
expect(html).to match(/This is > a script/)
|
157
157
|
expect(html).not_to match(/CDATA/)
|
158
|
-
expect(html).to match(%r{
|
158
|
+
expect(html).to match(%r{Antaŭparolo</h1>})
|
159
159
|
end
|
160
160
|
|
161
|
-
it
|
162
|
-
FileUtils.rm_f
|
163
|
-
FileUtils.rm_f
|
164
|
-
IsoDoc::HtmlConvert.new(htmlstylesheet:
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
161
|
+
it "generates HTML output docs with default fonts" do
|
162
|
+
FileUtils.rm_f "test.doc"
|
163
|
+
FileUtils.rm_f "test.html"
|
164
|
+
IsoDoc::HtmlConvert.new({htmlstylesheet: "spec/assets/html.scss", htmlcoverpage: "spec/assets/htmlcover.html", htmlintropage: "spec/assets/htmlintro.html", scripts: "spec/assets/scripts.html", i18nyaml: "spec/assets/i18n.yaml", ulstyle: "l1", olstyle: "l2"}).convert("test", <<~"INPUT", false)
|
165
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
166
|
+
<preface><foreword>
|
167
|
+
<note>
|
168
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
169
|
+
</note>
|
170
|
+
</foreword></preface>
|
171
|
+
</iso-standard>
|
172
172
|
INPUT
|
173
|
-
html = File.read(
|
173
|
+
html = File.read("test.html")
|
174
174
|
expect(html).to match(/another empty stylesheet/)
|
175
175
|
expect(html).to match(/font-family: Arial/)
|
176
176
|
expect(html).to match(/an empty html cover page/)
|
177
177
|
expect(html).to match(/an empty html intro page/)
|
178
178
|
expect(html).to match(/This is > a script/)
|
179
179
|
expect(html).not_to match(/CDATA/)
|
180
|
-
expect(html).to match(%r{
|
180
|
+
expect(html).to match(%r{Antaŭparolo</h1>})
|
181
181
|
end
|
182
182
|
|
183
|
-
it
|
184
|
-
FileUtils.rm_f
|
185
|
-
FileUtils.rm_f
|
186
|
-
IsoDoc::WordConvert.new(bodyfont:
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
183
|
+
it "generates Word output docs with complete configuration" do
|
184
|
+
FileUtils.rm_f "test.doc"
|
185
|
+
FileUtils.rm_f "test.html"
|
186
|
+
IsoDoc::WordConvert.new({bodyfont: "Zapf", wordstylesheet: "spec/assets/html.scss", standardstylesheet: "spec/assets/std.css", header: "spec/assets/header.html", wordcoverpage: "spec/assets/wordcover.html", wordintropage: "spec/assets/wordintro.html", i18nyaml: "spec/assets/i18n.yaml", ulstyle: "l1", olstyle: "l2"}).convert("test", <<~"INPUT", false)
|
187
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
188
|
+
<preface><foreword>
|
189
|
+
<note>
|
190
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
191
|
+
</note>
|
192
|
+
</foreword></preface>
|
193
|
+
</iso-standard>
|
194
194
|
INPUT
|
195
|
-
word = File.read(
|
195
|
+
word = File.read("test.doc")
|
196
196
|
expect(word).to match(/another empty stylesheet/)
|
197
197
|
expect(word).to match(/font-family: Zapf/)
|
198
198
|
expect(word).to match(/a third empty stylesheet/)
|
199
|
-
#
|
199
|
+
#expect(word).to match(/<title>test<\/title>/)
|
200
200
|
expect(word).to match(/test_files\/header.html/)
|
201
201
|
expect(word).to match(/an empty word cover page/)
|
202
202
|
expect(word).to match(/an empty word intro page/)
|
203
|
-
expect(word).to match(%r{
|
203
|
+
expect(word).to match(%r{Antaŭparolo</h1>})
|
204
204
|
end
|
205
205
|
|
206
|
-
it
|
207
|
-
FileUtils.rm_f
|
208
|
-
FileUtils.rm_f
|
209
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
206
|
+
it "generates Word output docs with default fonts" do
|
207
|
+
FileUtils.rm_f "test.doc"
|
208
|
+
FileUtils.rm_f "test.html"
|
209
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/html.scss", standardstylesheet: "spec/assets/std.css", header: "spec/assets/header.html", wordcoverpage: "spec/assets/wordcover.html", wordintropage: "spec/assets/wordintro.html", i18nyaml: "spec/assets/i18n.yaml", ulstyle: "l1", olstyle: "l2"}).convert("test", <<~"INPUT", false)
|
210
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
211
|
+
<preface><foreword>
|
212
|
+
<note>
|
213
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
214
|
+
</note>
|
215
|
+
</foreword></preface>
|
216
|
+
</iso-standard>
|
217
217
|
INPUT
|
218
|
-
word = File.read(
|
218
|
+
word = File.read("test.doc")
|
219
219
|
expect(word).to match(/another empty stylesheet/)
|
220
220
|
expect(word).to match(/font-family: Arial/)
|
221
221
|
expect(word).to match(/a third empty stylesheet/)
|
222
|
-
#
|
222
|
+
#expect(word).to match(/<title>test<\/title>/)
|
223
223
|
expect(word).to match(/test_files\/header.html/)
|
224
224
|
expect(word).to match(/an empty word cover page/)
|
225
225
|
expect(word).to match(/an empty word intro page/)
|
226
|
-
expect(word).to match(%r{
|
226
|
+
expect(word).to match(%r{Antaŭparolo</h1>})
|
227
227
|
end
|
228
228
|
|
229
|
-
it
|
230
|
-
FileUtils.rm_f
|
231
|
-
FileUtils.rm_f
|
232
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
229
|
+
it "converts definition lists to tables for Word" do
|
230
|
+
FileUtils.rm_f "test.doc"
|
231
|
+
FileUtils.rm_f "test.html"
|
232
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
233
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
234
|
+
<preface><foreword>
|
235
|
+
<dl>
|
236
|
+
<dt>Term</dt>
|
237
|
+
<dd>Definition</dd>
|
238
|
+
<dt>Term 2</dt>
|
239
|
+
<dd>Definition 2</dd>
|
240
|
+
</dl>
|
241
|
+
</foreword></preface>
|
242
|
+
</iso-standard>
|
243
243
|
INPUT
|
244
|
-
word = File.read(
|
245
|
-
|
244
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
|
245
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
|
246
246
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
247
|
+
<div class="WordSection2">
|
248
|
+
<p class="MsoNormal"><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
|
249
|
+
<div>
|
250
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
251
|
+
<table class="dl">
|
252
|
+
<tr>
|
253
|
+
<td valign="top" align="left">
|
254
|
+
<p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal">Term</p>
|
255
|
+
</td>
|
256
|
+
<td valign="top">Definition</td>
|
257
|
+
</tr>
|
258
|
+
<tr>
|
259
|
+
<td valign="top" align="left">
|
260
|
+
<p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal">Term 2</p>
|
261
|
+
</td>
|
262
|
+
<td valign="top">Definition 2</td>
|
263
|
+
</tr>
|
264
|
+
</table>
|
265
|
+
</div>
|
266
|
+
<p class="MsoNormal"> </p>
|
265
267
|
</div>
|
266
|
-
<p class="MsoNormal"> </p>
|
267
|
-
</div>
|
268
268
|
OUTPUT
|
269
269
|
end
|
270
270
|
|
271
|
-
it
|
272
|
-
FileUtils.rm_f
|
273
|
-
FileUtils.rm_f
|
274
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
</sections>
|
290
|
-
</iso-standard>
|
291
|
-
|
271
|
+
it "populates Word template with terms reference labels" do
|
272
|
+
FileUtils.rm_f "test.doc"
|
273
|
+
FileUtils.rm_f "test.html"
|
274
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
275
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
276
|
+
<sections>
|
277
|
+
<terms id="_terms_and_definitions" obligation="normative"><title>1.<tab/>Terms and Definitions</title>
|
278
|
+
<term id="paddy1"><name>1.1.</name><preferred>paddy</preferred>
|
279
|
+
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
280
|
+
<termsource status="modified">
|
281
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">ISO 7301:2011, Clause 3.1</origin>
|
282
|
+
<modification>
|
283
|
+
<p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
|
284
|
+
</modification>
|
285
|
+
</termsource></term>
|
286
|
+
</terms>
|
287
|
+
</sections>
|
288
|
+
</iso-standard>
|
292
289
|
INPUT
|
293
|
-
word = File.read(
|
294
|
-
|
290
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
|
291
|
+
sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
|
295
292
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
293
|
+
<div class="WordSection3">
|
294
|
+
<p class="zzSTDTitle1"></p>
|
295
|
+
<div><a name="_terms_and_definitions" id="_terms_and_definitions"></a><h1>1.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1>
|
296
|
+
<p class="TermNum"><a name="paddy1" id="paddy1"></a>1.1.</p><p class="Terms" style="text-align:left;">paddy</p>
|
297
|
+
<p class="MsoNormal"><a name="_eb29b35e-123e-4d1c-b50b-2714d41e747f" id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"></a>rice retaining its husk after threshing</p>
|
298
|
+
<p class="MsoNormal">[SOURCE: <a href="#ISO7301">ISO 7301:2011, Clause 3.1</a>, modified — The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p></div>
|
299
|
+
</div>
|
303
300
|
OUTPUT
|
304
301
|
end
|
305
302
|
|
306
|
-
it
|
307
|
-
FileUtils.rm_f
|
308
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
303
|
+
it "populates Word header" do
|
304
|
+
FileUtils.rm_f "test.doc"
|
305
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", header: "spec/assets/header.html"}).convert("test", <<~"INPUT", false)
|
306
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
307
|
+
<bibdata type="article">
|
308
|
+
<docidentifier>
|
309
|
+
<project-number part="1">1000</project-number>
|
310
|
+
</docidentifier>
|
311
|
+
</bibdata>
|
312
|
+
</iso-standard>
|
317
313
|
INPUT
|
318
|
-
word = File.read(
|
319
|
-
|
314
|
+
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").
|
315
|
+
sub(/------=_NextPart.*$/m, "")
|
320
316
|
expect(word).to be_equivalent_to <<~"OUTPUT"
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
Ci8qIGFuIGVtcHR5IGhlYWRlciAqLwoKU1RBUlQgRE9DIElEOiAKICAgICAgICAgICAxMDAwCiAg
|
327
|
-
ICAgICAgIDogRU5EIERPQyBJRAoKRklMRU5BTUU6IHRlc3QKCg==
|
328
|
-
|
317
|
+
Content-Location: file:///C:/Doc/test_files/header.html
|
318
|
+
Content-Transfer-Encoding: base64
|
319
|
+
Content-Type: text/html charset="utf-8"
|
320
|
+
Ci8qIGFuIGVtcHR5IGhlYWRlciAqLwoKU1RBUlQgRE9DIElEOiAKICAgICAgICAgICAxMDAwCiAg
|
321
|
+
ICAgICAgIDogRU5EIERPQyBJRAoKRklMRU5BTUU6IHRlc3QKCg==
|
329
322
|
OUTPUT
|
330
323
|
end
|
331
324
|
|
332
|
-
it
|
333
|
-
FileUtils.rm_f
|
334
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
</iso-standard>
|
354
|
-
|
325
|
+
it "populates Word ToC" do
|
326
|
+
FileUtils.rm_f "test.doc"
|
327
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", wordintropage: "spec/assets/wordintro.html"}).convert("test", <<~"INPUT", false)
|
328
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
329
|
+
<sections>
|
330
|
+
<clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
|
331
|
+
<title>Introduction<bookmark id="Q"/> to this<fn reference="1">
|
332
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
|
333
|
+
</fn></title>
|
334
|
+
</clause>
|
335
|
+
<clause id="O" inline-header="false" obligation="normative">
|
336
|
+
<title>Clause 4.2</title>
|
337
|
+
<p>A<fn reference="1">
|
338
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
|
339
|
+
</fn></p>
|
340
|
+
<clause id="P" inline-header="false" obligation="normative">
|
341
|
+
<title>Clause 4.2.1</title>
|
342
|
+
</clause>
|
343
|
+
</clause></clause>
|
344
|
+
</sections>
|
345
|
+
</iso-standard>
|
355
346
|
INPUT
|
356
|
-
word = File.read(
|
357
|
-
|
358
|
-
expect(xmlpp(word.gsub(/_Toc\d\d+/,
|
359
|
-
|
360
|
-
|
347
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
|
348
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
|
349
|
+
expect(xmlpp(word.gsub(/_Toc\d\d+/, "_Toc"))).to be_equivalent_to xmlpp(<<~'OUTPUT')
|
350
|
+
<div class="WordSection2">
|
351
|
+
/* an empty word intro page */
|
352
|
+
|
361
353
|
<p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes"> </span>TOC
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
354
|
+
\o "1-2" \h \z \u <span style="mso-element:field-separator"></span></span>
|
355
|
+
<span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
356
|
+
<a href="#_Toc">Clause 4<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
357
|
+
<span style="mso-tab-count:1 dotted">. </span>
|
358
|
+
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
359
|
+
<span style="mso-element:field-begin"></span></span>
|
360
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
361
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
362
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span></span></p>
|
371
363
|
<p class="MsoToc2">
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
364
|
+
<span class="MsoHyperlink">
|
365
|
+
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
366
|
+
<a href="#_Toc">Introduction to this<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
367
|
+
<span style="mso-tab-count:1 dotted">. </span>
|
368
|
+
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
369
|
+
<span style="mso-element:field-begin"></span></span>
|
370
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
371
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
372
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span>
|
373
|
+
</span>
|
374
|
+
</p>
|
383
375
|
<p class="MsoToc2">
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
376
|
+
<span class="MsoHyperlink">
|
377
|
+
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
378
|
+
<a href="#_Toc">Clause 4.2<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
379
|
+
<span style="mso-tab-count:1 dotted">. </span>
|
380
|
+
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
381
|
+
<span style="mso-element:field-begin"></span></span>
|
382
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
383
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
384
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span>
|
385
|
+
</span>
|
386
|
+
</p>
|
395
387
|
<p class="MsoToc1">
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
388
|
+
<span lang="EN-GB" xml:lang="EN-GB">
|
389
|
+
<span style="mso-element:field-end"></span>
|
390
|
+
</span>
|
391
|
+
<span lang="EN-GB" xml:lang="EN-GB">
|
392
|
+
<p class="MsoNormal"> </p>
|
393
|
+
</span>
|
394
|
+
</p>
|
395
|
+
<p class="MsoNormal"> </p>
|
396
|
+
</div>
|
405
397
|
OUTPUT
|
406
398
|
end
|
407
399
|
|
408
|
-
|
409
|
-
FileUtils.rm_f
|
410
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
</iso-standard>
|
430
|
-
|
400
|
+
it "populates Word ToC with custom levels" do
|
401
|
+
FileUtils.rm_f "test.doc"
|
402
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", wordintropage: "spec/assets/wordintro.html", doctoclevels: 3}).convert("test", <<~"INPUT", false)
|
403
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
404
|
+
<sections>
|
405
|
+
<clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
|
406
|
+
<title>Introduction<bookmark id="Q"/> to this<fn reference="1">
|
407
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
|
408
|
+
</fn></title>
|
409
|
+
</clause>
|
410
|
+
<clause id="O" inline-header="false" obligation="normative">
|
411
|
+
<title>Clause 4.2</title>
|
412
|
+
<p>A<fn reference="1">
|
413
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
|
414
|
+
</fn></p>
|
415
|
+
<clause id="P" inline-header="false" obligation="normative">
|
416
|
+
<title>Clause 4.2.1</title>
|
417
|
+
</clause>
|
418
|
+
</clause></clause>
|
419
|
+
</sections>
|
420
|
+
</iso-standard>
|
431
421
|
INPUT
|
432
|
-
word = File.read(
|
433
|
-
|
434
|
-
expect(xmlpp(word.gsub(/_Toc\d\d+/,
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
<p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes"> </span>TOC
|
439
|
-
\o "1-3" \h \z \u <span style="mso-element:field-separator"></span></span>
|
440
|
-
<span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
441
|
-
<a href="#_Toc">1. Clause 4<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
442
|
-
<span style="mso-tab-count:1 dotted">. </span>
|
443
|
-
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
444
|
-
<span style="mso-element:field-begin"></span></span>
|
445
|
-
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
446
|
-
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
447
|
-
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span></span></p>
|
448
|
-
|
449
|
-
<p class="MsoToc2">
|
450
|
-
<span class="MsoHyperlink">
|
451
|
-
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
452
|
-
<a href="#_Toc">1.1. Introduction to this<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
453
|
-
<span style="mso-tab-count:1 dotted">. </span>
|
454
|
-
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
455
|
-
<span style="mso-element:field-begin"></span></span>
|
456
|
-
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
457
|
-
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
458
|
-
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span>
|
459
|
-
</span>
|
460
|
-
</p>
|
422
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
|
423
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
|
424
|
+
expect(xmlpp(word.gsub(/_Toc\d\d+/, "_Toc"))).to be_equivalent_to xmlpp(<<~'OUTPUT')
|
425
|
+
<div class="WordSection2">
|
426
|
+
/* an empty word intro page */
|
461
427
|
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
428
|
+
<p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes"> </span>TOC
|
429
|
+
\o "1-3" \h \z \u <span style="mso-element:field-separator"></span></span>
|
430
|
+
<span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
431
|
+
<a href="#_Toc">Clause 4<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
432
|
+
<span style="mso-tab-count:1 dotted">. </span>
|
433
|
+
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
434
|
+
<span style="mso-element:field-begin"></span></span>
|
435
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
436
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
437
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span></span></p>
|
438
|
+
<p class="MsoToc2">
|
439
|
+
<span class="MsoHyperlink">
|
440
|
+
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
441
|
+
<a href="#_Toc">Introduction to this<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
442
|
+
<span style="mso-tab-count:1 dotted">. </span>
|
443
|
+
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
444
|
+
<span style="mso-element:field-begin"></span></span>
|
445
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
446
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
447
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span>
|
448
|
+
</span>
|
449
|
+
</p>
|
450
|
+
<p class="MsoToc2">
|
451
|
+
<span class="MsoHyperlink">
|
452
|
+
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
453
|
+
<a href="#_Toc">Clause 4.2<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
454
|
+
<span style="mso-tab-count:1 dotted">. </span>
|
455
|
+
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
456
|
+
<span style="mso-element:field-begin"></span></span>
|
457
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
458
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
459
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span>
|
460
|
+
</span>
|
461
|
+
</p>
|
462
|
+
<p class="MsoToc3">
|
463
|
+
<span class="MsoHyperlink">
|
464
|
+
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
465
|
+
<a href="#_Toc">Clause 4.2.1<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
466
|
+
<span style="mso-tab-count:1 dotted">. </span>
|
467
|
+
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
468
|
+
<span style="mso-element:field-begin"></span></span>
|
469
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
|
470
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
471
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span>
|
472
|
+
</span>
|
473
|
+
</p>
|
474
|
+
<p class="MsoToc1">
|
475
|
+
<span lang="EN-GB" xml:lang="EN-GB">
|
476
|
+
<span style="mso-element:field-end"></span>
|
477
|
+
</span>
|
478
|
+
<span lang="EN-GB" xml:lang="EN-GB">
|
479
|
+
<p class="MsoNormal"> </p>
|
480
|
+
</span>
|
481
|
+
</p>
|
482
|
+
<p class="MsoNormal"> </p>
|
483
|
+
</div>
|
500
484
|
OUTPUT
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
FileUtils.rm_f
|
505
|
-
FileUtils.rm_f
|
506
|
-
IsoDoc::HtmlConvert.new(htmltoclevels: 3).convert(
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
485
|
+
end
|
486
|
+
|
487
|
+
it "generates HTML output with custom ToC levels function" do
|
488
|
+
FileUtils.rm_f "test.doc"
|
489
|
+
FileUtils.rm_f "test.html"
|
490
|
+
IsoDoc::HtmlConvert.new({htmltoclevels: 3}).convert("test", <<~"INPUT", false)
|
491
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
492
|
+
<preface><foreword>
|
493
|
+
<note>
|
494
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
495
|
+
</note>
|
496
|
+
</foreword></preface>
|
497
|
+
</iso-standard>
|
514
498
|
INPUT
|
515
|
-
html = File.read(
|
499
|
+
html = File.read("test.html")
|
516
500
|
toclevel = <<~"TOCLEVEL"
|
517
|
-
|
501
|
+
function toclevel() { return "h1:not(:empty):not(.TermNum):not(.noTOC),h2:not(:empty):not(.TermNum):not(.noTOC),h3:not(:empty):not(.TermNum):not(.noTOC)";}
|
518
502
|
TOCLEVEL
|
519
503
|
expect(html).to include toclevel
|
520
504
|
end
|
521
505
|
|
522
|
-
it
|
523
|
-
FileUtils.rm_f
|
524
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
</iso-standard>
|
506
|
+
it "reorders footnote numbers in HTML" do
|
507
|
+
FileUtils.rm_f "test.html"
|
508
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", wordintropage: "spec/assets/wordintro.html"}).convert("test", <<~"INPUT", false)
|
509
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
510
|
+
<sections>
|
511
|
+
<clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><fn reference="3">
|
512
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">This is a footnote.</p>
|
513
|
+
</fn><clause id="N" inline-header="false" obligation="normative">
|
514
|
+
<title>Introduction to this<fn reference="2">
|
515
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
|
516
|
+
</fn></title>
|
517
|
+
</clause>
|
518
|
+
<clause id="O" inline-header="false" obligation="normative">
|
519
|
+
<title>Clause 4.2</title>
|
520
|
+
<p>A<fn reference="1">
|
521
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
|
522
|
+
</fn></p>
|
523
|
+
</clause></clause>
|
524
|
+
</sections>
|
525
|
+
</iso-standard>
|
543
526
|
INPUT
|
544
|
-
html = File.read(
|
545
|
-
|
527
|
+
html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main xmlns:epub="epub" class="main-section">').
|
528
|
+
sub(%r{</main>.*$}m, "</main>")
|
546
529
|
expect(xmlpp(html)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
<h2>
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
530
|
+
<main xmlns:epub="epub" class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
|
531
|
+
<p class="zzSTDTitle1"></p>
|
532
|
+
<div id="A">
|
533
|
+
<h1>Clause 4</h1>
|
534
|
+
<a class='FootnoteRef' href='#fn:3' id='fnref:1'>
|
535
|
+
<sup>1</sup>
|
536
|
+
</a>
|
537
|
+
<div id="N">
|
538
|
+
<h2>Introduction to this<a class='FootnoteRef' href='#fn:2' id='fnref:2'><sup>2</sup></a></h2>
|
539
|
+
</div>
|
540
|
+
<div id="O">
|
541
|
+
<h2>Clause 4.2</h2>
|
542
|
+
<p>A<a class='FootnoteRef' href='#fn:2'><sup>2</sup></a></p>
|
543
|
+
</div>
|
560
544
|
</div>
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
<a href="#fnref:2">↩</a></aside>
|
545
|
+
<aside id="fn:3" class="footnote">
|
546
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a class='FootnoteRef' href='#fn:3'>
|
547
|
+
<sup>1</sup>
|
548
|
+
</a>This is a footnote.</p>
|
549
|
+
<a href="#fnref:1">↩</a></aside>
|
550
|
+
<aside id="fn:2" class="footnote">
|
551
|
+
<p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a class='FootnoteRef' href='#fn:2'><sup>2</sup></a>Formerly denoted as 15 % (m/m).</p>
|
552
|
+
<a href="#fnref:2">↩</a></aside>
|
570
553
|
</main>
|
571
554
|
OUTPUT
|
572
555
|
end
|
573
556
|
|
574
|
-
it
|
575
|
-
FileUtils.rm_f
|
576
|
-
FileUtils.rm_rf
|
577
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
<image src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAA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OgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f3" mimetype="image/png"/>
|
587
|
-
|
588
|
-
|
589
|
-
|
557
|
+
it "moves images in HTML" do
|
558
|
+
FileUtils.rm_f "test.html"
|
559
|
+
FileUtils.rm_rf "test_htmlimages"
|
560
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
561
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
562
|
+
<preface><foreword>
|
563
|
+
<figure id="_">
|
564
|
+
<name>Split-it-right sample divider</name>
|
565
|
+
<image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
|
566
|
+
<image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
|
567
|
+
<image src="spec/assets/rice_image1.png" id="_" width="20000" height="300000" mimetype="image/png"/>
|
568
|
+
<image src="spec/assets/rice_image1.png" id="_" width="99" height="auto" mimetype="image/png"/>
|
569
|
+
<image src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB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hA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f3" mimetype="image/png"/>
|
570
|
+
</figure>
|
571
|
+
</foreword></preface>
|
572
|
+
</iso-standard>
|
590
573
|
INPUT
|
591
|
-
html = File.read(
|
592
|
-
|
574
|
+
html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
|
575
|
+
sub(%r{</main>.*$}m, "</main>")
|
593
576
|
expect(`ls test_htmlimages`).to match(/\.png$/)
|
594
|
-
expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/,
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAM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ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC" height="800" width="800" />
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
577
|
+
expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
578
|
+
<main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
|
579
|
+
<br />
|
580
|
+
<div>
|
581
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
582
|
+
<div id="_" class="figure">
|
583
|
+
<img src="test_htmlimages/_.png" height="776" width="922" />
|
584
|
+
<img src="test_htmlimages/_.png" height="776" width="922" />
|
585
|
+
<img src="test_htmlimages/_.png" height="800" width="53" />
|
586
|
+
<img src="test_htmlimages/_.png" height="83" width="99" />
|
587
|
+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAa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A0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC" height="800" width="800" />
|
588
|
+
<p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
|
589
|
+
</div>
|
590
|
+
<p class="zzSTDTitle1"></p>
|
591
|
+
</main>
|
609
592
|
OUTPUT
|
593
|
+
|
610
594
|
end
|
611
595
|
|
612
|
-
|
613
|
-
|
614
|
-
FileUtils.
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
<image src="data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IH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2yEAAAAAElFTkSuQmCC" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f3" mimetype="image/png"/>
|
623
|
-
</figure>
|
624
|
-
|
625
|
-
|
596
|
+
|
597
|
+
it "moves images in HTML with no file suffix" do
|
598
|
+
FileUtils.rm_f "test.html"
|
599
|
+
FileUtils.rm_rf "test_htmlimages"
|
600
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
601
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
602
|
+
<preface><foreword>
|
603
|
+
<figure id="_">
|
604
|
+
<name>Split-it-right sample divider</name>
|
605
|
+
<image src="spec/assets/rice_image1" id="_" mimetype="image/png"/>
|
606
|
+
<image src="spec/assets/rice_image1" id="_" mimetype="image/*"/>
|
607
|
+
<image src="data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABg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-bac4-9a85e82ab7f3" mimetype="image/png"/>
|
608
|
+
</figure>
|
609
|
+
</foreword></preface>
|
610
|
+
</iso-standard>
|
626
611
|
INPUT
|
627
|
-
html = File.read(
|
628
|
-
|
612
|
+
html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
|
613
|
+
sub(%r{</main>.*$}m, "</main>")
|
629
614
|
expect(`ls test_htmlimages`).to match(/\.png$/)
|
630
|
-
expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/,
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
<img src='data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6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OgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC' height='800' width='800'/>
|
640
|
-
|
641
|
-
</div>
|
615
|
+
expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
616
|
+
<main class='main-section'>
|
617
|
+
<button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
|
618
|
+
<br/>
|
619
|
+
<div>
|
620
|
+
<h1 class='ForewordTitle'>Foreword</h1>
|
621
|
+
<div id='_' class='figure'>
|
622
|
+
<img src='test_htmlimages/_.png' height='776' width='922'/>
|
623
|
+
<img src='test_htmlimages/_.png' height='776' width='922'/>
|
624
|
+
<img src='data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgd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AGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC' height='800' width='800'/>
|
625
|
+
<p class='FigureTitle' style='text-align:center;'>Split-it-right sample divider</p>
|
642
626
|
</div>
|
643
|
-
|
644
|
-
|
627
|
+
</div>
|
628
|
+
<p class='zzSTDTitle1'/>
|
629
|
+
</main>
|
645
630
|
OUTPUT
|
646
631
|
end
|
647
632
|
|
648
|
-
it
|
649
|
-
FileUtils.rm_f
|
650
|
-
FileUtils.rm_rf
|
651
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
633
|
+
it "moves images in HTML, using relative file location" do
|
634
|
+
FileUtils.rm_f "spec/test.html"
|
635
|
+
FileUtils.rm_rf "spec/test_htmlimages"
|
636
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("spec/test", <<~"INPUT", false)
|
637
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
638
|
+
<preface><foreword>
|
639
|
+
<figure id="_">
|
640
|
+
<name>Split-it-right sample divider</name>
|
641
|
+
<image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
|
642
|
+
<image src="assets/rice_image1.png" id="_" mimetype="image/png"/>
|
643
|
+
<image src="assets/rice_image1.png" id="_" width="20000" height="300000" mimetype="image/png"/>
|
644
|
+
<image src="assets/rice_image1.png" id="_" width="99" height="auto" mimetype="image/png"/>
|
645
|
+
</figure>
|
646
|
+
</foreword></preface>
|
647
|
+
</iso-standard>
|
663
648
|
INPUT
|
664
|
-
html = File.read(
|
665
|
-
|
649
|
+
html = File.read("spec/test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
|
650
|
+
sub(%r{</main>.*$}m, "</main>")
|
666
651
|
expect(`ls test_htmlimages`).to match(/\.png$/)
|
667
|
-
expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/,
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
652
|
+
expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
653
|
+
<main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
|
654
|
+
<br />
|
655
|
+
<div>
|
656
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
657
|
+
<div id="_" class="figure">
|
658
|
+
<img src="test_htmlimages/_.png" height="776" width="922" />
|
659
|
+
<img src="test_htmlimages/_.png" height="776" width="922" />
|
660
|
+
<img src="test_htmlimages/_.png" height="800" width="53" />
|
661
|
+
<img src="test_htmlimages/_.png" height="83" width="99" />
|
662
|
+
<p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
|
663
|
+
</div>
|
664
|
+
<p class="zzSTDTitle1"></p>
|
665
|
+
</main>
|
681
666
|
OUTPUT
|
682
667
|
end
|
683
668
|
|
684
|
-
|
685
|
-
|
686
|
-
FileUtils.
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
<
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
</
|
669
|
+
|
670
|
+
it "encodes images in HTML as data URIs" do
|
671
|
+
FileUtils.rm_f "test.html"
|
672
|
+
FileUtils.rm_rf "test_htmlimages"
|
673
|
+
IsoDoc::HtmlConvert.new({htmlstylesheet: "spec/assets/html.scss", datauriimage: true}).convert("test", <<~"INPUT", false)
|
674
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
675
|
+
<preface><foreword>
|
676
|
+
<figure id="_">
|
677
|
+
<name>Split-it-right sample divider</name>
|
678
|
+
<image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
|
679
|
+
<image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
|
680
|
+
</figure>
|
681
|
+
</foreword></preface>
|
682
|
+
</iso-standard>
|
697
683
|
INPUT
|
698
|
-
html = File.read(
|
699
|
-
|
684
|
+
html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
|
685
|
+
sub(%r{</main>.*$}m, "</main>")
|
700
686
|
expect(xmlpp(html.gsub(%r{src="data:image/png;base64,[^"]+"}, %{src="data:image/png;base64,_"}))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
687
|
+
<main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
|
688
|
+
<br />
|
689
|
+
<div>
|
690
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
691
|
+
<div id="_" class="figure">
|
692
|
+
<img src="data:image/png;base64,_" height="776" width="922" />
|
693
|
+
<img src="data:image/png;base64,_" height="776" width="922" />
|
694
|
+
<p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
|
695
|
+
</div>
|
696
|
+
<p class="zzSTDTitle1"></p>
|
697
|
+
</main>
|
712
698
|
OUTPUT
|
699
|
+
|
713
700
|
end
|
714
701
|
|
715
|
-
|
716
|
-
FileUtils.rm_f
|
717
|
-
FileUtils.rm_rf
|
718
|
-
IsoDoc::HtmlConvert.new(htmlstylesheet:
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
702
|
+
it "encodes images in HTML as data URIs, using relative file location" do
|
703
|
+
FileUtils.rm_f "spec/test.html"
|
704
|
+
FileUtils.rm_rf "spec/test_htmlimages"
|
705
|
+
IsoDoc::HtmlConvert.new({htmlstylesheet: "spec/assets/html.scss", datauriimage: true}).convert("spec/test", <<~"INPUT", false)
|
706
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
707
|
+
<preface><foreword>
|
708
|
+
<figure id="_">
|
709
|
+
<name>Split-it-right sample divider</name>
|
710
|
+
<image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
|
711
|
+
<image src="assets/rice_image1.png" id="_" mimetype="image/png"/>
|
712
|
+
</figure>
|
713
|
+
</foreword></preface>
|
714
|
+
</iso-standard>
|
728
715
|
INPUT
|
729
|
-
html = File.read(
|
730
|
-
|
716
|
+
html = File.read("spec/test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
|
717
|
+
sub(%r{</main>.*$}m, "</main>")
|
731
718
|
expect(xmlpp(html.gsub(%r{src="data:image/png;base64,[^"]+"}, %{src="data:image/png;base64,_"}))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
719
|
+
<main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
|
720
|
+
<br />
|
721
|
+
<div>
|
722
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
723
|
+
<div id="_" class="figure">
|
724
|
+
<img src="data:image/png;base64,_" height="776" width="922" />
|
725
|
+
<img src="data:image/png;base64,_" height="776" width="922" />
|
726
|
+
<p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
|
727
|
+
</div>
|
728
|
+
<p class="zzSTDTitle1"></p>
|
729
|
+
</main>
|
743
730
|
OUTPUT
|
744
|
-
end
|
745
731
|
|
746
|
-
|
747
|
-
FileUtils.rm_f 'test.html'
|
748
|
-
FileUtils.rm_f 'test.doc'
|
749
|
-
IsoDoc::HtmlConvert.new(wordstylesheet: 'spec/assets/word.css', htmlstylesheet: 'spec/assets/html.scss').convert('test', <<~"INPUT", false)
|
750
|
-
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
751
|
-
<sections>
|
752
|
-
<terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
|
753
|
-
|
754
|
-
<term id="paddy1"><preferred>paddy</preferred>
|
755
|
-
<domain>rice</domain>
|
756
|
-
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
757
|
-
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
|
758
|
-
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
759
|
-
<ul>
|
760
|
-
<li>A</li>
|
761
|
-
</ul>
|
762
|
-
</termexample>
|
763
|
-
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
|
764
|
-
<ul>
|
765
|
-
<li>A</li>
|
766
|
-
</ul>
|
767
|
-
</termexample>
|
732
|
+
end
|
768
733
|
|
769
|
-
<termsource status="modified">
|
770
|
-
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
|
771
|
-
<modification>
|
772
|
-
<p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
|
773
|
-
</modification>
|
774
|
-
</termsource></term>
|
775
734
|
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
735
|
+
it "processes IsoXML terms for HTML" do
|
736
|
+
FileUtils.rm_f "test.html"
|
737
|
+
FileUtils.rm_f "test.doc"
|
738
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
739
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
740
|
+
<sections>
|
741
|
+
<terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
|
742
|
+
<term id="paddy1"><name>1.1.</name><preferred>paddy</preferred>
|
743
|
+
<domain>rice</domain>
|
744
|
+
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
745
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
|
746
|
+
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
747
|
+
<ul>
|
748
|
+
<li>A</li>
|
749
|
+
</ul>
|
750
|
+
</termexample>
|
751
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
|
752
|
+
<ul>
|
753
|
+
<li>A</li>
|
754
|
+
</ul>
|
755
|
+
</termexample>
|
756
|
+
<termsource status="modified">
|
757
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
|
758
|
+
<modification>
|
759
|
+
<p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
|
760
|
+
</modification>
|
761
|
+
</termsource></term>
|
762
|
+
<term id="paddy"><name>1.2.</name><preferred>paddy</preferred><admitted>paddy rice</admitted>
|
763
|
+
<admitted>rough rice</admitted>
|
764
|
+
<deprecates>cargo rice</deprecates>
|
765
|
+
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
766
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
|
767
|
+
<ul>
|
768
|
+
<li>A</li>
|
769
|
+
</ul>
|
770
|
+
</termexample>
|
771
|
+
<termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
|
772
|
+
<p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
|
773
|
+
</termnote>
|
774
|
+
<termnote id="_671a1994-4783-40d0-bc81-987d06ffb74f">
|
775
|
+
<ul><li>A</li></ul>
|
776
|
+
<p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
|
777
|
+
</termnote>
|
778
|
+
<termsource status="identical">
|
779
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
|
780
|
+
</termsource></term>
|
781
|
+
</terms>
|
782
|
+
</sections>
|
783
|
+
</iso-standard>
|
798
784
|
INPUT
|
799
|
-
expect(File.exist?(
|
800
|
-
html = File.read(
|
785
|
+
expect(File.exist?("test.html")).to be true
|
786
|
+
html = File.read("test.html")
|
801
787
|
expect(html).to match(%r{<h2 class="TermNum" id="paddy1">1\.1\.</h2>})
|
802
788
|
expect(html).to match(%r{<h2 class="TermNum" id="paddy">1\.2\.</h2>})
|
803
789
|
end
|
804
790
|
|
805
|
-
|
806
|
-
FileUtils.rm_f
|
807
|
-
FileUtils.rm_f
|
808
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
791
|
+
it "processes empty term modifications" do
|
792
|
+
FileUtils.rm_f "test.html"
|
793
|
+
FileUtils.rm_f "test.doc"
|
794
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
795
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
796
|
+
<sections>
|
797
|
+
<terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
|
798
|
+
<term id="paddy1"><preferred>paddy</preferred>
|
799
|
+
<domain>rice</domain>
|
800
|
+
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
801
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
|
802
|
+
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
803
|
+
<ul>
|
804
|
+
<li>A</li>
|
805
|
+
</ul>
|
806
|
+
</termexample>
|
807
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
|
808
|
+
<ul>
|
809
|
+
<li>A</li>
|
810
|
+
</ul>
|
811
|
+
</termexample>
|
812
|
+
<termsource status="modified">
|
813
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">ISO 7301:2011, Clause 3.1</origin>
|
814
|
+
<modification>
|
815
|
+
<p id="_e73a417d-ad39-417d-a4c8-20e4e2529489"/>
|
816
|
+
</modification>
|
817
|
+
</termsource></term>
|
818
|
+
</terms>
|
819
|
+
</sections>
|
820
|
+
</iso-standard>
|
835
821
|
INPUT
|
836
|
-
expect(File.exist?(
|
837
|
-
html = File.read(
|
822
|
+
expect(File.exist?("test.html")).to be true
|
823
|
+
html = File.read("test.html")
|
838
824
|
expect(html).to include '[SOURCE: <a href="#ISO7301">ISO 7301:2011, Clause 3.1</a>, modified]'
|
839
825
|
end
|
840
826
|
|
841
|
-
|
842
|
-
|
843
|
-
FileUtils.rm_f
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
827
|
+
|
828
|
+
it "creates continuation styles for multiparagraph list items in Word" do
|
829
|
+
FileUtils.rm_f "test.doc"
|
830
|
+
FileUtils.rm_f "test.html"
|
831
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
832
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
833
|
+
<preface><foreword>
|
834
|
+
<ul>
|
835
|
+
<li><p>A</p>
|
836
|
+
<p>B</p></li>
|
837
|
+
<li><ol><li><p>C</p>
|
838
|
+
<p>D</p>
|
839
|
+
<sourcecode>E</sourcecode></li>
|
840
|
+
</ol></li>
|
841
|
+
</ul>
|
842
|
+
<ol>
|
843
|
+
<li><p>A1</p>
|
844
|
+
<p>B1</p></li>
|
845
|
+
<li><ul><li><p>C1</p>
|
846
|
+
<formula id="_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62">
|
847
|
+
<stem type="AsciiMath">D1</stem>
|
848
|
+
</formula>
|
849
|
+
<dl id="_f8fb7ed7-7874-44a8-933f-06e0e86fb264">
|
850
|
+
<dt>
|
851
|
+
<em>n</em>
|
852
|
+
</dt>
|
853
|
+
<dd>
|
854
|
+
<p id="_a27281a4-b20e-4d0b-a780-bab9e851b03e">is the number of coating layers</p>
|
855
|
+
</dd>
|
856
|
+
</dl>
|
857
|
+
</ul></li>
|
858
|
+
</ol>
|
859
|
+
</foreword></preface>
|
860
|
+
</iso-standard>
|
866
861
|
INPUT
|
867
|
-
word = File.read(
|
868
|
-
|
862
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">').
|
863
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
|
869
864
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
870
|
-
|
871
|
-
|
872
|
-
|
865
|
+
<div class='WordSection2' xmlns:m='m'>
|
866
|
+
<p class='MsoNormal'>
|
867
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
868
|
+
</p>
|
869
|
+
<div>
|
870
|
+
<h1 class='ForewordTitle'>Foreword</h1>
|
871
|
+
<p class='MsoListParagraphCxSpFirst'>
|
872
|
+
A
|
873
|
+
<div class='ListContLevel1'>
|
874
|
+
<p class='MsoNormal'>B</p>
|
875
|
+
</div>
|
873
876
|
</p>
|
874
|
-
<
|
875
|
-
<h1 class='ForewordTitle'>Foreword</h1>
|
877
|
+
<p class='MsoListParagraphCxSpLast'>
|
876
878
|
<p class='MsoListParagraphCxSpFirst'>
|
877
|
-
|
878
|
-
<div class='
|
879
|
-
<p class='MsoNormal'>
|
879
|
+
C
|
880
|
+
<div class='ListContLevel2'>
|
881
|
+
<p class='MsoNormal'>D</p>
|
880
882
|
</div>
|
881
|
-
|
882
|
-
|
883
|
-
<p class='MsoListParagraphCxSpFirst'>
|
884
|
-
C
|
885
|
-
<div class='ListContLevel2'>
|
886
|
-
<p class='MsoNormal'>D</p>
|
887
|
-
</div>
|
888
|
-
<div class='ListContLevel2'>
|
889
|
-
<p class='Sourcecode'>E</p>
|
890
|
-
</div>
|
891
|
-
</p>
|
892
|
-
</p>
|
893
|
-
<p class='MsoListParagraphCxSpFirst'>
|
894
|
-
A1
|
895
|
-
<div class='ListContLevel1'>
|
896
|
-
<p class='MsoNormal'>B1</p>
|
883
|
+
<div class='ListContLevel2'>
|
884
|
+
<p class='Sourcecode'>E</p>
|
897
885
|
</div>
|
898
886
|
</p>
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
887
|
+
</p>
|
888
|
+
<p class='MsoListParagraphCxSpFirst'>
|
889
|
+
A1
|
890
|
+
<div class='ListContLevel1'>
|
891
|
+
<p class='MsoNormal'>B1</p>
|
892
|
+
</div>
|
893
|
+
</p>
|
894
|
+
<p class='MsoListParagraphCxSpLast'>
|
895
|
+
C1
|
896
|
+
<div class='ListContLevel2'>
|
897
|
+
<div>
|
898
|
+
<a name='_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62' id='_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62'/>
|
899
|
+
<div class='formula'>
|
900
|
+
<p class='MsoNormal'>
|
901
|
+
<span class='stem'>
|
902
|
+
<m:oMath>
|
903
|
+
<m:r>
|
904
|
+
<m:t>D1</m:t>
|
905
|
+
</m:r>
|
906
|
+
</m:oMath>
|
907
|
+
</span>
|
908
|
+
</p>
|
917
909
|
</div>
|
918
910
|
</div>
|
919
|
-
</
|
920
|
-
|
921
|
-
|
911
|
+
</div>
|
912
|
+
<div class='ListContLevel2'>
|
913
|
+
<table class='dl'>
|
914
|
+
<tr>
|
915
|
+
<td valign='top' align='left'>
|
916
|
+
<p align='left' style='margin-left:0pt;text-align:left;' class='MsoNormal'>
|
917
|
+
<i>n</i>
|
918
|
+
</p>
|
919
|
+
</td>
|
920
|
+
<td valign='top'>
|
921
|
+
<p class='MsoNormal'>
|
922
|
+
<a name='_a27281a4-b20e-4d0b-a780-bab9e851b03e' id='_a27281a4-b20e-4d0b-a780-bab9e851b03e'/>
|
923
|
+
is the number of coating layers
|
924
|
+
</p>
|
925
|
+
</td>
|
926
|
+
</tr>
|
927
|
+
</table>
|
928
|
+
</div>
|
929
|
+
</p>
|
922
930
|
</div>
|
931
|
+
<p class='MsoNormal'> </p>
|
932
|
+
</div>
|
923
933
|
OUTPUT
|
924
934
|
end
|
925
935
|
|
926
|
-
it
|
927
|
-
|
928
|
-
FileUtils.rm_f
|
929
|
-
IsoDoc::HtmlConvert.new(wordstylesheet:
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
936
|
+
it "does not lose HTML escapes in postprocessing" do
|
937
|
+
FileUtils.rm_f "test.doc"
|
938
|
+
FileUtils.rm_f "test.html"
|
939
|
+
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
940
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
941
|
+
<preface><foreword>
|
942
|
+
<sourcecode id="samplecode">
|
943
|
+
<name>XML code</name>
|
944
|
+
<xml> &
|
945
|
+
</sourcecode>
|
946
|
+
</foreword></preface>
|
947
|
+
</iso-standard>
|
938
948
|
INPUT
|
939
|
-
|
940
|
-
|
949
|
+
html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
|
950
|
+
sub(%r{</main>.*$}m, "</main>")
|
941
951
|
expect(xmlpp(html)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
+
<main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
|
953
|
+
<br />
|
954
|
+
<div>
|
955
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
956
|
+
<pre id="samplecode" class="prettyprint "><br />    <br />  <xml> &<br />
|
957
|
+
</pre>
|
958
|
+
<p class="SourceTitle" style="text-align:center;">XML code</p>
|
959
|
+
</div>
|
960
|
+
<p class="zzSTDTitle1"></p>
|
961
|
+
</main>
|
952
962
|
OUTPUT
|
953
963
|
end
|
954
964
|
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
965
|
+
|
966
|
+
it "does not lose HTML escapes in postprocessing (Word)" do
|
967
|
+
FileUtils.rm_f "test.doc"
|
968
|
+
FileUtils.rm_f "test.html"
|
969
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
970
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
971
|
+
<preface><foreword>
|
972
|
+
<sourcecode id="samplecode">
|
973
|
+
<name>XML code</name>
|
974
|
+
<xml> &
|
975
|
+
</sourcecode>
|
976
|
+
</foreword></preface>
|
977
|
+
</iso-standard>
|
967
978
|
INPUT
|
968
|
-
|
969
|
-
|
979
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
|
980
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
|
970
981
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
</div>
|
979
|
-
<p class="MsoNormal"> </p>
|
982
|
+
<div class="WordSection2">
|
983
|
+
<p class="MsoNormal">
|
984
|
+
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
|
985
|
+
</p>
|
986
|
+
<div>
|
987
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
988
|
+
<p class="Sourcecode" style="page-break-after:avoid;"><a name="samplecode" id="samplecode"></a><br/>    <br/>  <xml> &<br/></p><p class="SourceTitle" style="text-align:center;">XML code</p>
|
980
989
|
</div>
|
981
|
-
|
990
|
+
<p class="MsoNormal"> </p>
|
991
|
+
</div>
|
982
992
|
OUTPUT
|
983
993
|
end
|
984
994
|
|
985
|
-
it
|
986
|
-
FileUtils.rm_f
|
987
|
-
FileUtils.rm_f
|
988
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
995
|
+
it "propagates example style to paragraphs in postprocessing (Word)" do
|
996
|
+
FileUtils.rm_f "test.doc"
|
997
|
+
FileUtils.rm_f "test.html"
|
998
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
999
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
1000
|
+
<preface><foreword>
|
1001
|
+
<example id="samplecode">
|
1002
|
+
<p>ABC</p>
|
1003
|
+
</example>
|
1004
|
+
</foreword></preface>
|
1005
|
+
</iso-standard>
|
996
1006
|
INPUT
|
997
|
-
|
998
|
-
|
1007
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
|
1008
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
|
999
1009
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1010
|
+
<div class="WordSection2">
|
1011
|
+
<p class="MsoNormal">
|
1012
|
+
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
|
1013
|
+
</p>
|
1014
|
+
<div>
|
1015
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
1016
|
+
<div class="example"><a name="samplecode" id="samplecode"></a>
|
1017
|
+
<p class="example">ABC</p>
|
1018
|
+
</div>
|
1008
1019
|
</div>
|
1009
|
-
|
1010
|
-
|
1011
|
-
</div>
|
1020
|
+
<p class="MsoNormal"> </p>
|
1021
|
+
</div>
|
1012
1022
|
OUTPUT
|
1013
1023
|
end
|
1014
1024
|
|
1015
|
-
it
|
1016
|
-
|
1017
|
-
FileUtils.rm_f
|
1018
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1025
|
+
it "deals with image captions (Word)" do
|
1026
|
+
FileUtils.rm_f "test.doc"
|
1027
|
+
FileUtils.rm_f "test.html"
|
1028
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
1029
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
1030
|
+
<preface><foreword>
|
1031
|
+
<figure id="fig1">
|
1032
|
+
<name>Typical arrangement of the far-field scan set-up</name>
|
1033
|
+
<image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
|
1034
|
+
</figure>
|
1035
|
+
</foreword></preface>
|
1036
|
+
</iso-standard>
|
1027
1037
|
INPUT
|
1028
|
-
word = File.read(
|
1029
|
-
|
1030
|
-
|
1038
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
|
1039
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "").
|
1040
|
+
sub(/src="[^"]+"/, 'src="_"')
|
1031
1041
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
</div>
|
1042
|
-
<p class="MsoNormal"> </p>
|
1042
|
+
<div class="WordSection2">
|
1043
|
+
<p class="MsoNormal">
|
1044
|
+
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
|
1045
|
+
</p>
|
1046
|
+
<div>
|
1047
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
1048
|
+
<div class="figure"><a name="fig1" id="fig1"></a>
|
1049
|
+
<p style="page-break-after:avoid;" class="figure"><img src="_" width="400" height="337"/></p>
|
1050
|
+
<p class="FigureTitle" style="text-align:center;">Typical arrangement of the far-field scan set-up</p></div>
|
1043
1051
|
</div>
|
1052
|
+
<p class="MsoNormal"> </p>
|
1053
|
+
</div>
|
1044
1054
|
OUTPUT
|
1055
|
+
|
1045
1056
|
end
|
1046
1057
|
|
1047
|
-
it
|
1048
|
-
FileUtils.rm_f
|
1049
|
-
FileUtils.rm_f
|
1050
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1058
|
+
it "deals with empty table titles (Word)" do
|
1059
|
+
FileUtils.rm_f "test.doc"
|
1060
|
+
FileUtils.rm_f "test.html"
|
1061
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
1062
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
1063
|
+
<preface><foreword>
|
1064
|
+
<table id="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7" unnumbered="true"><thead><tr>
|
1065
|
+
<td rowspan="2">
|
1066
|
+
<p id="_c47d9b39-adb2-431d-9320-78cb148fdb56">Output wavelength <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>μ</mi><mi>m</mi><mo>)</mo></mrow></math></stem></p>
|
1067
|
+
</td>
|
1068
|
+
<th colspan="3" align="left">Predictive wavelengths</th>
|
1069
|
+
</tr>
|
1070
|
+
</thead>
|
1071
|
+
</table>
|
1072
|
+
</preface>
|
1073
|
+
</iso-standard>
|
1063
1074
|
INPUT
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1075
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">').
|
1076
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "").
|
1077
|
+
sub(/src="[^"]+"/, 'src="_"')
|
1067
1078
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1079
|
+
<div class="WordSection2" xmlns:m="m">
|
1080
|
+
<p class="MsoNormal">
|
1081
|
+
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
|
1082
|
+
</p>
|
1083
|
+
<div>
|
1084
|
+
<h1 class="ForewordTitle">Foreword</h1>
|
1085
|
+
<div align="center" class="table_container">
|
1086
|
+
<table class="MsoISOTable" style="mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;"><a name="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7" id="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7"></a>
|
1087
|
+
<thead>
|
1088
|
+
<tr>
|
1089
|
+
<td rowspan="2" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;mso-border-bottom-alt:solid windowtext 1.0pt;">
|
1090
|
+
<p class="MsoNormal"><a name="_c47d9b39-adb2-431d-9320-78cb148fdb56" id="_c47d9b39-adb2-431d-9320-78cb148fdb56"></a>Output wavelength <span class="stem">
|
1091
|
+
<m:oMath>
|
1092
|
+
<span style='font-style:normal;'>
|
1093
|
+
<m:r>
|
1094
|
+
<m:rPr>
|
1095
|
+
<m:sty m:val='p'/>
|
1096
|
+
</m:rPr>
|
1097
|
+
<m:t>(</m:t>
|
1098
|
+
</m:r>
|
1099
|
+
</span>
|
1100
|
+
<m:r>
|
1101
|
+
<m:t>μm)</m:t>
|
1102
|
+
</m:r>
|
1103
|
+
</m:oMath>
|
1104
|
+
</span></p>
|
1105
|
+
</td>
|
1106
|
+
<th colspan="3" align="left" style="font-weight:bold;border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Predictive wavelengths</th>
|
1107
|
+
</tr>
|
1108
|
+
</thead>
|
1109
|
+
</table>
|
1110
|
+
</div>
|
1111
|
+
</div>
|
1112
|
+
<p class="MsoNormal"> </p>
|
1113
|
+
</div>
|
1092
1114
|
OUTPUT
|
1093
1115
|
end
|
1094
1116
|
|
1095
|
-
|
1096
|
-
FileUtils.rm_f
|
1097
|
-
FileUtils.rm_f
|
1098
|
-
IsoDoc::WordConvert.new(wordstylesheet:
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1117
|
+
it "propagates alignment of table cells (Word)" do
|
1118
|
+
FileUtils.rm_f "test.doc"
|
1119
|
+
FileUtils.rm_f "test.html"
|
1120
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
|
1121
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
1122
|
+
<preface><foreword>
|
1123
|
+
<table id="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7" unnumbered="true"><thead><tr>
|
1124
|
+
<td rowspan="2" align="left">
|
1125
|
+
<p id="_c47d9b39-adb2-431d-9320-78cb148fdb56">Output wavelength</p>
|
1126
|
+
<p id="_c47d9b39-adb2-431d-9320-78cb148fdb57">Output wavelength</p>
|
1127
|
+
</td>
|
1128
|
+
<th colspan="3" align="right"><p id="_c47d9b39-adb2-431d-9320-78cb148fdb58">Predictive wavelengths</p></th>
|
1129
|
+
</tr>
|
1130
|
+
</thead>
|
1131
|
+
</table>
|
1132
|
+
</preface>
|
1133
|
+
</iso-standard>
|
1112
1134
|
INPUT
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1135
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">').
|
1136
|
+
sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "").
|
1137
|
+
sub(/src="[^"]+"/, 'src="_"')
|
1116
1138
|
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
</div>
|
1139
|
+
<div class='WordSection2' xmlns:m='m'>
|
1140
|
+
<p class='MsoNormal'>
|
1141
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1142
|
+
</p>
|
1143
|
+
<div>
|
1144
|
+
<h1 class='ForewordTitle'>Foreword</h1>
|
1145
|
+
<div align='center' class="table_container">
|
1146
|
+
<table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
|
1147
|
+
<a name='_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7' id='_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7'/>
|
1148
|
+
<thead>
|
1149
|
+
<tr>
|
1150
|
+
<td rowspan='2' align='left' style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;mso-border-bottom-alt:solid windowtext 1.0pt;'>
|
1151
|
+
<p style='text-align: left' class='MsoNormal'>
|
1152
|
+
<a name='_c47d9b39-adb2-431d-9320-78cb148fdb56' id='_c47d9b39-adb2-431d-9320-78cb148fdb56'/>
|
1153
|
+
Output wavelength
|
1154
|
+
</p>
|
1155
|
+
<p style='text-align: left' class='MsoNormal'>
|
1156
|
+
<a name='_c47d9b39-adb2-431d-9320-78cb148fdb57' id='_c47d9b39-adb2-431d-9320-78cb148fdb57'/>
|
1157
|
+
Output wavelength
|
1158
|
+
</p>
|
1159
|
+
</td>
|
1160
|
+
<th colspan='3' align='right' style='font-weight:bold;border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
|
1161
|
+
<p style='text-align: right' class='MsoNormal'>
|
1162
|
+
<a name='_c47d9b39-adb2-431d-9320-78cb148fdb58' id='_c47d9b39-adb2-431d-9320-78cb148fdb58'/>
|
1163
|
+
Predictive wavelengths
|
1164
|
+
</p>
|
1165
|
+
</th>
|
1166
|
+
</tr>
|
1167
|
+
</thead>
|
1168
|
+
</table>
|
1148
1169
|
</div>
|
1149
|
-
<p class='MsoNormal'> </p>
|
1150
1170
|
</div>
|
1171
|
+
<p class='MsoNormal'> </p>
|
1172
|
+
</div>
|
1151
1173
|
OUTPUT
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
it "cleans up boilerplate" do
|
1177
|
+
expect(xmlpp(IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", filename: "test"}).html_preface(Nokogiri::XML(<<~INPUT)).to_xml).sub(/^.*<main/m, "<main").sub(%r{</main>.*$}m, "</main>")).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1178
|
+
<html>
|
1179
|
+
<head/>
|
1180
|
+
<body>
|
1181
|
+
<div class="main-section">
|
1182
|
+
<div id="boilerplate-copyright"> <h1>Copyright</h1> </div>
|
1183
|
+
<div id="boilerplate-license"> <h1>License</h1> </div>
|
1184
|
+
<div id="boilerplate-legal"> <h1>Legal</h1> </div>
|
1185
|
+
<div id="boilerplate-feedback"> <h1>Feedback</h1> </div>
|
1186
|
+
<hr/>
|
1187
|
+
<div id="boilerplate-feedback-destination"/>
|
1188
|
+
<div id="boilerplate-legal-destination"/>
|
1189
|
+
<div id="boilerplate-license-destination"/>
|
1190
|
+
<div id="boilerplate-copyright-destination"/>
|
1191
|
+
</div>
|
1192
|
+
</body>
|
1193
|
+
</html>
|
1194
|
+
INPUT
|
1195
|
+
<main class='main-section'>
|
1196
|
+
<button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
|
1164
1197
|
<hr/>
|
1165
|
-
<div id=
|
1166
|
-
|
1167
|
-
<div id="boilerplate-license-destination"/>
|
1168
|
-
<div id="boilerplate-copyright-destination"/>
|
1198
|
+
<div id='boilerplate-feedback'>
|
1199
|
+
<h1 class='IntroTitle'>Feedback</h1>
|
1169
1200
|
</div>
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
<
|
1174
|
-
<
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
<h1 class='IntroTitle'>Legal</h1>
|
1181
|
-
</div>
|
1182
|
-
<div id='boilerplate-license'>
|
1183
|
-
<h1 class='IntroTitle'>License</h1>
|
1184
|
-
</div>
|
1185
|
-
<div id='boilerplate-copyright'>
|
1186
|
-
<h1 class='IntroTitle'>Copyright</h1>
|
1187
|
-
</div>
|
1188
|
-
</main>
|
1201
|
+
<div id='boilerplate-legal'>
|
1202
|
+
<h1 class='IntroTitle'>Legal</h1>
|
1203
|
+
</div>
|
1204
|
+
<div id='boilerplate-license'>
|
1205
|
+
<h1 class='IntroTitle'>License</h1>
|
1206
|
+
</div>
|
1207
|
+
<div id='boilerplate-copyright'>
|
1208
|
+
<h1 class='IntroTitle'>Copyright</h1>
|
1209
|
+
</div>
|
1210
|
+
</main>
|
1189
1211
|
OUTPUT
|
1190
1212
|
end
|
1191
1213
|
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1214
|
+
it "cleans up boilerplate (Word)" do
|
1215
|
+
expect(xmlpp(IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", filename: "test"}).word_cleanup(Nokogiri::XML(<<~INPUT)).to_xml).sub(/^.*<main/m, "<main").sub(%r{</main>.*$}m, "</main>")).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1216
|
+
<html>
|
1217
|
+
<head/>
|
1218
|
+
<body>
|
1219
|
+
<div class="main-section">
|
1220
|
+
<div id="boilerplate-copyright"> <h1>Copyright</h1> </div>
|
1221
|
+
<div id="boilerplate-license"> <h1>License</h1> </div>
|
1222
|
+
<div id="boilerplate-legal"> <h1>Legal</h1> </div>
|
1223
|
+
<div id="boilerplate-feedback"> <h1>Feedback</h1> </div>
|
1224
|
+
<hr/>
|
1225
|
+
<div id="boilerplate-feedback-destination"/>
|
1226
|
+
<div id="boilerplate-legal-destination"/>
|
1227
|
+
<div id="boilerplate-license-destination"/>
|
1228
|
+
<div id="boilerplate-copyright-destination"/>
|
1229
|
+
</div>
|
1230
|
+
</body>
|
1231
|
+
</html>
|
1232
|
+
INPUT
|
1233
|
+
<html>
|
1234
|
+
<head/>
|
1235
|
+
<body>
|
1236
|
+
<div class='main-section'>
|
1202
1237
|
<hr/>
|
1203
|
-
<div id=
|
1204
|
-
|
1205
|
-
<div id="boilerplate-license-destination"/>
|
1206
|
-
<div id="boilerplate-copyright-destination"/>
|
1238
|
+
<div id='boilerplate-feedback'>
|
1239
|
+
<p class='TitlePageSubhead'>Feedback</p>
|
1207
1240
|
</div>
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
<
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
<p class='TitlePageSubhead'>Legal</p>
|
1221
|
-
</div>
|
1222
|
-
<div id='boilerplate-license'>
|
1223
|
-
<p class='TitlePageSubhead'>License</p>
|
1224
|
-
</div>
|
1225
|
-
<div id='boilerplate-copyright'>
|
1226
|
-
<p class='TitlePageSubhead'>Copyright</p>
|
1227
|
-
</div>
|
1228
|
-
</div>
|
1229
|
-
</body>
|
1230
|
-
</html>
|
1241
|
+
<div id='boilerplate-legal'>
|
1242
|
+
<p class='TitlePageSubhead'>Legal</p>
|
1243
|
+
</div>
|
1244
|
+
<div id='boilerplate-license'>
|
1245
|
+
<p class='TitlePageSubhead'>License</p>
|
1246
|
+
</div>
|
1247
|
+
<div id='boilerplate-copyright'>
|
1248
|
+
<p class='TitlePageSubhead'>Copyright</p>
|
1249
|
+
</div>
|
1250
|
+
</div>
|
1251
|
+
</body>
|
1252
|
+
</html>
|
1231
1253
|
OUTPUT
|
1232
1254
|
end
|
1233
1255
|
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1256
|
+
it "deals with landscape and portrait pagebreaks (Word)" do
|
1257
|
+
FileUtils.rm_f "test.doc"
|
1258
|
+
IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", filename: "test"}).convert("test", <<~"INPUT", false)
|
1259
|
+
<standard-document xmlns="http://riboseinc.com/isoxml">
|
1260
|
+
<bibdata type="standard">
|
1261
|
+
<title language="en" format="text/plain">Document title</title>
|
1262
|
+
<version>
|
1263
|
+
<draft>1.2</draft>
|
1264
|
+
</version>
|
1265
|
+
<language>en</language>
|
1266
|
+
<script>Latn</script>
|
1267
|
+
<status><stage>published</stage></status>
|
1268
|
+
<ext>
|
1269
|
+
<doctype>article</doctype>
|
1270
|
+
</ext>
|
1271
|
+
</bibdata>
|
1272
|
+
<preface>
|
1273
|
+
<introduction><title>Preface 1</title>
|
1274
|
+
<p align="center">This is a <pagebreak orientation="landscape"/> paragraph</p>
|
1275
|
+
<table>
|
1276
|
+
<tbody>
|
1277
|
+
<tr><td>A</td><td>B</td></tr>
|
1278
|
+
</tbody>
|
1279
|
+
</table>
|
1280
|
+
<clause><title>Preface 1.1</title>
|
1281
|
+
<p>On my side</p>
|
1282
|
+
<pagebreak orientation="portrait"/>
|
1283
|
+
<p>Upright again</p>
|
1284
|
+
</clause>
|
1285
|
+
<clause><title>Preface 1.3</title>
|
1286
|
+
<p>And still upright</p>
|
1287
|
+
</clause>
|
1288
|
+
</introduction>
|
1289
|
+
</preface>
|
1290
|
+
<sections><clause><title>Foreword</title>
|
1291
|
+
<note>
|
1292
|
+
<p id="_">For further information on the Foreword, see <strong>ISO/IEC Directives, Part 2, 2016, Clause 12.</strong></p>
|
1293
|
+
<pagebreak orientation="landscape"/>
|
1294
|
+
<table id="_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249">
|
1295
|
+
<thead>
|
1296
|
+
<tr>
|
1297
|
+
<th align="left">A</th>
|
1298
|
+
<th align="left">B</th>
|
1299
|
+
</tr>
|
1300
|
+
</thead>
|
1301
|
+
<tbody>
|
1302
|
+
<tr>
|
1303
|
+
<td align="left">C</td>
|
1304
|
+
<td align="left">D</td>
|
1305
|
+
</tr>
|
1306
|
+
</tbody>
|
1307
|
+
<note id="_8fff1596-290e-4314-b03c-7a8aab97eebe">
|
1308
|
+
<p id="_32c22439-387a-48cf-a006-5ab3b934ba73">B</p>
|
1309
|
+
</note></table>
|
1310
|
+
<pagebreak orientation="portrait"/>
|
1311
|
+
<p>And up</p>
|
1312
|
+
</note>
|
1313
|
+
<pagebreak orientation="portrait"/>
|
1314
|
+
</clause></sections>
|
1315
|
+
<annex id="_level_1" inline-header="false" obligation="normative">
|
1316
|
+
<title>Annex 1</title>
|
1317
|
+
</annex>
|
1318
|
+
</standard-document>
|
1297
1319
|
INPUT
|
1298
|
-
|
1299
|
-
html = File.read(
|
1300
|
-
expect(html).to include
|
1301
|
-
|
1302
|
-
expect(html).to include
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
<br clear='all' class='section'/>
|
1324
|
-
</p>
|
1325
|
-
paragraph
|
1326
|
-
</p>
|
1327
|
-
</div>
|
1328
|
-
</div>
|
1329
|
-
<div class='WordSection2_1'>
|
1330
|
-
<div align='center' class='table_container'>
|
1331
|
-
<table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
|
1332
|
-
<tbody>
|
1333
|
-
<tr>
|
1334
|
-
<td style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>A</td>
|
1335
|
-
<td style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>B</td>
|
1336
|
-
</tr>
|
1337
|
-
</tbody>
|
1338
|
-
</table>
|
1339
|
-
</div>
|
1340
|
-
<div>
|
1341
|
-
<h1>Preface 1.1</h1>
|
1342
|
-
<p class='MsoNormal'>On my side</p>
|
1343
|
-
<p class='MsoNormal'>
|
1344
|
-
<br clear='all' class='section'/>
|
1345
|
-
</p>
|
1346
|
-
</div>
|
1347
|
-
</div>
|
1348
|
-
<div class='WordSection2_0'>
|
1349
|
-
<p class='MsoNormal'>Upright again</p>
|
1350
|
-
<div>
|
1351
|
-
<h1>Preface 1.3</h1>
|
1352
|
-
<p class='MsoNormal'>And still upright</p>
|
1353
|
-
</div>
|
1354
|
-
<p class='MsoNormal'> </p>
|
1355
|
-
</div>
|
1320
|
+
expect(File.exist?("test.doc")).to be true
|
1321
|
+
html = File.read("test.doc", encoding: "UTF-8")
|
1322
|
+
expect(html).to include "div.WordSection2_0 {page:WordSection2P;}"
|
1323
|
+
expect(html).to include "div.WordSection2_1 {page:WordSection2L;}"
|
1324
|
+
expect(html).to include "div.WordSection3_0 {page:WordSection3P;}"
|
1325
|
+
expect(html).to include "div.WordSection3_1 {page:WordSection3P;}"
|
1326
|
+
expect(html).to include "div.WordSection3_2 {page:WordSection3L;}"
|
1327
|
+
|
1328
|
+
|
1329
|
+
expect(xmlpp(html.sub(/^.*<body /m, "<body ").sub(%r{</body>.*$}m, "</body>"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1330
|
+
<body lang='EN-US' xml:lang='EN-US' link='blue' vlink='#954F72'>
|
1331
|
+
<div class='WordSection1'>
|
1332
|
+
<p class='MsoNormal'> </p>
|
1333
|
+
</div>
|
1334
|
+
<p class='MsoNormal'>
|
1335
|
+
<br clear='all' class='section'/>
|
1336
|
+
</p>
|
1337
|
+
<div class='WordSection2'>
|
1338
|
+
<p class='MsoNormal'>
|
1339
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1340
|
+
</p>
|
1341
|
+
<div class='Section3' id=''>
|
1342
|
+
<h1 class='IntroTitle'>Preface 1</h1>
|
1343
|
+
<p align='center' style='text-align:center;' class='MsoNormal'>
|
1344
|
+
This is a
|
1356
1345
|
<p class='MsoNormal'>
|
1357
1346
|
<br clear='all' class='section'/>
|
1358
1347
|
</p>
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
</tr>
|
1392
|
-
</tbody>
|
1393
|
-
<tfoot>
|
1394
|
-
<tr>
|
1395
|
-
<td colspan='2' style='border-top:0pt;mso-border-top-alt:0pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
|
1396
|
-
<div class='Note'>
|
1397
|
-
<a name='_8fff1596-290e-4314-b03c-7a8aab97eebe' id='_8fff1596-290e-4314-b03c-7a8aab97eebe'/>
|
1398
|
-
<p class='Note'>
|
1399
|
-
<span class='note_label'>NOTE</span>
|
1400
|
-
<span style='mso-tab-count:1'>  </span>
|
1401
|
-
B
|
1402
|
-
</p>
|
1403
|
-
</div>
|
1404
|
-
</td>
|
1405
|
-
</tr>
|
1406
|
-
</tfoot>
|
1407
|
-
</table>
|
1408
|
-
</div>
|
1409
|
-
<p class='Note'>
|
1410
|
-
<br clear='all' class='section'/>
|
1411
|
-
</p>
|
1412
|
-
</div>
|
1413
|
-
<div class='WordSection3_1'>
|
1414
|
-
<p class='Note'>And up</p>
|
1415
|
-
<p class='MsoNormal'>
|
1348
|
+
paragraph
|
1349
|
+
</p>
|
1350
|
+
</div>
|
1351
|
+
</div>
|
1352
|
+
<div class='WordSection2_1'>
|
1353
|
+
<div align='center' class='table_container'>
|
1354
|
+
<table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
|
1355
|
+
<tbody>
|
1356
|
+
<tr>
|
1357
|
+
<td style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>A</td>
|
1358
|
+
<td style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>B</td>
|
1359
|
+
</tr>
|
1360
|
+
</tbody>
|
1361
|
+
</table>
|
1362
|
+
</div>
|
1363
|
+
<div>
|
1364
|
+
<h2>Preface 1.1</h2>
|
1365
|
+
<p class='MsoNormal'>On my side</p>
|
1366
|
+
<p class='MsoNormal'>
|
1367
|
+
<br clear='all' class='section'/>
|
1368
|
+
</p>
|
1369
|
+
</div>
|
1370
|
+
</div>
|
1371
|
+
<div class='WordSection2_0'>
|
1372
|
+
<p class='MsoNormal'>Upright again</p>
|
1373
|
+
<div>
|
1374
|
+
<h2>Preface 1.3</h2>
|
1375
|
+
<p class='MsoNormal'>And still upright</p>
|
1376
|
+
</div>
|
1377
|
+
<p class='MsoNormal'> </p>
|
1378
|
+
</div>
|
1379
|
+
<p class='MsoNormal'>
|
1416
1380
|
<br clear='all' class='section'/>
|
1417
1381
|
</p>
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1382
|
+
<div class='WordSection3'>
|
1383
|
+
<p class='zzSTDTitle1'>Document title</p>
|
1384
|
+
<div>
|
1385
|
+
<h1>Foreword</h1>
|
1386
|
+
<div class='Note'>
|
1387
|
+
<p class='Note'>
|
1388
|
+
<span class='note_label'/>
|
1389
|
+
<span style='mso-tab-count:1'>  </span>
|
1390
|
+
For further information on the Foreword, see
|
1391
|
+
<b>ISO/IEC Directives, Part 2, 2016, Clause 12.</b>
|
1392
|
+
</p>
|
1393
|
+
<p class='Note'>
|
1394
|
+
<br clear='all' class='section'/>
|
1395
|
+
</p>
|
1396
|
+
</div>
|
1397
|
+
</div>
|
1430
1398
|
</div>
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1399
|
+
<div class='WordSection3_2'>
|
1400
|
+
<div align='center' class='table_container'>
|
1401
|
+
<table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
|
1402
|
+
<a name='_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249' id='_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249'/>
|
1403
|
+
<thead>
|
1404
|
+
<tr>
|
1405
|
+
<th align='left' style='font-weight:bold;border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>A</th>
|
1406
|
+
<th align='left' style='font-weight:bold;border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>B</th>
|
1407
|
+
</tr>
|
1408
|
+
</thead>
|
1409
|
+
<tbody>
|
1410
|
+
<tr>
|
1411
|
+
<td align='left' style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>C</td>
|
1412
|
+
<td align='left' style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>D</td>
|
1413
|
+
</tr>
|
1414
|
+
</tbody>
|
1415
|
+
<tfoot>
|
1416
|
+
<tr>
|
1417
|
+
<td colspan='2' style='border-top:0pt;mso-border-top-alt:0pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
|
1418
|
+
<div class='Note'>
|
1419
|
+
<a name='_8fff1596-290e-4314-b03c-7a8aab97eebe' id='_8fff1596-290e-4314-b03c-7a8aab97eebe'/>
|
1420
|
+
<p class='Note'>
|
1421
|
+
<span class='note_label'/>
|
1422
|
+
<span style='mso-tab-count:1'>  </span>
|
1423
|
+
B
|
1424
|
+
</p>
|
1425
|
+
</div>
|
1426
|
+
</td>
|
1427
|
+
</tr>
|
1428
|
+
</tfoot>
|
1429
|
+
</table>
|
1430
|
+
</div>
|
1431
|
+
<p class='Note'>
|
1432
|
+
<br clear='all' class='section'/>
|
1433
|
+
</p>
|
1434
|
+
</div>
|
1435
|
+
<div class='WordSection3_1'>
|
1436
|
+
<p class='Note'>And up</p>
|
1437
|
+
<p class='MsoNormal'>
|
1438
|
+
<br clear='all' class='section'/>
|
1439
|
+
</p>
|
1440
|
+
</div>
|
1441
|
+
<div class='WordSection3_0'>
|
1442
|
+
<div class='Section3'>
|
1443
|
+
<a name='_level_1' id='_level_1'/>
|
1444
|
+
<h1 class='Annex'>Annex 1</h1>
|
1445
|
+
</div>
|
1446
|
+
</div>
|
1447
|
+
<div style='mso-element:footnote-list'/>
|
1448
|
+
</body>
|
1434
1449
|
OUTPUT
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
</body>
|
1460
|
-
</html>
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
it "expands out nested tables in Word" do
|
1453
|
+
expect(xmlpp(IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", filename: "test"}).word_cleanup(Nokogiri::XML(<<~INPUT)).to_xml).sub(/^.*<main/m, "<main").sub(%r{</main>.*$}m, "</main>")).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1454
|
+
<html>
|
1455
|
+
<head/>
|
1456
|
+
<body>
|
1457
|
+
<div class="main-section">
|
1458
|
+
<table id="_7830dff8-419e-4b9e-85cf-a063689f44ca" class="recommend" style="border-collapse:collapse;border-spacing:0;"><thead><tr style="background:#A5A5A5;"><th style="vertical-align:top;" class="recommend" colspan="2"><p class="RecommendationTitle">Requirement 1:</p></th></tr></thead><tbody><tr><td style="vertical-align:top;" class="recommend" colspan="2"><p>requirement label</p></td></tr>
|
1459
|
+
<table id="_a0f8c202-fd34-460c-bd5e-b2f4cc29210d" class="recommend" style="border-collapse:collapse;border-spacing:0;"><thead><tr style="background:#A5A5A5;"><th style="vertical-align:top;" class="recommend" colspan="2"><p class="RecommendationTitle">Requirement 1-1:</p></th></tr></thead><tbody><tr style="background:#C9C9C9;"><td style="vertical-align:top;" class="recommend" colspan="2">
|
1460
|
+
<p id="_2e2c247b-ce4c-48c5-96dd-f3e090a5b4a7">Description text</p>
|
1461
|
+
</td></tr></tbody></table>
|
1462
|
+
</tbody></table>
|
1463
|
+
</div>
|
1464
|
+
<div id="_second_sample"><h2>1.2.<span style="mso-tab-count:1">  </span>Second sample</h2>
|
1465
|
+
<table id="_9846c486-14e5-4b1c-bb2f-55cc254dd309" class="recommend" style="border-collapse:collapse;border-spacing:0;"><thead><tr style="background:#A5A5A5;"><th style="vertical-align:top;" class="recommend" colspan="2"><p class="RecommendationTitle">Requirement 2:</p></th></tr></thead><tbody><tr><td style="vertical-align:top;" class="recommend" colspan="2"><p>requirement label</p></td></tr><table id="_62de974c-7128-44d6-ba86-99f818f1d467" class="recommend" style="border-collapse:collapse;border-spacing:0;"><thead><tr style="background:#A5A5A5;"><th style="vertical-align:top;" class="recommend" colspan="2"><p class="RecommendationTitle">Requirement 2-1:</p></th></tr></thead><tbody><tr style="background:#C9C9C9;"><td style="vertical-align:top;" class="recommend" colspan="2">
|
1466
|
+
<p id="_30b90b08-bd71-4497-bbcc-8c61fbb9f772">Description text</p>
|
1467
|
+
</td></tr></tbody></table>
|
1468
|
+
<table id="_fede5681-71f6-47bb-bc65-7bd0b11acd01" class="recommend" style="border-collapse:collapse;border-spacing:0;"><thead><tr style="background:#A5A5A5;"><th style="vertical-align:top;" class="recommend" colspan="2"><p class="RecommendationTitle">Requirement 2-2:</p></th></tr></thead><tbody><tr><td style="vertical-align:top;" class="recommend" colspan="2">
|
1469
|
+
<p id="_8daa3d74-90fd-4a57-9169-de457a68cfda">Description text</p>
|
1470
|
+
</td></tr></tbody></table></tbody></table>
|
1471
|
+
</div>
|
1472
|
+
</body>
|
1473
|
+
</html>
|
1461
1474
|
INPUT
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1475
|
+
<html>
|
1476
|
+
<head/>
|
1477
|
+
<body>
|
1478
|
+
<div class='main-section'>
|
1479
|
+
<table id='_7830dff8-419e-4b9e-85cf-a063689f44ca' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
|
1480
|
+
<thead>
|
1481
|
+
<tr style='background:#A5A5A5;'>
|
1482
|
+
<th style='vertical-align:top;' class='recommend' colspan='2'>
|
1483
|
+
<p class='RecommendationTitle'>Requirement 1:</p>
|
1484
|
+
</th>
|
1485
|
+
</tr>
|
1486
|
+
</thead>
|
1487
|
+
<tbody>
|
1488
|
+
<tr>
|
1489
|
+
<td style='vertical-align:top;' class='recommend' colspan='2'>
|
1490
|
+
<p>requirement label</p>
|
1491
|
+
</td>
|
1492
|
+
</tr>
|
1493
|
+
</tbody>
|
1494
|
+
</table>
|
1495
|
+
<table id='_a0f8c202-fd34-460c-bd5e-b2f4cc29210d' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
|
1496
|
+
<thead>
|
1497
|
+
<tr style='background:#A5A5A5;'>
|
1498
|
+
<th style='vertical-align:top;' class='recommend' colspan='2'>
|
1499
|
+
<p class='RecommendationTitle'>Requirement 1-1:</p>
|
1500
|
+
</th>
|
1501
|
+
</tr>
|
1502
|
+
</thead>
|
1503
|
+
<tbody>
|
1504
|
+
<tr style='background:#C9C9C9;'>
|
1505
|
+
<td style='vertical-align:top;' class='recommend' colspan='2'>
|
1506
|
+
<p id='_2e2c247b-ce4c-48c5-96dd-f3e090a5b4a7'>Description text</p>
|
1507
|
+
</td>
|
1508
|
+
</tr>
|
1509
|
+
</tbody>
|
1510
|
+
</table>
|
1511
|
+
</div>
|
1512
|
+
<div id='_second_sample'>
|
1513
|
+
<h2>
|
1514
|
+
1.2.
|
1515
|
+
<span style='mso-tab-count:1'>  </span>
|
1516
|
+
Second sample
|
1517
|
+
</h2>
|
1518
|
+
<table id='_9846c486-14e5-4b1c-bb2f-55cc254dd309' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
|
1519
|
+
<thead>
|
1520
|
+
<tr style='background:#A5A5A5;'>
|
1521
|
+
<th style='vertical-align:top;' class='recommend' colspan='2'>
|
1522
|
+
<p class='RecommendationTitle'>Requirement 2:</p>
|
1523
|
+
</th>
|
1524
|
+
</tr>
|
1525
|
+
</thead>
|
1526
|
+
<tbody>
|
1527
|
+
<tr>
|
1528
|
+
<td style='vertical-align:top;' class='recommend' colspan='2'>
|
1529
|
+
<p>requirement label</p>
|
1530
|
+
</td>
|
1531
|
+
</tr>
|
1532
|
+
</tbody>
|
1533
|
+
</table>
|
1534
|
+
<table id='_62de974c-7128-44d6-ba86-99f818f1d467' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
|
1535
|
+
<thead>
|
1536
|
+
<tr style='background:#A5A5A5;'>
|
1537
|
+
<th style='vertical-align:top;' class='recommend' colspan='2'>
|
1538
|
+
<p class='RecommendationTitle'>Requirement 2-1:</p>
|
1539
|
+
</th>
|
1540
|
+
</tr>
|
1541
|
+
</thead>
|
1542
|
+
<tbody>
|
1543
|
+
<tr style='background:#C9C9C9;'>
|
1544
|
+
<td style='vertical-align:top;' class='recommend' colspan='2'>
|
1545
|
+
<p id='_30b90b08-bd71-4497-bbcc-8c61fbb9f772'>Description text</p>
|
1546
|
+
</td>
|
1547
|
+
</tr>
|
1548
|
+
</tbody>
|
1549
|
+
</table>
|
1550
|
+
<table id='_fede5681-71f6-47bb-bc65-7bd0b11acd01' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
|
1551
|
+
<thead>
|
1552
|
+
<tr style='background:#A5A5A5;'>
|
1553
|
+
<th style='vertical-align:top;' class='recommend' colspan='2'>
|
1554
|
+
<p class='RecommendationTitle'>Requirement 2-2:</p>
|
1555
|
+
</th>
|
1556
|
+
</tr>
|
1557
|
+
</thead>
|
1558
|
+
<tbody>
|
1559
|
+
<tr>
|
1560
|
+
<td style='vertical-align:top;' class='recommend' colspan='2'>
|
1561
|
+
<p id='_8daa3d74-90fd-4a57-9169-de457a68cfda'>Description text</p>
|
1562
|
+
</td>
|
1563
|
+
</tr>
|
1564
|
+
</tbody>
|
1565
|
+
</table>
|
1566
|
+
</div>
|
1567
|
+
</body>
|
1568
|
+
</html>
|
1556
1569
|
OUTPUT
|
1557
|
-
|
1570
|
+
end
|
1571
|
+
|
1558
1572
|
end
|