isodoc 1.5.4 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +6 -4
  3. data/Gemfile +2 -2
  4. data/Rakefile +2 -2
  5. data/bin/rspec +1 -2
  6. data/isodoc.gemspec +11 -11
  7. data/lib/isodoc-yaml/i18n-ar.yaml +152 -0
  8. data/lib/isodoc-yaml/i18n-de.yaml +149 -0
  9. data/lib/isodoc-yaml/i18n-es.yaml +151 -0
  10. data/lib/isodoc-yaml/i18n-ru.yaml +154 -0
  11. data/lib/isodoc/base_style/all.css +7 -0
  12. data/lib/isodoc/base_style/metanorma_word.css +7 -0
  13. data/lib/isodoc/base_style/metanorma_word.scss +8 -0
  14. data/lib/isodoc/base_style/reset.css +7 -0
  15. data/lib/isodoc/base_style/reset.scss +9 -0
  16. data/lib/isodoc/base_style/scripts.html +187 -0
  17. data/lib/isodoc/class_utils.rb +6 -5
  18. data/lib/isodoc/common.rb +2 -0
  19. data/lib/isodoc/convert.rb +30 -17
  20. data/lib/isodoc/css.rb +42 -28
  21. data/lib/isodoc/function/blocks.rb +21 -4
  22. data/lib/isodoc/function/blocks_example_note.rb +2 -2
  23. data/lib/isodoc/function/cleanup.rb +1 -2
  24. data/lib/isodoc/function/form.rb +51 -0
  25. data/lib/isodoc/function/inline.rb +32 -10
  26. data/lib/isodoc/function/references.rb +55 -42
  27. data/lib/isodoc/function/table.rb +1 -0
  28. data/lib/isodoc/function/to_word_html.rb +29 -28
  29. data/lib/isodoc/function/utils.rb +41 -38
  30. data/lib/isodoc/gem_tasks.rb +30 -31
  31. data/lib/isodoc/html_convert.rb +6 -4
  32. data/lib/isodoc/html_function/form.rb +62 -0
  33. data/lib/isodoc/html_function/postprocess.rb +35 -76
  34. data/lib/isodoc/html_function/postprocess_footnotes.rb +59 -0
  35. data/lib/isodoc/i18n.rb +33 -31
  36. data/lib/isodoc/pdf_convert.rb +1 -3
  37. data/lib/isodoc/presentation_function/bibdata.rb +13 -10
  38. data/lib/isodoc/presentation_function/block.rb +17 -8
  39. data/lib/isodoc/presentation_function/inline.rb +75 -118
  40. data/lib/isodoc/presentation_function/math.rb +84 -0
  41. data/lib/isodoc/presentation_function/section.rb +20 -22
  42. data/lib/isodoc/presentation_xml_convert.rb +2 -1
  43. data/lib/isodoc/sassc_importer.rb +1 -1
  44. data/lib/isodoc/version.rb +1 -1
  45. data/lib/isodoc/word_function/body.rb +28 -24
  46. data/lib/isodoc/word_function/footnotes.rb +22 -15
  47. data/lib/isodoc/word_function/postprocess.rb +16 -6
  48. data/lib/isodoc/xref.rb +10 -11
  49. data/lib/isodoc/xref/xref_counter.rb +32 -17
  50. data/lib/isodoc/xref/xref_gen.rb +45 -32
  51. data/lib/isodoc/xref/xref_sect_gen.rb +33 -31
  52. data/lib/isodoc/xslfo_convert.rb +36 -25
  53. data/spec/assets/html_override.css +1 -0
  54. data/spec/assets/word_override.css +1 -0
  55. data/spec/isodoc/blocks_spec.rb +2518 -2570
  56. data/spec/isodoc/cleanup_spec.rb +1107 -1109
  57. data/spec/isodoc/footnotes_spec.rb +1 -16
  58. data/spec/isodoc/form_spec.rb +156 -0
  59. data/spec/isodoc/i18n_spec.rb +984 -972
  60. data/spec/isodoc/inline_spec.rb +984 -920
  61. data/spec/isodoc/lists_spec.rb +316 -315
  62. data/spec/isodoc/postproc_spec.rb +1692 -1538
  63. data/spec/isodoc/presentation_xml_spec.rb +345 -342
  64. data/spec/isodoc/ref_spec.rb +718 -723
  65. data/spec/isodoc/section_spec.rb +910 -902
  66. data/spec/isodoc/table_spec.rb +566 -556
  67. data/spec/isodoc/terms_spec.rb +252 -256
  68. data/spec/isodoc/xref_spec.rb +3040 -2985
  69. data/spec/isodoc/xslfo_convert_spec.rb +39 -0
  70. data/spec/spec_helper.rb +30 -29
  71. metadata +80 -70
  72. data/.rubocop.ribose.yml +0 -65
  73. data/.rubocop.tb.yml +0 -650
  74. data/lib/twitter-cldr/patch.rb +0 -39
@@ -3,21 +3,28 @@
3
3
  require "spec_helper"
4
4
  require "fileutils"
5
5
 
6
+ OPTIONS = { wordstylesheet: "spec/assets/word.css",
7
+ htmlstylesheet: "spec/assets/html.scss" }
8
+
6
9
  RSpec.describe IsoDoc do
7
10
  it "generates file based on string input" do
8
11
  FileUtils.rm_f "test.doc"
9
12
  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>
13
+ IsoDoc::HtmlConvert.new(
14
+ { wordstylesheet: "spec/assets/word.css",
15
+ htmlstylesheet: "spec/assets/html.scss",
16
+ filename: "test" },
17
+ ).convert("test", <<~"INPUT", false)
18
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
19
+ <bibdata>
20
+ <title language="en">test</title>
21
+ </bibdata>
22
+ <preface><foreword>
23
+ <note>
24
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
25
+ </note>
26
+ </foreword></preface>
27
+ </iso-standard>
21
28
  INPUT
22
29
  expect(File.exist?("test.html")).to be true
23
30
  html = File.read("test.html")
@@ -27,55 +34,71 @@ RSpec.describe IsoDoc do
27
34
  expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
28
35
  end
29
36
 
37
+ it "generates file in a remote directory" do
38
+ FileUtils.rm_f "spec/assets/test.doc"
39
+ FileUtils.rm_f "spec/assets/test.html"
40
+ IsoDoc::HtmlConvert.new(
41
+ { wordstylesheet: "word.css",
42
+ htmlstylesheet: "html.scss",
43
+ filename: "test" },
44
+ ).convert("spec/assets/test", <<~"INPUT", false)
45
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
46
+ <bibdata>
47
+ <title language="en">test</title>
48
+ </bibdata>
49
+ <preface><foreword>
50
+ <note>
51
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
52
+ </note>
53
+ </foreword></preface>
54
+ </iso-standard>
55
+ INPUT
56
+ expect(File.exist?("spec/assets/test.html")).to be true
57
+ html = File.read("spec/assets/test.html")
58
+ expect(html).to match(%r{<title>test</title>})
59
+ expect(html).to match(/another empty stylesheet/)
60
+ end
61
+
30
62
  it "ignores Liquid markup in the document body" do
31
63
  FileUtils.rm_f "test.doc"
32
64
  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
- INPUT
45
- expect(File.exist?("test.html")).to be true
65
+ input = <<~INPUT
66
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
67
+ <bibdata>
68
+ <title language="en">test</title>
69
+ </bibdata>
70
+ <preface><foreword>
71
+ <note>
72
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">{% elif %}These results are based on a study carried out on three different types of kernel.</p>
73
+ </note>
74
+ </foreword></preface>
75
+ </iso-standard>
76
+ INPUT
77
+ IsoDoc::HtmlConvert.new(wordstylesheet: "spec/assets/word.css")
78
+ .convert("test", input, false)
79
+ IsoDoc::WordConvert.new({ wordstylesheet: "spec/assets/word.css" })
80
+ .convert("test", input, false)
81
+ expect(File.exist?("test.html")).to be true
46
82
  html = File.read("test.html")
47
- end
83
+ expect(html).to match(%r/\{% elif %}/)
48
84
 
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
- INPUT
64
- expect(File.exist?("test.doc")).to be true
85
+ expect(File.exist?("test.doc")).to be true
65
86
  html = File.read("test.doc")
87
+ expect(html).to match(%r/\{% elif %}/)
66
88
  end
67
89
 
68
90
  it "generates HTML output docs with null configuration" do
69
91
  FileUtils.rm_f "test.doc"
70
92
  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>
93
+ IsoDoc::HtmlConvert.new({ wordstylesheet: "spec/assets/word.css" })
94
+ .convert("test", <<~"INPUT", false)
95
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
96
+ <preface><foreword>
97
+ <note>
98
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
99
+ </note>
100
+ </foreword></preface>
101
+ </iso-standard>
79
102
  INPUT
80
103
  expect(File.exist?("test.html")).to be true
81
104
  html = File.read("test.html")
@@ -83,40 +106,53 @@ expect(File.exist?("test.doc")).to be true
83
106
  expect(html).not_to match(/another empty stylesheet/)
84
107
  expect(html).to match(%r{cdnjs\.cloudflare\.com/ajax/libs/mathjax/})
85
108
  expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
109
+ expect(html).not_to match(/html-override/)
86
110
  end
87
111
 
88
112
  it "generates Word output docs with null configuration" do
89
113
  FileUtils.rm_f "test.doc"
90
114
  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>
115
+ IsoDoc::WordConvert.new(
116
+ { wordstylesheet: "spec/assets/word.css",
117
+ htmlstylesheet: "spec/assets/html.scss" },
118
+ ).convert("test", <<~"INPUT", false)
119
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
120
+ <preface><foreword>
121
+ <note>
122
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
123
+ </note>
124
+ </foreword></preface>
125
+ </iso-standard>
99
126
  INPUT
100
127
  expect(File.exist?("test.doc")).to be true
101
128
  word = File.read("test.doc")
102
129
  expect(word).to match(/one empty stylesheet/)
103
130
  expect(word).to match(/div\.table_container/)
131
+ expect(word).not_to match(/word-override/)
104
132
  end
105
133
 
106
134
  it "generates HTML output docs with null configuration from file" do
107
135
  FileUtils.rm_f "spec/assets/iso.doc"
108
136
  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)
137
+ IsoDoc::HtmlConvert.new(
138
+ { wordstylesheet: "word.css",
139
+ htmlstylesheet: "html.scss" },
140
+ ).convert("spec/assets/iso.xml", nil, false)
110
141
  expect(File.exist?("spec/assets/iso.html")).to be true
111
142
  html = File.read("spec/assets/iso.html")
112
143
  expect(html).to match(/another empty stylesheet/)
113
144
  expect(html).to match(%r{https://use.fontawesome.com})
114
145
  expect(html).to match(%r{libs/jquery})
146
+ expect(html).to include "$('#toggle')"
147
+ expect(html).not_to match(/CDATA/)
115
148
  end
116
149
 
117
150
  it "generates Headless HTML output docs with null configuration from file" do
118
151
  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)
152
+ IsoDoc::HeadlessHtmlConvert.new(
153
+ { wordstylesheet: "word.css",
154
+ htmlstylesheet: "html.scss" },
155
+ ).convert("spec/assets/iso.xml", nil, false)
120
156
  expect(File.exist?("spec/assets/iso.headless.html")).to be true
121
157
  html = File.read("spec/assets/iso.headless.html")
122
158
  expect(html).not_to match(/another empty stylesheet/)
@@ -130,7 +166,10 @@ expect(File.exist?("test.doc")).to be true
130
166
 
131
167
  it "generates Word output docs with null configuration from file" do
132
168
  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)
169
+ IsoDoc::WordConvert.new(
170
+ { wordstylesheet: "word.css",
171
+ htmlstylesheet: "html.scss" },
172
+ ).convert("spec/assets/iso.xml", nil, false)
134
173
  expect(File.exist?("spec/assets/iso.doc")).to be true
135
174
  word = File.read("spec/assets/iso.doc")
136
175
  expect(word).to match(/one empty stylesheet/)
@@ -139,14 +178,30 @@ expect(File.exist?("test.doc")).to be true
139
178
  it "generates HTML output docs with complete configuration" do
140
179
  FileUtils.rm_f "test.doc"
141
180
  FileUtils.rm_f "test.html"
