isodoc 1.6.0 → 1.6.5

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