metanorma-iso 1.5.14 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +17 -0
  3. data/.rubocop.yml +0 -4
  4. data/lib/asciidoctor/iso/base.rb +13 -13
  5. data/lib/asciidoctor/iso/basicdoc.rng +20 -3
  6. data/lib/asciidoctor/iso/cleanup.rb +1 -1
  7. data/lib/asciidoctor/iso/front.rb +5 -5
  8. data/lib/asciidoctor/iso/isodoc.rng +118 -4
  9. data/lib/asciidoctor/iso/isostandard-amd.rng +11 -4
  10. data/lib/asciidoctor/iso/isostandard.rng +22 -10
  11. data/lib/asciidoctor/iso/validate.rb +78 -0
  12. data/lib/asciidoctor/iso/validate_section.rb +12 -9
  13. data/lib/isodoc/iso/html/header.html +12 -12
  14. data/lib/isodoc/iso/html/html_iso_intro.html +1 -1
  15. data/lib/isodoc/iso/html/html_iso_titlepage.html +1 -1
  16. data/lib/isodoc/iso/html/word_iso_intro.html +1 -1
  17. data/lib/isodoc/iso/html/word_iso_titlepage.html +1 -1
  18. data/lib/isodoc/iso/html_convert.rb +2 -2
  19. data/lib/isodoc/iso/i18n-en.yaml +2 -0
  20. data/lib/isodoc/iso/i18n-fr.yaml +1 -1
  21. data/lib/isodoc/iso/i18n-zh-Hans.yaml +1 -1
  22. data/lib/isodoc/iso/iso.amendment.xsl +451 -208
  23. data/lib/isodoc/iso/iso.international-standard.xsl +451 -208
  24. data/lib/isodoc/iso/sections.rb +1 -1
  25. data/lib/isodoc/iso/word_convert.rb +2 -2
  26. data/lib/isodoc/iso/xref.rb +28 -12
  27. data/lib/metanorma/iso/processor.rb +11 -0
  28. data/lib/metanorma/iso/version.rb +1 -1
  29. data/metanorma-iso.gemspec +2 -2
  30. data/spec/asciidoctor-iso/amd_spec.rb +575 -573
  31. data/spec/asciidoctor-iso/base_spec.rb +449 -458
  32. data/spec/asciidoctor-iso/blocks_spec.rb +333 -288
  33. data/spec/asciidoctor-iso/cleanup_spec.rb +814 -699
  34. data/spec/asciidoctor-iso/inline_spec.rb +116 -91
  35. data/spec/asciidoctor-iso/lists_spec.rb +128 -121
  36. data/spec/asciidoctor-iso/refs_spec.rb +308 -250
  37. data/spec/asciidoctor-iso/section_spec.rb +273 -242
  38. data/spec/asciidoctor-iso/table_spec.rb +258 -242
  39. data/spec/asciidoctor-iso/validate_spec.rb +1223 -919
  40. data/spec/isodoc/amd_spec.rb +967 -946
  41. data/spec/isodoc/blocks_spec.rb +530 -507
  42. data/spec/isodoc/i18n_spec.rb +953 -911
  43. data/spec/isodoc/inline_spec.rb +355 -293
  44. data/spec/isodoc/iso_spec.rb +340 -316
  45. data/spec/isodoc/metadata_spec.rb +392 -382
  46. data/spec/isodoc/postproc_spec.rb +834 -656
  47. data/spec/isodoc/ref_spec.rb +374 -331
  48. data/spec/isodoc/section_spec.rb +608 -525
  49. data/spec/isodoc/table_spec.rb +472 -411
  50. data/spec/isodoc/terms_spec.rb +209 -185
  51. data/spec/isodoc/xref_spec.rb +1370 -1236
  52. data/spec/metanorma/processor_spec.rb +28 -26
  53. data/spec/spec_helper.rb +184 -189
  54. metadata +7 -10
  55. data/.rubocop.ribose.yml +0 -66
  56. data/lib/metanorma/iso/fonts_manifest.yaml +0 -6
  57. data/spec/assets/xref_error.adoc +0 -7
@@ -2,425 +2,486 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
4
  it "processes IsoXML tables (Presentation XML)" do
