isodoc 0.10.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,7 +94,7 @@ RSpec.describe IsoDoc do
94
94
  OUTPUT
95
95
  end
96
96
 
97
- it "processes IsoXML reviewer notes" do
97
+ it "processes IsoXML reviewer notes (HTML)" do
98
98
  FileUtils.rm_f "test.html"
99
99
  IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css"}).convert("test", <<~"INPUT", false)
100
100
  <iso-standard xmlns="http://riboseinc.com/isoxml">
@@ -115,7 +115,7 @@ RSpec.describe IsoDoc do
115
115
  INPUT
116
116
  html = File.read("test.html").sub(/^.*<body/m, "<body").sub(%r{</body>.*$}m, "</body>")
117
117
  expect(html).to be_equivalent_to <<~"OUTPUT"
118
- <body lang="EN-US" link="blue" vlink="#954F72" xml:lang="EN-US">
118
+ <body lang="en" xml:lang="en">
119
119
  <div class="title-section">
120
120
  <p>&#xA0;</p>
121
121
  </div>
@@ -128,36 +128,23 @@ RSpec.describe IsoDoc do
128
128
  <br />
129
129
  <div>
130
130
  <h1 class="ForewordTitle">Foreword</h1>
131
- <span style="MsoCommentReference" target="1" class="commentLink" from="A" to="B">
132
- <a style="mso-comment-reference:SMC_1;mso-comment-date:20170101T0000"><span style="MsoCommentReference" target="3" class="commentLink" from="A" to="C">
133
- <a style="mso-comment-reference:SMC_3;mso-comment-date:20170108T0000"><p id="A">A.</p></a>
134
- </span></a>
135
- </span>
136
- <span style="mso-comment-continuation:3"><span style="mso-comment-continuation:1"><p id="B">B.</p></span></span>
137
-
138
- <span style="MsoCommentReference" target="2" class="commentLink" from="C" to="C">
139
- <a style="mso-comment-reference:SMC_2;mso-comment-date:20170108T0000"><span style="mso-comment-continuation:3"><p id="C">C.</p></span></a>
140
- </span>
141
-
131
+ <p id="A">A.</p>
132
+ <p id="B">B.</p>
133
+ <p id="C">C.</p>
142
134
  </div>
143
135
  <br />
144
136
  <div class="Section3" id="">
145
137
  <h1 class="IntroTitle">Introduction</h1>
146
-
147
138
  </div>
148
139
  <p class="zzSTDTitle1"></p>
149
- <div style="mso-element:comment-list"></div>
150
140
  </main>
151
141
  <script type="text/x-mathjax-config">
152
142
  MathJax.Hub.Config({
153
- asciimath2jax: {
154
- delimiters: [['(#(', ')#)']]
155
- }
143
+ asciimath2jax: { delimiters: [['(#(', ')#)']] }
156
144
  });
157
145
  </script>
158
146
  <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=AM_HTMLorMML" async="async"></script>
159
- <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
160
- </body>
147
+ <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script></body>
161
148
  OUTPUT
162
149
  end
163
150
 
@@ -204,7 +204,7 @@ RSpec.describe IsoDoc do
204
204
  </bibliography>
205
205
  </iso-standard>
206
206
  INPUT
207
- #{HTML_HDR}
207
+ #{HTML_HDR.sub(/<body lang="en">/, '<body lang="tlh">')}
208
208
  <br/>
209
209
  <div>
210
210
  <h1 class="ForewordTitle">Foreword</h1>
@@ -342,7 +342,7 @@ RSpec.describe IsoDoc do
342
342
  </bibliography>
343
343
  </iso-standard>
344
344
  INPUT
345
- #{HTML_HDR}
345
+ #{HTML_HDR.sub(/<body lang="en">/, '<body lang="fr">')}
346
346
  <br/>
347
347
  <div>
348
348
  <h1 class="ForewordTitle">Avant-propos</h1>
@@ -490,7 +490,7 @@ RSpec.describe IsoDoc do
490
490
  </bibliography>
491
491
  </iso-standard>
492
492
  INPUT
493
- #{HTML_HDR}
493
+ #{HTML_HDR.sub(/<body lang="en">/, '<body lang="zh">')}
494
494
  <br/>
495
495
  <div>
