isodoc 2.1.0.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/isodoc.gemspec +6 -3
- data/lib/isodoc/base_style/blocks.scss +7 -0
- data/lib/isodoc/class_utils.rb +1 -1
- data/lib/isodoc/function/blocks.rb +1 -1
- data/lib/isodoc/function/cleanup.rb +1 -1
- data/lib/isodoc/function/inline.rb +4 -2
- data/lib/isodoc/function/lists.rb +24 -9
- data/lib/isodoc/function/table.rb +1 -1
- data/lib/isodoc/function/to_word_html.rb +3 -2
- data/lib/isodoc/function/utils.rb +18 -8
- data/lib/isodoc/gem_tasks.rb +19 -10
- data/lib/isodoc/html_function/html.rb +2 -2
- data/lib/isodoc/i18n.rb +19 -0
- data/lib/isodoc/metadata.rb +2 -2
- data/lib/isodoc/presentation_function/block.rb +3 -3
- data/lib/isodoc/presentation_function/image.rb +1 -1
- data/lib/isodoc/presentation_function/inline.rb +13 -6
- data/lib/isodoc/presentation_function/section.rb +3 -1
- data/lib/isodoc/presentation_function/xrefs.rb +22 -6
- data/lib/isodoc/presentation_xml_convert.rb +1 -0
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/body.rb +9 -6
- data/lib/isodoc/word_function/postprocess.rb +1 -1
- data/lib/isodoc/word_function/postprocess_cover.rb +5 -5
- data/lib/isodoc/xref/xref_gen.rb +4 -4
- metadata +5 -66
- data/.github/workflows/rake.yml +0 -15
- data/.github/workflows/release.yml +0 -24
- data/.hound.yml +0 -5
- data/.oss-guides.rubocop.yml +0 -1077
- data/.rubocop.yml +0 -10
- data/Rakefile +0 -8
- data/bin/rspec +0 -17
- data/spec/assets/header.html +0 -7
- data/spec/assets/html.scss +0 -20
- data/spec/assets/html_override.css +0 -1
- data/spec/assets/htmlcover.html +0 -4
- data/spec/assets/htmlintro.html +0 -5
- data/spec/assets/i18n.yaml +0 -41
- data/spec/assets/iso.xml +0 -8
- data/spec/assets/odf.emf +0 -0
- data/spec/assets/odf.svg +0 -1
- data/spec/assets/odf1.svg +0 -4
- data/spec/assets/outputtest/a.xml +0 -66
- data/spec/assets/outputtest/iso.international-standard.xsl +0 -3011
- data/spec/assets/rice_image1 +0 -0
- data/spec/assets/rice_image1.png +0 -0
- data/spec/assets/scripts.html +0 -3
- data/spec/assets/scripts_override.html +0 -3
- data/spec/assets/std.css +0 -2
- data/spec/assets/word.css +0 -2
- data/spec/assets/word_override.css +0 -1
- data/spec/assets/wordcover.html +0 -3
- data/spec/assets/wordintro.html +0 -4
- data/spec/isodoc/blocks_spec.rb +0 -2934
- data/spec/isodoc/cleanup_spec.rb +0 -1056
- data/spec/isodoc/footnotes_spec.rb +0 -264
- data/spec/isodoc/form_spec.rb +0 -160
- data/spec/isodoc/i18n_spec.rb +0 -1201
- data/spec/isodoc/inline_spec.rb +0 -2301
- data/spec/isodoc/lists_spec.rb +0 -469
- data/spec/isodoc/metadata_spec.rb +0 -401
- data/spec/isodoc/postproc_spec.rb +0 -2941
- data/spec/isodoc/presentation_xml_spec.rb +0 -1476
- data/spec/isodoc/ref_spec.rb +0 -955
- data/spec/isodoc/section_spec.rb +0 -2123
- data/spec/isodoc/table_spec.rb +0 -588
- data/spec/isodoc/terms_spec.rb +0 -712
- data/spec/isodoc/utils_spec.rb +0 -57
- data/spec/isodoc/xref_numbering_spec.rb +0 -378
- data/spec/isodoc/xref_spec.rb +0 -1837
- data/spec/isodoc/xslfo_convert_spec.rb +0 -103
- data/spec/spec_helper.rb +0 -81
data/spec/isodoc/table_spec.rb
DELETED
@@ -1,588 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
RSpec.describe IsoDoc do
|
4
|
-
it "processes IsoXML tables" do
|
5
|
-
input = <<~INPUT
|
6
|
-
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
7
|
-
<preface>
|
8
|
-
<foreword>
|
9
|
-
<table id="tableD-1" alt="tool tip" summary="long desc" width="70%" keep-with-next="true" keep-lines-together="true">
|
10
|
-
<name>Repeatability and reproducibility of <em>husked</em> rice yield<fn reference="1"><p>X</p></fn></name>
|
11
|
-
<colgroup>
|
12
|
-
<col width="30%"/>
|
13
|
-
<col width="20%"/>
|
14
|
-
<col width="20%"/>
|
15
|
-
<col width="20%"/>
|
16
|
-
<col width="10%"/>
|
17
|
-
</colgroup>
|
18
|
-
<thead>
|
19
|
-
<tr>
|
20
|
-
<td rowspan="2" align="left">Description</td>
|
21
|
-
<td colspan="4" align="center">Rice sample</td>
|
22
|
-
</tr>
|
23
|
-
<tr>
|
24
|
-
<td valign="top" align="left">Arborio</td>
|
25
|
-
<td valign="middle" align="center">Drago<fn reference="a">
|
26
|
-
<p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
|
27
|
-
</fn></td>
|
28
|
-
<td valign="bottom" align="center">Balilla<fn reference="a">
|
29
|
-
<p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
|
30
|
-
</fn></td>
|
31
|
-
<td align="center">Thaibonnet</td>
|
32
|
-
</tr>
|
33
|
-
</thead>
|
34
|
-
<tbody>
|
35
|
-
<tr>
|
36
|
-
<th align="left">Number of laboratories retained after eliminating outliers</th>
|
37
|
-
<td align="center">13</td>
|
38
|
-
<td align="center">11</td>
|
39
|
-
<td align="center">13</td>
|
40
|
-
<td align="center">13</td>
|
41
|
-
</tr>
|
42
|
-
<tr>
|
43
|
-
<td align="left">Mean value, g/100 g</td>
|
44
|
-
<td align="center">81,2</td>
|
45
|
-
<td align="center">82,0</td>
|
46
|
-
<td align="center">81,8</td>
|
47
|
-
<td align="center">77,7</td>
|
48
|
-
</tr>
|
49
|
-
</tbody>
|
50
|
-
<tfoot>
|
51
|
-
<tr>
|
52
|
-
<td align="left">Reproducibility limit, <stem type="AsciiMath">R</stem> (= 2,83 <stem type="AsciiMath">s_R</stem>)</td>
|
53
|
-
<td align="center">2,89</td>
|
54
|
-
<td align="center">0,57</td>
|
55
|
-
<td align="center">2,26</td>
|
56
|
-
<td align="center">6,06</td>
|
57
|
-
</tr>
|
58
|
-
</tfoot>
|
59
|
-
<dl>
|
60
|
-
<dt>Drago</dt>
|
61
|
-
<dd>A type of rice</dd>
|
62
|
-
</dl>
|
63
|
-
<note><p>This is a table about rice</p></note>
|
64
|
-
</table>
|
65
|
-
<table id="tableD-2" unnumbered="true">
|
66
|
-
<tbody><tr><td>A</td></tr></tbody>
|
67
|
-
</table>
|
68
|
-
</foreword>
|
69
|
-
</preface>
|
70
|
-
</iso-standard>
|
71
|
-
INPUT
|
72
|
-
|
73
|
-
presxml = <<~OUTPUT
|
74
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
75
|
-
<preface>
|
76
|
-
<foreword displayorder="1">
|
77
|
-
<table id='tableD-1' alt='tool tip' summary='long desc' width='70%' keep-with-next='true' keep-lines-together='true'>
|
78
|
-
<name>
|
79
|
-
Table 1 — Repeatability and reproducibility of
|
80
|
-
<em>husked</em>
|
81
|
-
rice yield
|
82
|
-
<fn reference='1'>
|
83
|
-
<p>X</p>
|
84
|
-
</fn>
|
85
|
-
</name>
|
86
|
-
<colgroup>
|
87
|
-
<col width='30%'/>
|
88
|
-
<col width='20%'/>
|
89
|
-
<col width='20%'/>
|
90
|
-
<col width='20%'/>
|
91
|
-
<col width='10%'/>
|
92
|
-
</colgroup>
|
93
|
-
<thead>
|
94
|
-
<tr>
|
95
|
-
<td rowspan='2' align='left'>Description</td>
|
96
|
-
<td colspan='4' align='center'>Rice sample</td>
|
97
|
-
</tr>
|
98
|
-
<tr>
|
99
|
-
<td valign="top" align='left'>Arborio</td>
|
100
|
-
<td valign="middle" align='center'>
|
101
|
-
Drago
|
102
|
-
<fn reference='a'>
|
103
|
-
<p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
|
104
|
-
</fn>
|
105
|
-
</td>
|
106
|
-
<td valign="bottom" align='center'>
|
107
|
-
Balilla
|
108
|
-
<fn reference='a'>
|
109
|
-
<p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
|
110
|
-
</fn>
|
111
|
-
</td>
|
112
|
-
<td align='center'>Thaibonnet</td>
|
113
|
-
</tr>
|
114
|
-
</thead>
|
115
|
-
<tbody>
|
116
|
-
<tr>
|
117
|
-
<th align='left'>Number of laboratories retained after eliminating outliers</th>
|
118
|
-
<td align='center'>13</td>
|
119
|
-
<td align='center'>11</td>
|
120
|
-
<td align='center'>13</td>
|
121
|
-
<td align='center'>13</td>
|
122
|
-
</tr>
|
123
|
-
<tr>
|
124
|
-
<td align='left'>Mean value, g/100 g</td>
|
125
|
-
<td align='center'>81,2</td>
|
126
|
-
<td align='center'>82,0</td>
|
127
|
-
<td align='center'>81,8</td>
|
128
|
-
<td align='center'>77,7</td>
|
129
|
-
</tr>
|
130
|
-
</tbody>
|
131
|
-
<tfoot>
|
132
|
-
<tr>
|
133
|
-
<td align='left'>
|
134
|
-
Reproducibility limit,
|
135
|
-
<stem type='AsciiMath'>R</stem>
|
136
|
-
(= 2,83
|
137
|
-
<stem type='AsciiMath'>s_R</stem>
|
138
|
-
)
|
139
|
-
</td>
|
140
|
-
<td align='center'>2,89</td>
|
141
|
-
<td align='center'>0,57</td>
|
142
|
-
<td align='center'>2,26</td>
|
143
|
-
<td align='center'>6,06</td>
|
144
|
-
</tr>
|
145
|
-
</tfoot>
|
146
|
-
<dl>
|
147
|
-
<dt>Drago</dt>
|
148
|
-
<dd>A type of rice</dd>
|
149
|
-
</dl>
|
150
|
-
<note>
|
151
|
-
<name>NOTE</name>
|
152
|
-
<p>This is a table about rice</p>
|
153
|
-
</note>
|
154
|
-
</table>
|
155
|
-
<table id='tableD-2' unnumbered='true'>
|
156
|
-
<tbody>
|
157
|
-
<tr>
|
158
|
-
<td>A</td>
|
159
|
-
</tr>
|
160
|
-
</tbody>
|
161
|
-
</table>
|
162
|
-
</foreword>
|
163
|
-
</preface>
|
164
|
-
</iso-standard>
|
165
|
-
OUTPUT
|
166
|
-
|
167
|
-
html = <<~OUTPUT
|
168
|
-
#{HTML_HDR}
|
169
|
-
<br/>
|
170
|
-
<div>
|
171
|
-
<h1 class="ForewordTitle">Foreword</h1>
|
172
|
-
<p class="TableTitle" style="text-align:center;">Table 1 — Repeatability and reproducibility of <i>husked</i> rice yield
|
173
|
-
<a class='FootnoteRef' href='#fn:1'>
|
174
|
-
<sup>1</sup>
|
175
|
-
</a>
|
176
|
-
</p>
|
177
|
-
<table id="tableD-1" class="MsoISOTable" style="border-width:1px;border-spacing:0;width:70%;page-break-after: avoid;page-break-inside: avoid;table-layout:fixed;" title="tool tip" >
|
178
|
-
<caption>
|
179
|
-
<span style="display:none">long desc</span>
|
180
|
-
</caption>
|
181
|
-
<colgroup>
|
182
|
-
<col style='width: 30%;'/>
|
183
|
-
<col style='width: 20%;'/>
|
184
|
-
<col style='width: 20%;'/>
|
185
|
-
<col style='width: 20%;'/>
|
186
|
-
<col style='width: 10%;'/>
|
187
|
-
</colgroup>
|
188
|
-
<thead>
|
189
|
-
<tr>
|
190
|
-
<td rowspan="2" style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;" scope="col">Description</td>
|
191
|
-
<td colspan="4" style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;" scope="colgroup">Rice sample</td>
|
192
|
-
</tr>
|
193
|
-
<tr>
|
194
|
-
<td style="text-align:left;vertical-align:top;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">Arborio</td>
|
195
|
-
<td style="text-align:center;vertical-align:middle;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">Drago<a href="#tableD-1a" class="TableFootnoteRef">a</a><aside class="footnote"><div id="fn:tableD-1a"><span><span id="tableD-1a" class="TableFootnoteRef">a</span>  </span>
|
196
|
-
<p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
|
197
|
-
</div></aside></td>
|
198
|
-
<td style="text-align:center;vertical-align:bottom;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">Balilla<a href="#tableD-1a" class="TableFootnoteRef">a</a></td>
|
199
|
-
<td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">Thaibonnet</td>
|
200
|
-
</tr>
|
201
|
-
</thead>
|
202
|
-
<tbody>
|
203
|
-
<tr>
|
204
|
-
<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>
|
205
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">13</td>
|
206
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">11</td>
|
207
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">13</td>
|
208
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">13</td>
|
209
|
-
</tr>
|
210
|
-
<tr>
|
211
|
-
<td style="text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;">Mean value, g/100 g</td>
|
212
|
-
<td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;">81,2</td>
|
213
|
-
<td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;">82,0</td>
|
214
|
-
<td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;">81,8</td>
|
215
|
-
<td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;">77,7</td>
|
216
|
-
</tr>
|
217
|
-
</tbody>
|
218
|
-
<tfoot>
|
219
|
-
<tr>
|
220
|
-
<td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Reproducibility limit, <span class="stem">(#(R)#)</span> (= 2,83 <span class="stem">(#(s_R)#)</span>)</td>
|
221
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">2,89</td>
|
222
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">0,57</td>
|
223
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">2,26</td>
|
224
|
-
<td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">6,06</td>
|
225
|
-
</tr>
|
226
|
-
</tfoot>
|
227
|
-
<dl>
|
228
|
-
<dt>
|
229
|
-
<p>Drago</p>
|
230
|
-
</dt>
|
231
|
-
<dd>A type of rice</dd>
|
232
|
-
</dl>
|
233
|
-
<div class="Note">
|
234
|
-
<p><span class="note_label">NOTE</span>  This is a table about rice</p>
|
235
|
-
</div>
|
236
|
-
</table>
|
237
|
-
<table id="tableD-2" class="MsoISOTable" style="border-width:1px;border-spacing:0;">
|
238
|
-
<tbody>
|
239
|
-
<tr>
|
240
|
-
<td style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">A</td>
|
241
|
-
</tr>
|
242
|
-
</tbody>
|
243
|
-
</table>
|
244
|
-
</div>
|
245
|
-
<p class="zzSTDTitle1"/>
|
246
|
-
<aside id='fn:1' class='footnote'>
|
247
|
-
<p>X</p>
|
248
|
-
</aside>
|
249
|
-
</div>
|
250
|
-
</body>
|
251
|
-
</html>
|
252
|
-
OUTPUT
|
253
|
-
|
254
|
-
word = <<~OUTPUT
|
255
|
-
<html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
|
256
|
-
<head><style/></head>
|
257
|
-
<body lang='EN-US' link='blue' vlink='#954F72'>
|
258
|
-
<div class='WordSection1'>
|
259
|
-
<p> </p>
|
260
|
-
</div>
|
261
|
-
<p>
|
262
|
-
<br clear='all' class='section'/>
|
263
|
-
</p>
|
264
|
-
<div class='WordSection2'>
|
265
|
-
<p>
|
266
|
-
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
267
|
-
</p>
|
268
|
-
<div>
|
269
|
-
<h1 class='ForewordTitle'>Foreword</h1>
|
270
|
-
<p class='TableTitle' style='text-align:center;'>
|
271
|
-
Table 1 — Repeatability and reproducibility of
|
272
|
-
<i>husked</i>
|
273
|
-
rice yield
|
274
|
-
<span style='mso-bookmark:_Ref'>
|
275
|
-
<a class='FootnoteRef' href='#ftn1' epub:type='footnote'>
|
276
|
-
<sup>1</sup>
|
277
|
-
</a>
|
278
|
-
</span>
|
279
|
-
</p>
|
280
|
-
<div align='center' class='table_container'>
|
281
|
-
<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%'>
|
282
|
-
<colgroup>
|
283
|
-
<col width='30%'/>
|
284
|
-
<col width='20%'/>
|
285
|
-
<col width='20%'/>
|
286
|
-
<col width='20%'/>
|
287
|
-
<col width='10%'/>
|
288
|
-
</colgroup>
|
289
|
-
<thead>
|
290
|
-
<tr>
|
291
|
-
<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>
|
292
|
-
<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>
|
293
|
-
</tr>
|
294
|
-
<tr>
|
295
|
-
<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>
|
296
|
-
<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;'>
|
297
|
-
Drago
|
298
|
-
<a href='#tableD-1a' class='TableFootnoteRef'>a</a>
|
299
|
-
<aside>
|
300
|
-
<div id='ftntableD-1a'>
|
301
|
-
<span>
|
302
|
-
<span id='tableD-1a' class='TableFootnoteRef'>a</span>
|
303
|
-
<span style='mso-tab-count:1'>  </span>
|
304
|
-
</span>
|
305
|
-
<p id='_0fe65e9a-5531-408e-8295-eeff35f41a55'>Parboiled rice.</p>
|
306
|
-
</div>
|
307
|
-
</aside>
|
308
|
-
</td>
|
309
|
-
<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;'>
|
310
|
-
Balilla
|
311
|
-
<a href='#tableD-1a' class='TableFootnoteRef'>a</a>
|
312
|
-
</td>
|
313
|
-
<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>
|
314
|
-
</tr>
|
315
|
-
</thead>
|
316
|
-
<tbody>
|
317
|
-
<tr>
|
318
|
-
<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>
|
319
|
-
<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>
|
320
|
-
<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>
|
321
|
-
<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>
|
322
|
-
<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>
|
323
|
-
</tr>
|
324
|
-
<tr>
|
325
|
-
<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>
|
326
|
-
<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>
|
327
|
-
<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>
|
328
|
-
<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>
|
329
|
-
<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>
|
330
|
-
</tr>
|
331
|
-
</tbody>
|
332
|
-
<tfoot>
|
333
|
-
<tr>
|
334
|
-
<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;'>
|
335
|
-
Reproducibility limit,
|
336
|
-
<span class='stem'>(#(R)#)</span>
|
337
|
-
(= 2,83
|
338
|
-
<span class='stem'>(#(s_R)#)</span>
|
339
|
-
)
|
340
|
-
</td>
|
341
|
-
<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>
|
342
|
-
<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>
|
343
|
-
<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>
|
344
|
-
<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>
|
345
|
-
</tr>
|
346
|
-
</tfoot>
|
347
|
-
<dl>
|
348
|
-
<dt>
|
349
|
-
<p align='left' style='margin-left:0pt;text-align:left;'>Drago</p>
|
350
|
-
</dt>
|
351
|
-
<dd>A type of rice</dd>
|
352
|
-
</dl>
|
353
|
-
<div class='Note'>
|
354
|
-
<p class='Note'>
|
355
|
-
<span class='note_label'>NOTE</span>
|
356
|
-
<span style='mso-tab-count:1'>  </span>
|
357
|
-
This is a table about rice
|
358
|
-
</p>
|
359
|
-
</div>
|
360
|
-
</table>
|
361
|
-
</div>
|
362
|
-
<div align='center' class='table_container'>
|
363
|
-
<table id='tableD-2' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
|
364
|
-
<tbody>
|
365
|
-
<tr>
|
366
|
-
<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>
|
367
|
-
</tr>
|
368
|
-
</tbody>
|
369
|
-
</table>
|
370
|
-
</div>
|
371
|
-
</div>
|
372
|
-
<p> </p>
|
373
|
-
</div>
|
374
|
-
<p>
|
375
|
-
<br clear='all' class='section'/>
|
376
|
-
</p>
|
377
|
-
<div class='WordSection3'>
|
378
|
-
<p class='zzSTDTitle1'/>
|
379
|
-
<aside id='ftn1'>
|
380
|
-
<p>X</p>
|
381
|
-
</aside>
|
382
|
-
</div>
|
383
|
-
</body>
|
384
|
-
</html>
|
385
|
-
OUTPUT
|
386
|
-
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
387
|
-
.convert("test", input, true))).to be_equivalent_to xmlpp(presxml)
|
388
|
-
expect(xmlpp(IsoDoc::HtmlConvert.new({})
|
389
|
-
.convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
|
390
|
-
expect(xmlpp(IsoDoc::WordConvert.new({})
|
391
|
-
.convert("test", presxml, true)
|
392
|
-
.gsub(/mso-bookmark:_Ref\d+/, "mso-bookmark:_Ref")))
|
393
|
-
.to be_equivalent_to xmlpp(word)
|
394
|
-
end
|
395
|
-
|
396
|
-
it "processes big tables" do
|
397
|
-
input = <<~INPUT
|
398
|
-
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
399
|
-
<preface>
|
400
|
-
<foreword>
|
401
|
-
<table id="tableD-1" alt="tool tip" summary="long desc" width="70%" keep-with-next="true" keep-lines-together="true">
|
402
|
-
<name>Repeatability and reproducibility of <em>husked</em> rice yield<fn reference="1"><p>X</p></fn></name>
|
403
|
-
<thead>
|
404
|
-
<tr>
|
405
|
-
<td>
|
406
|
-
Description Description Description Description Description Description Description Description Description
|
407
|
-
Description Description Description Description Description Description Description Description Description
|
408
|
-
Description Description Description Description Description Description Description Description Description
|
409
|
-
Description Description Description Description Description Description Description Description Description
|
410
|
-
Description Description Description Description Description Description Description Description Description
|
411
|
-
Description Description Description Description Description Description Description Description Description
|
412
|
-
Description Description Description Description Description Description Description Description Description
|
413
|
-
Description Description Description Description Description Description Description Description Description
|
414
|
-
Description Description Description Description Description Description Description Description Description
|
415
|
-
Description Description Description Description Description Description Description Description Description
|
416
|
-
Description Description Description Description Description Description Description Description Description
|
417
|
-
Description Description Description Description Description Description Description Description Description
|
418
|
-
Description Description Description Description Description Description Description Description Description
|
419
|
-
Description Description Description Description Description Description Description Description Description
|
420
|
-
Description Description Description Description Description Description Description Description Description
|
421
|
-
Description Description Description Description Description Description Description Description Description
|
422
|
-
Description Description Description Description Description Description Description Description Description
|
423
|
-
Description Description Description Description Description Description Description Description Description
|
424
|
-
Description Description Description Description Description Description Description Description Description
|
425
|
-
Description Description Description Description Description Description Description Description Description
|
426
|
-
Description Description Description Description Description Description Description Description Description
|
427
|
-
Description Description Description Description Description Description Description Description Description
|
428
|
-
Description Description Description Description Description Description Description Description Description
|
429
|
-
Description Description Description Description Description Description Description Description Description
|
430
|
-
Description Description Description Description Description Description Description Description Description
|
431
|
-
Description Description Description Description Description Description Description Description Description
|
432
|
-
Description Description Description Description Description Description Description Description Description
|
433
|
-
Description Description Description Description Description Description Description Description Description
|
434
|
-
Description Description Description Description Description Description Description Description Description
|
435
|
-
Description Description Description Description Description Description Description Description Description
|
436
|
-
Description Description Description Description Description Description Description Description Description
|
437
|
-
Description Description Description Description Description Description Description Description Description
|
438
|
-
Description Description Description Description Description Description Description Description Description
|
439
|
-
Description Description Description Description Description Description Description Description Description
|
440
|
-
Description Description Description Description Description Description Description Description Description
|
441
|
-
Description Description Description Description Description Description Description Description Description
|
442
|
-
Description Description Description Description Description Description Description Description Description
|
443
|
-
Description Description Description Description Description Description Description Description Description
|
444
|
-
Description Description Description Description Description Description Description Description Description
|
445
|
-
Description Description Description Description Description Description Description Description Description
|
446
|
-
</td>
|
447
|
-
<td>Rice sample</td>
|
448
|
-
</tr>
|
449
|
-
</thead>
|
450
|
-
</table>
|
451
|
-
</foreword>
|
452
|
-
</preface>
|
453
|
-
</iso-standard>
|
454
|
-
INPUT
|
455
|
-
|
456
|
-
output = <<~OUTPUT
|
457
|
-
<html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
|
458
|
-
<head>
|
459
|
-
<style>
|
460
|
-
</style>
|
461
|
-
</head>
|
462
|
-
<body lang='EN-US' link='blue' vlink='#954F72'>
|
463
|
-
<div class='WordSection1'>
|
464
|
-
<p> </p>
|
465
|
-
</div>
|
466
|
-
<p>
|
467
|
-
<br clear='all' class='section'/>
|
468
|
-
</p>
|
469
|
-
<div class='WordSection2'>
|
470
|
-
<p>
|
471
|
-
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
472
|
-
</p>
|
473
|
-
<div>
|
474
|
-
<h1 class='ForewordTitle'>Foreword</h1>
|
475
|
-
<p class='TableTitle' style='text-align:center;'>
|
476
|
-
Repeatability and reproducibility of
|
477
|
-
<i>husked</i>
|
478
|
-
rice yield
|
479
|
-
<span style='mso-bookmark:_Ref'>
|
480
|
-
<a class='FootnoteRef' href='#ftn1' epub:type='footnote'>
|
481
|
-
<sup>1</sup>
|
482
|
-
</a>
|
483
|
-
</span>
|
484
|
-
</p>
|
485
|
-
<div align='center' class='table_container'>
|
486
|
-
<table id='tableD-1' class='MsoISOTableBig' 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%'>
|
487
|
-
<thead>
|
488
|
-
<tr>
|
489
|
-
<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;'>
|
490
|
-
Description Description Description Description Description
|
491
|
-
Description Description Description Description Description
|
492
|
-
Description Description Description Description Description
|
493
|
-
Description Description Description Description Description
|
494
|
-
Description Description Description Description Description
|
495
|
-
Description Description Description Description Description
|
496
|
-
Description Description Description Description Description
|
497
|
-
Description Description Description Description Description
|
498
|
-
Description Description Description Description Description
|
499
|
-
Description Description Description Description Description
|
500
|
-
Description Description Description Description Description
|
501
|
-
Description Description Description Description Description
|
502
|
-
Description Description Description Description Description
|
503
|
-
Description Description Description Description Description
|
504
|
-
Description Description Description Description Description
|
505
|
-
Description Description Description Description Description
|
506
|
-
Description Description Description Description Description
|
507
|
-
Description Description Description Description Description
|
508
|
-
Description Description Description Description Description
|
509
|
-
Description Description Description Description Description
|
510
|
-
Description Description Description Description Description
|
511
|
-
Description Description Description Description Description
|
512
|
-
Description Description Description Description Description
|
513
|
-
Description Description Description Description Description
|
514
|
-
Description Description Description Description Description
|
515
|
-
Description Description Description Description Description
|
516
|
-
Description Description Description Description Description
|
517
|
-
Description Description Description Description Description
|
518
|
-
Description Description Description Description Description
|
519
|
-
Description Description Description Description Description
|
520
|
-
Description Description Description Description Description
|
521
|
-
Description Description Description Description Description
|
522
|
-
Description Description Description Description Description
|
523
|
-
Description Description Description Description Description
|
524
|
-
Description Description Description Description Description
|
525
|
-
Description Description Description Description Description
|
526
|
-
Description Description Description Description Description
|
527
|
-
Description Description Description Description Description
|
528
|
-
Description Description Description Description Description
|
529
|
-
Description Description Description Description Description
|
530
|
-
Description Description Description Description Description
|
531
|
-
Description Description Description Description Description
|
532
|
-
Description Description Description Description Description
|
533
|
-
Description Description Description Description Description
|
534
|
-
Description Description Description Description Description
|
535
|
-
Description Description Description Description Description
|
536
|
-
Description Description Description Description Description
|
537
|
-
Description Description Description Description Description
|
538
|
-
Description Description Description Description Description
|
539
|
-
Description Description Description Description Description
|
540
|
-
Description Description Description Description Description
|
541
|
-
Description Description Description Description Description
|
542
|
-
Description Description Description Description Description
|
543
|
-
Description Description Description Description Description
|
544
|
-
Description Description Description Description Description
|
545
|
-
Description Description Description Description Description
|
546
|
-
Description Description Description Description Description
|
547
|
-
Description Description Description Description Description
|
548
|
-
Description Description Description Description Description
|
549
|
-
Description Description Description Description Description
|
550
|
-
Description Description Description Description Description
|
551
|
-
Description Description Description Description Description
|
552
|
-
Description Description Description Description Description
|
553
|
-
Description Description Description Description Description
|
554
|
-
Description Description Description Description Description
|
555
|
-
Description Description Description Description Description
|
556
|
-
Description Description Description Description Description
|
557
|
-
Description Description Description Description Description
|
558
|
-
Description Description Description Description Description
|
559
|
-
Description Description Description Description Description
|
560
|
-
Description Description Description Description Description
|
561
|
-
Description Description Description Description Description
|
562
|
-
</td>
|
563
|
-
<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;'>Rice sample</td>
|
564
|
-
</tr>
|
565
|
-
</thead>
|
566
|
-
</table>
|
567
|
-
</div>
|
568
|
-
</div>
|
569
|
-
<p> </p>
|
570
|
-
</div>
|
571
|
-
<p>
|
572
|
-
<br clear='all' class='section'/>
|
573
|
-
</p>
|
574
|
-
<div class='WordSection3'>
|
575
|
-
<p class='zzSTDTitle1'/>
|
576
|
-
<aside id='ftn1'>
|
577
|
-
<p>X</p>
|
578
|
-
</aside>
|
579
|
-
</div>
|
580
|
-
</body>
|
581
|
-
</html>
|
582
|
-
OUTPUT
|
583
|
-
expect(xmlpp(IsoDoc::WordConvert.new({})
|
584
|
-
.convert("test", input, true)
|
585
|
-
.gsub(/mso-bookmark:_Ref\d+/, "mso-bookmark:_Ref")))
|
586
|
-
.to be_equivalent_to xmlpp(output)
|
587
|
-
end
|
588
|
-
end
|