5
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
- <iso-standard xmlns="http://riboseinc.com/isoxml">
7
- <preface>
8
- <foreword>
9
- <table id="tableD-1" alt="tool tip" summary="long desc">
10
- <name>Repeatability and reproducibility of <em>husked</em> rice yield</name>
11
- <thead>
12
- <tr>
13
- <td rowspan="2" align="left">Description</td>
14
- <td colspan="4" align="center">Rice sample</td>
15
- </tr>
16
- <tr>
17
- <td align="left">Arborio</td>
18
- <td align="center">Drago<fn reference="a">
19
- <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
20
- </fn></td>
21
- <td align="center">Balilla<fn reference="a">
22
- <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
23
- </fn></td>
24
- <td align="center">Thaibonnet</td>
25
- </tr>
26
- </thead>
27
- <tbody>
28
- <tr>
29
- <th align="left">Number of laboratories retained after eliminating outliers</th>
30
- <td align="center">13</td>
31
- <td align="center">11</td>
32
- <td align="center">13</td>
33
- <td align="center">13</td>
34
- </tr>
35
- <tr>
36
- <td align="left">Mean value, g/100 g</td>
37
- <td align="center">81,2</td>
38
- <td align="center">82,0</td>
39
- <td align="center">81,8</td>
40
- <td align="center">77,7</td>
41
- </tr>
42
- </tbody>
43
- <tfoot>
44
- <tr>
45
- <td align="left">Reproducibility limit, <stem type="AsciiMath">R</stem> (= 2,83 <stem type="AsciiMath">s_R</stem>)</td>
46
- <td align="center">2,89</td>
47
- <td align="center">0,57</td>
48
- <td align="center">2,26</td>
49
- <td align="center">6,06</td>
50
- </tr>
51
- </tfoot>
52
- <dl>
53
- <dt>Drago</dt>
54
- <dd>A type of rice</dd>
55
- </dl>
56
- <note><p>This is a table about rice</p></note>
57
- </table>
58
-
59
- </foreword>
60
- </preface>
61
- </iso-standard>
62
- INPUT
63
- <?xml version='1.0'?>
64
- <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
65
- <preface>
66
- <foreword>
67
- <table id='tableD-1' alt='tool tip' summary='long desc'>
68
- <name>
69
- Table 1&#xA0;&#x2014; Repeatability and reproducibility of
70
- <em>husked</em>
71
- rice yield
72
- </name>
73
- <thead>
74
- <tr>
75
- <td rowspan='2' align='left'>Description</td>
76
- <td colspan='4' align='center'>Rice sample</td>
77
- </tr>
78
- <tr>
79
- <td align='left'>Arborio</td>
80
- <td align='center'>
81
- Drago
82
- <fn reference='a'>
83
- <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
84
- </fn>
85
- </td>
86
- <td align='center'>
87
- Balilla
88
- <fn reference='a'>
89
- <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
90
- </fn>
91
- </td>
92
- <td align='center'>Thaibonnet</td>
93
- </tr>
94
- </thead>
95
- <tbody>
96
- <tr>
97
- <th align='left'>Number of laboratories retained after eliminating outliers</th>
98
- <td align='center'>13</td>
99
- <td align='center'>11</td>
100
- <td align='center'>13</td>
101
- <td align='center'>13</td>
102
- </tr>
103
- <tr>
104
- <td align='left'>Mean value, g/100 g</td>
105
- <td align='center'>81,2</td>
106
- <td align='center'>82,0</td>
107
- <td align='center'>81,8</td>
108
- <td align='center'>77,7</td>
109
- </tr>
110
- </tbody>
111
- <tfoot>
112
- <tr>
113
- <td align='left'>
114
- Reproducibility limit,
115
- <stem type='AsciiMath'>R</stem>
116
- (= 2,83
117
- <stem type='AsciiMath'>s_R</stem>
118
- )
119
- </td>
120
- <td align='center'>2,89</td>
121
- <td align='center'>0,57</td>
122
- <td align='center'>2,26</td>
123
- <td align='center'>6,06</td>
124
- </tr>
125
- </tfoot>
126
- <dl>
127
- <dt>Drago</dt>
128
- <dd>A type of rice</dd>
129
- </dl>
130
- <note>
131
- <name>NOTE</name>
132
- <p>This is a table about rice</p>
133
- </note>
134
- </table>
135
- </foreword>
136
- </preface>
137
- </iso-standard>
138
- OUTPUT
5
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({})
6
+ .convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
7
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
8
+ <preface>
9
+ <foreword>
10
+ <table alt="tool tip" id="tableD-1" summary="long desc">
11
+ <name>Repeatability and reproducibility of
12
+ <em>husked</em>
13
+ rice yield</name>
14
+ <thead>
15
+ <tr>
16
+ <td align="left" rowspan="2">Description</td>
17
+ <td align="center" colspan="4">Rice sample</td>
18
+ </tr>
19
+ <tr>
20
+ <td align="left">Arborio</td>
21
+ <td align="center">Drago
22
+ <fn reference="a">
23
+ <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p></fn>
24
+ </td>
25
+ <td align="center">Balilla
26
+ <fn reference="a">
27
+ <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p></fn>
28
+ </td>
29
+ <td align="center">Thaibonnet</td>
30
+ </tr>
31
+ </thead>
32
+ <tbody>
33
+ <tr>
34
+ <th align="left">Number of laboratories retained after eliminating outliers</th>
35
+ <td align="center">13</td>
36
+ <td align="center">11</td>
37
+ <td align="center">13</td>
38
+ <td align="center">13</td>
39
+ </tr>
40
+ <tr>
41
+ <td align="left">Mean value, g/100 g</td>
42
+ <td align="center">81,2</td>
43
+ <td align="center">82,0</td>
44
+ <td align="center">81,8</td>
45
+ <td align="center">77,7</td>
46
+ </tr>
47
+ </tbody>
48
+ <tfoot>
49
+ <tr>
50
+ <td align="left">Reproducibility limit,
51
+ <stem type="AsciiMath">R</stem>
52
+ (= 2,83
53
+ <stem type="AsciiMath">s_R</stem>
54
+ )</td>
55
+ <td align="center">2,89</td>
56
+ <td align="center">0,57</td>
57
+ <td align="center">2,26</td>
58
+ <td align="center">6,06</td>
59
+ </tr>
60
+ </tfoot>
61
+ <dl>
62
+ <dt>Drago</dt>
63
+ <dd>A type of rice</dd>
64
+ </dl>
65
+ <note>
66
+ <p>This is a table about rice</p>
67
+ </note>
68
+ </table>
69
+ </foreword>
70
+ </preface>
71
+ </iso-standard>
72
+ INPUT
73
+ <?xml version='1.0'?>
74
+ <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
75
+ <preface>
76
+ <foreword>
77
+ <table id='tableD-1' alt='tool tip' summary='long desc'>
78
+ <name>
79
+ Table 1&#xA0;&#x2014; Repeatability and reproducibility of
80
+ <em>husked</em>
81
+ rice yield
82
+ </name>
83
+ <thead>
84
+ <tr>
85
+ <td rowspan='2' align='left'>Description</td>
86
+ <td colspan='4' align='center'>Rice sample</td>
87
+ </tr>
88
+ <tr>
89
+ <td align='left'>Arborio</td>
90
+ <td align='center'>
91
+ Drago
92
+ <fn reference='a'>
93
+ <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
94
+ </fn>
95
+ </td>
96
+ <td align='center'>
97
+ Balilla
98
+ <fn reference='a'>
99
+ <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
100
+ </fn>
101
+ </td>
102
+ <td align='center'>Thaibonnet</td>
103
+ </tr>
104
+ </thead>
105
+ <tbody>
106
+ <tr>
107
+ <th align='left'>Number of laboratories retained after eliminating outliers</th>
108
+ <td align='center'>13</td>
109
+ <td align='center'>11</td>
110
+ <td align='center'>13</td>
111
+ <td align='center'>13</td>
112
+ </tr>
113
+ <tr>
114
+ <td align='left'>Mean value, g/100 g</td>
115
+ <td align='center'>81,2</td>
116
+ <td align='center'>82,0</td>
117
+ <td align='center'>81,8</td>
118
+ <td align='center'>77,7</td>
119
+ </tr>
120
+ </tbody>
121
+ <tfoot>
122
+ <tr>
123
+ <td align='left'>
124
+ Reproducibility limit,
125
+ <stem type='AsciiMath'>R</stem>
126
+ (= 2,83
127
+ <stem type='AsciiMath'>s_R</stem>
128
+ )
129
+ </td>
130
+ <td align='center'>2,89</td>
131
+ <td align='center'>0,57</td>
132
+ <td align='center'>2,26</td>
133
+ <td align='center'>6,06</td>
134
+ </tr>
135
+ </tfoot>
136
+ <dl>
137
+ <dt>Drago</dt>
138
+ <dd>A type of rice</dd>
139
+ </dl>
140
+ <note>
141
+ <name>NOTE</name>
142
+ <p>This is a table about rice</p>
143
+ </note>
144
+ </table>
145
+ </foreword>
146
+ </preface>
147
+ </iso-standard>
148
+ OUTPUT
139
149
  end
