isodoc 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/isodoc/function/blocks.rb +13 -4
- data/lib/isodoc/function/section.rb +4 -2
- data/lib/isodoc/function/table.rb +4 -1
- data/lib/isodoc/function/to_word_html.rb +1 -1
- data/lib/isodoc/function/xref_sect_gen.rb +0 -1
- data/lib/isodoc/html_function/html.rb +1 -1
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/postprocess.rb +11 -3
- data/spec/isodoc/blocks_spec.rb +10 -10
- data/spec/isodoc/postproc_spec.rb +5 -5
- data/spec/isodoc/table_spec.rb +2 -2
- data/spec/isodoc/terms_spec.rb +6 -6
- data/spec/isodoc/xref_spec.rb +10 -10
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e082597aff2415338a5b2da3d30bc03c00fd4c27d4e582084680efea7e54ecd6
|
|
4
|
+
data.tar.gz: cc31894370e9a50dde359a87b691c05fdf20845bc00052012d562a74b1113872
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bdab9417834b8ecba230e865f7c140d27dc6d41dbb95b15b9d95335e423d36d423541c78c062220125fef4de2b7228c027f432429cb021badf6189eece6e7462
|
|
7
|
+
data.tar.gz: b903fc09c60b5ff0881f258f21f991c2770f6b1a5df434ac9964cc105de402b7eef75f5d5b9c7f97e9dd1abf7926226a68e217de03fab7c0f9bde314cf279927
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
isodoc (0.9.
|
|
4
|
+
isodoc (0.9.4)
|
|
5
5
|
asciimath
|
|
6
6
|
html2doc (~> 0.8.1)
|
|
7
7
|
htmlentities (~> 4.3.4)
|
|
@@ -54,13 +54,13 @@ GEM
|
|
|
54
54
|
image_size (2.0.0)
|
|
55
55
|
jaro_winkler (1.5.1)
|
|
56
56
|
json (2.1.0)
|
|
57
|
-
liquid (4.0.
|
|
57
|
+
liquid (4.0.1)
|
|
58
58
|
listen (3.1.5)
|
|
59
59
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
60
60
|
rb-inotify (~> 0.9, >= 0.9.7)
|
|
61
61
|
ruby_dep (~> 1.2)
|
|
62
62
|
lumberjack (1.0.13)
|
|
63
|
-
metanorma (0.2.
|
|
63
|
+
metanorma (0.2.11)
|
|
64
64
|
method_source (0.9.0)
|
|
65
65
|
mime-types (3.2.2)
|
|
66
66
|
mime-types-data (~> 3.2015)
|
|
@@ -91,7 +91,7 @@ GEM
|
|
|
91
91
|
rspec-mocks (~> 3.8.0)
|
|
92
92
|
rspec-core (3.8.0)
|
|
93
93
|
rspec-support (~> 3.8.0)
|
|
94
|
-
rspec-expectations (3.8.
|
|
94
|
+
rspec-expectations (3.8.2)
|
|
95
95
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
96
96
|
rspec-support (~> 3.8.0)
|
|
97
97
|
rspec-mocks (3.8.0)
|
|
@@ -146,4 +146,4 @@ DEPENDENCIES
|
|
|
146
146
|
timecop (~> 0.9)
|
|
147
147
|
|
|
148
148
|
BUNDLED WITH
|
|
149
|
-
1.16.
|
|
149
|
+
1.16.6
|
|
@@ -44,7 +44,10 @@ module IsoDoc::Function
|
|
|
44
44
|
def figure_name_parse(node, div, name)
|
|
45
45
|
div.p **{ class: "FigureTitle", align: "center" } do |p|
|
|
46
46
|
p << l10n("#{@figure_lbl} #{get_anchors[node['id']][:label]}")
|
|
47
|
-
|
|
47
|
+
if name
|
|
48
|
+
p << " — "
|
|
49
|
+
name.children.each { |n| parse(n, div) }
|
|
50
|
+
end
|
|
48
51
|
end
|
|
49
52
|
end
|
|
50
53
|
|
|
@@ -75,7 +78,7 @@ module IsoDoc::Function
|
|
|
75
78
|
|
|
76
79
|
EXAMPLE_TBL_ATTR =
|
|
77
80
|
{ valign: "top", class: "example_label",
|
|
78
|
-
style: "width:82.8pt;" }.freeze
|
|
81
|
+
style: "width:82.8pt;padding:0pt;margin-left:0pt" }.freeze
|
|
79
82
|
|
|
80
83
|
# used if we are boxing examples
|
|
81
84
|
def example_div_parse(node, out)
|
|
@@ -87,8 +90,14 @@ module IsoDoc::Function
|
|
|
87
90
|
end
|
|
88
91
|
end
|
|
89
92
|
|
|
93
|
+
def example_table_attr(node)
|
|
94
|
+
attr_code(id: node["id"], class: "example",
|
|
95
|
+
cellspacing: 0, cellpadding: 0,
|
|
96
|
+
style: "border-collapse:collapse" )
|
|
97
|
+
end
|
|
98
|
+
|
|
90
99
|
def example_parse(node, out)
|
|
91
|
-
out.table **
|
|
100
|
+
out.table **example_table_attr(node) do |t|
|
|
92
101
|
t.tr do |tr|
|
|
93
102
|
tr.td **EXAMPLE_TBL_ATTR do |td|
|
|
94
103
|
td << example_label(node)
|
|
@@ -102,7 +111,7 @@ module IsoDoc::Function
|
|
|
102
111
|
|
|
103
112
|
def sourcecode_name_parse(_node, div, name)
|
|
104
113
|
div.p **{ class: "FigureTitle", align: "center" } do |p|
|
|
105
|
-
|
|
114
|
+
name.children.each { |n| parse(n, p) }
|
|
106
115
|
end
|
|
107
116
|
end
|
|
108
117
|
|
|
@@ -50,7 +50,7 @@ module IsoDoc::Function
|
|
|
50
50
|
"[not(descendant::terms)]".freeze
|
|
51
51
|
|
|
52
52
|
def clause(isoxml, out)
|
|
53
|
-
isoxml.xpath(ns(MIDDLE_CLAUSE)).each do |c|
|
|
53
|
+
isoxml.xpath(ns(self.class::MIDDLE_CLAUSE)).each do |c|
|
|
54
54
|
out.div **attr_code(id: c["id"]) do |s|
|
|
55
55
|
clause_name(get_anchors[c['id']][:label],
|
|
56
56
|
c&.at(ns("./title"))&.content, s, nil)
|
|
@@ -64,7 +64,9 @@ module IsoDoc::Function
|
|
|
64
64
|
def annex_name(annex, name, div)
|
|
65
65
|
div.h1 **{ class: "Annex" } do |t|
|
|
66
66
|
t << "#{get_anchors[annex['id']][:label]}<br/><br/>"
|
|
67
|
-
t
|
|
67
|
+
t.b do |b|
|
|
68
|
+
name&.children&.each { |c2| parse(c2, b) }
|
|
69
|
+
end
|
|
68
70
|
end
|
|
69
71
|
end
|
|
70
72
|
|
|
@@ -5,7 +5,10 @@ module IsoDoc::Function
|
|
|
5
5
|
name = node.at(ns("./name"))
|
|
6
6
|
out.p **{ class: "TableTitle", align: "center" } do |p|
|
|
7
7
|
p << l10n("#{@table_lbl} #{get_anchors[node['id']][:label]}")
|
|
8
|
-
|
|
8
|
+
if name
|
|
9
|
+
p << l10n(" — ")
|
|
10
|
+
name.children.each { |n| parse(n, p) }
|
|
11
|
+
end
|
|
9
12
|
end
|
|
10
13
|
end
|
|
11
14
|
|
|
@@ -38,7 +38,7 @@ module IsoDoc::Function
|
|
|
38
38
|
#head.title { |t| t << filename }
|
|
39
39
|
if @standardstylesheet
|
|
40
40
|
head.style do |style|
|
|
41
|
-
stylesheet = File.read(@standardstylesheet).
|
|
41
|
+
stylesheet = File.read(@standardstylesheet, encoding: "utf-8").
|
|
42
42
|
gsub("FILENAME", filename)
|
|
43
43
|
style.comment "\n#{stylesheet}\n"
|
|
44
44
|
end
|
|
@@ -31,7 +31,7 @@ module IsoDoc::HtmlFunction
|
|
|
31
31
|
def postprocess(result, filename, dir)
|
|
32
32
|
result = from_xhtml(cleanup(to_xhtml(result)))
|
|
33
33
|
toHTML(result, filename)
|
|
34
|
-
@files_to_delete.each { |f| FileUtils.
|
|
34
|
+
@files_to_delete.each { |f| FileUtils.rm_rf f }
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def script_cdata(result)
|
data/lib/isodoc/version.rb
CHANGED
|
@@ -15,7 +15,7 @@ module IsoDoc::WordFunction
|
|
|
15
15
|
header = generate_header(filename, dir)
|
|
16
16
|
result = from_xhtml(cleanup(to_xhtml(result)))
|
|
17
17
|
toWord(result, filename, dir, header)
|
|
18
|
-
@files_to_delete.each { |f| FileUtils.
|
|
18
|
+
@files_to_delete.each { |f| FileUtils.rm_f f }
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def toWord(result, filename, dir, header)
|
|
@@ -27,15 +27,23 @@ module IsoDoc::WordFunction
|
|
|
27
27
|
liststyles: { ul: @ulstyle, ol: @olstyle })
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
def word_admonition_images(docxml)
|
|
31
|
+
docxml.xpath("//div[@class = 'Admonition']//img").each do |i|
|
|
32
|
+
i["width"], i["height"] = Html2Doc.image_resize(i, @maxheight, 300)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
30
36
|
def word_cleanup(docxml)
|
|
31
37
|
word_preface(docxml)
|
|
32
38
|
word_annex_cleanup(docxml)
|
|
33
39
|
word_table_separator(docxml)
|
|
40
|
+
word_admonition_images(docxml)
|
|
34
41
|
docxml
|
|
35
42
|
end
|
|
36
43
|
|
|
37
|
-
|
|
38
|
-
"margin-bottom:0cm;margin-left:0.0pt;margin-bottom:.0001pt
|
|
44
|
+
EMPTY_PARA = "<p style='margin-top:0cm;margin-right:0cm;"\
|
|
45
|
+
"margin-bottom:0cm;margin-left:0.0pt;margin-bottom:.0001pt;"\
|
|
46
|
+
"line-height:1.0pt;mso-line-height-rule:exactly'>"\
|
|
39
47
|
"<span lang=EN-GB style='display:none;mso-hide:all'> </span></p>"
|
|
40
48
|
|
|
41
49
|
def word_table_separator(docxml)
|
data/spec/isodoc/blocks_spec.rb
CHANGED
|
@@ -227,7 +227,7 @@ INPUT
|
|
|
227
227
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
|
228
228
|
<preface><foreword>
|
|
229
229
|
<figure id="figureA-1">
|
|
230
|
-
<name>Split-it-right sample divider</name>
|
|
230
|
+
<name>Split-it-right <em>sample</em> divider</name>
|
|
231
231
|
<image src="rice_images/rice_image1.png" height="20" width="30" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/>
|
|
232
232
|
<image src="rice_images/rice_image1.png" height="20" width="auto" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/>
|
|
233
233
|
<fn reference="a">
|
|
@@ -253,7 +253,7 @@ INPUT
|
|
|
253
253
|
<p id="_">The time <span class="stem">(#(t_90)#)</span> was estimated to be 18,2 min for this example.</p>
|
|
254
254
|
</div></aside>
|
|
255
255
|
<p><b>Key</b></p><dl><dt><p>A</p></dt><dd><p>B</p></dd></dl>
|
|
256
|
-
<p class="FigureTitle" align="center">Figure 1 — Split-it-right sample divider</p></div>
|
|
256
|
+
<p class="FigureTitle" align="center">Figure 1 — Split-it-right <i>sample</i> divider</p></div>
|
|
257
257
|
</div>
|
|
258
258
|
<p class="zzSTDTitle1"/>
|
|
259
259
|
</div>
|
|
@@ -327,9 +327,9 @@ INPUT
|
|
|
327
327
|
<br/>
|
|
328
328
|
<div>
|
|
329
329
|
<h1 class="ForewordTitle">Foreword</h1>
|
|
330
|
-
<table id="samplecode" class="example">
|
|
330
|
+
<table id="samplecode" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
|
|
331
331
|
<tr>
|
|
332
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td>
|
|
332
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td>
|
|
333
333
|
<td valign="top" class="example">
|
|
334
334
|
<p>Hello</p>
|
|
335
335
|
</td>
|
|
@@ -361,17 +361,17 @@ INPUT
|
|
|
361
361
|
<br/>
|
|
362
362
|
<div>
|
|
363
363
|
<h1 class="ForewordTitle">Foreword</h1>
|
|
364
|
-
<table id="samplecode" class="example">
|
|
364
|
+
<table id="samplecode" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
|
|
365
365
|
<tr>
|
|
366
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td>
|
|
366
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td>
|
|
367
367
|
<td valign="top" class="example">
|
|
368
368
|
<p>Hello</p>
|
|
369
369
|
</td>
|
|
370
370
|
</tr>
|
|
371
371
|
</table>
|
|
372
|
-
<table id="samplecode2" class="example">
|
|
372
|
+
<table id="samplecode2" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
|
|
373
373
|
<tr>
|
|
374
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td>
|
|
374
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td>
|
|
375
375
|
<td valign="top" class="example">
|
|
376
376
|
<p>Hello</p>
|
|
377
377
|
</td>
|
|
@@ -390,7 +390,7 @@ INPUT
|
|
|
390
390
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
|
391
391
|
<preface><foreword>
|
|
392
392
|
<sourcecode id="samplecode">
|
|
393
|
-
<name>Ruby code</name>
|
|
393
|
+
<name>Ruby <em>code</em></name>
|
|
394
394
|
puts x
|
|
395
395
|
</sourcecode>
|
|
396
396
|
</foreword></preface>
|
|
@@ -400,7 +400,7 @@ INPUT
|
|
|
400
400
|
<br/>
|
|
401
401
|
<div>
|
|
402
402
|
<h1 class="ForewordTitle">Foreword</h1>
|
|
403
|
-
<p id="samplecode" class="Sourcecode"><br/>    <br/>  puts x<br/><p class="FigureTitle" align="center">Ruby code</p></p>
|
|
403
|
+
<p id="samplecode" class="Sourcecode"><br/>    <br/>  puts x<br/><p class="FigureTitle" align="center">Ruby <i>code</i></p></p>
|
|
404
404
|
</div>
|
|
405
405
|
<p class="zzSTDTitle1"/>
|
|
406
406
|
</div>
|
|
@@ -284,17 +284,17 @@ RSpec.describe IsoDoc do
|
|
|
284
284
|
<p class="zzSTDTitle1"></p>
|
|
285
285
|
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
|
|
286
286
|
<div class="Section3"><a name="P" id="P"></a>
|
|
287
|
-
<table class="example"><a name="_63112cbc-cde0-435f-9553-e0b8c4f5851c" id="_63112cbc-cde0-435f-9553-e0b8c4f5851c"></a>
|
|
287
|
+
<table class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><a name="_63112cbc-cde0-435f-9553-e0b8c4f5851c" id="_63112cbc-cde0-435f-9553-e0b8c4f5851c"></a>
|
|
288
288
|
<tr>
|
|
289
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td>
|
|
289
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td>
|
|
290
290
|
<td valign="top" class="example">
|
|
291
291
|
<p class="example"><a name="_158d4efa-b1c9-4aec-b325-756de8e4c968" id="_158d4efa-b1c9-4aec-b325-756de8e4c968"></a>'1M', '01M', and '0001M' all describe the calendar month January.</p>
|
|
292
292
|
</td>
|
|
293
293
|
</tr>
|
|
294
|
-
</table><p style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:0.0pt;margin-bottom:.0001pt" class="MsoNormal"><span lang="EN-GB" style="display:none;mso-hide:all" xml:lang="EN-GB"> </span></p>
|
|
295
|
-
<table class="example"><a name="_63112cbc-cde0-435f-9553-e0b8c4f5851d" id="_63112cbc-cde0-435f-9553-e0b8c4f5851d"></a>
|
|
294
|
+
</table><p style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:0.0pt;margin-bottom:.0001pt;line-height:1.0pt;mso-line-height-rule:exactly" class="MsoNormal"><span lang="EN-GB" style="display:none;mso-hide:all" xml:lang="EN-GB"> </span></p>
|
|
295
|
+
<table class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><a name="_63112cbc-cde0-435f-9553-e0b8c4f5851d" id="_63112cbc-cde0-435f-9553-e0b8c4f5851d"></a>
|
|
296
296
|
<tr>
|
|
297
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td>
|
|
297
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td>
|
|
298
298
|
<td valign="top" class="example">
|
|
299
299
|
<p class="example"><a name="_158d4efa-b1c9-4aec-b325-756de8e4c969" id="_158d4efa-b1c9-4aec-b325-756de8e4c969"></a>'2M', '02M', and '0002M' all describe the calendar month February.</p>
|
|
300
300
|
</td>
|
data/spec/isodoc/table_spec.rb
CHANGED
|
@@ -7,7 +7,7 @@ RSpec.describe IsoDoc do
|
|
|
7
7
|
<preface>
|
|
8
8
|
<foreword>
|
|
9
9
|
<table id="tableD-1">
|
|
10
|
-
<name>Repeatability and reproducibility of husked rice yield</name>
|
|
10
|
+
<name>Repeatability and reproducibility of <em>husked</em> rice yield</name>
|
|
11
11
|
<thead>
|
|
12
12
|
<tr>
|
|
13
13
|
<td rowspan="2" align="left">Description</td>
|
|
@@ -63,7 +63,7 @@ RSpec.describe IsoDoc do
|
|
|
63
63
|
<br/>
|
|
64
64
|
<div>
|
|
65
65
|
<h1 class="ForewordTitle">Foreword</h1>
|
|
66
|
-
<p class="TableTitle" align="center">Table 1 — Repeatability and reproducibility of husked rice yield</p>
|
|
66
|
+
<p class="TableTitle" align="center">Table 1 — Repeatability and reproducibility of <i>husked</i> rice yield</p>
|
|
67
67
|
<table id="tableD-1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0">
|
|
68
68
|
<thead>
|
|
69
69
|
<tr>
|
data/spec/isodoc/terms_spec.rb
CHANGED
|
@@ -68,13 +68,13 @@ RSpec.describe IsoDoc do
|
|
|
68
68
|
<p class="TermNum" id="paddy1">1.1</p><p class="Terms" style="text-align:left;">paddy</p>
|
|
69
69
|
|
|
70
70
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"><rice> rice retaining its husk after threshing</p>
|
|
71
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
|
71
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
|
72
72
|
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
|
73
73
|
<ul>
|
|
74
74
|
<li>A</li>
|
|
75
75
|
</ul>
|
|
76
76
|
</td></tr></table>
|
|
77
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
|
77
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
|
78
78
|
<ul>
|
|
79
79
|
<li>A</li>
|
|
80
80
|
</ul>
|
|
@@ -87,7 +87,7 @@ RSpec.describe IsoDoc do
|
|
|
87
87
|
<p class="AltTerms" style="text-align:left;">rough rice</p>
|
|
88
88
|
<p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
|
|
89
89
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p>
|
|
90
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example">
|
|
90
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
|
|
91
91
|
<ul>
|
|
92
92
|
<li>A</li>
|
|
93
93
|
</ul>
|
|
@@ -171,13 +171,13 @@ OUTPUT
|
|
|
171
171
|
<p class="TermNum" id="paddy1">1.1</p><p class="Terms" style="text-align:left;">paddy</p>
|
|
172
172
|
|
|
173
173
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"><rice> rice retaining its husk after threshing</p>
|
|
174
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
|
174
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
|
175
175
|
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
|
176
176
|
<ul>
|
|
177
177
|
<li>A</li>
|
|
178
178
|
</ul>
|
|
179
179
|
</td></tr></table>
|
|
180
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
|
180
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
|
181
181
|
<ul>
|
|
182
182
|
<li>A</li>
|
|
183
183
|
</ul>
|
|
@@ -190,7 +190,7 @@ OUTPUT
|
|
|
190
190
|
<p class="AltTerms" style="text-align:left;">rough rice</p>
|
|
191
191
|
<p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
|
|
192
192
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p>
|
|
193
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example">
|
|
193
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
|
|
194
194
|
<ul>
|
|
195
195
|
<li>A</li>
|
|
196
196
|
</ul>
|
data/spec/isodoc/xref_spec.rb
CHANGED
|
@@ -502,16 +502,16 @@ RSpec.describe IsoDoc do
|
|
|
502
502
|
<br/>
|
|
503
503
|
<div class="Section3" id="intro">
|
|
504
504
|
<h1 class="IntroTitle">Introduction</h1>
|
|
505
|
-
<table id="N1" class="example">
|
|
505
|
+
<table id="N1" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
|
|
506
506
|
<tr>
|
|
507
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td>
|
|
507
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td>
|
|
508
508
|
<td valign="top" class="example">
|
|
509
509
|
<p>Hello</p>
|
|
510
510
|
</td>
|
|
511
511
|
</tr>
|
|
512
512
|
</table>
|
|
513
513
|
<div id="xyz"><h2>Preparatory</h2>
|
|
514
|
-
<table id="N2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example">
|
|
514
|
+
<table id="N2" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
|
|
515
515
|
<p>Hello</p>
|
|
516
516
|
</td></tr></table>
|
|
517
517
|
</div>
|
|
@@ -519,9 +519,9 @@ RSpec.describe IsoDoc do
|
|
|
519
519
|
<p class="zzSTDTitle1"/>
|
|
520
520
|
<div id="scope">
|
|
521
521
|
<h1>1.  Scope</h1>
|
|
522
|
-
<table id="N" class="example">
|
|
522
|
+
<table id="N" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
|
|
523
523
|
<tr>
|
|
524
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td>
|
|
524
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td>
|
|
525
525
|
<td valign="top" class="example">
|
|
526
526
|
<p>Hello</p>
|
|
527
527
|
</td>
|
|
@@ -545,10 +545,10 @@ RSpec.describe IsoDoc do
|
|
|
545
545
|
<div id="widgets">
|
|
546
546
|
<h1>3.  Widgets</h1>
|
|
547
547
|
<div id="widgets1"><h2>3.1. </h2>
|
|
548
|
-
<table id="note1" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
|
548
|
+
<table id="note1" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
|
549
549
|
<p>Hello</p>
|
|
550
550
|
</td></tr></table>
|
|
551
|
-
<table id="note2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
|
551
|
+
<table id="note2" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
|
552
552
|
<p>Hello</p>
|
|
553
553
|
</td></tr></table>
|
|
554
554
|
<p> <a href="#note1">Example 1</a> <a href="#note2">Example 2</a> </p>
|
|
@@ -557,15 +557,15 @@ RSpec.describe IsoDoc do
|
|
|
557
557
|
<br/>
|
|
558
558
|
<div id="annex1" class="Section3">
|
|
559
559
|
<div id="annex1a"><h2>A.1. </h2>
|
|
560
|
-
<table id="AN" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example">
|
|
560
|
+
<table id="AN" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
|
|
561
561
|
<p>Hello</p>
|
|
562
562
|
</td></tr></table>
|
|
563
563
|
</div>
|
|
564
564
|
<div id="annex1b"><h2>A.2. </h2>
|
|
565
|
-
<table id="Anote1" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
|
565
|
+
<table id="Anote1" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
|
566
566
|
<p>Hello</p>
|
|
567
567
|
</td></tr></table>
|
|
568
|
-
<table id="Anote2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
|
568
|
+
<table id="Anote2" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
|
569
569
|
<p>Hello</p>
|
|
570
570
|
</td></tr></table>
|
|
571
571
|
</div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isodoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciimath
|