496
496
  <h1 class="ForewordTitle">&#21069;&#35328;</h1>
@@ -486,7 +486,7 @@ ICAgICAgIDogRU5EIERPQyBJRAoKRklMRU5BTUU6IHRlc3QKCg==
486
486
  INPUT
487
487
  html = File.read("test.html")
488
488
  toclevel = <<~"TOCLEVEL"
489
- function toclevel() { var i; var text = "";\n for(i = 1; i <= 3; i++) {
489
+ function toclevel() { return "h1:not(:empty):not(.TermNum):not(.noTOC),h2:not(:empty):not(.TermNum):not(.noTOC),h3:not(:empty):not(.TermNum):not(.noTOC)";}
490
490
  TOCLEVEL
491
491
  expect(html).to include toclevel
492
492
  end
@@ -574,7 +574,7 @@ TOCLEVEL
574
574
  <img src="test_htmlimages/_.png" height="800" width="53" />
575
575
  <img src="test_htmlimages/_.png" height="83" width="99" />
576
576
  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7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QPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMBAAA//8DAE/7hyLdS2yEAAAAAElFTkSuQmCC" height="800" width="800" />
577
- <p class="FigureTitle" align="center">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
577
+ <p class="FigureTitle" style="text-align:center;">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
578
578
  </div>
579
579
  <p class="zzSTDTitle1"></p>
580
580
  </main>
@@ -609,7 +609,7 @@ TOCLEVEL
609
609
  <img src="test_htmlimages/_.png" height="776" width="922" />
610
610
  <img src="test_htmlimages/_.png" height="800" width="53" />
611
611
  <img src="test_htmlimages/_.png" height="83" width="99" />
612
- <p class="FigureTitle" align="center">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
612
+ <p class="FigureTitle" style="text-align:center;">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
613
613
  </div>
614
614
  <p class="zzSTDTitle1"></p>
615
615
  </main>
@@ -639,7 +639,7 @@ TOCLEVEL
639
639
  <h1 class="ForewordTitle">Foreword</h1>
640
640
  <div id="_" class="figure">
641
641
  <img src="data:image/png;base64,_" height="776" width="922" />
642
- <p class="FigureTitle" align="center">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
642
+ <p class="FigureTitle" style="text-align:center;">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
643
643
  </div>
644
644
  <p class="zzSTDTitle1"></p>
645
645
  </main>
@@ -824,7 +824,7 @@ TOCLEVEL
824
824
  <br />
825
825
  <div>
826
826
  <h1 class="ForewordTitle">Foreword</h1>
827
- <pre id="samplecode" class="prettyprint "><br />&#xA0;&#xA0;&#xA0; <br />&#xA0; &lt;xml&gt; &amp;<br /><p class="SourceTitle" align="center">XML code</p></pre>
827
+ <pre id="samplecode" class="prettyprint "><br />&#xA0;&#xA0;&#xA0; <br />&#xA0; &lt;xml&gt; &amp;<br /><p class="SourceTitle" style="text-align:center;">XML code</p></pre>
828
828
  </div>
829
829
  <p class="zzSTDTitle1"></p>
830
830
  </main>
@@ -854,7 +854,7 @@ TOCLEVEL
854
854
  </p>
855
855
  <div>
856
856
  <h1 class="ForewordTitle">Foreword</h1>
857
- <p class="Sourcecode"><a name="samplecode" id="samplecode"></a><br/>&#xA0;&#xA0;&#xA0; <br/>&#xA0; &lt;xml&gt; &amp;<br/><p class="SourceTitle" align="center">XML code</p></p>
857
+ <p class="Sourcecode"><a name="samplecode" id="samplecode"></a><br/>&#xA0;&#xA0;&#xA0; <br/>&#xA0; &lt;xml&gt; &amp;<br/><p class="SourceTitle" style="text-align:center;">XML code</p></p>
858
858
  </div>
859
859
  <p class="MsoNormal">&#xA0;</p>
860
860
  </div>
@@ -862,4 +862,35 @@ TOCLEVEL
862
862
  OUTPUT
863
863
  end
864
864
 
865
+ it "propagates example style to paragraphs in postprocessing (Word)" do
866
+ FileUtils.rm_f "test.doc"
867
+ FileUtils.rm_f "test.html"
868
+ IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css"}).convert("test", <<~"INPUT", false)
869
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
870
+ <preface><foreword>
871
+ <example id="samplecode">
872
+ <p>ABC</p>
873
+ </example>
874
+ </foreword></preface>
875
+ </iso-standard>
876
+ INPUT
877
+ word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
878
+ sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
879
+ expect(word).to be_equivalent_to <<~"OUTPUT"
880
+ <div class="WordSection2">
881
+ <p class="MsoNormal">
882
+ <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
883
+ </p>
884
+ <div>
885
+ <h1 class="ForewordTitle">Foreword</h1>
886
+ <div class="example"><a name="samplecode" id="samplecode"></a><p class="example-title">EXAMPLE</p>
887
+ <p class="example">ABC</p>
888
+ </div>
889
+ </div>
890
+ <p class="MsoNormal">&#xA0;</p>
891
+ </div>
892
+ OUTPUT
893
+ end
894
+
895
+
865
896
  end
@@ -74,7 +74,7 @@ RSpec.describe IsoDoc do
74
74
  </bibitem>
75
75
  <bibitem id="ref10">
76
76
  <formattedref format="application/x-isodoc+xml"><smallcap>Standard No I.C.C 167</smallcap>. <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em> (see <link target="http://www.icc.or.at"/>)</formattedref>
77
- <docidentifier>[10]</docidentifier>
77
+ <docidentifier type="metanorma">[10]</docidentifier>
78
78
  </bibitem>
79
79
  <bibitem id="ref11">
80
80
  <title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
@@ -10,7 +10,7 @@ RSpec.describe IsoDoc do
10
10
  INPUT
11
11
  <html xmlns:epub="http://www.idpf.org/2007/ops">
12
12
  <head/>
13
- <body lang="EN-US" link="blue" vlink="#954F72">
13
+ <body lang="en">
14
14
  <div class="title-section">
15
15
  <p>&#160;</p>
16
16
  </div>
@@ -67,45 +67,45 @@ RSpec.describe IsoDoc do
67
67
  <br/>
68
68
  <div>
69
69
  <h1 class="ForewordTitle">Foreword</h1>
70
- <p class="TableTitle" align="center">Table 1&#160;&#8212; Repeatability and reproducibility of <i>husked</i> rice yield</p>
71
- <table id="tableD-1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0" title="tool tip">
70
+ <p class="TableTitle" style="text-align:center;">Table 1&#160;&#8212; Repeatability and reproducibility of <i>husked</i> rice yield</p>
71
+ <table id="tableD-1" class="MsoISOTable" style="border-width:1px;border-spacing:0;" title="tool tip">
72
72
  <thead>
73
73
  <tr>
74
- <td rowspan="2" align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Description</td>
75
- <td colspan="4" align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">Rice sample</td>
74
+ <td rowspan="2" style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Description</td>
75
+ <td colspan="4" style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">Rice sample</td>
76
76
  </tr>
77
77
  <tr>
78
- <td align="left" style="border-top:none;border-bottom:solid windowtext 1.5pt;">Arborio</td>
79
- <td align="center" style="border-top:none;border-bottom:solid windowtext 1.5pt;">Drago<a href="#tableD-1a" class="TableFootnoteRef">a</a><aside class="footnote"><div id="fn:tableD-1a"><a id="tableD-1a" class="TableFootnoteRef">a&#160; </a>
78
+ <td style="text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">Arborio</td>
79
+ <td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">Drago<a href="#tableD-1a" class="TableFootnoteRef">a</a><aside class="footnote"><div id="fn:tableD-1a"><a id="tableD-1a" class="TableFootnoteRef">a&#160; </a>
80
80
  <p id="_0fe65e9a-5531-408e-8295-eeff35f41a55">Parboiled rice.</p>
81
81
  </div></aside></td>
82
- <td align="center" style="border-top:none;border-bottom:solid windowtext 1.5pt;">Balilla<a href="#tableD-1a" class="TableFootnoteRef">a</a></td>
83
- <td align="center" style="border-top:none;border-bottom:solid windowtext 1.5pt;">Thaibonnet</td>
82
+ <td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">Balilla<a href="#tableD-1a" class="TableFootnoteRef">a</a></td>
83
+ <td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">Thaibonnet</td>
84
84
  </tr>
85
85
  </thead>
86
86
  <tbody>
87
87
  <tr>
88
- <td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">Number of laboratories retained after eliminating outliers</td>
89
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">13</td>
90
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">11</td>
91
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">13</td>
92
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;">13</td>
88
+ <td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">Number of laboratories retained after eliminating outliers</td>
89
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">13</td>
90
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">11</td>
91
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">13</td>
92
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">13</td>
93
93
  </tr>
94
94
  <tr>
95
- <td align="left" style="border-top:none;border-bottom:solid windowtext 1.5pt;">Mean value, g/100 g</td>
96
- <td align="center" style="border-top:none;border-bottom:solid windowtext 1.5pt;">81,2</td>
97
- <td align="center" style="border-top:none;border-bottom:solid windowtext 1.5pt;">82,0</td>
98
- <td align="center" style="border-top:none;border-bottom:solid windowtext 1.5pt;">81,8</td>
99
- <td align="center" style="border-top:none;border-bottom:solid windowtext 1.5pt;">77,7</td>
95
+ <td style="text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">Mean value, g/100 g</td>
96
+ <td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">81,2</td>
97
+ <td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">82,0</td>
98
+ <td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">81,8</td>
99
+ <td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;padding:0;">77,7</td>
100
100
  </tr>
101
101
  </tbody>
102
102
  <tfoot>
103
103
  <tr>
104
- <td align="left" style="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>
105
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">2,89</td>
106
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">0,57</td>
107
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">2,26</td>
108
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">6,06</td>
104
+ <td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Reproducibility limit, <span class="stem">(#(R)#)</span> (= 2,83 <span class="stem">(#(s_R)#)</span>)</td>
105
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">2,89</td>
106
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">0,57</td>
107
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">2,26</td>
108
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">6,06</td>
109
109
  </tr>
110
110
  </tfoot>
111
111
  <dl>
@@ -118,11 +118,11 @@ RSpec.describe IsoDoc do
118
118
  <p><span class="note_label">NOTE</span>&#160; This is a table about rice</p>
119
119
  </div>
120
120
  </table>
121
- <p class="TableTitle" align="center"/>
122
- <table id="tableD-2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0">
121
+ <p class="TableTitle" style="text-align:center;"/>
122
+ <table id="tableD-2" class="MsoISOTable" style="border-width:1px;border-spacing:0;">
123
123
  <tbody>
124
124
  <tr>
125
- <td style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">A</td>
125
+ <td style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">A</td>
126
126
  </tr>
127
127
  </tbody>
128
128
  </table>
@@ -203,9 +203,9 @@ RSpec.describe IsoDoc do
203
203
  <p><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
204
204
  <div>
205
205
  <h1 class="ForewordTitle">Foreword</h1>
206
- <p class="TableTitle" align="center">Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p>
206
+ <p class="TableTitle" style="text-align:center;">Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p>
207
207
  <div align="center">
208
- <table style="mso-table-lspace:15.0cm;margin-left:423.0pt;mso-table-rspace:15.0cm;margin-right:423.0pt;mso-table-bspace:14.2pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;mso-table-overlap:never;" id="tableD-1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0" title="tool tip">
208
+ <table id="tableD-1" class="MsoISOTable" style="mso-table-lspace:15.0cm;margin-left:423.0pt;mso-table-rspace:15.0cm;margin-right:423.0pt;mso-table-bspace:14.2pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;" title="tool tip">
209
209
  <thead>
210
210
  <tr>
211
211
  <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>
@@ -285,12 +285,12 @@ RSpec.describe IsoDoc do
285
285
  <div id="N1" class="figure">
286
286
 
287
287
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
288
- <p class="FigureTitle" align="center">Figure 1&#160;&#8212; Split-it-right sample divider</p></div>
288
+ <p class="FigureTitle" style="text-align:center;">Figure 1&#160;&#8212; Split-it-right sample divider</p></div>
289
289
  <div id="xyz"><h2>Preparatory</h2>
290
290
  <div id="N2" class="figure">
291
291
 
292
292
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
293
- <p class="FigureTitle" align="center">Split-it-right sample divider</p></div>
293
+ <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
294
294
  </div>
295
295
  </div>
296
296
  <p class="zzSTDTitle1"/>
@@ -299,7 +299,7 @@ RSpec.describe IsoDoc do
299
299
  <div id="N" class="figure">
300
300
 
301
301
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
302
- <p class="FigureTitle" align="center">Figure 2&#160;&#8212; Split-it-right sample divider</p></div>
302
+ <p class="FigureTitle" style="text-align:center;">Figure 2&#160;&#8212; Split-it-right sample divider</p></div>
303
303
  <p>
304
304
  <a href="#N">Figure 2</a>
305
305
  </p>
@@ -312,11 +312,11 @@ RSpec.describe IsoDoc do
312
312
  <div id="note1" class="figure">
313
313
 
314
314
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
315
- <p class="FigureTitle" align="center">Figure 3&#160;&#8212; Split-it-right sample divider</p></div>
315
+ <p class="FigureTitle" style="text-align:center;">Figure 3&#160;&#8212; Split-it-right sample divider</p></div>
316
316
  <div id="note2" class="figure">
317
317
 
318
318
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
319
- <p class="FigureTitle" align="center">Figure 4&#160;&#8212; Split-it-right sample divider</p></div>
319
+ <p class="FigureTitle" style="text-align:center;">Figure 4&#160;&#8212; Split-it-right sample divider</p></div>
320
320
  <p> <a href="#note1">Figure 3</a> <a href="#note2">Figure 4</a> </p>
321
321
  </div>
322
322
  </div>
@@ -326,17 +326,17 @@ RSpec.describe IsoDoc do
326
326
  <div id="AN" class="figure">
327
327
 
328
328
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
329
- <p class="FigureTitle" align="center">Figure A.1&#160;&#8212; Split-it-right sample divider</p></div>
329
+ <p class="FigureTitle" style="text-align:center;">Figure A.1&#160;&#8212; Split-it-right sample divider</p></div>
330
330
  </div>
331
331
  <div id="annex1b"><h2>A.2. </h2>
332
332
  <div id="Anote1" class="figure">
333
333
 
334
334
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
335
- <p class="FigureTitle" align="center">Split-it-right sample divider</p></div>
335
+ <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
336
336
  <div id="Anote2" class="figure">
337
337
 
338
338
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
339
- <p class="FigureTitle" align="center">Figure A.2&#160;&#8212; Split-it-right sample divider</p></div>
339
+ <p class="FigureTitle" style="text-align:center;">Figure A.2&#160;&#8212; Split-it-right sample divider</p></div>
340
340
  </div>
341
341
  </div>
342
342
  </div>
@@ -424,11 +424,11 @@ RSpec.describe IsoDoc do
424
424
  <div id="note1" class="figure">
425
425
 
426
426
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
427
- <p class="FigureTitle" align="center">Figure 1-1&#160;&#8212; Split-it-right sample divider</p></div>
427
+ <p class="FigureTitle" style="text-align:center;">Figure 1-1&#160;&#8212; Split-it-right sample divider</p></div>
428
428
  <div id="note2" class="figure">
429
429
 
430
430
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
431
- <p class="FigureTitle" align="center">Figure 1-2&#160;&#8212; Split-it-right sample divider</p></div>
431
+ <p class="FigureTitle" style="text-align:center;">Figure 1-2&#160;&#8212; Split-it-right sample divider</p></div>
432
432
  </div>
433
433
  <p> <a href="#note1">Figure 1-1</a> <a href="#note2">Figure 1-2</a> </p>
434
434
  </div>
@@ -442,11 +442,11 @@ RSpec.describe IsoDoc do
442
442
  <div id="Anote1" class="figure">
443
443
 
444
444
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
445
- <p class="FigureTitle" align="center">Figure A.1-1&#160;&#8212; Split-it-right sample divider</p></div>
445
+ <p class="FigureTitle" style="text-align:center;">Figure A.1-1&#160;&#8212; Split-it-right sample divider</p></div>
446
446
  <div id="Anote2" class="figure">
447
447
 
448
448
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
449
- <p class="FigureTitle" align="center">Figure A.1-2&#160;&#8212; Split-it-right sample divider</p></div>
449
+ <p class="FigureTitle" style="text-align:center;">Figure A.1-2&#160;&#8212; Split-it-right sample divider</p></div>
450
450
  </div>
451
451
  </div>
452
452
  </div>
@@ -1362,32 +1362,32 @@ OUTPUT
1362
1362
  <br/>
1363
1363
  <div class="Section3" id="intro">
1364
1364
  <h1 class="IntroTitle">Introduction</h1>
1365
- <p class="TableTitle" align="center">Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p>
1366
- <table id="N1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0">
1365
+ <p class="TableTitle" style="text-align:center;">Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p>
1366
+ <table id="N1" class="MsoISOTable" style="border-width:1px;border-spacing:0;">
1367
1367
  <tbody>
1368
1368
  <tr>
1369
- <td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td>
1370
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td>
1371
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td>
1369
+ <td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td>
1370
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td>
1371
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td>
1372
1372
  </tr>
1373
1373
  </tbody>
1374
1374
  </table>
1375
1375
  <div id="xyz"><h2>Preparatory</h2>
1376
- <p class="TableTitle" align="center">Repeatability and reproducibility of husked rice yield</p><table id="N2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table>
1376
+ <p class="TableTitle" style="text-align:center;">Repeatability and reproducibility of husked rice yield</p><table id="N2" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
1377
1377
  </div>
1378
1378
  </div>
1379
1379
  <p class="zzSTDTitle1"/>
1380
1380
  <div id="scope">
1381
1381
  <h1>1.&#160; Scope</h1>
1382
- <p class="TableTitle" align="center">
1382
+ <p class="TableTitle" style="text-align:center;">
1383
1383
  Table 2&#160;&#8212; Repeatability and reproducibility of husked rice yield
1384
1384
  </p>
1385
- <table id="N" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0">
1385
+ <table id="N" class="MsoISOTable" style="border-width:1px;border-spacing:0;">
1386
1386
  <tbody>
1387
1387
  <tr>
1388
- <td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td>
1389
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td>
1390
- <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td>
1388
+ <td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td>
1389
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td>
1390
+ <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td>
1391
1391
  </tr>
1392
1392
  </tbody>
1393
1393
  </table>
@@ -1400,19 +1400,19 @@ OUTPUT
1400
1400
  <div id="widgets">
1401
1401
  <h1>3.&#160; Widgets</h1>
1402
1402
  <div id="widgets1"><h2>3.1. </h2>
1403
- <p class="TableTitle" align="center">Table 3&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table>
1404
- <p class="TableTitle" align="center">Table 4&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table>
1403
+ <p class="TableTitle" style="text-align:center;">Table 3&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note1" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
1404
+ <p class="TableTitle" style="text-align:center;">Table 4&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note2" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
1405
1405
  <p> <a href="#note1">Table 3</a> <a href="#note2">Table 4</a> </p>
1406
1406
  </div>
1407
1407
  </div>
1408
1408
  <br/>
1409
1409
  <div id="annex1" class="Section3">
1410
1410
  <div id="annex1a"><h2>A.1. </h2>
1411
- <p class="TableTitle" align="center">Table A.1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="AN" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table>
1411
+ <p class="TableTitle" style="text-align:center;">Table A.1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="AN" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
1412
1412
  </div>
1413
1413
  <div id="annex1b"><h2>A.2. </h2>
1414
- <p class="TableTitle" align="center">Repeatability and reproducibility of husked rice yield</p><table id="Anote1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table>
1415
- <p class="TableTitle" align="center">Table A.2&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="Anote2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table>
1414
+ <p class="TableTitle" style="text-align:center;">Repeatability and reproducibility of husked rice yield</p><table id="Anote1" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
1415
+ <p class="TableTitle" style="text-align:center;">Table A.2&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="Anote2" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
1416
1416
  </div>
1417
1417
  </div>
1418
1418
  </div>
data/spec/spec_helper.rb CHANGED
@@ -32,7 +32,7 @@ end
32
32
  HTML_HDR = <<~END
33
33
  <html xmlns:epub="http://www.idpf.org/2007/ops">
34
34
  <head/>
35
- <body lang="EN-US" link="blue" vlink="#954F72">
35
+ <body lang="en">
36
36
  <div class="title-section">
37
37
  <p>&#160;</p>
38
38
  </div>