140
150
 
141
151
  it "processes IsoXML tables (HTML)" do
142
- FileUtils.rm_f("test.html")
143
152
  IsoDoc::Iso::HtmlConvert.new({}).convert("test", <<~"INPUT", false)
144
- <iso-standard xmlns="http://riboseinc.com/isoxml">
145
- <preface>
146
- <foreword>
147
- <table id="tableD-1" alt="tool tip" summary="long desc">
148
- <name>Table 1&#xA0;&#x2014; Repeatability and reproducibility of <em>husked</em> rice yield</name>
149
- <thead>
150
- <tr>
151
- <td rowspan="2" align="left">Description</td>
152
- <td colspan="4" align="center">Rice sample</td>
153
- </tr>
154
- <tr>
155
- <td align="left">Arborio</td>
156
- <td align="center">Drago<fn reference="a">
157
- <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
158
- </fn></td>
159
- <td align="center">Balilla<fn reference="a">
160
- <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
161
- </fn></td>
162
- <td align="center">Thaibonnet</td>
163
- </tr>
164
- </thead>
165
- <tbody>
166
- <tr>
167
- <th align="left">Number of laboratories retained after eliminating outliers</th>
168
- <td align="center">13</td>
169
- <td align="center">11</td>
170
- <td align="center">13</td>
171
- <td align="center">13</td>
172
- </tr>
173
- <tr>
174
- <td align="left">Mean value, g/100 g</td>
175
- <td align="center">81,2</td>
176
- <td align="center">82,0</td>
177
- <td align="center">81,8</td>
178
- <td align="center">77,7</td>
179
- </tr>
180
- </tbody>
181
- <tfoot>
182
- <tr>
183
- <td align="left">Reproducibility limit, <stem type="AsciiMath">R</stem> (= 2,83 <stem type="AsciiMath">s_R</stem>)</td>
184
- <td align="center">2,89</td>
185
- <td align="center">0,57</td>
186
- <td align="center">2,26</td>
187
- <td align="center">6,06</td>
188
- </tr>
189
- </tfoot>
190
- <dl>
191
- <dt>Drago</dt>
192
- <dd>A type of rice</dd>
193
- </dl>
194
- <note><name>NOTE</name><p>This is a table about rice</p></note>
195
- </table>
196
-
197
- </foreword>
198
- </preface>
199
- </iso-standard>
153
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
154
+ <preface>
155
+ <foreword>
156
+ <table alt="tool tip" id="tableD-1" summary="long desc">
157
+ <name>Table 1 — Repeatability and reproducibility of
158
+ <em>husked</em>
159
+ rice yield</name>
160
+ <thead>
161
+ <tr>
162
+ <td align="left" rowspan="2">Description</td>
163
+ <td align="center" colspan="4">Rice sample</td>
164
+ </tr>
165
+ <tr>
166
+ <td align="left">Arborio</td>
167
+ <td align="center">Drago
168
+ <fn reference="a">
169
+ <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p></fn>
170
+ </td>
171
+ <td align="center">Balilla
172
+ <fn reference="a">
173
+ <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p></fn>
174
+ </td>
175
+ <td align="center">Thaibonnet</td>
176
+ </tr>
177
+ </thead>
178
+ <tbody>
179
+ <tr>
180
+ <th align="left">Number of laboratories retained after eliminating outliers</th>
181
+ <td align="center">13</td>
182
+ <td align="center">11</td>
183
+ <td align="center">13</td>
184
+ <td align="center">13</td>
185
+ </tr>
186
+ <tr>
187
+ <td align="left">Mean value, g/100 g</td>
188
+ <td align="center">81,2</td>
189
+ <td align="center">82,0</td>
190
+ <td align="center">81,8</td>
191
+ <td align="center">77,7</td>
192
+ </tr>
193
+ </tbody>
194
+ <tfoot>
195
+ <tr>
196
+ <td align="left">Reproducibility limit,
197
+ <stem type="AsciiMath">R</stem>
198
+ (= 2,83
199
+ <stem type="AsciiMath">s_R</stem>
200
+ )</td>
201
+ <td align="center">2,89</td>
202
+ <td align="center">0,57</td>
203
+ <td align="center">2,26</td>
204
+ <td align="center">6,06</td>
205
+ </tr>
206
+ </tfoot>
207
+ <dl>
208
+ <dt>Drago</dt>
209
+ <dd>A type of rice</dd>
210
+ </dl>
211
+ <note>
212
+ <name>NOTE</name>
213
+ <p>This is a table about rice</p>
214
+ </note>
215
+ </table>
216
+ </foreword>
217
+ </preface>
218
+ </iso-standard>
200
219
  INPUT