142
- IsoDoc::HtmlConvert.new({bodyfont: "Zapf", monospacefont: "Consolas", headerfont: "Comic Sans", normalfontsize: "30pt", monospacefontsize: "29pt", smallerfontsize: "28pt", footnotefontsize: "27pt", 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>
181
+ IsoDoc::HtmlConvert.new(
182
+ { bodyfont: "Zapf",
183
+ monospacefont: "Consolas",
184
+ headerfont: "Comic Sans",
185
+ normalfontsize: "30pt",
186
+ monospacefontsize: "29pt",
187
+ smallerfontsize: "28pt",
188
+ footnotefontsize: "27pt",
189
+ htmlstylesheet: "spec/assets/html.scss",
190
+ htmlstylesheet_override: "spec/assets/html_override.css",
191
+ htmlcoverpage: "spec/assets/htmlcover.html",
192
+ htmlintropage: "spec/assets/htmlintro.html",
193
+ scripts: "spec/assets/scripts.html",
194
+ i18nyaml: "spec/assets/i18n.yaml",
195
+ ulstyle: "l1",
196
+ olstyle: "l2" },
197
+ ).convert("test", <<~"INPUT", false)
198
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
199
+ <preface><foreword>
200
+ <note>
201
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
202
+ </note>
203
+ </foreword></preface>
204
+ </iso-standard>
150
205
  INPUT
151
206
  html = File.read("test.html")
152
207
  expect(html).to match(/another empty stylesheet/)
@@ -162,19 +217,28 @@ expect(File.exist?("test.doc")).to be true
162
217
  expect(html).to match(/This is > a script/)
163
218
  expect(html).not_to match(/CDATA/)
164
219
  expect(html).to match(%r{Anta&#x16D;parolo</h1>})
220
+ expect(html).to match(%r{html-override})
165
221
  end
166
222
 
167
223
  it "generates HTML output docs with default fonts" do
168
224
  FileUtils.rm_f "test.doc"
169
225
  FileUtils.rm_f "test.html"
170
- 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)
171
- <iso-standard xmlns="http://riboseinc.com/isoxml">
172
- <preface><foreword>
173
- <note>
174
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
175
- </note>
176
- </foreword></preface>
177
- </iso-standard>
226
+ IsoDoc::HtmlConvert.new(
227
+ { htmlstylesheet: "spec/assets/html.scss",
228
+ htmlcoverpage: "spec/assets/htmlcover.html",
229
+ htmlintropage: "spec/assets/htmlintro.html",
230
+ scripts: "spec/assets/scripts.html",
231
+ i18nyaml: "spec/assets/i18n.yaml",
232
+ ulstyle: "l1",
233
+ olstyle: "l2" },
234
+ ).convert("test", <<~"INPUT", false)
235
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
236
+ <preface><foreword>
237
+ <note>
238
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
239
+ </note>
240
+ </foreword></preface>
241
+ </iso-standard>
178
242
  INPUT
179
243
  html = File.read("test.html")
180
244
  expect(html).to match(/another empty stylesheet/)
@@ -195,14 +259,31 @@ expect(File.exist?("test.doc")).to be true
195
259
  it "generates Word output docs with complete configuration" do
196
260
  FileUtils.rm_f "test.doc"
197
261
  FileUtils.rm_f "test.html"
198
- IsoDoc::WordConvert.new({bodyfont: "Zapf", monospacefont: "Consolas", headerfont: "Comic Sans", normalfontsize: "30pt", monospacefontsize: "29pt", smallerfontsize: "28pt", footnotefontsize: "27pt", 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)
199
- <iso-standard xmlns="http://riboseinc.com/isoxml">
200
- <preface><foreword>
201
- <note>
202
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
203
- </note>
204
- </foreword></preface>
205
- </iso-standard>
262
+ IsoDoc::WordConvert.new(
263
+ { bodyfont: "Zapf",
264
+ monospacefont: "Consolas",
265
+ headerfont: "Comic Sans",
266
+ normalfontsize: "30pt",
267
+ monospacefontsize: "29pt",
268
+ smallerfontsize: "28pt",
269
+ footnotefontsize: "27pt",
270
+ wordstylesheet: "spec/assets/html.scss",
271
+ wordstylesheet_override: "spec/assets/word_override.css",
272
+ standardstylesheet: "spec/assets/std.css",
273
+ header: "spec/assets/header.html",
274
+ wordcoverpage: "spec/assets/wordcover.html",
275
+ wordintropage: "spec/assets/wordintro.html",
276
+ i18nyaml: "spec/assets/i18n.yaml",
277
+ ulstyle: "l1",
278
+ olstyle: "l2" },
279
+ ).convert("test", <<~"INPUT", false)
280
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
281
+ <preface><foreword>
282
+ <note>
283
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
284
+ </note>
285
+ </foreword></preface>
286
+ </iso-standard>
206
287
  INPUT
207
288
  word = File.read("test.doc")
208
289
  expect(word).to match(/another empty stylesheet/)
@@ -214,24 +295,34 @@ expect(File.exist?("test.doc")).to be true
214
295
  expect(word).to match(/p\.note \{[^}]*?font-size: 28pt/m)
215
296
  expect(word).to match(/aside \{[^}]*?font-size: 27pt/m)
216
297
  expect(word).to match(/a third empty stylesheet/)
217
- #expect(word).to match(/<title>test<\/title>/)
218
- expect(word).to match(/test_files\/header.html/)
298
+ expect(word)
299
+ .to match(/Content-Disposition: inline; filename="filelist.xml"/)
219
300
  expect(word).to match(/an empty word cover page/)
220
301
  expect(word).to match(/an empty word intro page/)
221
302
  expect(word).to match(%r{Anta&#x16D;parolo</h1>})
303
+ expect(word).to match(%r{word-override})
222
304
  end
223
305
 
224
306
  it "generates Word output docs with default fonts" do
225
307
  FileUtils.rm_f "test.doc"
226
308
  FileUtils.rm_f "test.html"
227
- 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)
228
- <iso-standard xmlns="http://riboseinc.com/isoxml">
229
- <preface><foreword>
230
- <note>
231
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
232
- </note>
233
- </foreword></preface>
234
- </iso-standard>
309
+ IsoDoc::WordConvert.new(
310
+ { wordstylesheet: "spec/assets/html.scss",
311
+ standardstylesheet: "spec/assets/std.css",
312
+ header: "spec/assets/header.html",
313
+ wordcoverpage: "spec/assets/wordcover.html",
314
+ wordintropage: "spec/assets/wordintro.html",
315
+ i18nyaml: "spec/assets/i18n.yaml",
316
+ ulstyle: "l1",
317
+ olstyle: "l2" },
318
+ ).convert("test", <<~"INPUT", false)
319
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
320
+ <preface><foreword>
321
+ <note>
322
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
323
+ </note>
324
+ </foreword></preface>
325
+ </iso-standard>
235
326
  INPUT
236
327
  word = File.read("test.doc")
237
328
  expect(word).to match(/another empty stylesheet/)
@@ -243,8 +334,9 @@ expect(File.exist?("test.doc")).to be true
243
334
  expect(word).to match(/p\.note \{[^}]*?font-size: 10pt/m)
244
335
  expect(word).to match(/aside \{[^}]*?font-size: 9pt/m)
245
336
  expect(word).to match(/a third empty stylesheet/)
246
- #expect(word).to match(/<title>test<\/title>/)
247
- expect(word).to match(/test_files\/header.html/)
337
+ # expect(word).to match(/<title>test<\/title>/)
338
+ expect(word)
339
+ .to match(/Content-Disposition: inline; filename="filelist.xml"/)
248
340
  expect(word).to match(/an empty word cover page/)
249
341
  expect(word).to match(/an empty word intro page/)
250
342
  expect(word).to match(%r{Anta&#x16D;parolo</h1>})
@@ -253,370 +345,408 @@ expect(File.exist?("test.doc")).to be true
253
345
  it "converts definition lists to tables for Word" do
254
346
  FileUtils.rm_f "test.doc"
255
347
  FileUtils.rm_f "test.html"
256
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
257
- <iso-standard xmlns="http://riboseinc.com/isoxml">
258
- <preface><foreword>
259
- <dl>
260
- <dt>Term</dt>
261
- <dd>Definition</dd>
262
- <dt>Term 2</dt>
263
- <dd>Definition 2</dd>
264
- </dl>
265
- </foreword></preface>
266
- </iso-standard>
348
+ IsoDoc::WordConvert.new(
349
+ { wordstylesheet: "spec/assets/word.css",
350
+ htmlstylesheet: "spec/assets/html.scss" },
351
+ ).convert("test", <<~"INPUT", false)
352
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
353
+ <preface><foreword>
354
+ <dl>
355
+ <dt>Term</dt>
356
+ <dd>Definition</dd>
357
+ <dt>Term 2</dt>
358
+ <dd>Definition 2</dd>
359
+ </dl>
360
+ </foreword></preface>
361
+ </iso-standard>
267
362
  INPUT
268
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
269
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
363
+ word = File.read("test.doc")
364
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">')
365
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
270
366
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
271
- <div class="WordSection2">
272
- <p class="MsoNormal"><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
273
- <div>
274
- <h1 class="ForewordTitle">Foreword</h1>
275
- <table class="dl">
276
- <tr>
277
- <td valign="top" align="left">
278
- <p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal">Term</p>
279
- </td>
280
- <td valign="top">Definition</td>
281
- </tr>
282
- <tr>
283
- <td valign="top" align="left">
284
- <p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal">Term 2</p>
285
- </td>
286
- <td valign="top">Definition 2</td>
287
- </tr>
288
- </table>
289
- </div>
290
- <p class="MsoNormal">&#xA0;</p>
367
+ <div class="WordSection2">
368
+ <p class="MsoNormal"><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
369
+ <div>
370
+ <h1 class="ForewordTitle">Foreword</h1>
371
+ <table class="dl">
372
+ <tr>
373
+ <td valign="top" align="left">
374
+ <p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal">Term</p>
375
+ </td>
376
+ <td valign="top">Definition</td>
377
+ </tr>
378
+ <tr>
379
+ <td valign="top" align="left">
380
+ <p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal">Term 2</p>
381
+ </td>
382
+ <td valign="top">Definition 2</td>
383
+ </tr>
384
+ </table>
291
385
  </div>
386
+ <p class="MsoNormal">&#xA0;</p>
387
+ </div>
292
388
  OUTPUT
293
389
  end
294
390
 
295
391
  it "populates Word template with terms reference labels" do
296
392
  FileUtils.rm_f "test.doc"
297
393
  FileUtils.rm_f "test.html"
298
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
299
- <iso-standard xmlns="http://riboseinc.com/isoxml">
300
- <sections>
301
- <terms id="_terms_and_definitions" obligation="normative"><title>1.<tab/>Terms and Definitions</title>
302
- <term id="paddy1"><name>1.1.</name><preferred>paddy</preferred>
303
- <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
304
- <termsource status="modified">
305
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">ISO 7301:2011, Clause 3.1</origin>
306
- <modification>
307
- <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>
308
- </modification>
309
- </termsource></term>
310
- </terms>
311
- </sections>
312
- </iso-standard>
394
+ IsoDoc::WordConvert.new(
395
+ { wordstylesheet: "spec/assets/word.css",
396
+ htmlstylesheet: "spec/assets/html.scss" },
397
+ ).convert("test", <<~"INPUT", false)
398
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
399
+ <sections>
400
+ <terms id="_terms_and_definitions" obligation="normative"><title>1.<tab/>Terms and Definitions</title>
401
+ <term id="paddy1"><name>1.1.</name><preferred>paddy</preferred>
402
+ <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
403
+ <termsource status="modified">
404
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">ISO 7301:2011, Clause 3.1</origin>
405
+ <modification>
406
+ <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>
407
+ </modification>
408
+ </termsource></term>
409
+ </terms>
410
+ </sections>
411
+ </iso-standard>
313
412
  INPUT
314
- word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
315
- sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
413
+ word = File.read("test.doc")
414
+ .sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">')
415
+ .sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
316
416
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
317
- <div class="WordSection3">
318
- <p class="zzSTDTitle1"></p>
319
- <div><a name="_terms_and_definitions" id="_terms_and_definitions"></a><h1>1.<span style="mso-tab-count:1">&#xA0; </span>Terms and Definitions</h1>
320
- <p class="TermNum"><a name="paddy1" id="paddy1"></a>1.1.</p><p class="Terms" style="text-align:left;">paddy</p>
321
- <p class="MsoNormal"><a name="_eb29b35e-123e-4d1c-b50b-2714d41e747f" id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"></a>rice retaining its husk after threshing</p>
322
- <p class="MsoNormal">[SOURCE: <a href="#ISO7301">ISO 7301:2011, Clause 3.1</a>, modified &#x2014; The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p></div>
323
- </div>
417
+ <div class="WordSection3">
418
+ <p class="zzSTDTitle1"></p>
419
+ <div><a name="_terms_and_definitions" id="_terms_and_definitions"></a><h1>1.<span style="mso-tab-count:1">&#xA0; </span>Terms and Definitions</h1>
420
+ <p class="TermNum"><a name="paddy1" id="paddy1"></a>1.1.</p><p class="Terms" style="text-align:left;">paddy</p>
421
+ <p class="MsoNormal"><a name="_eb29b35e-123e-4d1c-b50b-2714d41e747f" id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"></a>rice retaining its husk after threshing</p>
422
+ <p class="MsoNormal">[SOURCE: <a href="#ISO7301">ISO 7301:2011, Clause 3.1</a>, modified &#x2014; The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p></div>
423
+ </div>
324
424
  OUTPUT
325
425
  end
326
426
 
327
427
  it "populates Word header" do
328
428
  FileUtils.rm_f "test.doc"
329
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", header: "spec/assets/header.html"}).convert("test", <<~"INPUT", false)
330
- <iso-standard xmlns="http://riboseinc.com/isoxml">
331
- <bibdata type="article">
332
- <docidentifier>
333
- <project-number part="1">1000</project-number>
334
- </docidentifier>
335
- </bibdata>
336
- </iso-standard>
429
+ IsoDoc::WordConvert.new(
430
+ { wordstylesheet: "spec/assets/word.css",
431
+ htmlstylesheet: "spec/assets/html.scss",
432
+ header: "spec/assets/header.html" },
433
+ ).convert("test", <<~"INPUT", false)
434
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
435
+ <bibdata type="article">
436
+ <docidentifier>
437
+ <project-number part="1">1000</project-number>
438
+ </docidentifier>
439
+ </bibdata>
440
+ </iso-standard>
337
441
  INPUT
338
- 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").
339
- sub(/------=_NextPart.*$/m, "")
442
+ word = File.read("test.doc")
443
+ .sub(%r{^.*Content-ID: <header.html>}m, "Content-ID: <header.html>")
444
+ .sub(/------=_NextPart.*$/m, "")
340
445
  expect(word).to be_equivalent_to <<~"OUTPUT"
341
- Content-Location: file:///C:/Doc/test_files/header.html
342
- Content-Transfer-Encoding: base64
343
- Content-Type: text/html charset="utf-8"
344
- Ci8qIGFuIGVtcHR5IGhlYWRlciAqLwoKU1RBUlQgRE9DIElEOiAKICAgICAgICAgICAxMDAwCiAg
345
- ICAgICAgIDogRU5EIERPQyBJRAoKRklMRU5BTUU6IHRlc3QKCg==
446
+ Content-ID: <header.html>
447
+ Content-Disposition: inline; filename="header.html"
448
+ Content-Transfer-Encoding: base64
449
+ Content-Type: text/html charset="utf-8"
450
+ Ci8qIGFuIGVtcHR5IGhlYWRlciAqLwoKU1RBUlQgRE9DIElEOiAKICAgICAgICAgICAxMDAwCiAg
451
+ ICAgICAgIDogRU5EIERPQyBJRAoKRklMRU5BTUU6IHRlc3QKCg==
346
452
  OUTPUT
347
453
  end
348
454
 
349
455
  it "populates Word ToC" do
350
456
  FileUtils.rm_f "test.doc"
351
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", wordintropage: "spec/assets/wordintro.html"}).convert("test", <<~"INPUT", false)
352
- <iso-standard xmlns="http://riboseinc.com/isoxml">
353
- <sections>
354
- <clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
355
- <title>Introduction<bookmark id="Q"/> to this<fn reference="1">
356
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
357
- </fn></title>
358
- </clause>
359
- <clause id="O" inline-header="false" obligation="normative">
360
- <title>Clause 4.2</title>
361
- <p>A<fn reference="1">
362
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
363
- </fn></p>
364
- <clause id="P" inline-header="false" obligation="normative">
365
- <title>Clause 4.2.1</title>
366
- </clause>
367
- </clause></clause>
368
- </sections>
369
- </iso-standard>
457
+ IsoDoc::WordConvert.new(
458
+ { wordstylesheet: "spec/assets/word.css",
459
+ htmlstylesheet: "spec/assets/html.scss",
460
+ wordintropage: "spec/assets/wordintro.html" },
461
+ ).convert("test", <<~"INPUT", false)
462
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
463
+ <sections>
464
+ <clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
465
+ <title>Introduction<bookmark id="Q"/> to this <image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/> <fn reference="1">
466
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
467
+ </fn></title>
468
+ </clause>
469
+ <clause id="O" inline-header="false" obligation="normative">
470
+ <title>Clause 4.2</title>
471
+ <p>A<fn reference="1">
472
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
473
+ </fn></p>
474
+ <clause id="P" inline-header="false" obligation="normative">
475
+ <title>Clause 4.2.1</title>
476
+ </clause>
477
+ </clause></clause>
478
+ </sections>
479
+ </iso-standard>
370
480
  INPUT
371
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
372
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
373
- expect(xmlpp(word.gsub(/_Toc\d\d+/, "_Toc"))).to be_equivalent_to xmlpp(<<~'OUTPUT')
374
- <div class="WordSection2">
375
- /* an empty word intro page */
481
+ word = File.read("test.doc")
482
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">')
483
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
484
+ expect(xmlpp(word.gsub(/_Toc\d\d+/, "_Toc")))
485
+ .to be_equivalent_to xmlpp(<<~'OUTPUT')
486
+ <div class="WordSection2">
487
+ /* an empty word intro page */
376
488
 
377
- <p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
378
- \o "1-2" \h \z \u <span style="mso-element:field-separator"></span></span>
379
- <span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
380
- <a href="#_Toc">Clause 4<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
381
- <span style="mso-tab-count:1 dotted">. </span>
382
- </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
383
- <span style="mso-element:field-begin"></span></span>
384
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
385
- <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>
386
- <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>
387
- <p class="MsoToc2">
388
- <span class="MsoHyperlink">
389
- <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
390
- <a href="#_Toc">Introduction to this<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
391
- <span style="mso-tab-count:1 dotted">. </span>
392
- </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
393
- <span style="mso-element:field-begin"></span></span>
394
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
395
- <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>
396
- <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>
397
- </span>
398
- </p>
399
- <p class="MsoToc2">
400
- <span class="MsoHyperlink">
401
- <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
402
- <a href="#_Toc">Clause 4.2<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
403
- <span style="mso-tab-count:1 dotted">. </span>
404
- </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
405
- <span style="mso-element:field-begin"></span></span>
406
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
407
- <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>
408
- <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>
409
- </span>
410
- </p>
411
- <p class="MsoToc1">
412
- <span lang="EN-GB" xml:lang="EN-GB">
413
- <span style="mso-element:field-end"></span>
414
- </span>
415
- <span lang="EN-GB" xml:lang="EN-GB">
416
- <p class="MsoNormal">&#xA0;</p>
417
- </span>
418
- </p>
419
- <p class="MsoNormal">&#xA0;</p>
420
- </div>
421
- OUTPUT
489
+ <p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
490
+ \o "1-2" \h \z \u <span style="mso-element:field-separator"></span></span>
491
+ <span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
492
+ <a href="#_Toc">Clause 4<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
493
+ <span style="mso-tab-count:1 dotted">. </span>
494
+ </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
495
+ <span style="mso-element:field-begin"></span></span>
496
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
497
+ <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>
498
+ <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>
499
+ <p class="MsoToc2">
500
+ <span class="MsoHyperlink">
501
+ <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
502
+ <a href="#_Toc">Introduction to this<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
503
+ <span style="mso-tab-count:1 dotted">. </span>
504
+ </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
505
+ <span style="mso-element:field-begin"></span></span>
506
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
507
+ <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>
508
+ <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>
509
+ </span>
510
+ </p>
511
+ <p class="MsoToc2">
512
+ <span class="MsoHyperlink">
513
+ <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
514
+ <a href="#_Toc">Clause 4.2<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
515
+ <span style="mso-tab-count:1 dotted">. </span>
516
+ </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
517
+ <span style="mso-element:field-begin"></span></span>
518
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
519
+ <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>
520
+ <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>
521
+ </span>
522
+ </p>
523
+ <p class="MsoToc1">
524
+ <span lang="EN-GB" xml:lang="EN-GB">
525
+ <span style="mso-element:field-end"></span>
526
+ </span>
527
+ <span lang="EN-GB" xml:lang="EN-GB">
528
+ <p class="MsoNormal">&#xA0;</p>
529
+ </span>
530
+ </p>
531
+ <p class="MsoNormal">&#xA0;</p>
532
+ </div>
533
+ OUTPUT
422
534
  end
423
535
 
424
- it "populates Word ToC with custom levels" do
536
+ it "populates Word ToC with custom levels" do
425
537
  FileUtils.rm_f "test.doc"
426
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", wordintropage: "spec/assets/wordintro.html", doctoclevels: 3}).convert("test", <<~"INPUT", false)
427
- <iso-standard xmlns="http://riboseinc.com/isoxml">
428
- <sections>
429
- <clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
430
- <title>Introduction<bookmark id="Q"/> to this<fn reference="1">
431
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
432
- </fn></title>
433
- </clause>
434
- <clause id="O" inline-header="false" obligation="normative">
435
- <title>Clause 4.2</title>
436
- <p>A<fn reference="1">
437
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
438
- </fn></p>
439
- <clause id="P" inline-header="false" obligation="normative">
440
- <title>Clause 4.2.1</title>
441
- </clause>
442
- </clause></clause>
443
- </sections>
444
- </iso-standard>
538
+ IsoDoc::WordConvert.new(
539
+ { wordstylesheet: "spec/assets/word.css",
540
+ htmlstylesheet: "spec/assets/html.scss",
541
+ wordintropage: "spec/assets/wordintro.html",
542
+ doctoclevels: 3 },
543
+ ).convert("test", <<~"INPUT", false)
544
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
545
+ <sections>
546
+ <clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
547
+ <title>Introduction<bookmark id="Q"/> to this<fn reference="1">
548
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
549
+ </fn></title>
550
+ </clause>
551
+ <clause id="O" inline-header="false" obligation="normative">
552
+ <title>Clause 4.2</title>
553
+ <p>A<fn reference="1">
554
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
555
+ </fn></p>
556
+ <clause id="P" inline-header="false" obligation="normative">
557
+ <title>Clause 4.2.1</title>
558
+ </clause>
559
+ </clause></clause>
560
+ </sections>
561
+ </iso-standard>
445
562
  INPUT
446
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
447
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
448
- expect(xmlpp(word.gsub(/_Toc\d\d+/, "_Toc"))).to be_equivalent_to xmlpp(<<~'OUTPUT')
449
- <div class="WordSection2">
450
- /* an empty word intro page */
563
+ word = File.read("test.doc")
564
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">')
565
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
566
+ expect(xmlpp(word.gsub(/_Toc\d\d+/, "_Toc")))
567
+ .to be_equivalent_to xmlpp(<<~'OUTPUT')
568
+ <div class="WordSection2">
569
+ /* an empty word intro page */
451
570
 
452
- <p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
453
- \o "1-3" \h \z \u <span style="mso-element:field-separator"></span></span>
454
- <span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
455
- <a href="#_Toc">Clause 4<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
456
- <span style="mso-tab-count:1 dotted">. </span>
457
- </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
458
- <span style="mso-element:field-begin"></span></span>
459
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
460
- <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>
461
- <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>
462
- <p class="MsoToc2">
463
- <span class="MsoHyperlink">
464
- <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
465
- <a href="#_Toc">Introduction to this<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="MsoToc2">
475
- <span class="MsoHyperlink">
476
- <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
477
- <a href="#_Toc">Clause 4.2<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
478
- <span style="mso-tab-count:1 dotted">. </span>
479
- </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
480
- <span style="mso-element:field-begin"></span></span>
481
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
482
- <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>
483
- <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>
484
- </span>
485
- </p>
486
- <p class="MsoToc3">
487
- <span class="MsoHyperlink">
488
- <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
489
- <a href="#_Toc">Clause 4.2.1<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
490
- <span style="mso-tab-count:1 dotted">. </span>
491
- </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
492
- <span style="mso-element:field-begin"></span></span>
493
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
494
- <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>
495
- <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>
496
- </span>
497
- </p>
498
- <p class="MsoToc1">
499
- <span lang="EN-GB" xml:lang="EN-GB">
500
- <span style="mso-element:field-end"></span>
501
- </span>
502
- <span lang="EN-GB" xml:lang="EN-GB">
503
- <p class="MsoNormal">&#xA0;</p>
504
- </span>
505
- </p>
506
- <p class="MsoNormal">&#xA0;</p>
507
- </div>
571
+ <p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
572
+ \o "1-3" \h \z \u <span style="mso-element:field-separator"></span></span>
573
+ <span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
574
+ <a href="#_Toc">Clause 4<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
575
+ <span style="mso-tab-count:1 dotted">. </span>
576
+ </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
577
+ <span style="mso-element:field-begin"></span></span>
578
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
579
+ <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>
580
+ <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>
581
+ <p class="MsoToc2">
582
+ <span class="MsoHyperlink">
583
+ <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
584
+ <a href="#_Toc">Introduction to this<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
585
+ <span style="mso-tab-count:1 dotted">. </span>
586
+ </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
587
+ <span style="mso-element:field-begin"></span></span>
588
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
589
+ <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>
590
+ <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>
591
+ </span>
592
+ </p>
593
+ <p class="MsoToc2">
594
+ <span class="MsoHyperlink">
595
+ <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
596
+ <a href="#_Toc">Clause 4.2<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
597
+ <span style="mso-tab-count:1 dotted">. </span>
598
+ </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
599
+ <span style="mso-element:field-begin"></span></span>
600
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
601
+ <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>
602
+ <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>
603
+ </span>
604
+ </p>
605
+ <p class="MsoToc3">
606
+ <span class="MsoHyperlink">
607
+ <span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
608
+ <a href="#_Toc">Clause 4.2.1<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
609
+ <span style="mso-tab-count:1 dotted">. </span>
610
+ </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
611
+ <span style="mso-element:field-begin"></span></span>
612
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc \h </span>
613
+ <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>
614
+ <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>
615
+ </span>
616
+ </p>
617
+ <p class="MsoToc1">
618
+ <span lang="EN-GB" xml:lang="EN-GB">
619
+ <span style="mso-element:field-end"></span>
620
+ </span>
621
+ <span lang="EN-GB" xml:lang="EN-GB">
622
+ <p class="MsoNormal">&#xA0;</p>
623
+ </span>
624
+ </p>
625
+ <p class="MsoNormal">&#xA0;</p>
626
+ </div>
508
627
  OUTPUT
509
- end
628
+ end
510
629
 
511
- it "generates HTML output with custom ToC levels function" do
630
+ it "generates HTML output with custom ToC levels function" do
512
631
  FileUtils.rm_f "test.doc"
513
632
  FileUtils.rm_f "test.html"
514
- IsoDoc::HtmlConvert.new({htmltoclevels: 3}).convert("test", <<~"INPUT", false)
515
- <iso-standard xmlns="http://riboseinc.com/isoxml">
516
- <preface><foreword>
517
- <note>
518
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
519
- </note>
520
- </foreword></preface>
521
- </iso-standard>
633
+ IsoDoc::HtmlConvert.new({ htmltoclevels: 3 })
634
+ .convert("test", <<~"INPUT", false)
635
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
636
+ <preface><foreword>
637
+ <note>
638
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
639
+ </note>
640
+ </foreword></preface>
641
+ </iso-standard>
522
642
  INPUT
523
643
  html = File.read("test.html")
524
644
  toclevel = <<~"TOCLEVEL"
525
- function toclevel() { return "h1:not(:empty):not(.TermNum):not(.noTOC),h2:not(:empty):not(.TermNum):not(.noTOC),h3:not(:empty):not(.TermNum):not(.noTOC)";}
526
- TOCLEVEL
645
+ function toclevel() { return "h1:not(:empty):not(.TermNum):not(.noTOC),h2:not(:empty):not(.TermNum):not(.noTOC),h3:not(:empty):not(.TermNum):not(.noTOC)";}
646
+ TOCLEVEL
527
647
  expect(html).to include toclevel
528
648
  end
529
649
 
530
650
  it "reorders footnote numbers in HTML" do
531
651
  FileUtils.rm_f "test.html"
532
- IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", wordintropage: "spec/assets/wordintro.html"}).convert("test", <<~"INPUT", false)
533
- <iso-standard xmlns="http://riboseinc.com/isoxml">
534
- <sections>
535
- <clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><fn reference="3">
536
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">This is a footnote.</p>
537
- </fn><clause id="N" inline-header="false" obligation="normative">
538
- <title>Introduction to this<fn reference="2">
539
- Formerly denoted as 15 % (m/m).
540
- </fn></title>
541
- </clause>
542
- <clause id="O" inline-header="false" obligation="normative">
543
- <title>Clause 4.2</title>
544
- <p>A<fn reference="1">
545
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
546
- </fn></p>
547
- </clause></clause>
548
- </sections>
549
- </iso-standard>
652
+ IsoDoc::HtmlConvert.new(
653
+ { wordstylesheet: "spec/assets/word.css",
654
+ htmlstylesheet: "spec/assets/html.scss",
655
+ wordintropage: "spec/assets/wordintro.html" },
656
+ ).convert("test", <<~"INPUT", false)
657
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
658
+ <sections>
659
+ <clause id="A" inline-header="false" obligation="normative"><title>Clause 4</title><fn reference="3">
660
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">This is a footnote.</p>
661
+ </fn><clause id="N" inline-header="false" obligation="normative">
662
+ <title>Introduction to this<fn reference="2">
663
+ Formerly denoted as 15 % (m/m).
664
+ </fn></title>
665
+ </clause>
666
+ <clause id="O" inline-header="false" obligation="normative">
667
+ <title>Clause 4.2</title>
668
+ <p>A<fn reference="1">
669
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p>
670
+ </fn></p>
671
+ </clause></clause>
672
+ </sections>
673
+ </iso-standard>
550
674
  INPUT
551
- html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main xmlns:epub="epub" class="main-section">').
552
- sub(%r{</main>.*$}m, "</main>")
675
+ html = File.read("test.html")
676
+ .sub(/^.*<main class="main-section">/m,
677
+ '<main xmlns:epub="epub" class="main-section">')
678
+ .sub(%r{</main>.*$}m, "</main>")
553
679
  expect(xmlpp(html)).to be_equivalent_to xmlpp(<<~"OUTPUT")
554
- <main xmlns:epub="epub" class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
555
- <p class="zzSTDTitle1"></p>
556
- <div id="A">
557
- <h1>Clause 4</h1>
558
- <a class='FootnoteRef' href='#fn:3' id='fnref:1'>
559
- <sup>1</sup>
560
- </a>
561
- <div id="N">
562
- <h2>Introduction to this<a class='FootnoteRef' href='#fn:2' id='fnref:2'><sup>2</sup></a></h2>
563
- </div>
564
- <div id="O">
565
- <h2>Clause 4.2</h2>
566
- <p>A<a class='FootnoteRef' href='#fn:2'><sup>2</sup></a></p>
567
- </div>
680
+ <main xmlns:epub="epub" class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
681
+ <p class="zzSTDTitle1"></p>
682
+ <div id="A">
683
+ <h1>Clause 4</h1>
684
+ <a class='FootnoteRef' href='#fn:3' id='fnref:1'>
685
+ <sup>1</sup>
686
+ </a>
687
+ <div id="N">
688
+ <h2>Introduction to this<a class='FootnoteRef' href='#fn:2' id='fnref:2'><sup>2</sup></a></h2>
568
689
  </div>
569
- <aside id="fn:3" class="footnote">
570
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a class='FootnoteRef' href='#fn:3'>
571
- <sup>1</sup>
572
- </a>This is a footnote.</p>
573
- <a href="#fnref:1">&#x21A9;</a></aside>
574
- <aside id="fn:2" class="footnote">
575
- <a class='FootnoteRef' href='#fn:2'><sup>2</sup></a>Formerly denoted as 15 % (m/m).
576
- <a href="#fnref:2">&#x21A9;</a></aside>
577
- </main>
690
+ <div id="O">
691
+ <h2>Clause 4.2</h2>
692
+ <p>A<a class='FootnoteRef' href='#fn:2'><sup>2</sup></a></p>
693
+ </div>
694
+ </div>
695
+ <aside id="fn:3" class="footnote">
696
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a class='FootnoteRef' href='#fn:3'>
697
+ <sup>1</sup>
698
+ </a>This is a footnote.</p>
699
+ <a href="#fnref:1">&#x21A9;</a></aside>
700
+ <aside id="fn:2" class="footnote">
701
+ <a class='FootnoteRef' href='#fn:2'><sup>2</sup></a>Formerly denoted as 15 % (m/m).
702
+ <a href="#fnref:2">&#x21A9;</a></aside>
703
+ </main>
578
704
  OUTPUT
579
705
  end
580
706
 
581
707
  it "moves images in HTML" do
582
708
  FileUtils.rm_f "test.html"
583
709
  FileUtils.rm_rf "test_htmlimages"
584
- IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
585
- <iso-standard xmlns="http://riboseinc.com/isoxml">
586
- <preface><foreword>
587
- <figure id="_">
588
- <name>Split-it-right sample divider</name>
589
- <image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
590
- <image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
591
- <image src="spec/assets/rice_image1.png" id="_" width="20000" height="300000" mimetype="image/png"/>
592
- <image src="spec/assets/rice_image1.png" id="_" width="99" height="auto" mimetype="image/png"/>
593
- <image src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAg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1nZmlsZS5jb250ZW50IG1vZHVsZT0iZnVuZGFtZW50YWxzX29mX3Byb2R1Y3RfZGVzY3JpcHRpb25fYW5kX3N1cHBvcnQiIGZpbGU9ImFjdGlvbl9zY2hlbWFleHBnMS54bWwiPgo8aW1nIHNyYz0iYWN0aW9uX3NjaGVtYWV4cGcxLmdpZiI+CjxpbWcuYXJlYSBzaGFwZT0icmVjdCIgY29vcmRzPSIyMTAsMTg2LDM0MywyMjciIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9iYXNpY19hdHRyaWJ1dGVfc2NoZW1hL2Jhc2ljX2F0dHJpYnV0ZV9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMTAsMTAsOTYsNTEiIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9hY3Rpb25fc2NoZW1hL2FjdGlvbl9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMjEwLDI2NCwzNTgsMzA1IiBocmVmPSIuLi8uLi9yZXNvdXJjZXMvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEueG1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==" height="20" width="auto" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f2" mimetype="application/xml"/>
595
- </figure>
596
- </foreword></preface>
597
- </iso-standard>
710
+ IsoDoc::HtmlConvert.new(
711
+ { wordstylesheet: "spec/assets/word.css",
712
+ htmlstylesheet: "spec/assets/html.scss" },
713
+ ).convert("test", <<~"INPUT", false)
714
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
715
+ <preface><foreword>
716
+ <figure id="_">
717
+ <name>Split-it-right sample divider</name>
718
+ <image src="#{File.expand_path(File.join(File.dirname(__FILE__), '..', 'assets/rice_image1.png'))}" id="_" mimetype="image/png"/>
719
+ <image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
720
+ <image src="spec/assets/rice_image1.png" id="_" width="20000" height="300000" mimetype="image/png"/>
721
+ <image src="spec/assets/rice_image1.png" id="_" width="99" height="auto" mimetype="image/png"/>
722
+ <image src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMC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Rpb25fYW5kX3N1cHBvcnQiIGZpbGU9ImFjdGlvbl9zY2hlbWFleHBnMS54bWwiPgo8aW1nIHNyYz0iYWN0aW9uX3NjaGVtYWV4cGcxLmdpZiI+CjxpbWcuYXJlYSBzaGFwZT0icmVjdCIgY29vcmRzPSIyMTAsMTg2LDM0MywyMjciIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9iYXNpY19hdHRyaWJ1dGVfc2NoZW1hL2Jhc2ljX2F0dHJpYnV0ZV9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMTAsMTAsOTYsNTEiIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9hY3Rpb25fc2NoZW1hL2FjdGlvbl9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMjEwLDI2NCwzNTgsMzA1IiBocmVmPSIuLi8uLi9yZXNvdXJjZXMvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEueG1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==" height="20" width="auto" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f2" mimetype="application/xml"/>
724
+ </figure>
725
+ </foreword></preface>
726
+ </iso-standard>
598
727
  INPUT
599
- html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
600
- sub(%r{</main>.*$}m, "</main>")
728
+ html = File.read("test.html")
729
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
730
+ .sub(%r{</main>.*$}m, "</main>")
601
731
  expect(`ls test_htmlimages`).to match(/\.png$/)
602
- expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
603
- <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
604
- <br />
605
- <div>
606
- <h1 class="ForewordTitle">Foreword</h1>
607
- <div id="_" class="figure">
608
- <img src="test_htmlimages/_.png" height="776" width="922" />
609
- <img src="test_htmlimages/_.png" height="776" width="922" />
610
- <img src="test_htmlimages/_.png" height="800" width="53" />
611
- <img src="test_htmlimages/_.png" height="83" width="99" />
612
- <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGh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X3N1cHBvcnQiIGZpbGU9ImFjdGlvbl9zY2hlbWFleHBnMS54bWwiPgo8aW1nIHNyYz0iYWN0aW9uX3NjaGVtYWV4cGcxLmdpZiI+CjxpbWcuYXJlYSBzaGFwZT0icmVjdCIgY29vcmRzPSIyMTAsMTg2LDM0MywyMjciIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9iYXNpY19hdHRyaWJ1dGVfc2NoZW1hL2Jhc2ljX2F0dHJpYnV0ZV9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMTAsMTAsOTYsNTEiIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9hY3Rpb25fc2NoZW1hL2FjdGlvbl9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMjEwLDI2NCwzNTgsMzA1IiBocmVmPSIuLi8uLi9yZXNvdXJjZXMvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEueG1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==' height='' width=''/>
614
- <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
615
- </div>
616
- <p class="zzSTDTitle1"></p>
617
- </main>
618
- OUTPUT
619
-
732
+ expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png")))
733
+ .to be_equivalent_to xmlpp(<<~"OUTPUT")
734
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
735
+ <br />
736
+ <div>
737
+ <h1 class="ForewordTitle">Foreword</h1>
738
+ <div id="_" class="figure">
739
+ <img src="test_htmlimages/_.png" height="776" width="922" />
740
+ <img src="test_htmlimages/_.png" height="776" width="922" />
741
+ <img src="test_htmlimages/_.png" height="800" width="53" />
742
+ <img src="test_htmlimages/_.png" height="83" width="99" />
743
+ <img src="data:image/png;base64,iVBORw0KG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Y9Ii4uLy4uL3Jlc291cmNlcy9iYXNpY19hdHRyaWJ1dGVfc2NoZW1hL2Jhc2ljX2F0dHJpYnV0ZV9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMTAsMTAsOTYsNTEiIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9hY3Rpb25fc2NoZW1hL2FjdGlvbl9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMjEwLDI2NCwzNTgsMzA1IiBocmVmPSIuLi8uLi9yZXNvdXJjZXMvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEueG1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==' height='' width=''/>
745
+ <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
746
+ </div>
747
+ <p class="zzSTDTitle1"></p>
748
+ </main>
749
+ OUTPUT
620
750
  end
621
751
 
622
752
  describe "mathvariant to plain" do
@@ -666,8 +796,8 @@ TOCLEVEL
666
796
  OUTPUT
667
797
  IsoDoc::HtmlConvert.new({}).convert("test", input, false)
668
798
  html = File.read("test.html")
669
- .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
670
- .sub(%r{</main>.*$}m, "</main>")
799
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
800
+ .sub(%r{</main>.*$}m, "</main>")
671
801
  expect(html).to(be_equivalent_to(output))
672
802
  end
673
803
  end
@@ -776,8 +906,8 @@ TOCLEVEL
776
906
  OUTPUT
777
907
  IsoDoc::HtmlConvert.new({}).convert("test", input, false)
778
908
  html = File.read("test.html")
779
- .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
780
- .sub(%r{</main>.*$}m, "</main>")
909
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
910
+ .sub(%r{</main>.*$}m, "</main>")
781
911
  expect(html).to(be_equivalent_to(output))
782
912
  end
783
913
  end
@@ -786,1250 +916,1274 @@ TOCLEVEL
786
916
  it "moves images in HTML with no file suffix" do
787
917
  FileUtils.rm_f "test.html"
788
918
  FileUtils.rm_rf "test_htmlimages"
789
- IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
790
- <iso-standard xmlns="http://riboseinc.com/isoxml">
791
- <preface><foreword>
792
- <figure id="_">
793
- <name>Split-it-right sample divider</name>
794
- <image src="spec/assets/rice_image1" id="_" mimetype="image/png"/>
795
- <image src="spec/assets/rice_image1" id="_" mimetype="image/*"/>
796
- <image src="data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDg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AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f3" mimetype="image/png"/>
797
- </figure>
798
- </foreword></preface>
799
- </iso-standard>
919
+ IsoDoc::HtmlConvert.new(
920
+ { wordstylesheet: "spec/assets/word.css",
921
+ htmlstylesheet: "spec/assets/html.scss" },
922
+ ).convert("test", <<~"INPUT", false)
923
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
924
+ <preface><foreword>
925
+ <figure id="_">
926
+ <name>Split-it-right sample divider</name>
927
+ <image src="spec/assets/rice_image1" id="_" mimetype="image/png"/>
928
+ <image src="spec/assets/rice_image1" id="_" mimetype="image/*"/>
929
+ <image src="data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAAN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AAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f3" mimetype="image/png"/>
930
+ </figure>
931
+ </foreword></preface>
932
+ </iso-standard>
800
933
  INPUT
801
- html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
802
- sub(%r{</main>.*$}m, "</main>")
934
+ html = File.read("test.html")
935
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
936
+ .sub(%r{</main>.*$}m, "</main>")
803
937
  expect(`ls test_htmlimages`).to match(/\.png$/)
804
- expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
805
- <main class='main-section'>
806
- <button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
807
- <br/>
808
- <div>
809
- <h1 class='ForewordTitle'>Foreword</h1>
810
- <div id='_' class='figure'>
811
- <img src='test_htmlimages/_.png' height='776' width='922'/>
812
- <img src='test_htmlimages/_.png' height='776' width='922'/>
813
- <img src='data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAA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AANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC' height='800' width='800'/>
814
- <p class='FigureTitle' style='text-align:center;'>Split-it-right sample divider</p>
815
- </div>
816
- </div>
817
- <p class='zzSTDTitle1'/>
818
- </main>
819
- OUTPUT
938
+ expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png")))
939
+ .to be_equivalent_to xmlpp(<<~"OUTPUT")
940
+ <main class='main-section'>
941
+ <button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
942
+ <br/>
943
+ <div>
944
+ <h1 class='ForewordTitle'>Foreword</h1>
945
+ <div id='_' class='figure'>
946
+ <img src='test_htmlimages/_.png' height='776' width='922'/>
947
+ <img src='test_htmlimages/_.png' height='776' width='922'/>
948
+ <img src='data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQ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0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC' height='800' width='800'/>
949
+ <p class='FigureTitle' style='text-align:center;'>Split-it-right sample divider</p>
950
+ </div>
951
+ </div>
952
+ <p class='zzSTDTitle1'/>
953
+ </main>
954
+ OUTPUT
820
955
  end
821
956
 
822
957
  it "moves images in HTML, using relative file location" do
823
958
  FileUtils.rm_f "spec/test.html"
824
959
  FileUtils.rm_rf "spec/test_htmlimages"
825
- IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("spec/test", <<~"INPUT", false)
826
- <iso-standard xmlns="http://riboseinc.com/isoxml">
827
- <preface><foreword>
828
- <figure id="_">
829
- <name>Split-it-right sample divider</name>
830
- <image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
831
- <image src="assets/rice_image1.png" id="_" mimetype="image/png"/>
832
- <image src="assets/rice_image1.png" id="_" width="20000" height="300000" mimetype="image/png"/>
833
- <image src="assets/rice_image1.png" id="_" width="99" height="auto" mimetype="image/png"/>
834
- </figure>
835
- </foreword></preface>
836
- </iso-standard>
837
- INPUT
838
- html = File.read("spec/test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
839
- sub(%r{</main>.*$}m, "</main>")
960
+ IsoDoc::HtmlConvert.new({ wordstylesheet: "assets/word.css", htmlstylesheet: "assets/html.scss" })
961
+ .convert("spec/test", <<~"INPUT", false)
962
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
963
+ <preface><foreword>
964
+ <figure id="_">
965
+ <name>Split-it-right sample divider</name>
966
+ <image src="#{File.expand_path(File.join(File.dirname(__FILE__), '..', 'assets/rice_image1.png'))}" id="_" mimetype="image/png"/>
967
+ <image src="assets/rice_image1.png" id="_" mimetype="image/png"/>
968
+ <image src="assets/rice_image1.png" id="_" width="20000" height="300000" mimetype="image/png"/>
969
+ <image src="assets/rice_image1.png" id="_" width="99" height="auto" mimetype="image/png"/>
970
+ </figure>
971
+ </foreword></preface>
972
+ </iso-standard>
973
+ INPUT
974
+ html = File.read("spec/test.html")
975
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
976
+ .sub(%r{</main>.*$}m, "</main>")
840
977
  expect(`ls test_htmlimages`).to match(/\.png$/)
841
- expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
842
- <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
843
- <br />
844
- <div>
845
- <h1 class="ForewordTitle">Foreword</h1>
846
- <div id="_" class="figure">
847
- <img src="test_htmlimages/_.png" height="776" width="922" />
848
- <img src="test_htmlimages/_.png" height="776" width="922" />
849
- <img src="test_htmlimages/_.png" height="800" width="53" />
850
- <img src="test_htmlimages/_.png" height="83" width="99" />
851
- <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
852
- </div>
853
- <p class="zzSTDTitle1"></p>
854
- </main>
855
- OUTPUT
978
+ expect(xmlpp(html.gsub(/\/[0-9a-f-]+\.png/, "/_.png")))
979
+ .to be_equivalent_to xmlpp(<<~"OUTPUT")
980
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
981
+ <br />
982
+ <div>
983
+ <h1 class="ForewordTitle">Foreword</h1>
984
+ <div id="_" class="figure">
985
+ <img src="test_htmlimages/_.png" height="776" width="922" />
986
+ <img src="test_htmlimages/_.png" height="776" width="922" />
987
+ <img src="test_htmlimages/_.png" height="800" width="53" />
988
+ <img src="test_htmlimages/_.png" height="83" width="99" />
989
+ <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
990
+ </div>
991
+ <p class="zzSTDTitle1"></p>
992
+ </main>
993
+ OUTPUT
856
994
  end
857
995
 
858
-
859
996
  it "encodes images in HTML as data URIs" do
860
997
  FileUtils.rm_f "test.html"
861
998
  FileUtils.rm_rf "test_htmlimages"
862
- IsoDoc::HtmlConvert.new({htmlstylesheet: "spec/assets/html.scss", datauriimage: true}).convert("test", <<~"INPUT", false)
863
- <iso-standard xmlns="http://riboseinc.com/isoxml">
864
- <preface><foreword>
865
- <figure id="_">
866
- <name>Split-it-right sample divider</name>
867
- <image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
868
- <image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
869
- </figure>
870
- </foreword></preface>
871
- </iso-standard>
872
- INPUT
873
- html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
874
- sub(%r{</main>.*$}m, "</main>")
875
- expect(xmlpp(html.gsub(%r{src="data:image/png;base64,[^"]+"}, %{src="data:image/png;base64,_"}))).to be_equivalent_to xmlpp(<<~"OUTPUT")
876
- <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
877
- <br />
878
- <div>
879
- <h1 class="ForewordTitle">Foreword</h1>
880
- <div id="_" class="figure">
881
- <img src="data:image/png;base64,_" height="776" width="922" />
882
- <img src="data:image/png;base64,_" height="776" width="922" />
883
- <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
884
- </div>
885
- <p class="zzSTDTitle1"></p>
886
- </main>
887
- OUTPUT
888
-
999
+ IsoDoc::HtmlConvert.new({ htmlstylesheet: "spec/assets/html.scss", datauriimage: true })
1000
+ .convert("test", <<~"INPUT", false)
1001
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1002
+ <preface><foreword>
1003
+ <figure id="_">
1004
+ <name>Split-it-right sample divider</name>
1005
+ <image src="#{File.expand_path(File.join(File.dirname(__FILE__), '..', 'assets/rice_image1.png'))}" id="_" mimetype="image/png"/>
1006
+ <image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
1007
+ </figure>
1008
+ </foreword></preface>
1009
+ </iso-standard>
1010
+ INPUT
1011
+ html = File.read("test.html")
1012
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
1013
+ .sub(%r{</main>.*$}m, "</main>")
1014
+ expect(xmlpp(html.gsub(%r{src="data:image/png;base64,[^"]+"}, %{src="data:image/png;base64,_"})))
1015
+ .to be_equivalent_to xmlpp(<<~"OUTPUT")
1016
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
1017
+ <br />
1018
+ <div>
1019
+ <h1 class="ForewordTitle">Foreword</h1>
1020
+ <div id="_" class="figure">
1021
+ <img src="data:image/png;base64,_" height="776" width="922" />
1022
+ <img src="data:image/png;base64,_" height="776" width="922" />
1023
+ <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
1024
+ </div>
1025
+ <p class="zzSTDTitle1"></p>
1026
+ </main>
1027
+ OUTPUT
889
1028
  end
890
1029
 
891
- it "encodes images in HTML as data URIs, using relative file location" do
1030
+ it "encodes images in HTML as data URIs, using relative file location" do
892
1031
  FileUtils.rm_f "spec/test.html"
893
1032
  FileUtils.rm_rf "spec/test_htmlimages"
894
- IsoDoc::HtmlConvert.new({htmlstylesheet: "spec/assets/html.scss", datauriimage: true}).convert("spec/test", <<~"INPUT", false)
895
- <iso-standard xmlns="http://riboseinc.com/isoxml">
896
- <preface><foreword>
897
- <figure id="_">
898
- <name>Split-it-right sample divider</name>
899
- <image src="#{File.expand_path(File.join(File.dirname(__FILE__), "..", "assets/rice_image1.png"))}" id="_" mimetype="image/png"/>
900
- <image src="assets/rice_image1.png" id="_" mimetype="image/png"/>
901
- </figure>
902
- </foreword></preface>
903
- </iso-standard>
904
- INPUT
905
- html = File.read("spec/test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
906
- sub(%r{</main>.*$}m, "</main>")
907
- expect(xmlpp(html.gsub(%r{src="data:image/png;base64,[^"]+"}, %{src="data:image/png;base64,_"}))).to be_equivalent_to xmlpp(<<~"OUTPUT")
908
- <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
909
- <br />
910
- <div>
911
- <h1 class="ForewordTitle">Foreword</h1>
912
- <div id="_" class="figure">
913
- <img src="data:image/png;base64,_" height="776" width="922" />
914
- <img src="data:image/png;base64,_" height="776" width="922" />
915
- <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
916
- </div>
917
- <p class="zzSTDTitle1"></p>
918
- </main>
919
- OUTPUT
920
-
1033
+ IsoDoc::HtmlConvert.new({ htmlstylesheet: "assets/html.scss", datauriimage: true })
1034
+ .convert("spec/test", <<~"INPUT", false)
1035
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1036
+ <preface><foreword>
1037
+ <figure id="_">
1038
+ <name>Split-it-right sample divider</name>
1039
+ <image src="#{File.expand_path(File.join(File.dirname(__FILE__), '..', 'assets/rice_image1.png'))}" id="_" mimetype="image/png"/>
1040
+ <image src="assets/rice_image1.png" id="_" mimetype="image/png"/>
1041
+ </figure>
1042
+ </foreword></preface>
1043
+ </iso-standard>
1044
+ INPUT
1045
+ html = File.read("spec/test.html")
1046
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
1047
+ .sub(%r{</main>.*$}m, "</main>")
1048
+ expect(xmlpp(html.gsub(%r{src="data:image/png;base64,[^"]+"}, %{src="data:image/png;base64,_"})))
1049
+ .to be_equivalent_to xmlpp(<<~"OUTPUT")
1050
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
1051
+ <br />
1052
+ <div>
1053
+ <h1 class="ForewordTitle">Foreword</h1>
1054
+ <div id="_" class="figure">
1055
+ <img src="data:image/png;base64,_" height="776" width="922" />
1056
+ <img src="data:image/png;base64,_" height="776" width="922" />
1057
+ <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
1058
+ </div>
1059
+ <p class="zzSTDTitle1"></p>
1060
+ </main>
1061
+ OUTPUT
921
1062
  end
922
1063
 
923
-
924
1064
  it "processes IsoXML terms for HTML" do
925
1065
  FileUtils.rm_f "test.html"
926
1066
  FileUtils.rm_f "test.doc"
927
- IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
928
- <iso-standard xmlns="http://riboseinc.com/isoxml">
929
- <sections>
930
- <terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
931
- <term id="paddy1"><name>1.1.</name><preferred>paddy</preferred>
932
- <domain>rice</domain>
933
- <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
934
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
935
- <p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
936
- <ul>
937
- <li>A</li>
938
- </ul>
939
- </termexample>
940
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
941
- <ul>
942
- <li>A</li>
943
- </ul>
944
- </termexample>
945
- <termsource status="modified">
946
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
947
- <modification>
948
- <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>
949
- </modification>
950
- </termsource></term>
951
- <term id="paddy"><name>1.2.</name><preferred>paddy</preferred><admitted>paddy rice</admitted>
952
- <admitted>rough rice</admitted>
953
- <deprecates>cargo rice</deprecates>
954
- <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
955
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
956
- <ul>
957
- <li>A</li>
958
- </ul>
959
- </termexample>
960
- <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
961
- <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>
962
- </termnote>
963
- <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74f">
964
- <ul><li>A</li></ul>
965
- <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>
966
- </termnote>
967
- <termsource status="identical">
968
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
969
- </termsource></term>
970
- </terms>
971
- </sections>
972
- </iso-standard>
973
- INPUT
1067
+ IsoDoc::HtmlConvert.new(OPTIONS)
1068
+ .convert("test", <<~"INPUT", false)
1069
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1070
+ <sections>
1071
+ <terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
1072
+ <term id="paddy1"><name>1.1.</name><preferred>paddy</preferred>
1073
+ <domain>rice</domain>
1074
+ <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
1075
+ <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
1076
+ <p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
1077
+ <ul>
1078
+ <li>A</li>
1079
+ </ul>
1080
+ </termexample>
1081
+ <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
1082
+ <ul>
1083
+ <li>A</li>
1084
+ </ul>
1085
+ </termexample>
1086
+ <termsource status="modified">
1087
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
1088
+ <modification>
1089
+ <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>
1090
+ </modification>
1091
+ </termsource></term>
1092
+ <term id="paddy"><name>1.2.</name><preferred>paddy</preferred><admitted>paddy rice</admitted>
1093
+ <admitted>rough rice</admitted>
1094
+ <deprecates>cargo rice</deprecates>
1095
+ <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
1096
+ <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
1097
+ <ul>
1098
+ <li>A</li>
1099
+ </ul>
1100
+ </termexample>
1101
+ <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
1102
+ <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>
1103
+ </termnote>
1104
+ <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74f">
1105
+ <ul><li>A</li></ul>
1106
+ <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>
1107
+ </termnote>
1108
+ <termsource status="identical">
1109
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
1110
+ </termsource></term>
1111
+ </terms>
1112
+ </sections>
1113
+ </iso-standard>
1114
+ INPUT
974
1115
  expect(File.exist?("test.html")).to be true
975
1116
  html = File.read("test.html")
976
1117
  expect(html).to match(%r{<h2 class="TermNum" id="paddy1">1\.1\.</h2>})
977
1118
  expect(html).to match(%r{<h2 class="TermNum" id="paddy">1\.2\.</h2>})
978
1119
  end
979
1120
 
980
- it "processes empty term modifications" do
1121
+ it "processes empty term modifications" do
981
1122
  FileUtils.rm_f "test.html"
982
1123
  FileUtils.rm_f "test.doc"
983
- IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
984
- <iso-standard xmlns="http://riboseinc.com/isoxml">
985
- <sections>
986
- <terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
987
- <term id="paddy1"><preferred>paddy</preferred>
988
- <domain>rice</domain>
989
- <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
990
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
991
- <p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
992
- <ul>
993
- <li>A</li>
994
- </ul>
995
- </termexample>
996
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
997
- <ul>
998
- <li>A</li>
999
- </ul>
1000
- </termexample>
1001
- <termsource status="modified">
1002
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">ISO 7301:2011, Clause 3.1</origin>
1003
- <modification>
1004
- <p id="_e73a417d-ad39-417d-a4c8-20e4e2529489"/>
1005
- </modification>
1006
- </termsource></term>
1007
- </terms>
1008
- </sections>
1009
- </iso-standard>
1010
- INPUT
1124
+ IsoDoc::HtmlConvert.new(OPTIONS)
1125
+ .convert("test", <<~"INPUT", false)
1126
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1127
+ <sections>
1128
+ <terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
1129
+ <term id="paddy1"><preferred>paddy</preferred>
1130
+ <domain>rice</domain>
1131
+ <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
1132
+ <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
1133
+ <p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
1134
+ <ul>
1135
+ <li>A</li>
1136
+ </ul>
1137
+ </termexample>
1138
+ <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
1139
+ <ul>
1140
+ <li>A</li>
1141
+ </ul>
1142
+ </termexample>
1143
+ <termsource status="modified">
1144
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">ISO 7301:2011, Clause 3.1</origin>
1145
+ <modification>
1146
+ <p id="_e73a417d-ad39-417d-a4c8-20e4e2529489"/>
1147
+ </modification>
1148
+ </termsource></term>
1149
+ </terms>
1150
+ </sections>
1151
+ </iso-standard>
1152
+ INPUT
1011
1153
  expect(File.exist?("test.html")).to be true
1012
1154
  html = File.read("test.html")
1013
1155
  expect(html).to include '[SOURCE: <a href="#ISO7301">ISO 7301:2011, Clause 3.1</a>, modified]'
1014
1156
  end
1015
1157
 
1016
-
1017
1158
  it "creates continuation styles for multiparagraph list items in Word" do
1018
1159
  FileUtils.rm_f "test.doc"
1019
1160
  FileUtils.rm_f "test.html"
1020
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
1021
- <iso-standard xmlns="http://riboseinc.com/isoxml">
1022
- <preface><foreword>
1023
- <ul>
1024
- <li><p>A</p>
1025
- <p>B</p></li>
1026
- <li><ol><li><p>C</p>
1027
- <p>D</p>
1028
- <sourcecode>E</sourcecode></li>
1029
- </ol></li>
1030
- </ul>
1031
- <ol>
1032
- <li><p>A1</p>
1033
- <p>B1</p></li>
1034
- <li><ul><li><p>C1</p>
1035
- <formula id="_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62">
1036
- <stem type="AsciiMath">D1</stem>
1037
- </formula>
1038
- <dl id="_f8fb7ed7-7874-44a8-933f-06e0e86fb264">
1039
- <dt>
1040
- <em>n</em>
1041
- </dt>
1042
- <dd>
1043
- <p id="_a27281a4-b20e-4d0b-a780-bab9e851b03e">is the number of coating layers</p>
1044
- </dd>
1045
- </dl>
1046
- </ul></li>
1047
- </ol>
1048
- </foreword></preface>
1049
- </iso-standard>
1050
- INPUT
1051
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">').
1052
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1161
+ IsoDoc::WordConvert.new(OPTIONS)
1162
+ .convert("test", <<~"INPUT", false)
1163
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1164
+ <preface><foreword>
1165
+ <ul>
1166
+ <li><p>A</p>
1167
+ <p>B</p></li>
1168
+ <li><ol><li><p>C</p>
1169
+ <p>D</p>
1170
+ <sourcecode>E</sourcecode></li>
1171
+ </ol></li>
1172
+ </ul>
1173
+ <ol>
1174
+ <li><p>A1</p>
1175
+ <p>B1</p></li>
1176
+ <li><ul><li><p>C1</p>
1177
+ <formula id="_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62">
1178
+ <stem type="AsciiMath">D1</stem>
1179
+ </formula>
1180
+ <dl id="_f8fb7ed7-7874-44a8-933f-06e0e86fb264">
1181
+ <dt>
1182
+ <em>n</em>
1183
+ </dt>
1184
+ <dd>
1185
+ <p id="_a27281a4-b20e-4d0b-a780-bab9e851b03e">is the number of coating layers</p>
1186
+ </dd>
1187
+ </dl>
1188
+ </ul></li>
1189
+ </ol>
1190
+ </foreword></preface>
1191
+ </iso-standard>
1192
+ INPUT
1193
+ word = File.read("test.doc")
1194
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">')
1195
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1053
1196
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
1054
- <div class='WordSection2' xmlns:m='m'>
1055
- <p class='MsoNormal'>
1056
- <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1057
- </p>
1058
- <div>
1059
- <h1 class='ForewordTitle'>Foreword</h1>
1060
- <p class='MsoListParagraphCxSpFirst'>
1061
- A
1062
- <div class='ListContLevel1'>
1063
- <p class='MsoNormal'>B</p>
1064
- </div>
1065
- </p>
1066
- <p class='MsoListParagraphCxSpLast'>
1067
- <p class='MsoListParagraphCxSpFirst'>
1068
- C
1069
- <div class='ListContLevel2'>
1070
- <p class='MsoNormal'>D</p>
1071
- </div>
1072
- <div class='ListContLevel2'>
1073
- <p class='Sourcecode'>E</p>
1074
- </div>
1075
- </p>
1076
- </p>
1077
- <p class='MsoListParagraphCxSpFirst'>
1078
- A1
1079
- <div class='ListContLevel1'>
1080
- <p class='MsoNormal'>B1</p>
1081
- </div>
1082
- </p>
1083
- <p class='MsoListParagraphCxSpLast'>
1084
- C1
1085
- <div class='ListContLevel2'>
1197
+ <div class='WordSection2' xmlns:m='m'>
1198
+ <p class='MsoNormal'>
1199
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1200
+ </p>
1086
1201
  <div>
1087
- <a name='_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62' id='_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62'/>
1088
- <div class='formula'>
1089
- <p class='MsoNormal'>
1090
- <span class='stem'>
1091
- <m:oMath>
1092
- <m:r>
1093
- <m:t>D1</m:t>
1094
- </m:r>
1095
- </m:oMath>
1096
- </span>
1097
- <span style='mso-tab-count:1'>&#xA0; </span>
1202
+ <h1 class='ForewordTitle'>Foreword</h1>
1203
+ <p class='MsoListParagraphCxSpFirst'>
1204
+ A
1205
+ <div class='ListContLevel1'>
1206
+ <p class='MsoNormal'>B</p>
1207
+ </div>
1208
+ </p>
1209
+ <p class='MsoListParagraphCxSpLast'>
1210
+ <p class='MsoListParagraphCxSpFirst'>
1211
+ C
1212
+ <div class='ListContLevel2'>
1213
+ <p class='MsoNormal'>D</p>
1214
+ </div>
1215
+ <div class='ListContLevel2'>
1216
+ <p class='Sourcecode'>E</p>
1217
+ </div>
1218
+ </p>
1219
+ </p>
1220
+ <p class='MsoListParagraphCxSpFirst'>
1221
+ A1
1222
+ <div class='ListContLevel1'>
1223
+ <p class='MsoNormal'>B1</p>
1224
+ </div>
1225
+ </p>
1226
+ <p class='MsoListParagraphCxSpLast'>
1227
+ C1
1228
+ <div class='ListContLevel2'>
1229
+ <div>
1230
+ <a name='_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62' id='_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62'/>
1231
+ <div class='formula'>
1232
+ <p class='MsoNormal'>
1233
+ <span class='stem'>
1234
+ <m:oMath>
1235
+ <m:r>
1236
+ <m:t>D1</m:t>
1237
+ </m:r>
1238
+ </m:oMath>
1239
+ </span>
1240
+ <span style='mso-tab-count:1'>&#xA0; </span>
1241
+ </p>
1242
+ </div>
1243
+ </div>
1244
+ </div>
1245
+ <div class='ListContLevel2'>
1246
+ <table class='dl'>
1247
+ <tr>
1248
+ <td valign='top' align='left'>
1249
+ <p align='left' style='margin-left:0pt;text-align:left;' class='MsoNormal'>
1250
+ <i>n</i>
1251
+ </p>
1252
+ </td>
1253
+ <td valign='top'>
1254
+ <p class='MsoNormal'>
1255
+ <a name='_a27281a4-b20e-4d0b-a780-bab9e851b03e' id='_a27281a4-b20e-4d0b-a780-bab9e851b03e'/>
1256
+ is the number of coating layers
1257
+ </p>
1258
+ </td>
1259
+ </tr>
1260
+ </table>
1261
+ </div>
1098
1262
  </p>
1099
- </div>
1100
1263
  </div>
1264
+ <p class='MsoNormal'>&#xA0;</p>
1101
1265
  </div>
1102
- <div class='ListContLevel2'>
1103
- <table class='dl'>
1104
- <tr>
1105
- <td valign='top' align='left'>
1106
- <p align='left' style='margin-left:0pt;text-align:left;' class='MsoNormal'>
1107
- <i>n</i>
1108
- </p>
1109
- </td>
1110
- <td valign='top'>
1111
- <p class='MsoNormal'>
1112
- <a name='_a27281a4-b20e-4d0b-a780-bab9e851b03e' id='_a27281a4-b20e-4d0b-a780-bab9e851b03e'/>
1113
- is the number of coating layers
1114
- </p>
1115
- </td>
1116
- </tr>
1117
- </table>
1118
- </div>
1119
- </p>
1120
- </div>
1121
- <p class='MsoNormal'>&#xA0;</p>
1122
- </div>
1123
1266
  OUTPUT
1124
1267
  end
1125
1268
 
1126
1269
  it "does not lose HTML escapes in postprocessing" do
1127
- FileUtils.rm_f "test.doc"
1270
+ FileUtils.rm_f "test.doc"
1128
1271
  FileUtils.rm_f "test.html"
1129
- IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
1130
- <iso-standard xmlns="http://riboseinc.com/isoxml">
1131
- <preface><foreword>
1132
- <sourcecode id="samplecode">
1133
- <name>XML code</name>
1134
- &lt;xml&gt; &amp;
1135
- </sourcecode>
1136
- </foreword></preface>
1137
- </iso-standard>
1138
- INPUT
1139
- html = File.read("test.html").sub(/^.*<main class="main-section">/m, '<main class="main-section">').
1140
- sub(%r{</main>.*$}m, "</main>")
1272
+ IsoDoc::HtmlConvert.new(OPTIONS)
1273
+ .convert("test", <<~"INPUT", false)
1274
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1275
+ <preface><foreword>
1276
+ <sourcecode id="samplecode">
1277
+ <name>XML code</name>
1278
+ &lt;xml&gt; &amp;
1279
+ </sourcecode>
1280
+ </foreword></preface>
1281
+ </iso-standard>
1282
+ INPUT
1283
+ html = File.read("test.html")
1284
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
1285
+ .sub(%r{</main>.*$}m, "</main>")
1141
1286
  expect(xmlpp(html)).to be_equivalent_to xmlpp(<<~"OUTPUT")
1142
- <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
1143
- <br />
1144
- <div>
1145
- <h1 class="ForewordTitle">Foreword</h1>
1146
- <pre id="samplecode" class="prettyprint "><br />&#xA0;&#xA0;&#xA0; <br />&#xA0; &lt;xml&gt; &amp;<br />
1147
- </pre>
1148
- <p class="SourceTitle" style="text-align:center;">XML code</p>
1149
- </div>
1150
- <p class="zzSTDTitle1"></p>
1151
- </main>
1287
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
1288
+ <br />
1289
+ <div>
1290
+ <h1 class="ForewordTitle">Foreword</h1>
1291
+ <pre id="samplecode" class="prettyprint "><br />&#xA0;&#xA0;&#xA0; <br />&#xA0; &lt;xml&gt; &amp;<br />
1292
+ </pre>
1293
+ <p class="SourceTitle" style="text-align:center;">XML code</p>
1294
+ </div>
1295
+ <p class="zzSTDTitle1"></p>
1296
+ </main>
1152
1297
  OUTPUT
1153
1298
  end
1154
1299
 
1155
-
1156
1300
  it "does not lose HTML escapes in postprocessing (Word)" do
1157
- FileUtils.rm_f "test.doc"
1301
+ FileUtils.rm_f "test.doc"
1158
1302
  FileUtils.rm_f "test.html"
1159
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
1160
- <iso-standard xmlns="http://riboseinc.com/isoxml">
1161
- <preface><foreword>
1162
- <sourcecode id="samplecode">
1163
- <name>XML code</name>
1164
- &lt;xml&gt; &amp;
1165
- </sourcecode>
1166
- </foreword></preface>
1167
- </iso-standard>
1168
- INPUT
1169
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
1170
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1303
+ IsoDoc::WordConvert.new(OPTIONS)
1304
+ .convert("test", <<~"INPUT", false)
1305
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1306
+ <preface><foreword>
1307
+ <sourcecode id="samplecode">
1308
+ <name>XML code</name>
1309
+ &lt;xml&gt; &amp;
1310
+ </sourcecode>
1311
+ </foreword></preface>
1312
+ </iso-standard>
1313
+ INPUT
1314
+ word = File.read("test.doc")
1315
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">')
1316
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1171
1317
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
1172
- <div class="WordSection2">
1173
- <p class="MsoNormal">
1174
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1175
- </p>
1176
- <div>
1177
- <h1 class="ForewordTitle">Foreword</h1>
1178
- <p class="Sourcecode" style="page-break-after:avoid;"><a name="samplecode" id="samplecode"></a><br/>&#xA0;&#xA0;&#xA0; <br/>&#xA0; &lt;xml&gt; &amp;<br/></p><p class="SourceTitle" style="text-align:center;">XML code</p>
1318
+ <div class="WordSection2">
1319
+ <p class="MsoNormal">
1320
+ <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1321
+ </p>
1322
+ <div>
1323
+ <h1 class="ForewordTitle">Foreword</h1>
1324
+ <p class="Sourcecode" style="page-break-after:avoid;"><a name="samplecode" id="samplecode"></a><br/>&#xA0;&#xA0;&#xA0; <br/>&#xA0; &lt;xml&gt; &amp;<br/></p><p class="SourceTitle" style="text-align:center;">XML code</p>
1325
+ </div>
1326
+ <p class="MsoNormal">&#xA0;</p>
1179
1327
  </div>
1180
- <p class="MsoNormal">&#xA0;</p>
1181
- </div>
1182
1328
  OUTPUT
1183
1329
  end
1184
1330
 
1185
1331
  it "propagates example style to paragraphs in postprocessing (Word)" do
1186
1332
  FileUtils.rm_f "test.doc"
1187
1333
  FileUtils.rm_f "test.html"
1188
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
1189
- <iso-standard xmlns="http://riboseinc.com/isoxml">
1190
- <preface><foreword>
1191
- <example id="samplecode">
1192
- <p>ABC</p>
1193
- </example>
1194
- </foreword></preface>
1195
- </iso-standard>
1334
+ IsoDoc::WordConvert.new(OPTIONS).convert("test", <<~"INPUT", false)
1335
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1336
+ <preface><foreword>
1337
+ <example id="samplecode">
1338
+ <p>ABC</p>
1339
+ </example>
1340
+ </foreword></preface>
1341
+ </iso-standard>
1196
1342
  INPUT
1197
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
1198
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1343
+ word = File.read("test.doc")
1344
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">')
1345
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1199
1346
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
1200
- <div class="WordSection2">
1201
- <p class="MsoNormal">
1202
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1203
- </p>
1204
- <div>
1205
- <h1 class="ForewordTitle">Foreword</h1>
1206
- <div class="example"><a name="samplecode" id="samplecode"></a>
1207
- <p class="example">ABC</p>
1208
- </div>
1347
+ <div class="WordSection2">
1348
+ <p class="MsoNormal">
1349
+ <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1350
+ </p>
1351
+ <div>
1352
+ <h1 class="ForewordTitle">Foreword</h1>
1353
+ <div class="example"><a name="samplecode" id="samplecode"></a>
1354
+ <p class="example">ABC</p>
1209
1355
  </div>
1210
- <p class="MsoNormal">&#xA0;</p>
1211
- </div>
1356
+ </div>
1357
+ <p class="MsoNormal">&#xA0;</p>
1358
+ </div>
1212
1359
  OUTPUT
1213
1360
  end
1214
1361
 
1215
1362
  it "deals with image captions (Word)" do
1216
- FileUtils.rm_f "test.doc"
1363
+ FileUtils.rm_f "test.doc"
1217
1364
  FileUtils.rm_f "test.html"
1218
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
1219
- <iso-standard xmlns="http://riboseinc.com/isoxml">
1220
- <preface><foreword>
1221
- <figure id="fig1">
1222
- <name>Typical arrangement of the far-field scan set-up</name>
1223
- <image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
1224
- </figure>
1225
- </foreword></preface>
1226
- </iso-standard>
1227
- INPUT
1228
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
1229
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "").
1230
- sub(/src="[^"]+"/, 'src="_"')
1365
+ IsoDoc::WordConvert.new(OPTIONS)
1366
+ .convert("test", <<~"INPUT", false)
1367
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1368
+ <preface><foreword>
1369
+ <figure id="fig1">
1370
+ <name>Typical arrangement of the far-field scan set-up</name>
1371
+ <image src="spec/assets/rice_image1.png" id="_" mimetype="image/png"/>
1372
+ </figure>
1373
+ </foreword></preface>
1374
+ </iso-standard>
1375
+ INPUT
1376
+ word = File.read("test.doc")
1377
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">')
1378
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1379
+ .sub(/src="[^"]+"/, 'src="_"')
1231
1380
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
1232
- <div class="WordSection2">
1233
- <p class="MsoNormal">
1234
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1235
- </p>
1236
- <div>
1237
- <h1 class="ForewordTitle">Foreword</h1>
1238
- <div class="figure"><a name="fig1" id="fig1"></a>
1239
- <p style="page-break-after:avoid;" class="figure"><img src="_" width="400" height="337"/></p>
1240
- <p class="FigureTitle" style="text-align:center;">Typical arrangement of the far-field scan set-up</p></div>
1381
+ <div class="WordSection2">
1382
+ <p class="MsoNormal">
1383
+ <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1384
+ </p>
1385
+ <div>
1386
+ <h1 class="ForewordTitle">Foreword</h1>
1387
+ <div class="figure"><a name="fig1" id="fig1"></a>
1388
+ <p style="page-break-after:avoid;" class="figure"><img src="_" width="400" height="337"/></p>
1389
+ <p class="FigureTitle" style="text-align:center;">Typical arrangement of the far-field scan set-up</p></div>
1390
+ </div>
1391
+ <p class="MsoNormal">&#xA0;</p>
1241
1392
  </div>
1242
- <p class="MsoNormal">&#xA0;</p>
1243
- </div>
1244
1393
  OUTPUT
1245
-
1246
1394
  end
1247
1395
 
1248
1396
  it "deals with empty table titles (Word)" do
1249
1397
  FileUtils.rm_f "test.doc"
1250
1398
  FileUtils.rm_f "test.html"
1251
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
1252
- <iso-standard xmlns="http://riboseinc.com/isoxml">
1253
- <preface><foreword>
1254
- <table id="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7" unnumbered="true"><thead><tr>
1255
- <td rowspan="2">
1256
- <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>
1257
- </td>
1258
- <th colspan="3" align="left">Predictive wavelengths</th>
1259
- </tr>
1260
- </thead>
1261
- </table>
1262
- </preface>
1263
- </iso-standard>
1264
- INPUT
1265
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">').
1266
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "").
1267
- sub(/src="[^"]+"/, 'src="_"')
1399
+ IsoDoc::WordConvert.new(OPTIONS)
1400
+ .convert("test", <<~"INPUT", false)
1401
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1402
+ <preface><foreword>
1403
+ <table id="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7" unnumbered="true"><thead><tr>
1404
+ <td rowspan="2">
1405
+ <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>
1406
+ </td>
1407
+ <th colspan="3" align="left">Predictive wavelengths</th>
1408
+ </tr>
1409
+ </thead>
1410
+ </table>
1411
+ </preface>
1412
+ </iso-standard>
1413
+ INPUT
1414
+ word = File.read("test.doc")
1415
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">')
1416
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1417
+ .sub(/src="[^"]+"/, 'src="_"')
1268
1418
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
1269
- <div class="WordSection2" xmlns:m="m">
1270
- <p class="MsoNormal">
1271
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1272
- </p>
1273
- <div>
1274
- <h1 class="ForewordTitle">Foreword</h1>
1275
- <div align="center" class="table_container">
1276
- <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>
1277
- <thead>
1278
- <tr>
1279
- <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;">
1280
- <p class="MsoNormal"><a name="_c47d9b39-adb2-431d-9320-78cb148fdb56" id="_c47d9b39-adb2-431d-9320-78cb148fdb56"></a>Output wavelength <span class="stem">
1281
- <m:oMath>
1282
- <span style='font-style:normal;'>
1283
- <m:r>
1284
- <m:rPr>
1285
- <m:sty m:val='p'/>
1286
- </m:rPr>
1287
- <m:t>(</m:t>
1288
- </m:r>
1289
- </span>
1290
- <m:r>
1291
- <m:t>&#x3BC;m)</m:t>
1292
- </m:r>
1293
- </m:oMath>
1294
- </span></p>
1295
- </td>
1296
- <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>
1297
- </tr>
1298
- </thead>
1299
- </table>
1300
- </div>
1301
- </div>
1302
- <p class="MsoNormal">&#xA0;</p>
1303
- </div>
1419
+ <div class="WordSection2" xmlns:m="m">
1420
+ <p class="MsoNormal">
1421
+ <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
1422
+ </p>
1423
+ <div>
1424
+ <h1 class="ForewordTitle">Foreword</h1>
1425
+ <div align="center" class="table_container">
1426
+ <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>
1427
+ <thead>
1428
+ <tr>
1429
+ <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;">
1430
+ <p class="MsoNormal"><a name="_c47d9b39-adb2-431d-9320-78cb148fdb56" id="_c47d9b39-adb2-431d-9320-78cb148fdb56"></a>Output wavelength <span class="stem">
1431
+ <m:oMath>
1432
+ <span style='font-style:normal;'>
1433
+ <m:r>
1434
+ <m:rPr>
1435
+ <m:sty m:val='p'/>
1436
+ </m:rPr>
1437
+ <m:t>(</m:t>
1438
+ </m:r>
1439
+ </span>
1440
+ <m:r>
1441
+ <m:t>&#x3BC;m)</m:t>
1442
+ </m:r>
1443
+ </m:oMath>
1444
+ </span></p>
1445
+ </td>
1446
+ <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>
1447
+ </tr>
1448
+ </thead>
1449
+ </table>
1450
+ </div>
1451
+ </div>
1452
+ <p class="MsoNormal">&#xA0;</p>
1453
+ </div>
1304
1454
  OUTPUT
1305
1455
  end
1306
1456
 
1307
- it "propagates alignment of table cells (Word)" do
1457
+ it "propagates alignment of table cells (Word)" do
1308
1458
  FileUtils.rm_f "test.doc"
1309
1459
  FileUtils.rm_f "test.html"
1310
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
1311
- <iso-standard xmlns="http://riboseinc.com/isoxml">
1312
- <preface><foreword>
1313
- <table id="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7" unnumbered="true"><thead><tr>
1314
- <td rowspan="2" align="left">
1315
- <p id="_c47d9b39-adb2-431d-9320-78cb148fdb56">Output wavelength</p>
1316
- <p id="_c47d9b39-adb2-431d-9320-78cb148fdb57">Output wavelength</p>
1317
- </td>
1318
- <th colspan="3" align="right"><p id="_c47d9b39-adb2-431d-9320-78cb148fdb58">Predictive wavelengths</p></th>
1319
- </tr>
1320
- </thead>
1321
- </table>
1322
- </preface>
1323
- </iso-standard>
1324
- INPUT
1325
- word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">').
1326
- sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "").
1327
- sub(/src="[^"]+"/, 'src="_"')
1460
+ IsoDoc::WordConvert.new(OPTIONS)
1461
+ .convert("test", <<~"INPUT", false)
1462
+ #{' '}
1463
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1464
+ <preface><foreword>
1465
+ <table id="_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7" unnumbered="true"><thead><tr>
1466
+ <td rowspan="2" align="left">
1467
+ <p id="_c47d9b39-adb2-431d-9320-78cb148fdb56">Output wavelength</p>
1468
+ <p id="_c47d9b39-adb2-431d-9320-78cb148fdb57">Output wavelength</p>
1469
+ </td>
1470
+ <th colspan="3" align="right"><p id="_c47d9b39-adb2-431d-9320-78cb148fdb58">Predictive wavelengths</p></th>
1471
+ </tr>
1472
+ </thead>
1473
+ </table>
1474
+ </preface>
1475
+ </iso-standard>
1476
+ INPUT
1477
+ word = File.read("test.doc")
1478
+ .sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2" xmlns:m="m">')
1479
+ .sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
1480
+ .sub(/src="[^"]+"/, 'src="_"')
1328
1481
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
1329
- <div class='WordSection2' xmlns:m='m'>
1330
- <p class='MsoNormal'>
1331
- <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1332
- </p>
1333
- <div>
1334
- <h1 class='ForewordTitle'>Foreword</h1>
1335
- <div align='center' class="table_container">
1336
- <table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
1337
- <a name='_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7' id='_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7'/>
1338
- <thead>
1339
- <tr>
1340
- <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;'>
1341
- <p style='text-align: left' class='MsoNormal'>
1342
- <a name='_c47d9b39-adb2-431d-9320-78cb148fdb56' id='_c47d9b39-adb2-431d-9320-78cb148fdb56'/>
1343
- Output wavelength
1344
- </p>
1345
- <p style='text-align: left' class='MsoNormal'>
1346
- <a name='_c47d9b39-adb2-431d-9320-78cb148fdb57' id='_c47d9b39-adb2-431d-9320-78cb148fdb57'/>
1347
- Output wavelength
1348
- </p>
1349
- </td>
1350
- <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;'>
1351
- <p style='text-align: right' class='MsoNormal'>
1352
- <a name='_c47d9b39-adb2-431d-9320-78cb148fdb58' id='_c47d9b39-adb2-431d-9320-78cb148fdb58'/>
1353
- Predictive wavelengths
1354
- </p>
1355
- </th>
1356
- </tr>
1357
- </thead>
1358
- </table>
1482
+ <div class='WordSection2' xmlns:m='m'>
1483
+ <p class='MsoNormal'>
1484
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1485
+ </p>
1486
+ <div>
1487
+ <h1 class='ForewordTitle'>Foreword</h1>
1488
+ <div align='center' class="table_container">
1489
+ <table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
1490
+ <a name='_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7' id='_fe12b8f8-6858-4cd6-af7d-d4b6f3ebd1a7'/>
1491
+ <thead>
1492
+ <tr>
1493
+ <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;'>
1494
+ <p style='text-align: left' class='MsoNormal'>
1495
+ <a name='_c47d9b39-adb2-431d-9320-78cb148fdb56' id='_c47d9b39-adb2-431d-9320-78cb148fdb56'/>
1496
+ Output wavelength
1497
+ </p>
1498
+ <p style='text-align: left' class='MsoNormal'>
1499
+ <a name='_c47d9b39-adb2-431d-9320-78cb148fdb57' id='_c47d9b39-adb2-431d-9320-78cb148fdb57'/>
1500
+ Output wavelength
1501
+ </p>
1502
+ </td>
1503
+ <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;'>
1504
+ <p style='text-align: right' class='MsoNormal'>
1505
+ <a name='_c47d9b39-adb2-431d-9320-78cb148fdb58' id='_c47d9b39-adb2-431d-9320-78cb148fdb58'/>
1506
+ Predictive wavelengths
1507
+ </p>
1508
+ </th>
1509
+ </tr>
1510
+ </thead>
1511
+ </table>
1512
+ </div>
1359
1513
  </div>
1514
+ <p class='MsoNormal'>&#xA0;</p>
1360
1515
  </div>
1361
- <p class='MsoNormal'>&#xA0;</p>
1362
- </div>
1363
- OUTPUT
1364
- end
1516
+ OUTPUT
1517
+ end
1365
1518
 
1366
- it "cleans up boilerplate" do
1367
- 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")
1368
- <html>
1369
- <head/>
1370
- <body>
1371
- <div class="main-section">
1372
- <div id="boilerplate-copyright"> <h1>Copyright</h1> </div>
1373
- <div id="boilerplate-license"> <h1>License</h1> </div>
1374
- <div id="boilerplate-legal"> <h1>Legal</h1> </div>
1375
- <div id="boilerplate-feedback"> <h1>Feedback</h1> </div>
1376
- <hr/>
1377
- <div id="boilerplate-feedback-destination"/>
1378
- <div id="boilerplate-legal-destination"/>
1379
- <div id="boilerplate-license-destination"/>
1380
- <div id="boilerplate-copyright-destination"/>
1381
- </div>
1382
- </body>
1383
- </html>
1384
- INPUT
1385
- <main class='main-section'>
1386
- <button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
1519
+ it "cleans up boilerplate" do
1520
+ 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")
1521
+ <html>
1522
+ <head/>
1523
+ <body>
1524
+ <div class="main-section">
1525
+ <div id="boilerplate-copyright"> <h1>Copyright</h1> </div>
1526
+ <div id="boilerplate-license"> <h1>License</h1> </div>
1527
+ <div id="boilerplate-legal"> <h1>Legal</h1> </div>
1528
+ <div id="boilerplate-feedback"> <h1>Feedback</h1> </div>
1387
1529
  <hr/>
1388
- <div id='boilerplate-feedback'>
1389
- <h1 class='IntroTitle'>Feedback</h1>
1390
- </div>
1391
- <div id='boilerplate-legal'>
1392
- <h1 class='IntroTitle'>Legal</h1>
1530
+ <div id="boilerplate-feedback-destination"/>
1531
+ <div id="boilerplate-legal-destination"/>
1532
+ <div id="boilerplate-license-destination"/>
1533
+ <div id="boilerplate-copyright-destination"/>
1393
1534
  </div>
1394
- <div id='boilerplate-license'>
1395
- <h1 class='IntroTitle'>License</h1>
1396
- </div>
1397
- <div id='boilerplate-copyright'>
1398
- <h1 class='IntroTitle'>Copyright</h1>
1399
- </div>
1400
- </main>
1535
+ </body>
1536
+ </html>
1537
+ INPUT
1538
+ <main class='main-section'>
1539
+ <button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
1540
+ <hr/>
1541
+ <div id='boilerplate-feedback'>
1542
+ <h1 class='IntroTitle'>Feedback</h1>
1543
+ </div>
1544
+ <div id='boilerplate-legal'>
1545
+ <h1 class='IntroTitle'>Legal</h1>
1546
+ </div>
1547
+ <div id='boilerplate-license'>
1548
+ <h1 class='IntroTitle'>License</h1>
1549
+ </div>
1550
+ <div id='boilerplate-copyright'>
1551
+ <h1 class='IntroTitle'>Copyright</h1>
1552
+ </div>
1553
+ </main>
1401
1554
  OUTPUT
1402
1555
  end
1403
1556
 
1404
- it "cleans up boilerplate (Word)" do
1405
- 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")
1406
- <html>
1407
- <head/>
1408
- <body>
1409
- <div class="main-section">
1410
- <div id="boilerplate-copyright"> <h1>Copyright</h1> </div>
1411
- <div id="boilerplate-license"> <h1>License</h1> </div>
1412
- <div id="boilerplate-legal"> <h1>Legal</h1> </div>
1413
- <div id="boilerplate-feedback"> <h1>Feedback</h1> </div>
1414
- <hr/>
1415
- <div id="boilerplate-feedback-destination"/>
1416
- <div id="boilerplate-legal-destination"/>
1417
- <div id="boilerplate-license-destination"/>
1418
- <div id="boilerplate-copyright-destination"/>
1419
- </div>
1420
- </body>
1421
- </html>
1422
- INPUT
1423
- <html>
1424
- <head/>
1425
- <body>
1426
- <div class='main-section'>
1557
+ it "cleans up boilerplate (Word)" do
1558
+ 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")
1559
+ <html>
1560
+ <head/>
1561
+ <body>
1562
+ <div class="main-section">
1563
+ <div id="boilerplate-copyright"> <h1>Copyright</h1> </div>
1564
+ <div id="boilerplate-license"> <h1>License</h1> </div>
1565
+ <div id="boilerplate-legal"> <h1>Legal</h1> </div>
1566
+ <div id="boilerplate-feedback"> <h1>Feedback</h1> </div>
1427
1567
  <hr/>
1428
- <div id='boilerplate-feedback'>
1429
- <p class='TitlePageSubhead'>Feedback</p>
1430
- </div>
1431
- <div id='boilerplate-legal'>
1432
- <p class='TitlePageSubhead'>Legal</p>
1433
- </div>
1434
- <div id='boilerplate-license'>
1435
- <p class='TitlePageSubhead'>License</p>
1568
+ <div id="boilerplate-feedback-destination"/>
1569
+ <div id="boilerplate-legal-destination"/>
1570
+ <div id="boilerplate-license-destination"/>
1571
+ <div id="boilerplate-copyright-destination"/>
1436
1572
  </div>
1437
- <div id='boilerplate-copyright'>
1438
- <p class='TitlePageSubhead'>Copyright</p>
1439
- </div>
1440
- </div>
1441
- </body>
1442
- </html>
1573
+ </body>
1574
+ </html>
1575
+ INPUT
1576
+ <html>
1577
+ <head/>
1578
+ <body>
1579
+ <div class='main-section'>
1580
+ <hr/>
1581
+ <div id='boilerplate-feedback'>
1582
+ <p class='TitlePageSubhead'>Feedback</p>
1583
+ </div>
1584
+ <div id='boilerplate-legal'>
1585
+ <p class='TitlePageSubhead'>Legal</p>
1586
+ </div>
1587
+ <div id='boilerplate-license'>
1588
+ <p class='TitlePageSubhead'>License</p>
1589
+ </div>
1590
+ <div id='boilerplate-copyright'>
1591
+ <p class='TitlePageSubhead'>Copyright</p>
1592
+ </div>
1593
+ </div>
1594
+ </body>
1595
+ </html>
1443
1596
  OUTPUT
1444
1597
  end
1445
1598
 
1446
- it "deals with landscape and portrait pagebreaks (Word)" do
1447
- FileUtils.rm_f "test.doc"
1448
- IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss", filename: "test"}).convert("test", <<~"INPUT", false)
1449
- <standard-document xmlns="http://riboseinc.com/isoxml">
1450
- <bibdata type="standard">
1451
- <title language="en" format="text/plain">Document title</title>
1452
- <version>
1453
- <draft>1.2</draft>
1454
- </version>
1455
- <language>en</language>
1456
- <script>Latn</script>
1457
- <status><stage>published</stage></status>
1458
- <ext>
1459
- <doctype>article</doctype>
1460
- </ext>
1461
- </bibdata>
1462
- <preface>
1463
- <introduction><title>Preface 1</title>
1464
- <p align="center">This is a <pagebreak orientation="landscape"/> paragraph</p>
1465
- <table>
1466
- <tbody>
1467
- <tr><td>A</td><td>B</td></tr>
1468
- </tbody>
1469
- </table>
1470
- <clause><title>Preface 1.1</title>
1471
- <p>On my side</p>
1472
- <pagebreak orientation="portrait"/>
1473
- <p>Upright again</p>
1474
- </clause>
1475
- <clause><title>Preface 1.3</title>
1476
- <p>And still upright</p>
1477
- </clause>
1478
- </introduction>
1479
- </preface>
1480
- <sections><clause><title>Foreword</title>
1481
- <note>
1482
- <p id="_">For further information on the Foreword, see <strong>ISO/IEC Directives, Part 2, 2016, Clause 12.</strong></p>
1483
- <pagebreak orientation="landscape"/>
1484
- <table id="_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249">
1485
- <thead>
1486
- <tr>
1487
- <th align="left">A</th>
1488
- <th align="left">B</th>
1489
- </tr>
1490
- </thead>
1491
- <tbody>
1492
- <tr>
1493
- <td align="left">C</td>
1494
- <td align="left">D</td>
1495
- </tr>
1496
- </tbody>
1497
- <note id="_8fff1596-290e-4314-b03c-7a8aab97eebe">
1498
- <p id="_32c22439-387a-48cf-a006-5ab3b934ba73">B</p>
1499
- </note></table>
1500
- <pagebreak orientation="portrait"/>
1501
- <p>And up</p>
1502
- </note>
1503
- <pagebreak orientation="portrait"/>
1504
- </clause></sections>
1505
- <annex id="_level_1" inline-header="false" obligation="normative">
1506
- <title>Annex 1</title>
1507
- </annex>
1508
- </standard-document>
1509
- INPUT
1510
- expect(File.exist?("test.doc")).to be true
1599
+ it "deals with landscape and portrait pagebreaks (Word)" do
1600
+ FileUtils.rm_f "test.doc"
1601
+ IsoDoc::WordConvert.new(
1602
+ { wordstylesheet: "spec/assets/word.css",
1603
+ htmlstylesheet: "spec/assets/html.scss", filename: "test" },
1604
+ ).convert("test", <<~"INPUT", false)
1605
+ <standard-document xmlns="http://riboseinc.com/isoxml">
1606
+ <bibdata type="standard">
1607
+ <title language="en" format="text/plain">Document title</title>
1608
+ <version>
1609
+ <draft>1.2</draft>
1610
+ </version>
1611
+ <language>en</language>
1612
+ <script>Latn</script>
1613
+ <status><stage>published</stage></status>
1614
+ <ext>
1615
+ <doctype>article</doctype>
1616
+ </ext>
1617
+ </bibdata>
1618
+ <preface>
1619
+ <introduction><title>Preface 1</title>
1620
+ <p align="center">This is a <pagebreak orientation="landscape"/> paragraph</p>
1621
+ <table>
1622
+ <tbody>
1623
+ <tr><td>A</td><td>B</td></tr>
1624
+ </tbody>
1625
+ </table>
1626
+ <clause><title>Preface 1.1</title>
1627
+ <p>On my side</p>
1628
+ <pagebreak orientation="portrait"/>
1629
+ <p>Upright again</p>
1630
+ </clause>
1631
+ <clause><title>Preface 1.3</title>
1632
+ <p>And still upright</p>
1633
+ </clause>
1634
+ </introduction>
1635
+ </preface>
1636
+ <sections><clause><title>Foreword</title>
1637
+ <note>
1638
+ <p id="_">For further information on the Foreword, see <strong>ISO/IEC Directives, Part 2, 2016, Clause 12.</strong></p>
1639
+ <pagebreak orientation="landscape"/>
1640
+ <table id="_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249">
1641
+ <thead>
1642
+ <tr>
1643
+ <th align="left">A</th>
1644
+ <th align="left">B</th>
1645
+ </tr>
1646
+ </thead>
1647
+ <tbody>
1648
+ <tr>
1649
+ <td align="left">C</td>
1650
+ <td align="left">D</td>
1651
+ </tr>
1652
+ </tbody>
1653
+ <note id="_8fff1596-290e-4314-b03c-7a8aab97eebe">
1654
+ <p id="_32c22439-387a-48cf-a006-5ab3b934ba73">B</p>
1655
+ </note></table>
1656
+ <pagebreak orientation="portrait"/>
1657
+ <p>And up</p>
1658
+ </note>
1659
+ <pagebreak orientation="portrait"/>
1660
+ </clause></sections>
1661
+ <annex id="_level_1" inline-header="false" obligation="normative">
1662
+ <title>Annex 1</title>
1663
+ </annex>
1664
+ </standard-document>
1665
+ INPUT
1666
+ expect(File.exist?("test.doc")).to be true
1511
1667
  html = File.read("test.doc", encoding: "UTF-8")
1512
1668
  expect(html).to include "div.WordSection2_0 {page:WordSection2P;}"
1513
- expect(html).to include "div.WordSection2_1 {page:WordSection2L;}"
1669
+ expect(html).to include "div.WordSection2_1 {page:WordSection2L;}"
1514
1670
  expect(html).to include "div.WordSection3_0 {page:WordSection3P;}"
1515
- expect(html).to include "div.WordSection3_1 {page:WordSection3P;}"
1516
- expect(html).to include "div.WordSection3_2 {page:WordSection3L;}"
1671
+ expect(html).to include "div.WordSection3_1 {page:WordSection3P;}"
1672
+ expect(html).to include "div.WordSection3_2 {page:WordSection3L;}"
1517
1673
 
1518
-
1519
- expect(xmlpp(html.sub(/^.*<body /m, "<body ").sub(%r{</body>.*$}m, "</body>"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1520
- <body lang='EN-US' xml:lang='EN-US' link='blue' vlink='#954F72'>
1521
- <div class='WordSection1'>
1522
- <p class='MsoNormal'>&#xA0;</p>
1523
- </div>
1524
- <p class='MsoNormal'>
1525
- <br clear='all' class='section'/>
1526
- </p>
1527
- <div class='WordSection2'>
1528
- <p class='MsoNormal'>
1529
- <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1530
- </p>
1531
- <div class='Section3' id=''>
1532
- <h1 class='IntroTitle'>Preface 1</h1>
1533
- <p align='center' style='text-align:center;' class='MsoNormal'>
1534
- This is a
1535
- <p class='MsoNormal'>
1536
- <br clear='all' class='section'/>
1537
- </p>
1538
- paragraph
1539
- </p>
1540
- </div>
1541
- </div>
1542
- <div class='WordSection2_1'>
1543
- <div align='center' class='table_container'>
1544
- <table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
1545
- <tbody>
1546
- <tr>
1547
- <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>
1548
- <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>
1549
- </tr>
1550
- </tbody>
1551
- </table>
1552
- </div>
1553
- <div>
1554
- <h2>Preface 1.1</h2>
1555
- <p class='MsoNormal'>On my side</p>
1556
- <p class='MsoNormal'>
1557
- <br clear='all' class='section'/>
1558
- </p>
1559
- </div>
1560
- </div>
1561
- <div class='WordSection2_0'>
1562
- <p class='MsoNormal'>Upright again</p>
1563
- <div>
1564
- <h2>Preface 1.3</h2>
1565
- <p class='MsoNormal'>And still upright</p>
1566
- </div>
1567
- <p class='MsoNormal'>&#xA0;</p>
1568
- </div>
1569
- <p class='MsoNormal'>
1570
- <br clear='all' class='section'/>
1571
- </p>
1572
- <div class='WordSection3'>
1573
- <p class='zzSTDTitle1'>Document title</p>
1574
- <div>
1575
- <h1>Foreword</h1>
1576
- <div class='Note'>
1577
- <p class='Note'>
1578
- <span class='note_label'/>
1579
- <span style='mso-tab-count:1'>&#xA0; </span>
1580
- For further information on the Foreword, see
1581
- <b>ISO/IEC Directives, Part 2, 2016, Clause 12.</b>
1582
- </p>
1583
- <p class='Note'>
1584
- <br clear='all' class='section'/>
1585
- </p>
1586
- </div>
1587
- </div>
1588
- </div>
1589
- <div class='WordSection3_2'>
1590
- <div align='center' class='table_container'>
1591
- <table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
1592
- <a name='_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249' id='_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249'/>
1593
- <thead>
1594
- <tr>
1595
- <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>
1596
- <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>
1597
- </tr>
1598
- </thead>
1599
- <tbody>
1600
- <tr>
1601
- <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>
1602
- <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>
1603
- </tr>
1604
- </tbody>
1605
- <tfoot>
1606
- <tr>
1607
- <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;'>
1674
+ expect(xmlpp(html.sub(/^.*<body /m, "<body ")
1675
+ .sub(%r{</body>.*$}m, "</body>"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1676
+ <body lang='EN-US' xml:lang='EN-US' link='blue' vlink='#954F72'>
1677
+ <div class='WordSection1'>
1678
+ <p class='MsoNormal'>&#xA0;</p>
1679
+ </div>
1680
+ <p class='MsoNormal'>
1681
+ <br clear='all' class='section'/>
1682
+ </p>
1683
+ <div class='WordSection2'>
1684
+ <p class='MsoNormal'>
1685
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1686
+ </p>
1687
+ <div class='Section3' id=''>
1688
+ <h1 class='IntroTitle'>Preface 1</h1>
1689
+ <p align='center' style='text-align:center;' class='MsoNormal'>
1690
+ This is a
1691
+ <p class='MsoNormal'>
1692
+ <br clear='all' class='section'/>
1693
+ </p>
1694
+ paragraph
1695
+ </p>
1696
+ </div>
1697
+ </div>
1698
+ <div class='WordSection2_1'>
1699
+ <div align='center' class='table_container'>
1700
+ <table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
1701
+ <tbody>
1702
+ <tr>
1703
+ <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>
1704
+ <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>
1705
+ </tr>
1706
+ </tbody>
1707
+ </table>
1708
+ </div>
1709
+ <div>
1710
+ <h2>Preface 1.1</h2>
1711
+ <p class='MsoNormal'>On my side</p>
1712
+ <p class='MsoNormal'>
1713
+ <br clear='all' class='section'/>
1714
+ </p>
1715
+ </div>
1716
+ </div>
1717
+ <div class='WordSection2_0'>
1718
+ <p class='MsoNormal'>Upright again</p>
1719
+ <div>
1720
+ <h2>Preface 1.3</h2>
1721
+ <p class='MsoNormal'>And still upright</p>
1722
+ </div>
1723
+ <p class='MsoNormal'>&#xA0;</p>
1724
+ </div>
1725
+ <p class='MsoNormal'>
1726
+ <br clear='all' class='section'/>
1727
+ </p>
1728
+ <div class='WordSection3'>
1729
+ <p class='zzSTDTitle1'>Document title</p>
1730
+ <div>
1731
+ <h1>Foreword</h1>
1608
1732
  <div class='Note'>
1609
- <a name='_8fff1596-290e-4314-b03c-7a8aab97eebe' id='_8fff1596-290e-4314-b03c-7a8aab97eebe'/>
1610
1733
  <p class='Note'>
1611
1734
  <span class='note_label'/>
1612
1735
  <span style='mso-tab-count:1'>&#xA0; </span>
1613
- B
1736
+ For further information on the Foreword, see
1737
+ <b>ISO/IEC Directives, Part 2, 2016, Clause 12.</b>
1738
+ </p>
1739
+ <p class='Note'>
1740
+ <br clear='all' class='section'/>
1614
1741
  </p>
1615
1742
  </div>
1616
- </td>
1617
- </tr>
1618
- </tfoot>
1619
- </table>
1620
- </div>
1621
- <p class='Note'>
1743
+ </div>
1744
+ </div>
1745
+ <div class='WordSection3_2'>
1746
+ <div align='center' class='table_container'>
1747
+ <table class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
1748
+ <a name='_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249' id='_c09a7e60-b0c7-4418-9bfc-2ef0bc09a249'/>
1749
+ <thead>
1750
+ <tr>
1751
+ <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>
1752
+ <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>
1753
+ </tr>
1754
+ </thead>
1755
+ <tbody>
1756
+ <tr>
1757
+ <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>
1758
+ <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>
1759
+ </tr>
1760
+ </tbody>
1761
+ <tfoot>
1762
+ <tr>
1763
+ <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;'>
1764
+ <div class='Note'>
1765
+ <a name='_8fff1596-290e-4314-b03c-7a8aab97eebe' id='_8fff1596-290e-4314-b03c-7a8aab97eebe'/>
1766
+ <p class='Note'>
1767
+ <span class='note_label'/>
1768
+ <span style='mso-tab-count:1'>&#xA0; </span>
1769
+ B
1770
+ </p>
1771
+ </div>
1772
+ </td>
1773
+ </tr>
1774
+ </tfoot>
1775
+ </table>
1776
+ </div>
1777
+ <p class='Note'>
1778
+ <br clear='all' class='section'/>
1779
+ </p>
1780
+ </div>
1781
+ <div class='WordSection3_1'>
1782
+ <p class='Note'>And up</p>
1783
+ <p class='MsoNormal'>
1622
1784
  <br clear='all' class='section'/>
1623
1785
  </p>
1624
1786
  </div>
1625
- <div class='WordSection3_1'>
1626
- <p class='Note'>And up</p>
1627
- <p class='MsoNormal'>
1628
- <br clear='all' class='section'/>
1629
- </p>
1630
- </div>
1631
- <div class='WordSection3_0'>
1632
- <div class='Section3'>
1633
- <a name='_level_1' id='_level_1'/>
1634
- <h1 class='Annex'>Annex 1</h1>
1635
- </div>
1636
- </div>
1637
- <div style='mso-element:footnote-list'/>
1638
- </body>
1639
- OUTPUT
1640
- end
1787
+ <div class='WordSection3_0'>
1788
+ <div class='Section3'>
1789
+ <a name='_level_1' id='_level_1'/>
1790
+ <h1 class='Annex'>Annex 1</h1>
1791
+ </div>
1792
+ </div>
1793
+ <div style='mso-element:footnote-list'/>
1794
+ </body>
1795
+ OUTPUT
1796
+ end
1641
1797
 
1642
- it "expands out nested tables in Word" do
1643
- 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")
1644
- <html>
1645
- <head/>
1646
- <body>
1647
- <div class="main-section">
1648
- <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>
1649
- <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">
1650
- <p id="_2e2c247b-ce4c-48c5-96dd-f3e090a5b4a7">Description text</p>
1651
- </td></tr></tbody></table>
1652
- </tbody></table>
1653
- </div>
1654
- <div id="_second_sample"><h2>1.2.<span style="mso-tab-count:1">&#xA0; </span>Second sample</h2>
1655
- <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">
1656
- <p id="_30b90b08-bd71-4497-bbcc-8c61fbb9f772">Description text</p>
1657
- </td></tr></tbody></table>
1658
- <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">
1659
- <p id="_8daa3d74-90fd-4a57-9169-de457a68cfda">Description text</p>
1660
- </td></tr></tbody></table></tbody></table>
1661
- </div>
1662
- </body>
1663
- </html>
1798
+ it "expands out nested tables in Word" do
1799
+ 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")
1800
+ <html>
1801
+ <head/>
1802
+ <body>
1803
+ <div class="main-section">
1804
+ <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>
1805
+ <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">
1806
+ <p id="_2e2c247b-ce4c-48c5-96dd-f3e090a5b4a7">Description text</p>
1807
+ </td></tr></tbody></table>
1808
+ </tbody></table>
1809
+ </div>
1810
+ <div id="_second_sample"><h2>1.2.<span style="mso-tab-count:1">&#xA0; </span>Second sample</h2>
1811
+ <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">
1812
+ <p id="_30b90b08-bd71-4497-bbcc-8c61fbb9f772">Description text</p>
1813
+ </td></tr></tbody></table>
1814
+ <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">
1815
+ <p id="_8daa3d74-90fd-4a57-9169-de457a68cfda">Description text</p>
1816
+ </td></tr></tbody></table></tbody></table>
1817
+ </div>
1818
+ </body>
1819
+ </html>
1664
1820
  INPUT
1665
- <html>
1666
- <head/>
1667
- <body>
1668
- <div class='main-section'>
1669
- <table id='_7830dff8-419e-4b9e-85cf-a063689f44ca' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1670
- <thead>
1671
- <tr style='background:#A5A5A5;'>
1672
- <th style='vertical-align:top;' class='recommend' colspan='2'>
1673
- <p class='RecommendationTitle'>Requirement 1:</p>
1674
- </th>
1675
- </tr>
1676
- </thead>
1677
- <tbody>
1678
- <tr>
1679
- <td style='vertical-align:top;' class='recommend' colspan='2'>
1680
- <p>requirement label</p>
1681
- </td>
1682
- </tr>
1683
- </tbody>
1684
- </table>
1685
- <table id='_a0f8c202-fd34-460c-bd5e-b2f4cc29210d' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1686
- <thead>
1687
- <tr style='background:#A5A5A5;'>
1688
- <th style='vertical-align:top;' class='recommend' colspan='2'>
1689
- <p class='RecommendationTitle'>Requirement 1-1:</p>
1690
- </th>
1691
- </tr>
1692
- </thead>
1693
- <tbody>
1694
- <tr style='background:#C9C9C9;'>
1695
- <td style='vertical-align:top;' class='recommend' colspan='2'>
1696
- <p id='_2e2c247b-ce4c-48c5-96dd-f3e090a5b4a7'>Description text</p>
1697
- </td>
1698
- </tr>
1699
- </tbody>
1700
- </table>
1701
- </div>
1702
- <div id='_second_sample'>
1703
- <h2>
1704
- 1.2.
1705
- <span style='mso-tab-count:1'>&#xA0; </span>
1706
- Second sample
1707
- </h2>
1708
- <table id='_9846c486-14e5-4b1c-bb2f-55cc254dd309' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1709
- <thead>
1710
- <tr style='background:#A5A5A5;'>
1711
- <th style='vertical-align:top;' class='recommend' colspan='2'>
1712
- <p class='RecommendationTitle'>Requirement 2:</p>
1713
- </th>
1714
- </tr>
1715
- </thead>
1716
- <tbody>
1717
- <tr>
1718
- <td style='vertical-align:top;' class='recommend' colspan='2'>
1719
- <p>requirement label</p>
1720
- </td>
1721
- </tr>
1722
- </tbody>
1723
- </table>
1724
- <table id='_62de974c-7128-44d6-ba86-99f818f1d467' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1725
- <thead>
1726
- <tr style='background:#A5A5A5;'>
1727
- <th style='vertical-align:top;' class='recommend' colspan='2'>
1728
- <p class='RecommendationTitle'>Requirement 2-1:</p>
1729
- </th>
1730
- </tr>
1731
- </thead>
1732
- <tbody>
1733
- <tr style='background:#C9C9C9;'>
1734
- <td style='vertical-align:top;' class='recommend' colspan='2'>
1735
- <p id='_30b90b08-bd71-4497-bbcc-8c61fbb9f772'>Description text</p>
1736
- </td>
1737
- </tr>
1738
- </tbody>
1739
- </table>
1740
- <table id='_fede5681-71f6-47bb-bc65-7bd0b11acd01' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1741
- <thead>
1742
- <tr style='background:#A5A5A5;'>
1743
- <th style='vertical-align:top;' class='recommend' colspan='2'>
1744
- <p class='RecommendationTitle'>Requirement 2-2:</p>
1745
- </th>
1746
- </tr>
1747
- </thead>
1748
- <tbody>
1749
- <tr>
1750
- <td style='vertical-align:top;' class='recommend' colspan='2'>
1751
- <p id='_8daa3d74-90fd-4a57-9169-de457a68cfda'>Description text</p>
1752
- </td>
1753
- </tr>
1754
- </tbody>
1755
- </table>
1756
- </div>
1757
- </body>
1758
- </html>
1821
+ <html>
1822
+ <head/>
1823
+ <body>
1824
+ <div class='main-section'>
1825
+ <table id='_7830dff8-419e-4b9e-85cf-a063689f44ca' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1826
+ <thead>
1827
+ <tr style='background:#A5A5A5;'>
1828
+ <th style='vertical-align:top;' class='recommend' colspan='2'>
1829
+ <p class='RecommendationTitle'>Requirement 1:</p>
1830
+ </th>
1831
+ </tr>
1832
+ </thead>
1833
+ <tbody>
1834
+ <tr>
1835
+ <td style='vertical-align:top;' class='recommend' colspan='2'>
1836
+ <p>requirement label</p>
1837
+ </td>
1838
+ </tr>
1839
+ </tbody>
1840
+ </table>
1841
+ <table id='_a0f8c202-fd34-460c-bd5e-b2f4cc29210d' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1842
+ <thead>
1843
+ <tr style='background:#A5A5A5;'>
1844
+ <th style='vertical-align:top;' class='recommend' colspan='2'>
1845
+ <p class='RecommendationTitle'>Requirement 1-1:</p>
1846
+ </th>
1847
+ </tr>
1848
+ </thead>
1849
+ <tbody>
1850
+ <tr style='background:#C9C9C9;'>
1851
+ <td style='vertical-align:top;' class='recommend' colspan='2'>
1852
+ <p id='_2e2c247b-ce4c-48c5-96dd-f3e090a5b4a7'>Description text</p>
1853
+ </td>
1854
+ </tr>
1855
+ </tbody>
1856
+ </table>
1857
+ </div>
1858
+ <div id='_second_sample'>
1859
+ <h2>
1860
+ 1.2.
1861
+ <span style='mso-tab-count:1'>&#xA0; </span>
1862
+ Second sample
1863
+ </h2>
1864
+ <table id='_9846c486-14e5-4b1c-bb2f-55cc254dd309' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1865
+ <thead>
1866
+ <tr style='background:#A5A5A5;'>
1867
+ <th style='vertical-align:top;' class='recommend' colspan='2'>
1868
+ <p class='RecommendationTitle'>Requirement 2:</p>
1869
+ </th>
1870
+ </tr>
1871
+ </thead>
1872
+ <tbody>
1873
+ <tr>
1874
+ <td style='vertical-align:top;' class='recommend' colspan='2'>
1875
+ <p>requirement label</p>
1876
+ </td>
1877
+ </tr>
1878
+ </tbody>
1879
+ </table>
1880
+ <table id='_62de974c-7128-44d6-ba86-99f818f1d467' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1881
+ <thead>
1882
+ <tr style='background:#A5A5A5;'>
1883
+ <th style='vertical-align:top;' class='recommend' colspan='2'>
1884
+ <p class='RecommendationTitle'>Requirement 2-1:</p>
1885
+ </th>
1886
+ </tr>
1887
+ </thead>
1888
+ <tbody>
1889
+ <tr style='background:#C9C9C9;'>
1890
+ <td style='vertical-align:top;' class='recommend' colspan='2'>
1891
+ <p id='_30b90b08-bd71-4497-bbcc-8c61fbb9f772'>Description text</p>
1892
+ </td>
1893
+ </tr>
1894
+ </tbody>
1895
+ </table>
1896
+ <table id='_fede5681-71f6-47bb-bc65-7bd0b11acd01' class='recommend' style='border-collapse:collapse;border-spacing:0;'>
1897
+ <thead>
1898
+ <tr style='background:#A5A5A5;'>
1899
+ <th style='vertical-align:top;' class='recommend' colspan='2'>
1900
+ <p class='RecommendationTitle'>Requirement 2-2:</p>
1901
+ </th>
1902
+ </tr>
1903
+ </thead>
1904
+ <tbody>
1905
+ <tr>
1906
+ <td style='vertical-align:top;' class='recommend' colspan='2'>
1907
+ <p id='_8daa3d74-90fd-4a57-9169-de457a68cfda'>Description text</p>
1908
+ </td>
1909
+ </tr>
1910
+ </tbody>
1911
+ </table>
1912
+ </div>
1913
+ </body>
1914
+ </html>
1759
1915
  OUTPUT
1760
- end
1761
-
1916
+ end
1762
1917
 
1763
- it "allocate widths to tables (Word)" do
1764
- 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")
1765
- <html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
1766
- <head><style/></head>
1767
- <body lang='EN-US' link='blue' vlink='#954F72'>
1768
- <div class='WordSection1'>
1769
- <p>&#160;</p>
1770
- </div>
1771
- <p>
1772
- <br clear='all' class='section'/>
1773
- </p>
1774
- <div class='WordSection2'>
1775
- <p>
1776
- <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1777
- </p>
1778
- <div>
1779
- <h1 class='ForewordTitle'>Foreword</h1>
1780
- <p class='TableTitle' style='text-align:center;'>
1781
- Table 1&#160;&#8212; Repeatability and reproducibility of
1782
- <i>husked</i>
1783
- rice yield
1784
- <span style='mso-bookmark:_Ref'>
1785
- <a class='FootnoteRef' href='#ftn1' epub:type='footnote'>
1786
- <sup>1</sup>
1787
- </a>
1788
- </span>
1789
- </p>
1790
- <div align='center' class='table_container'>
1791
- <table id='tableD-1' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;page-break-after: avoid;page-break-inside: avoid;' title='tool tip' summary='long desc' width='70%'>
1792
- <colgroup>
1793
- <col width='30%'/>
1794
- <col width='20%'/>
1795
- <col width='20%'/>
1796
- <col width='20%'/>
1797
- <col width='10%'/>
1798
- </colgroup>
1799
- <thead>
1800
- <tr>
1801
- <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.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Description</td>
1802
- <td colspan='4' align='center' 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;'>Rice sample</td>
1803
- </tr>
1804
- <tr>
1805
- <td align='left' valign="top" style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Arborio</td>
1806
- <td align='center' valign="middle" style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
1807
- Drago
1808
- <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
1809
- <aside>
1810
- <div id='ftntableD-1a'>
1811
- <span>
1812
- <span id='tableD-1a' class='TableFootnoteRef'>a</span>
1813
- <span style='mso-tab-count:1'>&#160; </span>
1814
- </span>
1815
- <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
1816
- </div>
1817
- </aside>
1818
- </td>
1819
- <td align='center' valign="bottom" style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
1820
- Balilla
1821
- <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
1822
- </td>
1823
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Thaibonnet</td>
1824
- </tr>
1825
- </thead>
1826
- <tbody>
1827
- <tr>
1828
- <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.0pt;mso-border-bottom-alt:solid windowtext 1.0pt;'>Number of laboratories retained after eliminating outliers</th>
1829
- <td align='center' 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;'>13</td>
1830
- <td align='center' 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;'>11</td>
1831
- <td align='center' 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;'>13</td>
1832
- <td align='center' 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;'>13</td>
1833
- </tr>
1834
- <tr>
1835
- <td align='left' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Mean value, g/100 g</td>
1836
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>81,2</td>
1837
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>82,0</td>
1838
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>81,8</td>
1839
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>77,7</td>
1840
- </tr>
1841
- </tbody>
1842
- <tfoot>
1843
- <tr>
1844
- <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;'>
1845
- Reproducibility limit,
1846
- <span class='stem'>(#(R)#)</span>
1847
- (= 2,83
1848
- <span class='stem'>(#(s_R)#)</span>
1849
- )
1850
- </td>
1851
- <td align='center' 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;'>2,89</td>
1852
- <td align='center' 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;'>0,57</td>
1853
- <td align='center' 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;'>2,26</td>
1854
- <td align='center' 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;'>6,06</td>
1855
- </tr>
1856
- </tfoot>
1857
- <table class='dl'>
1858
- <tr>
1859
- <td valign='top' align='left'>
1860
- <p align='left' style='margin-left:0pt;text-align:left;'>Drago</p>
1861
- </td>
1862
- <td valign='top'>A type of rice</td>
1863
- </tr>
1864
- </table>
1865
- <div class='Note'>
1866
- <p class='Note'>
1867
- <span class='note_label'>NOTE</span>
1868
- <span style='mso-tab-count:1'>&#160; </span>
1869
- This is a table about rice
1918
+ it "allocate widths to tables (Word)" do
1919
+ 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")
1920
+ <html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
1921
+ <head><style/></head>
1922
+ <body lang='EN-US' link='blue' vlink='#954F72'>
1923
+ <div class='WordSection1'>
1924
+ <p>&#160;</p>
1925
+ </div>
1926
+ <p>
1927
+ <br clear='all' class='section'/>
1928
+ </p>
1929
+ <div class='WordSection2'>
1930
+ <p>
1931
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1932
+ </p>
1933
+ <div>
1934
+ <h1 class='ForewordTitle'>Foreword</h1>
1935
+ <p class='TableTitle' style='text-align:center;'>
1936
+ Table 1&#160;&#8212; Repeatability and reproducibility of
1937
+ <i>husked</i>
1938
+ rice yield
1939
+ <span style='mso-bookmark:_Ref'>
1940
+ <a class='FootnoteRef' href='#ftn1' epub:type='footnote'>
1941
+ <sup>1</sup>
1942
+ </a>
1943
+ </span>
1870
1944
  </p>
1945
+ <div align='center' class='table_container'>
1946
+ <table id='tableD-1' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;page-break-after: avoid;page-break-inside: avoid;' title='tool tip' summary='long desc' width='70%'>
1947
+ <colgroup>
1948
+ <col width='30%'/>
1949
+ <col width='20%'/>
1950
+ <col width='20%'/>
1951
+ <col width='20%'/>
1952
+ <col width='10%'/>
1953
+ </colgroup>
1954
+ <thead>
1955
+ <tr>
1956
+ <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.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Description</td>
1957
+ <td colspan='4' align='center' 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;'>Rice sample</td>
1958
+ </tr>
1959
+ <tr>
1960
+ <td align='left' valign="top" style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Arborio</td>
1961
+ <td align='center' valign="middle" style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
1962
+ Drago
1963
+ <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
1964
+ <aside>
1965
+ <div id='ftntableD-1a'>
1966
+ <span>
1967
+ <span id='tableD-1a' class='TableFootnoteRef'>a</span>
1968
+ <span style='mso-tab-count:1'>&#160; </span>
1969
+ </span>
1970
+ <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
1971
+ </div>
1972
+ </aside>
1973
+ </td>
1974
+ <td align='center' valign="bottom" style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
1975
+ Balilla
1976
+ <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
1977
+ </td>
1978
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Thaibonnet</td>
1979
+ </tr>
1980
+ </thead>
1981
+ <tbody>
1982
+ <tr>
1983
+ <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.0pt;mso-border-bottom-alt:solid windowtext 1.0pt;'>Number of laboratories retained after eliminating outliers</th>
1984
+ <td align='center' 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;'>13</td>
1985
+ <td align='center' 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;'>11</td>
1986
+ <td align='center' 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;'>13</td>
1987
+ <td align='center' 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;'>13</td>
1988
+ </tr>
1989
+ <tr>
1990
+ <td align='left' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>Mean value, g/100 g</td>
1991
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>81,2</td>
1992
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>82,0</td>
1993
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>81,8</td>
1994
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>77,7</td>
1995
+ </tr>
1996
+ </tbody>
1997
+ <tfoot>
1998
+ <tr>
1999
+ <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;'>
2000
+ Reproducibility limit,
2001
+ <span class='stem'>(#(R)#)</span>
2002
+ (= 2,83
2003
+ <span class='stem'>(#(s_R)#)</span>
2004
+ )
2005
+ </td>
2006
+ <td align='center' 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;'>2,89</td>
2007
+ <td align='center' 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;'>0,57</td>
2008
+ <td align='center' 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;'>2,26</td>
2009
+ <td align='center' 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;'>6,06</td>
2010
+ </tr>
2011
+ </tfoot>
2012
+ <table class='dl'>
2013
+ <tr>
2014
+ <td valign='top' align='left'>
2015
+ <p align='left' style='margin-left:0pt;text-align:left;'>Drago</p>
2016
+ </td>
2017
+ <td valign='top'>A type of rice</td>
2018
+ </tr>
2019
+ </table>
2020
+ <div class='Note'>
2021
+ <p class='Note'>
2022
+ <span class='note_label'>NOTE</span>
2023
+ <span style='mso-tab-count:1'>&#160; </span>
2024
+ This is a table about rice
2025
+ </p>
2026
+ </div>
2027
+ </table>
2028
+ </div>
2029
+ <div align='center' class='table_container'>
2030
+ <table id='tableD-2' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
2031
+ <tbody>
2032
+ <tr>
2033
+ <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>
2034
+ </tr>
2035
+ </tbody>
2036
+ </table>
2037
+ </div>
1871
2038
  </div>
1872
- </table>
1873
- </div>
1874
- <div align='center' class='table_container'>
1875
- <table id='tableD-2' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
1876
- <tbody>
1877
- <tr>
1878
- <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>
1879
- </tr>
1880
- </tbody>
1881
- </table>
1882
- </div>
1883
- </div>
1884
- <p>&#160;</p>
1885
- </div>
1886
- <p>
1887
- <br clear='all' class='section'/>
1888
- </p>
1889
- <div class='WordSection3'>
1890
- <p class='zzSTDTitle1'/>
1891
- <aside id='ftn1'>
1892
- <p>X</p>
1893
- </aside>
1894
- </div>
1895
- </body>
1896
- </html>
1897
- INPUT
1898
- <html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
1899
- <head>
1900
- <style/>
1901
- </head>
1902
- <body lang='EN-US' link='blue' vlink='#954F72'>
1903
- <div class='WordSection1'>
1904
- <p>&#xA0;</p>
1905
- </div>
1906
- <p>
1907
- <br clear='all' class='section'/>
1908
- </p>
1909
- <div class='WordSection2'>
1910
- <p>
1911
- <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
1912
- </p>
1913
- <div>
1914
- <h1 class='ForewordTitle'>Foreword</h1>
1915
- <p class='TableTitle' style='text-align:center;'>
1916
- Table 1&#xA0;&#x2014; Repeatability and reproducibility of
1917
- <i>husked</i>
1918
- rice yield
1919
- <span style='mso-bookmark:_Ref'>
1920
- <a class='FootnoteRef' href='#ftn1' epub:type='footnote'>
1921
- <sup>1</sup>
1922
- </a>
1923
- </span>
1924
- </p>
1925
- <div align='center' class='table_container'>
1926
- <table id='tableD-1' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;page-break-after: avoid;page-break-inside: avoid;' title='tool tip' summary='long desc' width='70%'>
1927
- <colgroup>
1928
- <col width='30%'/>
1929
- <col width='20%'/>
1930
- <col width='20%'/>
1931
- <col width='20%'/>
1932
- <col width='10%'/>
1933
- </colgroup>
1934
- <thead>
1935
- <tr>
1936
- <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.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='30.0%'>Description</td>
1937
- <td colspan='4' align='center' 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;' width='70.0%'>Rice sample</td>
1938
- </tr>
1939
- <tr>
1940
- <td align='left' valign='top' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>Arborio</td>
1941
- <td align='center' valign='middle' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>
1942
- Drago
1943
- <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
1944
- <aside>
1945
- <div id='ftntableD-1a'>
1946
- <span>
1947
- <span id='tableD-1a' class='TableFootnoteRef'>a</span>
1948
- <span style='mso-tab-count:1'>&#xA0; </span>
1949
- </span>
1950
- <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
1951
- </div>
1952
- </aside>
1953
- </td>
1954
- <td align='center' valign='bottom' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>
1955
- Balilla
1956
- <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
1957
- </td>
1958
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='10.0%'>Thaibonnet</td>
1959
- </tr>
1960
- </thead>
1961
- <tbody>
1962
- <tr>
1963
- <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.0pt;mso-border-bottom-alt:solid windowtext 1.0pt;' width='30.0%'>Number of laboratories retained after eliminating outliers</th>
1964
- <td align='center' 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;' width='20.0%'>13</td>
1965
- <td align='center' 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;' width='20.0%'>11</td>
1966
- <td align='center' 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;' width='20.0%'>13</td>
1967
- <td align='center' 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;' width='10.0%'>13</td>
1968
- </tr>
1969
- <tr>
1970
- <td align='left' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='30.0%'>Mean value, g/100 g</td>
1971
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>81,2</td>
1972
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>82,0</td>
1973
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>81,8</td>
1974
- <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='10.0%'>77,7</td>
1975
- </tr>
1976
- </tbody>
1977
- <tfoot>
1978
- <tr>
1979
- <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;' width='30.0%'>
1980
- Reproducibility limit,
1981
- <span class='stem'>(#(R)#)</span>
1982
- (= 2,83
1983
- <span class='stem'>(#(s_R)#)</span>
1984
- )
1985
- </td>
1986
- <td align='center' 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;' width='20.0%'>2,89</td>
1987
- <td align='center' 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;' width='20.0%'>0,57</td>
1988
- <td align='center' 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;' width='20.0%'>2,26</td>
1989
- <td align='center' 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;' width='10.0%'>6,06</td>
1990
- </tr>
1991
- </tfoot>
1992
- <div class='Note'>
1993
- <p class='Note'>
1994
- <span class='note_label'>NOTE</span>
1995
- <span style='mso-tab-count:1'>&#xA0; </span>
1996
- This is a table about rice
2039
+ <p>&#160;</p>
2040
+ </div>
2041
+ <p>
2042
+ <br clear='all' class='section'/>
2043
+ </p>
2044
+ <div class='WordSection3'>
2045
+ <p class='zzSTDTitle1'/>
2046
+ <aside id='ftn1'>
2047
+ <p>X</p>
2048
+ </aside>
2049
+ </div>
2050
+ </body>
2051
+ </html>
2052
+ INPUT
2053
+ <html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
2054
+ <head>
2055
+ <style/>
2056
+ </head>
2057
+ <body lang='EN-US' link='blue' vlink='#954F72'>
2058
+ <div class='WordSection1'>
2059
+ <p>&#xA0;</p>
2060
+ </div>
2061
+ <p>
2062
+ <br clear='all' class='section'/>
2063
+ </p>
2064
+ <div class='WordSection2'>
2065
+ <p>
2066
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
2067
+ </p>
2068
+ <div>
2069
+ <h1 class='ForewordTitle'>Foreword</h1>
2070
+ <p class='TableTitle' style='text-align:center;'>
2071
+ Table 1&#xA0;&#x2014; Repeatability and reproducibility of
2072
+ <i>husked</i>
2073
+ rice yield
2074
+ <span style='mso-bookmark:_Ref'>
2075
+ <a class='FootnoteRef' href='#ftn1' epub:type='footnote'>
2076
+ <sup>1</sup>
2077
+ </a>
2078
+ </span>
1997
2079
  </p>
2080
+ <div align='center' class='table_container'>
2081
+ <table id='tableD-1' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;page-break-after: avoid;page-break-inside: avoid;' title='tool tip' summary='long desc' width='70%'>
2082
+ <colgroup>
2083
+ <col width='30%'/>
2084
+ <col width='20%'/>
2085
+ <col width='20%'/>
2086
+ <col width='20%'/>
2087
+ <col width='10%'/>
2088
+ </colgroup>
2089
+ <thead>
2090
+ <tr>
2091
+ <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.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='30.0%'>Description</td>
2092
+ <td colspan='4' align='center' 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;' width='70.0%'>Rice sample</td>
2093
+ </tr>
2094
+ <tr>
2095
+ <td align='left' valign='top' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>Arborio</td>
2096
+ <td align='center' valign='middle' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>
2097
+ Drago
2098
+ <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
2099
+ <aside>
2100
+ <div id='ftntableD-1a'>
2101
+ <span>
2102
+ <span id='tableD-1a' class='TableFootnoteRef'>a</span>
2103
+ <span style='mso-tab-count:1'>&#xA0; </span>
2104
+ </span>
2105
+ <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
2106
+ </div>
2107
+ </aside>
2108
+ </td>
2109
+ <td align='center' valign='bottom' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>
2110
+ Balilla
2111
+ <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
2112
+ </td>
2113
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='10.0%'>Thaibonnet</td>
2114
+ </tr>
2115
+ </thead>
2116
+ <tbody>
2117
+ <tr>
2118
+ <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.0pt;mso-border-bottom-alt:solid windowtext 1.0pt;' width='30.0%'>Number of laboratories retained after eliminating outliers</th>
2119
+ <td align='center' 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;' width='20.0%'>13</td>
2120
+ <td align='center' 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;' width='20.0%'>11</td>
2121
+ <td align='center' 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;' width='20.0%'>13</td>
2122
+ <td align='center' 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;' width='10.0%'>13</td>
2123
+ </tr>
2124
+ <tr>
2125
+ <td align='left' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='30.0%'>Mean value, g/100 g</td>
2126
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>81,2</td>
2127
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>82,0</td>
2128
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='20.0%'>81,8</td>
2129
+ <td align='center' style='border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;' width='10.0%'>77,7</td>
2130
+ </tr>
2131
+ </tbody>
2132
+ <tfoot>
2133
+ <tr>
2134
+ <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;' width='30.0%'>
2135
+ Reproducibility limit,
2136
+ <span class='stem'>(#(R)#)</span>
2137
+ (= 2,83
2138
+ <span class='stem'>(#(s_R)#)</span>
2139
+ )
2140
+ </td>
2141
+ <td align='center' 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;' width='20.0%'>2,89</td>
2142
+ <td align='center' 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;' width='20.0%'>0,57</td>
2143
+ <td align='center' 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;' width='20.0%'>2,26</td>
2144
+ <td align='center' 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;' width='10.0%'>6,06</td>
2145
+ </tr>
2146
+ </tfoot>
2147
+ <div class='Note'>
2148
+ <p class='Note'>
2149
+ <span class='note_label'>NOTE</span>
2150
+ <span style='mso-tab-count:1'>&#xA0; </span>
2151
+ This is a table about rice
2152
+ </p>
2153
+ </div>
2154
+ </table>
2155
+ <table class='dl'>
2156
+ <tr>
2157
+ <td valign='top' align='left'>
2158
+ <p align='left' style='margin-left:0pt;text-align:left;'>Drago</p>
2159
+ </td>
2160
+ <td valign='top'>A type of rice</td>
2161
+ </tr>
2162
+ </table>
2163
+ </div>
2164
+ <div align='center' class='table_container'>
2165
+ <table id='tableD-2' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
2166
+ <tbody>
2167
+ <tr>
2168
+ <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>
2169
+ </tr>
2170
+ </tbody>
2171
+ </table>
2172
+ </div>
1998
2173
  </div>
1999
- </table>
2000
- <table class='dl'>
2001
- <tr>
2002
- <td valign='top' align='left'>
2003
- <p align='left' style='margin-left:0pt;text-align:left;'>Drago</p>
2004
- </td>
2005
- <td valign='top'>A type of rice</td>
2006
- </tr>
2007
- </table>
2008
- </div>
2009
- <div align='center' class='table_container'>
2010
- <table id='tableD-2' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
2011
- <tbody>
2012
- <tr>
2013
- <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>
2014
- </tr>
2015
- </tbody>
2016
- </table>
2017
- </div>
2018
- </div>
2019
- <p>&#xA0;</p>
2020
- </div>
2021
- <p>
2022
- <br clear='all' class='section'/>
2023
- </p>
2024
- <div class='WordSection3'>
2025
- <p class='zzSTDTitle1'/>
2026
- <aside id='ftn1'>
2027
- <p>X</p>
2028
- </aside>
2029
- </div>
2030
- </body>
2031
- </html>
2032
- OUTPUT
2033
- end
2034
-
2174
+ <p>&#xA0;</p>
2175
+ </div>
2176
+ <p>
2177
+ <br clear='all' class='section'/>
2178
+ </p>
2179
+ <div class='WordSection3'>
2180
+ <p class='zzSTDTitle1'/>
2181
+ <aside id='ftn1'>
2182
+ <p>X</p>
2183
+ </aside>
2184
+ </div>
2185
+ </body>
2186
+ </html>
2187
+ OUTPUT
2188
+ end
2035
2189
  end