201
- expect(File.exist?("test.html")).to be true
202
- html = File.read("test.html").sub(/^.*<main /m, '<main ').sub(%r{</main>.*$}m, "</main>")
203
- expect(xmlpp(html)).to be_equivalent_to xmlpp(<<~"OUTPUT")
204
- <main class='main-section'>
205
- <button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
206
- <br/>
207
- <div>
208
- <h1 class='ForewordTitle' id="toc0">Foreword</h1>
209
- <p class='TableTitle' style='text-align:center;'>
210
- Table 1&#xA0;&#x2014; Repeatability and reproducibility of
211
- <i>husked</i>
212
- rice yield
213
- </p>
214
- <table id='tableD-1' class='MsoISOTable' style='border-width:1px;border-spacing:0;' title='tool tip'>
215
- <caption>
216
- <span style='display:none'>long desc</span>
217
- </caption>
218
- <thead>
219
- <tr>
220
- <td rowspan='2' style='text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Description</td>
221
- <td colspan='4' style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;;text-align:center;vertical-align:middle;' scope='colgroup'>Rice sample</td>
222
- </tr>
223
- <tr>
224
- <td style='text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Arborio</td>
225
- <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>
226
- Drago
227
- <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
228
- </td>
229
- <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>
230
- Balilla
231
- <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
232
- </td>
233
- <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Thaibonnet</td>
234
- </tr>
235
- </thead>
236
- <tbody>
237
- <tr>
238
- <th style='font-weight:bold;text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;' scope='row'>Number of laboratories retained after eliminating outliers</th>
239
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>13</td>
240
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>11</td>
241
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>13</td>
242
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>13</td>
243
- </tr>
244
- <tr>
245
- <td style='text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;'>Mean value, g/100 g</td>
246
- <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>81,2</td>
247
- <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>82,0</td>
248
- <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>81,8</td>
249
- <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>77,7</td>
250
- </tr>
251
- </tbody>
252
- <tfoot>
253
- <tr>
254
- <td style='text-align:left;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>
255
- Reproducibility limit,
256
- <span class='stem'>(#(R)#)</span>
257
- (= 2,83
258
- <span class='stem'>(#(s_R)#)</span>
259
- )
260
- </td>
261
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>2,89</td>
262
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>0,57</td>
263
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>2,26</td>
264
- <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>6,06</td>
265
- </tr>
266
- <tr>
267
- <td colspan='5' style='border-top:0pt;border-bottom:solid windowtext 1.5pt;'>
268
- <div class='Note'>
269
- <p>
270
- <span class='note_label'>NOTE</span>
271
- &#xA0; This is a table about rice
272
- </p>
273
- </div>
274
- <div class='TableFootnote'>
275
- <div id='fn:tableD-1a'>
276
- <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55' class='TableFootnote'>
277
- <span>
278
- <span id='tableD-1a' class='TableFootnoteRef'>a</span>
279
- &#xA0;
280
- </span>
281
- Parboiled rice.
282
- </p>
283
- </div>
284
- </div>
285
- </td>
286
- </tr>
287
- </tfoot>
288
- <dl>
289
- <dt>
290
- <p>Drago</p>
291
- </dt>
292
- <dd>A type of rice</dd>
293
- </dl>
294
- </table>
295
- </div>
296
- <p class='zzSTDTitle1'/>
297
- </main>
298
- OUTPUT
220
+ expect(File.exist?("test.html")).to be true
221
+ html = File.read("test.html").sub(/^.*<main /m, '<main ').sub(%r{</main>.*$}m, "</main>")
222
+ expect(xmlpp(html)).to be_equivalent_to xmlpp(<<~"OUTPUT")
223
+ <main class='main-section'>
224
+ <button onclick='topFunction()' id='myBtn' title='Go to top'>Top</button>
225
+ <br/>
226
+ <div>
227
+ <h1 class='ForewordTitle' id="toc0">Foreword</h1>
228
+ <p class='TableTitle' style='text-align:center;'>
229
+ Table 1&#xA0;&#x2014; Repeatability and reproducibility of
230
+ <i>husked</i>
231
+ rice yield
232
+ </p>
233
+ <table id='tableD-1' class='MsoISOTable' style='border-width:1px;border-spacing:0;' title='tool tip'>
234
+ <caption>
235
+ <span style='display:none'>long desc</span>
236
+ </caption>
237
+ <thead>
238
+ <tr>
239
+ <td rowspan='2' style='text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Description</td>
240
+ <td colspan='4' style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;;text-align:center;vertical-align:middle;' scope='colgroup'>Rice sample</td>
241
+ </tr>
242
+ <tr>
243
+ <td style='text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Arborio</td>
244
+ <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>
245
+ Drago
246
+ <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
247
+ </td>
248
+ <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>
249
+ Balilla
250
+ <a href='#tableD-1a' class='TableFootnoteRef'>a</a>
251
+ </td>
252
+ <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Thaibonnet</td>
253
+ </tr>
254
+ </thead>
255
+ <tbody>
256
+ <tr>
257
+ <th style='font-weight:bold;text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;' scope='row'>Number of laboratories retained after eliminating outliers</th>
258
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>13</td>
259
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>11</td>
260
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>13</td>
261
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;'>13</td>
262
+ </tr>
263
+ <tr>
264
+ <td style='text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;'>Mean value, g/100 g</td>
265
+ <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>81,2</td>
266
+ <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>82,0</td>
267
+ <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>81,8</td>
268
+ <td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;'>77,7</td>
269
+ </tr>
270
+ </tbody>
271
+ <tfoot>
272
+ <tr>
273
+ <td style='text-align:left;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>
274
+ Reproducibility limit,
275
+ <span class='stem'>(#(R)#)</span>
276
+ (= 2,83
277
+ <span class='stem'>(#(s_R)#)</span>
278
+ )
279
+ </td>
280
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>2,89</td>
281
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>0,57</td>
282
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>2,26</td>
283
+ <td style='text-align:center;border-top:solid windowtext 1.5pt;border-bottom:0pt;'>6,06</td>
284
+ </tr>
285
+ <tr>
286
+ <td colspan='5' style='border-top:0pt;border-bottom:solid windowtext 1.5pt;'>
287
+ <div class='Note'>
288
+ <p>
289
+ <span class='note_label'>NOTE</span>
290
+ &#xA0; This is a table about rice
291
+ </p>
292
+ </div>
293
+ <div class='TableFootnote'>
294
+ <div id='fn:tableD-1a'>
295
+ <p id='_0fe65e9a-5531-408e-8295-eeff35f41a55' class='TableFootnote'>
296
+ <span>
297
+ <span id='tableD-1a' class='TableFootnoteRef'>a</span>
298
+ &#xA0;
299
+ </span>
300
+ Parboiled rice.
301
+ </p>
302
+ </div>
303
+ </div>
304
+ </td>
305
+ </tr>
306
+ </tfoot>
307
+ <dl>
308
+ <dt>
309
+ <p>Drago</p>
310
+ </dt>
311
+ <dd>A type of rice</dd>
312
+ </dl>
313
+ </table>
314
+ </div>
315
+ <p class='zzSTDTitle1'/>
316
+ </main>
317
+ OUTPUT
299
318
  end
300
319
 
301
- it "processes IsoXML tables (Word)" do
302
- FileUtils.rm_f("test.doc")
320
+ it "processes IsoXML tables (Word)" do
303
321
  IsoDoc::Iso::WordConvert.new({}).convert("test", <<~"INPUT", false)
304
- <iso-standard xmlns="http://riboseinc.com/isoxml">
305
- <preface>
306
- <foreword>
307
- <table id="tableD-1" alt="tool tip" summary="long desc">
308
- <name>Table 1&#xA0;&#x2014; Repeatability and reproducibility of <em>husked</em> rice yield</name>
309
- <thead>
310
- <tr>
311
- <td rowspan="2" align="left">Description</td>
312
- <td colspan="4" align="center">Rice sample</td>
313
- </tr>
314
- <tr>
315
- <td align="left">Arborio</td>
316
- <td align="center">Drago<fn reference="a">
317
- <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
318
- </fn></td>
319
- <td align="center">Balilla<fn reference="a">
320
- <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
321
- </fn></td>
322
- <td align="center">Thaibonnet</td>
323
- </tr>
324
- </thead>
325
- <tbody>
326
- <tr>
327
- <th align="left">Number of laboratories retained after eliminating outliers</th>
328
- <td align="center">13</td>
329
- <td align="center">11</td>
330
- <td align="center">13</td>
331
- <td align="center">13</td>
332
- </tr>
333
- <tr>
334
- <td align="left">Mean value, g/100 g</td>
335
- <td align="center">81,2</td>
336
- <td align="center">82,0</td>
337
- <td align="center">81,8</td>
338
- <td align="center">77,7</td>
339
- </tr>
340
- </tbody>
341
- <tfoot>
342
- <tr>
343
- <td align="left">Reproducibility limit, <stem type="AsciiMath">R</stem> (= 2,83 <stem type="AsciiMath">s_R</stem>)</td>
344
- <td align="center">2,89</td>
345
- <td align="center">0,57</td>
346
- <td align="center">2,26</td>
347
- <td align="center">6,06</td>
348
- </tr>
349
- </tfoot>
350
- <dl>
351
- <dt>Drago</dt>
352
- <dd>A type of rice</dd>
353
- </dl>
354
- <note><name>NOTE</name><p>This is a table about rice</p></note>
355
- </table>
356
-
357
- </foreword>
358
- </preface>
359
- </iso-standard>
322
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
323
+ <preface>
324
+ <foreword>
325
+ <table alt="tool tip" id="tableD-1" summary="long desc">
326
+ <name>Table 1&#xA0;&#x2014; Repeatability and reproducibility of <em>husked</em> rice yield</name>
327
+ <thead>
328
+ <tr>
329
+ <td align="left" rowspan="2">Description</td>
330
+ <td align="center" colspan="4">Rice sample</td>
331
+ </tr>
332
+ <tr>
333
+ <td align="left">Arborio</td>
334
+ <td align="center">Drago
335
+ <fn reference="a">
336
+ <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p></fn>
337
+ </td>
338
+ <td align="center">Balilla
339
+ <fn reference="a">
340
+ <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p></fn>
341
+ </td>
342
+ <td align="center">Thaibonnet</td>
343
+ </tr>
344
+ </thead>
345
+ <tbody>
346
+ <tr>
347
+ <th align="left">Number of laboratories retained after eliminating outliers</th>
348
+ <td align="center">13</td>
349
+ <td align="center">11</td>
350
+ <td align="center">13</td>
351
+ <td align="center">13</td>
352
+ </tr>
353
+ <tr>
354
+ <td align="left">Mean value, g/100 g</td>
355
+ <td align="center">81,2</td>
356
+ <td align="center">82,0</td>
357
+ <td align="center">81,8</td>
358
+ <td align="center">77,7</td>
359
+ </tr>
360
+ </tbody>
361
+ <tfoot>
362
+ <tr>
363
+ <td align="left">Reproducibility limit,
364
+ <stem type="AsciiMath">R</stem>
365
+ (= 2,83
366
+ <stem type="AsciiMath">s_R</stem>
367
+ )</td>
368
+ <td align="center">2,89</td>
369
+ <td align="center">0,57</td>
370
+ <td align="center">2,26</td>
371
+ <td align="center">6,06</td>
372
+ </tr>
373
+ </tfoot>
374
+ <dl>
375
+ <dt>Drago</dt>
376
+ <dd>A type of rice</dd>
377
+ </dl>
378
+ <note>
379
+ <name>NOTE</name>
380
+ <p>This is a table about rice</p>
381
+ </note>
382
+ </table>
383
+ </foreword>
384
+ </preface>
385
+ </iso-standard>
360
386
  INPUT
361
387
 
362
- expect(File.exist?("test.doc")).to be true
363
- html = File.read("test.doc").sub(/^.+?<table /m, '<table xmlns:m="m" ').sub(%r{</div>\s*<p class="MsoNormal">.*$}m, "")
364
- expect(xmlpp("<div>#{html}")).to be_equivalent_to xmlpp(<<~"OUTPUT")
365
- <div><table xmlns:m="m" class="MsoISOTable" style="mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;" title="tool tip" summary="long desc"><a name="tableD-1" id="tableD-1"></a>
366
- <thead>
367
- <tr>
368
- <td rowspan="2" 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;" valign="middle">Description</td>
369
- <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;" valign="middle">Rice sample</td>
370
- </tr>
371
- <tr>
372
- <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;" valign="middle">Arborio</td>
373
- <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;" valign="middle">Drago<a href="#tableD-1a" class="TableFootnoteRef">a</a></td>
374
- <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;" valign="middle">Balilla<a href="#tableD-1a" class="TableFootnoteRef">a</a></td>
375
- <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;" valign="middle">Thaibonnet</td>
376
- </tr>
377
- </thead>
378
- <tbody>
379
- <tr>
380
- <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>
381
- <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>
382
- <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>
383
- <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>
384
- <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>
385
- </tr>
386
- <tr>
387
- <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>
388
- <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>
389
- <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>
390
- <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>
391
- <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>
392
- </tr>
393
- </tbody>
394
- <tfoot>
395
- <tr>
396
- <td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">Reproducibility limit, <span class="stem"><m:oMath>
397
- <m:r><m:t>R</m:t></m:r>
398
- </m:oMath>
399
- </span> (= 2,83 <span class="stem"><m:oMath>
400
- <m:sSub><m:e><m:r><m:t>s</m:t></m:r></m:e><m:sub><m:r><m:t>R</m:t></m:r></m:sub></m:sSub>
401
- </m:oMath>
402
- </span>)</td>
403
- <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">2,89</td>
404
- <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">0,57</td>
405
- <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">2,26</td>
406
- <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">6,06</td>
407
- </tr>
408
- <tr><td colspan="5" style="border-top:0pt;mso-border-top-alt:0pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;"><div class="Note">
409
- <p class="Note"><span class="note_label">NOTE</span><span style="mso-tab-count:1">&#xA0; </span>This is a table about rice</p>
410
- </div><div class="TableFootnote"><div><a name="ftntableD-1a" id="ftntableD-1a"></a>
411
- <p class="TableFootnote"><a name="_0fe65e9a-5531-408e-8295-eeff35f41a55" id="_0fe65e9a-5531-408e-8295-eeff35f41a55"></a><span><span class="TableFootnoteRef"><a name="tableD-1a" id="tableD-1a"></a>a</span><span style="mso-tab-count:1">&#xA0; </span></span>Parboiled rice.</p>
412
- </div></div></td></tr></tfoot>
413
-
414
-
415
- </table><table class="dl">
416
- <tr>
417
- <td valign="top" align="left">
418
- <p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal">Drago</p>
419
- </td>
420
- <td valign="top">A type of rice</td>
421
- </tr>
422
- </table>
423
- </div>
424
- OUTPUT
425
- end
388
+ expect(File.exist?("test.doc")).to be true
389
+ html = File.read("test.doc").sub(/^.+?<table /m, '<table xmlns:m="m" ').sub(%r{</div>\s*<p class="MsoNormal">.*$}m, "")
390
+ expect(xmlpp("<div>#{html}")).to be_equivalent_to xmlpp(<<~"OUTPUT")
391
+ <div>
392
+ <table class="MsoISOTable" style="mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;" summary="long desc" title="tool tip" xmlns:m="m">
393
+ <a id="tableD-1" name="tableD-1"/>
394
+ <thead>
395
+ <tr>
396
+ <td align="center" rowspan="2" 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;" valign="middle">Description</td>
397
+ <td align="center" colspan="4" 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;" valign="middle">Rice sample</td>
398
+ </tr>
399
+ <tr>
400
+ <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;" valign="middle">Arborio</td>
401
+ <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;" valign="middle">Drago
402
+ <a class="TableFootnoteRef" href="#tableD-1a">a</a></td>
403
+ <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;" valign="middle">Balilla
404
+ <a class="TableFootnoteRef" href="#tableD-1a">a</a></td>
405
+ <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;" valign="middle">Thaibonnet</td>
406
+ </tr>
407
+ </thead>
408
+ <tbody>
409
+ <tr>
410
+ <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>
411
+ <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>
412
+ <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>
413
+ <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>
414
+ <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>
415
+ </tr>
416
+ <tr>
417
+ <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>
418
+ <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>
419
+ <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>
420
+ <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>
421
+ <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>
422
+ </tr>
423
+ </tbody>
424
+ <tfoot>
425
+ <tr>
426
+ <td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">Reproducibility limit,
427
+ <span class="stem">
428
+ <m:oMath>
429
+ <m:r>
430
+ <m:t>R</m:t></m:r>
431
+ </m:oMath>
432
+ </span>(= 2,83
433
+ <span class="stem">
434
+ <m:oMath>
435
+ <m:sSub>
436
+ <m:e>
437
+ <m:r>
438
+ <m:t>s</m:t></m:r>
439
+ </m:e>
440
+ <m:sub>
441
+ <m:r>
442
+ <m:t>R</m:t>
443
+ </m:r>
444
+ </m:sub>
445
+ </m:sSub>
446
+ </m:oMath>
447
+ </span>)</td>
448
+ <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">2,89</td>
449
+ <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">0,57</td>
450
+ <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">2,26</td>
451
+ <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">6,06</td>
452
+ </tr>
453
+ <tr>
454
+ <td colspan="5" style="border-top:0pt;mso-border-top-alt:0pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">
455
+ <div class="Note">
456
+ <p class="Note">
457
+ <span class="note_label">NOTE</span>
458
+ <span style="mso-tab-count:1">  </span>This is a table about rice</p>
459
+ </div>
460
+ <div class="TableFootnote">
461
+ <div>
462
+ <a id="ftntableD-1a" name="ftntableD-1a"/>
463
+ <p class="TableFootnote">
464
+ <a id="_0fe65e9a-5531-408e-8295-eeff35f41a55" name="_0fe65e9a-5531-408e-8295-eeff35f41a55"/>
465
+ <span>
466
+ <span class="TableFootnoteRef">
467
+ <a id="tableD-1a" name="tableD-1a"/>a</span>
468
+ <span style="mso-tab-count:1">  </span>
469
+ </span>Parboiled rice.</p>
470
+ </div>
471
+ </div>
472
+ </td>
473
+ </tr>
474
+ </tfoot>
475
+ </table>
476
+ <table class="dl">
477
+ <tr>
478
+ <td align="left" valign="top">
479
+ <p align="left" class="MsoNormal" style="margin-left:0pt;text-align:left;">Drago</p>
480
+ </td>
481
+ <td valign="top">A type of rice</td>
482
+ </tr>
483
+ </table>
484
+ </div>
485
+ OUTPUT
486
+ end
426
487
  end