isodoc 0.9.22 → 0.9.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95becf2d354c0a7eca13689fadbde7a7f210bbc24d9d62bd8539b1275b937fea
4
- data.tar.gz: 83bfc4071f99c990cc78038ff267f2db8b8b8d960ffefa649b8dd46f315faaee
3
+ metadata.gz: 20dbfc64f7e410c4f6bf45d258e8d96be1cc0937203fdd7615e8fa41b38991a8
4
+ data.tar.gz: e24800713e0e575c04caae609024007aef26d398a805dbfada61876a013a4208
5
5
  SHA512:
6
- metadata.gz: 529ea441de414d60b1d6c5316e57ba2dbc05693a231434929d0279fb8ae1f0a26d714f4c9f6453ee6f2ff3e6cca7549d54df0b893da80e951649d236b179e9fb
7
- data.tar.gz: a547b7fad7468b36bab9e2684c9b564813a9c16d17a0a6a8cc690ef56b5657e7a4aca6f273ef7f2f486a22e48330d34c36d36f320ab0e536dee532d9d493e235
6
+ metadata.gz: a91d1ae2d6816fa2b9b499b56b8990bf609853941fe5fd14b6e9d262596096417f1e24c0e4596f81a637a4192c9fe7c2aea4430dad804a14fa9b556cd18dcac1
7
+ data.tar.gz: 50603622fbf203a4d2d66ecd1f8028f1abb04e5c925770cce6f96fc4a144ed014766a4a57729f3ec912a89156d37277fb31c4a004e804fa49bd0e6abc6194862
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isodoc (0.9.22)
4
+ isodoc (0.9.23)
5
5
  asciimath
6
6
  html2doc (~> 0.8.6)
7
7
  htmlentities (~> 4.3.4)
@@ -17,7 +17,7 @@ PATH
17
17
  GEM
18
18
  remote: https://rubygems.org/
19
19
  specs:
20
- asciidoctor (2.0.8)
20
+ asciidoctor (2.0.9)
21
21
  asciimath (1.0.8)
22
22
  ast (2.4.0)
23
23
  byebug (9.1.0)
@@ -74,7 +74,7 @@ GEM
74
74
  nenv (~> 0.1)
75
75
  shellany (~> 0.0)
76
76
  parallel (1.17.0)
77
- parser (2.6.2.1)
77
+ parser (2.6.3.0)
78
78
  ast (~> 2.4.0)
79
79
  powerpack (0.1.2)
80
80
  pry (0.12.2)
@@ -1,13 +1,4 @@
1
- term_def_boilerplate: |
2
- <p>ISO and IEC maintain terminological databases for use in
3
- standardization at the following addresses:</p>
4
-
5
- <ul>
6
- <li> <p>ISO Online browsing platform: available at
7
- <a href=http://www.iso.org/obp>http://www.iso.org/obp</a></p> </li>
8
- <li> <p>IEC Electropedia: available at
9
- <a href=http://www.electropedia.org>http://www.electropedia.org</a>
10
- </p> </li> </ul>
1
+ term_def_boilerplate:
11
2
  scope: Scope
12
3
  symbols: Symbols and abbreviated terms
13
4
  table_of_contents: Table of contents
@@ -1,13 +1,4 @@
1
- term_def_boilerplate: |
2
- <p>L'ISO et l'IEC tiennent à jour des bases de données terminologiques
3
- destinées à être utilisées en normalisation, consultables aux adresses
4
- suivantes:</p>
5
- <ul>
6
- <li> <p>ISO Online browsing platform: disponible à l'adresse
7
- <a href=http://www.iso.org/obp>http://www.iso.org/obp</a></p> </li>
8
- <li> <p>IEC Electropedia: disponible à l'adresse
9
- <a href=http://www.electropedia.org>http://www.electropedia.org</a>
10
- </p> </li> </ul>
1
+ term_def_boilerplate:
11
2
  scope: Domaine d'application
12
3
  symbols: Symboles et termes abrégés
13
4
  table_of_contents: Sommaire
@@ -1,11 +1,4 @@
1
- term_def_boilerplate: |
2
- <p>ISO和IEC用于标准化的术语数据库地址如下:</p>
3
- <ul>
4
- <li> <p>ISO在线浏览平台:
5
- 位于<a href=http://www.iso.org/obp>http://www.iso.org/obp</a></p> </li>
6
- <li> <p>IEC Electropedia:
7
- 位于<a href=http://www.electropedia.org>http://www.electropedia.org</a>
8
- </p> </li> </ul>
1
+ term_def_boilerplate:
9
2
  scope: 范围
10
3
  symbols: 符号、代号和缩略语
11
4
  table_of_contents: 目次
@@ -4,6 +4,7 @@ module IsoDoc
4
4
  from = date.at(ns("./from"))
5
5
  to = date.at(ns("./to"))
6
6
  on = date.at(ns("./on"))
7
+ return date.text unless (from || on || to)
7
8
  return on.text if on
8
9
  ret = "#{from.text}&ndash;"
9
10
  ret += to.text if to
@@ -42,6 +42,7 @@ module IsoDoc::Function
42
42
  end
43
43
 
44
44
  def figure_name_parse(node, div, name)
45
+ return if name.nil? && node.at(ns("./figure"))
45
46
  div.p **{ class: "FigureTitle", align: "center" } do |p|
46
47
  p << l10n("#{@figure_lbl} #{get_anchors[node['id']][:label]}")
47
48
  if name
@@ -65,7 +66,7 @@ module IsoDoc::Function
65
66
  figure_key(out) if n.name == "dl"
66
67
  parse(n, div) unless n.name == "name"
67
68
  end
68
- figure_name_parse(node, div, name) if name
69
+ figure_name_parse(node, div, name)
69
70
  end
70
71
  @in_figure = false
71
72
  end
@@ -304,7 +305,7 @@ module IsoDoc::Function
304
305
 
305
306
  def requirement_component_parse(node, out)
306
307
  return if node["exclude"] == "true"
307
- out.div do |div|
308
+ out.div **{ class: "requirement-" + node.name } do |div|
308
309
  node.children.each do |n|
309
310
  parse(n, div)
310
311
  end
@@ -9,7 +9,7 @@ module IsoDoc::Function
9
9
  end
10
10
 
11
11
  def link_parse(node, out)
12
- out.a(**{ "href": node["target"] }) do |l|
12
+ out.a **attr_code(href: node["target"], title: node["alt"]) do |l|
13
13
  if node.text.empty?
14
14
  l << node["target"].sub(/^mailto:/, "")
15
15
  else
@@ -44,13 +44,14 @@ module IsoDoc::Function
44
44
  end
45
45
 
46
46
  def make_table_attr(node)
47
- {
47
+ attr_code(
48
48
  id: node["id"],
49
49
  class: "MsoISOTable",
50
50
  border: 1,
51
51
  cellspacing: 0,
52
52
  cellpadding: 0,
53
- }
53
+ title: node["alt"]
54
+ )
54
55
  end
55
56
 
56
57
  def table_parse(node, out)
@@ -238,6 +238,7 @@ module IsoDoc::Function
238
238
  when "recommendation" then recommendation_parse(node, out)
239
239
  when "permission" then permission_parse(node, out)
240
240
  when "subject" then requirement_skip_parse(node, out)
241
+ when "classification" then requirement_skip_parse(node, out)
241
242
  when "inherit" then requirement_component_parse(node, out)
242
243
  when "description" then requirement_component_parse(node, out)
243
244
  when "specification" then requirement_component_parse(node, out)
@@ -187,27 +187,70 @@ module IsoDoc::Function
187
187
  end
188
188
  end
189
189
 
190
+ FIRST_LVL_REQ = "[not(ancestor::permission or ancestor::requirement or ancestor::recommendation)]".freeze
191
+
190
192
  def sequential_permission_names(clause)
191
- clause.xpath(ns(".//permission")).each_with_index do |t, i|
193
+ clause.xpath(ns(".//permission#{FIRST_LVL_REQ}")).each_with_index do |t, i|
192
194
  next if t["id"].nil? || t["id"].empty?
193
195
  @anchors[t["id"]] = anchor_struct(i + 1, t, @permission_lbl, "permission")
196
+ sequential_permission_names1(t, i + 1)
197
+ sequential_requirement_names1(t, i + 1)
198
+ sequential_recommendation_names1(t, i + 1)
199
+ end
200
+ end
201
+
202
+ def sequential_permission_names1(block, lbl)
203
+ block.xpath(ns("./permission")).each_with_index do |t, i|
204
+ next if t["id"].nil? || t["id"].empty?
205
+ newlbl = "#{lbl}#{hierfigsep}#{i + 1}"
206
+ @anchors[t["id"]] = anchor_struct(newlbl, t, @permission_lbl, "permission")
207
+ sequential_permission_names1(t, newlbl)
208
+ sequential_requirement_names1(t, newlbl)
209
+ sequential_recommendation_names1(t, newlbl)
194
210
  end
195
211
  end
196
212
 
197
213
  def sequential_requirement_names(clause)
198
- clause.xpath(ns(".//requirement")).each_with_index do |t, i|
214
+ clause.xpath(ns(".//requirement#{FIRST_LVL_REQ}")).each_with_index do |t, i|
199
215
  next if t["id"].nil? || t["id"].empty?
200
216
  @anchors[t["id"]] = anchor_struct(i + 1, t, @requirement_lbl, "requirement")
217
+ sequential_permission_names1(t, i + 1)
218
+ sequential_requirement_names1(t, i + 1)
219
+ sequential_recommendation_names1(t, i + 1)
220
+ end
221
+ end
222
+
223
+ def sequential_requirement_names1(block, lbl)
224
+ block.xpath(ns("./requirement")).each_with_index do |t, i|
225
+ next if t["id"].nil? || t["id"].empty?
226
+ newlbl = "#{lbl}#{hierfigsep}#{i + 1}"
227
+ @anchors[t["id"]] = anchor_struct(newlbl, t, @requirement_lbl, "requirement")
228
+ sequential_permission_names1(t, newlbl)
229
+ sequential_requirement_names1(t, newlbl)
230
+ sequential_recommendation_names1(t, newlbl)
201
231
  end
202
232
  end
203
233
 
204
234
  def sequential_recommendation_names(clause)
205
- clause.xpath(ns(".//recommendation")).each_with_index do |t, i|
235
+ clause.xpath(ns(".//recommendation#{FIRST_LVL_REQ}")).each_with_index do |t, i|
206
236
  next if t["id"].nil? || t["id"].empty?
207
237
  @anchors[t["id"]] = anchor_struct(i + 1, t, @recommendation_lbl, "recommendation")
238
+ sequential_permission_names1(t, i + 1)
239
+ sequential_requirement_names1(t, i + 1)
240
+ sequential_recommendation_names1(t, i + 1)
208
241
  end
209
242
  end
210
243
 
244
+ def sequential_recommendation_names1(block, lbl)
245
+ block.xpath(ns("./recommendation")).each_with_index do |t, i|
246
+ next if t["id"].nil? || t["id"].empty?
247
+ newlbl = "#{lbl}#{hierfigsep}#{i + 1}"
248
+ @anchors[t["id"]] = anchor_struct(newlbl, t, @recommendation_lbl, "recommendation")
249
+ sequential_permission_names1(t, newlbl)
250
+ sequential_requirement_names1(t, newlbl)
251
+ sequential_recommendation_names1(t, newlbl)
252
+ end
253
+ end
211
254
 
212
255
  def sequential_asset_names(clause)
213
256
  sequential_table_names(clause)
@@ -266,26 +309,35 @@ module IsoDoc::Function
266
309
  end
267
310
 
268
311
  def hierarchical_permission_names(clause, num)
269
- clause.xpath(ns(".//permission")).each_with_index do |t, i|
312
+ clause.xpath(ns(".//permission#{FIRST_LVL_REQ}")).each_with_index do |t, i|
270
313
  next if t["id"].nil? || t["id"].empty?
271
- @anchors[t["id"]] = anchor_struct("#{num}.#{i + 1}",
272
- t, @permission_lbl, "permission")
314
+ lbl = "#{num}#{hiersep}#{i + 1}"
315
+ @anchors[t["id"]] = anchor_struct(lbl, t, @permission_lbl, "permission")
316
+ sequential_permission_names1(t, lbl)
317
+ sequential_requirement_names1(t, lbl)
318
+ sequential_recommendation_names1(t, lbl)
273
319
  end
274
320
  end
275
321
 
276
322
  def hierarchical_requirement_names(clause, num)
277
- clause.xpath(ns(".//requirement")).each_with_index do |t, i|
323
+ clause.xpath(ns(".//requirement#{FIRST_LVL_REQ}")).each_with_index do |t, i|
278
324
  next if t["id"].nil? || t["id"].empty?
279
- @anchors[t["id"]] = anchor_struct("#{num}.#{i + 1}",
280
- t, @requirement_lbl, "requirement")
325
+ lbl = "#{num}#{hiersep}#{i + 1}"
326
+ @anchors[t["id"]] = anchor_struct(lbl, t, @requirement_lbl, "requirement")
327
+ sequential_permission_names1(t, lbl)
328
+ sequential_requirement_names1(t, lbl)
329
+ sequential_recommendation_names1(t, lbl)
281
330
  end
282
331
  end
283
332
 
284
333
  def hierarchical_recommendation_names(clause, num)
285
- clause.xpath(ns(".//recommendation")).each_with_index do |t, i|
334
+ clause.xpath(ns(".//recommendation#{FIRST_LVL_REQ}")).each_with_index do |t, i|
286
335
  next if t["id"].nil? || t["id"].empty?
287
- @anchors[t["id"]] = anchor_struct("#{num}.#{i + 1}",
288
- t, @recommendation_lbl, "recommendation")
336
+ lbl = "#{num}#{hiersep}#{i + 1}"
337
+ @anchors[t["id"]] = anchor_struct(lbl, t, @recommendation_lbl, "recommendation")
338
+ sequential_permission_names1(t, lbl)
339
+ sequential_requirement_names1(t, lbl)
340
+ sequential_recommendation_names1(t, lbl)
289
341
  end
290
342
  end
291
343
  end
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "0.9.22".freeze
2
+ VERSION = "0.9.23".freeze
3
3
  end
@@ -239,7 +239,7 @@ INPUT
239
239
  <dd><p>B</p></dd>
240
240
  </dl>
241
241
  </figure>
242
- <figure>
242
+ <figure id="figure-B">
243
243
  <pre>A &lt;
244
244
  B</pre>
245
245
  </figure>
@@ -260,9 +260,10 @@ B</pre>
260
260
  </div></aside>
261
261
  <p><b>Key</b></p><dl><dt><p>A</p></dt><dd><p>B</p></dd></dl>
262
262
  <p class="FigureTitle" align="center">Figure 1&#160;&#8212; Split-it-right <i>sample</i> divider</p></div>
263
- <div class="figure">
263
+ <div class="figure" id="figure-B">
264
264
  <pre>A &lt;
265
265
  B</pre>
266
+ <p class="FigureTitle" align="center">Figure 2</p>
266
267
  </div>
267
268
  </div>
268
269
  <p class="zzSTDTitle1"/>
@@ -289,7 +290,7 @@ B</pre>
289
290
  <dd><p>B</p></dd>
290
291
  </dl>
291
292
  </figure>
292
- <figure>
293
+ <figure id="figure-B">
293
294
  <pre>A &lt;
294
295
  B</pre>
295
296
  </figure>
@@ -317,9 +318,10 @@ B</pre>
317
318
  </div></aside>
318
319
  <p><b>Key</b></p><table class="dl"><tr><td valign="top" align="left"><p align="left" style="margin-left:0pt;text-align:left;">A</p></td><td valign="top"><p>B</p></td></tr></table>
319
320
  <p class="FigureTitle" align="center">Figure 1&#160;&#8212; Split-it-right sample divider</p></div>
320
- <div class="figure">
321
+ <div class="figure" id="figure-B">
321
322
  <pre>A &lt;
322
323
  B</pre>
324
+ <p class="FigureTitle" align="center">Figure 2</p>
323
325
  </div>
324
326
  </div>
325
327
  <p>&#160;</p>
@@ -724,15 +726,6 @@ World</p>
724
726
  <p class="zzSTDTitle1"/>
725
727
  <div><h1>1.&#160; Terms and definitions</h1><p>For the purposes of this document,
726
728
  the following terms and definitions apply.</p>
727
- <p>ISO and IEC maintain terminological databases for use in
728
- standardization at the following addresses:</p>
729
-
730
- <ul>
731
- <li> <p>ISO Online browsing platform: available at
732
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
733
- <li> <p>IEC Electropedia: available at
734
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
735
- </p> </li> </ul>
736
729
  <p class="TermNum" id="_extraneous_matter">1.1.</p><p class="Terms" style="text-align:left;">extraneous matter</p><p class="AltTerms" style="text-align:left;">EM</p>
737
730
 
738
731
  <p id="_318b3939-be09-46c4-a284-93f9826b981e">&lt;rice&gt; organic and inorganic components other than whole or broken kernels</p>
@@ -751,6 +744,7 @@ World</p>
751
744
  <label>/ogc/recommendation/wfs/2</label>
752
745
  <inherit>/ss/584/2015/level/1</inherit>
753
746
  <subject>user</subject>
747
+ <classification> <tag>control-class</tag> <value>Technical</value> </classification><classification> <tag>priority</tag> <value>P0</value> </classification><classification> <tag>family</tag> <value>System and Communications Protection</value> </classification><classification> <tag>family</tag> <value>System and Communications Protocols</value> </classification>
754
748
  <description>
755
749
  <p id="_">I recommend <em>this</em>.</p>
756
750
  </description>
@@ -799,21 +793,21 @@ World</p>
799
793
  <h1 class="ForewordTitle">Foreword</h1>
800
794
  <div class="permission"><p class="AdmonitionTitle">Permission 1:<br/>/ogc/recommendation/wfs/2</p>
801
795
 
802
- <div>/ss/584/2015/level/1</div>
803
- <div>
796
+ <div class="requirement-inherit">/ss/584/2015/level/1</div>
797
+ <div class="requirement-description">
804
798
  <p id="_">I recommend <i>this</i>.</p>
805
799
  </div>
806
800
 
807
- <div>
801
+ <div class="requirement-description">
808
802
  <p id="_">As for the measurement targets,</p>
809
803
  </div>
810
- <div>
804
+ <div class="requirement-measurement-target">
811
805
  <p id="_">The measurement target shall be measured as:</p>
812
806
  <div id="_" class="formula"><p><span class="stem">(#(r/1 = 0)#)</span>&#160; (1)</p></div>
813
807
 
814
808
 
815
809
  </div>
816
- <div>
810
+ <div class="requirement-verification">
817
811
  <p id="_">The following code will be run for verification:</p>
818
812
  <pre id="_" class="prettyprint ">CoreRoot(success): HttpResponse<br/>&#160;&#160;&#160;&#160;&#160; if (success)<br/>&#160;&#160;&#160;&#160;&#160; recommendation(label: success-response)<br/>&#160;&#160;&#160;&#160;&#160; end<br/>&#160;&#160;&#160; </pre>
819
813
  </div>
@@ -884,21 +878,21 @@ World</p>
884
878
  <h1 class="ForewordTitle">Foreword</h1>
885
879
  <div class="require"><p class="AdmonitionTitle">Requirement 1:<br/>/ogc/recommendation/wfs/2. A New Requirement</p>
886
880
 
887
- <div>/ss/584/2015/level/1</div>
888
- <div>
881
+ <div class="requirement-inherit">/ss/584/2015/level/1</div>
882
+ <div class="requirement-description">
889
883
  <p id="_">I recommend <i>this</i>.</p>
890
884
  </div>
891
885
 
892
- <div>
886
+ <div class="requirement-description">
893
887
  <p id="_">As for the measurement targets,</p>
894
888
  </div>
895
- <div>
889
+ <div class="requirement-measurement-target">
896
890
  <p id="_">The measurement target shall be measured as:</p>
897
891
  <div id="_" class="formula"><p><span class="stem">(#(r/1 = 0)#)</span>&#160; (1)</p></div>
898
892
 
899
893
 
900
894
  </div>
901
- <div>
895
+ <div class="requirement-verification">
902
896
  <p id="_">The following code will be run for verification:</p>
903
897
  <pre id="_" class="prettyprint ">CoreRoot(success): HttpResponse<br/>&#160;&#160;&#160;&#160;&#160; if (success)<br/>&#160;&#160;&#160;&#160;&#160; recommendation(label: success-response)<br/>&#160;&#160;&#160;&#160;&#160; end<br/>&#160;&#160;&#160; </pre>
904
898
  </div>
@@ -968,21 +962,21 @@ World</p>
968
962
  <h1 class="ForewordTitle">Foreword</h1>
969
963
  <div class="recommend"><p class="AdmonitionTitle">Recommendation 1:<br/>/ogc/recommendation/wfs/2</p>
970
964
 
971
- <div>/ss/584/2015/level/1</div>
972
- <div>
965
+ <div class="requirement-inherit">/ss/584/2015/level/1</div>
966
+ <div class="requirement-description">
973
967
  <p id="_">I recommend <i>this</i>.</p>
974
968
  </div>
975
969
 
976
- <div>
970
+ <div class="requirement-description">
977
971
  <p id="_">As for the measurement targets,</p>
978
972
  </div>
979
- <div>
973
+ <div class="requirement-measurement-target">
980
974
  <p id="_">The measurement target shall be measured as:</p>
981
975
  <div id="_" class="formula"><p><span class="stem">(#(r/1 = 0)#)</span>&#160; (1)</p></div>
982
976
 
983
977
 
984
978
  </div>
985
- <div>
979
+ <div class="requirement-verification">
986
980
  <p id="_">The following code will be run for verification:</p>
987
981
  <pre id="_" class="prettyprint ">CoreRoot(success): HttpResponse<br/>&#160;&#160;&#160;&#160;&#160; if (success)<br/>&#160;&#160;&#160;&#160;&#160; recommendation(label: success-response)<br/>&#160;&#160;&#160;&#160;&#160; end<br/>&#160;&#160;&#160; </pre>
988
982
  </div>
@@ -90,15 +90,6 @@ RSpec.describe IsoDoc do
90
90
  </div>
91
91
  <div id="H"><h1>3.&#160; Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document,
92
92
  the following terms and definitions apply.</p>
93
- <p>ISO and IEC maintain terminological databases for use in
94
- standardization at the following addresses:</p>
95
-
96
- <ul>
97
- <li> <p>ISO Online browsing platform: available at
98
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
99
- <li> <p>IEC Electropedia: available at
100
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
101
- </p> </li> </ul>
102
93
  <div id="I">
103
94
  <h2>3.1. Normal Terms</h2>
104
95
  <p class="TermNum" id="J">3.1.1.</p>
@@ -237,15 +228,6 @@ RSpec.describe IsoDoc do
237
228
  </div>
238
229
  <div id="H"><h1>3.&#160; Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document,
239
230
  the following terms and definitions apply.</p>
240
- <p>ISO and IEC maintain terminological databases for use in
241
- standardization at the following addresses:</p>
242
-
243
- <ul>
244
- <li> <p>ISO Online browsing platform: available at
245
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
246
- <li> <p>IEC Electropedia: available at
247
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
248
- </p> </li> </ul>
249
231
  <div id="I">
250
232
  <h2>3.1. Normal Terms</h2>
251
233
  <p class="TermNum" id="J">3.1.1.</p>
@@ -383,15 +365,6 @@ RSpec.describe IsoDoc do
383
365
  <p>Le pr&#233;sent document ne contient aucune r&#233;f&#233;rence normative.</p>
384
366
  </div>
385
367
  <div id="H"><h1>3.&#160; Terms, d&#233;finitions, symboles et termes abr&#233;g&#233;s</h1><p>Pour les besoins du pr&#233;sent document, les termes et d&#233;finitions suivants s'appliquent.</p>
386
- <p>L'ISO et l'IEC tiennent &#224; jour des bases de donn&#233;es terminologiques
387
- destin&#233;es &#224; &#234;tre utilis&#233;es en normalisation, consultables aux adresses
388
- suivantes:</p>
389
- <ul>
390
- <li> <p>ISO Online browsing platform: disponible &#224; l'adresse
391
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
392
- <li> <p>IEC Electropedia: disponible &#224; l'adresse
393
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
394
- </p> </li> </ul>
395
368
  <div id="I">
396
369
  <h2>3.1. Normal Terms</h2>
397
370
  <p class="TermNum" id="J">3.1.1.</p>
@@ -543,13 +516,6 @@ RSpec.describe IsoDoc do
543
516
  <p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products</i></p>
544
517
  </div>
545
518
  <div id="H"><h1>3.&#160; &#26415;&#35821;&#12289;&#23450;&#20041;&#12289;&#31526;&#21495;&#12289;&#20195;&#21495;&#21644;&#32553;&#30053;&#35821;</h1><p>&#19979;&#21015;&#26415;&#35821;&#21644;&#23450;&#20041;&#36866;&#29992;&#20110;&#26412;&#25991;&#20214;&#12290;</p>
546
- <p>ISO&#21644;IEC&#29992;&#20110;&#26631;&#20934;&#21270;&#30340;&#26415;&#35821;&#25968;&#25454;&#24211;&#22320;&#22336;&#22914;&#19979;&#65306;</p>
547
- <ul>
548
- <li> <p>ISO&#22312;&#32447;&#27983;&#35272;&#24179;&#21488;:
549
- &#20301;&#20110;<a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
550
- <li> <p>IEC Electropedia:
551
- &#20301;&#20110;<a href="http://www.electropedia.org">http://www.electropedia.org</a>
552
- </p> </li> </ul>
553
519
  <div id="I">
554
520
  <h2>3.1. Normal Terms</h2>
555
521
  <p class="TermNum" id="J">3.1.1.</p>
@@ -64,6 +64,7 @@ RSpec.describe IsoDoc do
64
64
  <p>
65
65
  <link target="http://example.com"/>
66
66
  <link target="http://example.com">example</link>
67
+ <link target="http://example.com" alt="tip">example</link>
67
68
  <link target="mailto:fred@example.com"/>
68
69
  <link target="mailto:fred@example.com">mailto:fred@example.com</link>
69
70
  </p>
@@ -78,6 +79,7 @@ RSpec.describe IsoDoc do
78
79
  <p>
79
80
  <a href="http://example.com">http://example.com</a>
80
81
  <a href="http://example.com">example</a>
82
+ <a href="http://example.com" title="tip">example</a>
81
83
  <a href="mailto:fred@example.com">fred@example.com</a>
82
84
  <a href="mailto:fred@example.com">mailto:fred@example.com</a>
83
85
  </p>
@@ -262,15 +262,6 @@ RSpec.describe IsoDoc do
262
262
  <p class="zzSTDTitle1"></p>
263
263
  <div><a name="_terms_and_definitions" id="_terms_and_definitions"></a><h1>1.<span style="mso-tab-count:1">&#xA0; </span>Terms and definitions</h1><p class="MsoNormal">For the purposes of this document,
264
264
  the following terms and definitions apply.</p>
265
- <p class="MsoNormal">ISO and IEC maintain terminological databases for use in
266
- standardization at the following addresses:</p>
267
-
268
- <p class="MsoListParagraphCxSpFirst"> ISO Online browsing platform: available at
269
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a> </p>
270
- <p class="MsoListParagraphCxSpLast"> IEC Electropedia: available at
271
-
272
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
273
- </p>
274
265
  <p class="TermNum"><a name="paddy1" id="paddy1"></a>1.1.</p><p class="Terms" style="text-align:left;">paddy</p>
275
266
  <p class="MsoNormal"><a name="_eb29b35e-123e-4d1c-b50b-2714d41e747f" id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"></a>rice retaining its husk after threshing</p>
276
267
  <p class="MsoNormal">[SOURCE: <a href="#ISO7301">ISO 7301:2011, Clause 3.1</a>, modified &mdash; The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p></div>
@@ -125,15 +125,6 @@ RSpec.describe IsoDoc do
125
125
  </div>
126
126
  <div id="H"><h1>3.&#160; Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document,
127
127
  the following terms and definitions apply.</p>
128
- <p>ISO and IEC maintain terminological databases for use in
129
- standardization at the following addresses:</p>
130
-
131
- <ul>
132
- <li> <p>ISO Online browsing platform: available at
133
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
134
- <li> <p>IEC Electropedia: available at
135
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
136
- </p> </li> </ul>
137
128
  <div id="I">
138
129
  <h2>3.1. Normal Terms</h2>
139
130
  <p class="TermNum" id="J">3.1.1.</p>
@@ -294,15 +285,6 @@ OUTPUT
294
285
  </div>
295
286
  <div id="H"><h1>3.<span style="mso-tab-count:1">&#160; </span>Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document,
296
287
  the following terms and definitions apply.</p>
297
- <p>ISO and IEC maintain terminological databases for use in
298
- standardization at the following addresses:</p>
299
-
300
- <ul>
301
- <li> <p>ISO Online browsing platform: available at
302
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
303
- <li> <p>IEC Electropedia: available at
304
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
305
- </p> </li> </ul>
306
288
  <div id="I">
307
289
  <h2>3.1. Normal Terms</h2>
308
290
  <p class="TermNum" id="J">3.1.1.</p>
@@ -446,15 +428,6 @@ OUTPUT
446
428
  </div>
447
429
  <div id="H"><h1>Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document,
448
430
  the following terms and definitions apply.</p>
449
- <p>ISO and IEC maintain terminological databases for use in
450
- standardization at the following addresses:</p>
451
-
452
- <ul>
453
- <li> <p>ISO Online browsing platform: available at
454
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
455
- <li> <p>IEC Electropedia: available at
456
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
457
- </p> </li> </ul>
458
431
  <div id="I"><h2>Normal Terms</h2>
459
432
 
460
433
  <p class="TermNum" id="J">3.1.1.</p>
@@ -522,15 +495,6 @@ OUTPUT
522
495
  <p class="zzSTDTitle1"/>
523
496
  <div id="H"><h1>1.&#160; Terms and definitions</h1><p>For the purposes of this document,
524
497
  the following terms and definitions apply.</p>
525
- <p>ISO and IEC maintain terminological databases for use in
526
- standardization at the following addresses:</p>
527
-
528
- <ul>
529
- <li> <p>ISO Online browsing platform: available at
530
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
531
- <li> <p>IEC Electropedia: available at
532
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
533
- </p> </li> </ul>
534
498
  <p class="TermNum" id="J">1.1.</p>
535
499
  <p class="Terms" style="text-align:left;">Term2</p>
536
500
  </div>
@@ -590,15 +554,6 @@ end
590
554
  </div>
591
555
  <div id="H"><h1>2.&#160; Terms and definitions</h1><p>For the purposes of this document, the terms and definitions
592
556
  given in <a href="#ISO712">ISO 712</a> and the following apply.</p>
593
- <p>ISO and IEC maintain terminological databases for use in
594
- standardization at the following addresses:</p>
595
-
596
- <ul>
597
- <li> <p>ISO Online browsing platform: available at
598
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
599
- <li> <p>IEC Electropedia: available at
600
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
601
- </p> </li> </ul>
602
557
  <p class="TermNum" id="J">2.1.</p>
603
558
  <p class="Terms" style="text-align:left;">Term2</p>
604
559
  </div>
@@ -642,15 +597,6 @@ end
642
597
  </div>
643
598
  <div id="H"><h1>2.&#160; Terms and definitions</h1><p>For the purposes of this document,
644
599
  the terms and definitions given in <a href="#ISO712">ISO 712</a>, <a href="#ISO712">ISO 712</a> and <a href="#ISO712">ISO 712</a> apply.</p>
645
- <p>ISO and IEC maintain terminological databases for use in
646
- standardization at the following addresses:</p>
647
-
648
- <ul>
649
- <li> <p>ISO Online browsing platform: available at
650
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
651
- <li> <p>IEC Electropedia: available at
652
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
653
- </p> </li> </ul>
654
600
  </div>
655
601
  </div>
656
602
  </body>
@@ -671,15 +617,6 @@ end
671
617
  #{HTML_HDR}
672
618
  <p class="zzSTDTitle1"/>
673
619
  <div id="H"><h1>1.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
674
- <p>ISO and IEC maintain terminological databases for use in
675
- standardization at the following addresses:</p>
676
-
677
- <ul>
678
- <li> <p>ISO Online browsing platform: available at
679
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
680
- <li> <p>IEC Electropedia: available at
681
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
682
- </p> </li> </ul>
683
620
  </div>
684
621
  </div>
685
622
  </body>
@@ -6,7 +6,7 @@ RSpec.describe IsoDoc do
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <preface>
8
8
  <foreword>
9
- <table id="tableD-1">
9
+ <table id="tableD-1" alt="tool tip">
10
10
  <name>Repeatability and reproducibility of <em>husked</em> rice yield</name>
11
11
  <thead>
12
12
  <tr>
@@ -64,7 +64,7 @@ RSpec.describe IsoDoc do
64
64
  <div>
65
65
  <h1 class="ForewordTitle">Foreword</h1>
66
66
  <p class="TableTitle" align="center">Table 1&#160;&#8212; Repeatability and reproducibility of <i>husked</i> rice yield</p>
67
- <table id="tableD-1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0">
67
+ <table id="tableD-1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0" title="tool tip">
68
68
  <thead>
69
69
  <tr>
70
70
  <td rowspan="2" align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Description</td>
@@ -127,7 +127,7 @@ RSpec.describe IsoDoc do
127
127
  <iso-standard xmlns="http://riboseinc.com/isoxml">
128
128
  <preface>
129
129
  <foreword>
130
- <table id="tableD-1">
130
+ <table id="tableD-1" alt="tool tip">
131
131
  <name>Repeatability and reproducibility of husked rice yield</name>
132
132
  <thead>
133
133
  <tr>
@@ -193,7 +193,7 @@ RSpec.describe IsoDoc do
193
193
  <h1 class="ForewordTitle">Foreword</h1>
194
194
  <p class="TableTitle" align="center">Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p>
195
195
  <div align="center">
196
- <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">
196
+ <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">
197
197
  <thead>
198
198
  <tr>
199
199
  <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>
@@ -56,15 +56,6 @@ RSpec.describe IsoDoc do
56
56
  <p class="zzSTDTitle1"/>
57
57
  <div id="_terms_and_definitions"><h1>1.&#160; Terms and definitions</h1><p>For the purposes of this document,
58
58
  the following terms and definitions apply.</p>
59
- <p>ISO and IEC maintain terminological databases for use in
60
- standardization at the following addresses:</p>
61
-
62
- <ul>
63
- <li> <p>ISO Online browsing platform: available at
64
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
65
- <li> <p>IEC Electropedia: available at
66
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
67
- </p> </li> </ul>
68
59
  <p class="TermNum" id="paddy1">1.1.</p><p class="Terms" style="text-align:left;">paddy</p>
69
60
 
70
61
  <p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">&lt;rice&gt; rice retaining its husk after threshing</p>
@@ -159,15 +150,6 @@ OUTPUT
159
150
  <p class="zzSTDTitle1"/>
160
151
  <div id="_terms_and_definitions"><h1>1.<span style="mso-tab-count:1">&#160; </span>Terms and definitions</h1><p>For the purposes of this document,
161
152
  the following terms and definitions apply.</p>
162
- <p>ISO and IEC maintain terminological databases for use in
163
- standardization at the following addresses:</p>
164
-
165
- <ul>
166
- <li> <p>ISO Online browsing platform: available at
167
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
168
- <li> <p>IEC Electropedia: available at
169
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
170
- </p> </li> </ul>
171
153
  <p class="TermNum" id="paddy1">1.1.</p><p class="Terms" style="text-align:left;">paddy</p>
172
154
 
173
155
  <p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">&lt;rice&gt; rice retaining its husk after threshing</p>
@@ -154,16 +154,7 @@ RSpec.describe IsoDoc do
154
154
  </p>
155
155
  </div>
156
156
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
157
- <p>ISO and IEC maintain terminological databases for use in
158
- standardization at the following addresses:</p>
159
-
160
- <ul>
161
- <li> <p>ISO Online browsing platform: available at
162
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
163
- <li> <p>IEC Electropedia: available at
164
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
165
- </p> </li> </ul>
166
- </div>
157
+ </div>
167
158
  <div id="widgets">
168
159
  <h1>3.&#160; Widgets</h1>
169
160
  <div id="widgets1"><h2>3.1. </h2>
@@ -302,15 +293,6 @@ RSpec.describe IsoDoc do
302
293
  </p>
303
294
  </div>
304
295
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
305
- <p>ISO and IEC maintain terminological databases for use in
306
- standardization at the following addresses:</p>
307
-
308
- <ul>
309
- <li> <p>ISO Online browsing platform: available at
310
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
311
- <li> <p>IEC Electropedia: available at
312
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
313
- </p> </li> </ul>
314
296
  </div>
315
297
  <div id="widgets">
316
298
  <h1>3.&#160; Widgets</h1>
@@ -422,15 +404,6 @@ RSpec.describe IsoDoc do
422
404
  <h1>1.&#160; Scope</h1>
423
405
  </div>
424
406
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
425
- <p>ISO and IEC maintain terminological databases for use in
426
- standardization at the following addresses:</p>
427
-
428
- <ul>
429
- <li> <p>ISO Online browsing platform: available at
430
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
431
- <li> <p>IEC Electropedia: available at
432
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
433
- </p> </li> </ul>
434
407
  </div>
435
408
  <div id="widgets">
436
409
  <h1>3.&#160; Widgets</h1>
@@ -573,15 +546,6 @@ RSpec.describe IsoDoc do
573
546
  </p>
574
547
  </div>
575
548
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
576
- <p>ISO and IEC maintain terminological databases for use in
577
- standardization at the following addresses:</p>
578
-
579
- <ul>
580
- <li> <p>ISO Online browsing platform: available at
581
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
582
- <li> <p>IEC Electropedia: available at
583
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
584
- </p> </li> </ul>
585
549
  </div>
586
550
  <div id="widgets">
587
551
  <h1>3.&#160; Widgets</h1>
@@ -713,15 +677,6 @@ RSpec.describe IsoDoc do
713
677
  </p>
714
678
  </div>
715
679
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
716
- <p>ISO and IEC maintain terminological databases for use in
717
- standardization at the following addresses:</p>
718
-
719
- <ul>
720
- <li> <p>ISO Online browsing platform: available at
721
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
722
- <li> <p>IEC Electropedia: available at
723
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
724
- </p> </li> </ul>
725
680
  </div>
726
681
  <div id="widgets">
727
682
  <h1>3.&#160; Widgets</h1>
@@ -849,15 +804,6 @@ RSpec.describe IsoDoc do
849
804
  </p>
850
805
  </div>
851
806
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
852
- <p>ISO and IEC maintain terminological databases for use in
853
- standardization at the following addresses:</p>
854
-
855
- <ul>
856
- <li> <p>ISO Online browsing platform: available at
857
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
858
- <li> <p>IEC Electropedia: available at
859
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
860
- </p> </li> </ul>
861
807
  </div>
862
808
  <div id="widgets">
863
809
  <h1>3.&#160; Widgets</h1>
@@ -995,15 +941,6 @@ OUTPUT
995
941
  </p>
996
942
  </div>
997
943
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
998
- <p>ISO and IEC maintain terminological databases for use in
999
- standardization at the following addresses:</p>
1000
-
1001
- <ul>
1002
- <li> <p>ISO Online browsing platform: available at
1003
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
1004
- <li> <p>IEC Electropedia: available at
1005
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
1006
- </p> </li> </ul>
1007
944
  </div>
1008
945
  <div id="widgets">
1009
946
  <h1>3.&#160; Widgets</h1>
@@ -1141,15 +1078,6 @@ OUTPUT
1141
1078
  </p>
1142
1079
  </div>
1143
1080
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
1144
- <p>ISO and IEC maintain terminological databases for use in
1145
- standardization at the following addresses:</p>
1146
-
1147
- <ul>
1148
- <li> <p>ISO Online browsing platform: available at
1149
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
1150
- <li> <p>IEC Electropedia: available at
1151
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
1152
- </p> </li> </ul>
1153
1081
  </div>
1154
1082
  <div id="widgets">
1155
1083
  <h1>3.&#160; Widgets</h1>
@@ -1185,6 +1113,103 @@ standardization at the following addresses:</p>
1185
1113
  OUTPUT
1186
1114
  end
1187
1115
 
1116
+ it "labels and cross-references nested requirements" do
1117
+ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1118
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
1119
+ <preface>
1120
+ <foreword>
1121
+ <p>
1122
+ <xref target="N1"/>
1123
+ <xref target="N2"/>
1124
+ <xref target="N"/>
1125
+ <xref target="Q1"/>
1126
+ <xref target="R1"/>
1127
+ <xref target="AN1"/>
1128
+ <xref target="AN2"/>
1129
+ <xref target="AN"/>
1130
+ <xref target="AQ1"/>
1131
+ <xref target="AR1"/>
1132
+ </p>
1133
+ </foreword>
1134
+ </preface>
1135
+ <sections>
1136
+ <clause id="xyz"><title>Preparatory</title>
1137
+ <permission id="N1">
1138
+ <permission id="N2">
1139
+ <permission id="N">
1140
+ </permission>
1141
+ </permission>
1142
+ <requirement id="Q1">
1143
+ </requirement>
1144
+ <recommendation id="R1">
1145
+ </recommendation>
1146
+ </permission>
1147
+ </clause>
1148
+ </sections>
1149
+ <annex id="Axyz"><title>Preparatory</title>
1150
+ <permission id="AN1">
1151
+ <permission id="AN2">
1152
+ <permission id="AN">
1153
+ </permission>
1154
+ </permission>
1155
+ <requirement id="AQ1">
1156
+ </requirement>
1157
+ <recommendation id="AR1">
1158
+ </recommendation>
1159
+ </permission>
1160
+ </annex>
1161
+ </iso-standard>
1162
+ INPUT
1163
+ #{HTML_HDR}
1164
+ <br/>
1165
+ <div>
1166
+ <h1 class="ForewordTitle">Foreword</h1>
1167
+ <p>
1168
+ <a href="#N1">Clause 1, Permission 1</a>
1169
+ <a href="#N2">Clause 1, Permission 1-1</a>
1170
+ <a href="#N">Clause 1, Permission 1-1-1</a>
1171
+ <a href="#Q1">Clause 1, Requirement 1-1</a>
1172
+ <a href="#R1">Clause 1, Recommendation 1-1</a>
1173
+ <a href="#AN1">Annex A, Permission A.1</a>
1174
+ <a href="#AN2">Annex A, Permission A.1-1</a>
1175
+ <a href="#AN">Annex A, Permission A.1-1-1</a>
1176
+ <a href="#AQ1">Annex A, Requirement A.1-1</a>
1177
+ <a href="#AR1">Annex A, Recommendation A.1-1</a>
1178
+ </p>
1179
+ </div>
1180
+ <p class="zzSTDTitle1"/>
1181
+ <div id="xyz">
1182
+ <h1>1.&#160; Preparatory</h1>
1183
+ <div class="permission"><p class="AdmonitionTitle">Permission 1:</p>
1184
+ <div class="permission"><p class="AdmonitionTitle">Permission 1-1:</p>
1185
+ <div class="permission"><p class="AdmonitionTitle">Permission 1-1-1:</p>
1186
+ </div>
1187
+ </div>
1188
+ <div class="require"><p class="AdmonitionTitle">Requirement 1-1:</p>
1189
+ </div>
1190
+ <div class="recommend"><p class="AdmonitionTitle">Recommendation 1-1:</p>
1191
+ </div>
1192
+ </div>
1193
+ </div>
1194
+ <br/>
1195
+ <div id="Axyz" class="Section3">
1196
+ <h1 class="Annex"><b>Annex A</b><br/>(informative)<br/><br/><b>Preparatory</b></h1>
1197
+ <div class="permission"><p class="AdmonitionTitle">Permission A.1:</p>
1198
+ <div class="permission"><p class="AdmonitionTitle">Permission A.1-1:</p>
1199
+ <div class="permission"><p class="AdmonitionTitle">Permission A.1-1-1:</p>
1200
+ </div>
1201
+ </div>
1202
+ <div class="require"><p class="AdmonitionTitle">Requirement A.1-1:</p>
1203
+ </div>
1204
+ <div class="recommend"><p class="AdmonitionTitle">Recommendation A.1-1:</p>
1205
+ </div>
1206
+ </div>
1207
+ </div>
1208
+ </div>
1209
+ </body>
1210
+ </html>
1211
+ OUTPUT
1212
+ end
1188
1213
 
1189
1214
 
1190
1215
  it "cross-references tables" do
@@ -1359,15 +1384,6 @@ OUTPUT
1359
1384
  </p>
1360
1385
  </div>
1361
1386
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
1362
- <p>ISO and IEC maintain terminological databases for use in
1363
- standardization at the following addresses:</p>
1364
-
1365
- <ul>
1366
- <li> <p>ISO Online browsing platform: available at
1367
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
1368
- <li> <p>IEC Electropedia: available at
1369
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
1370
- </p> </li> </ul>
1371
1387
  </div>
1372
1388
  <div id="widgets">
1373
1389
  <h1>3.&#160; Widgets</h1>
@@ -1440,15 +1456,6 @@ OUTPUT
1440
1456
  </div>
1441
1457
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>For the purposes of this document,
1442
1458
  the following terms and definitions apply.</p>
1443
- <p>ISO and IEC maintain terminological databases for use in
1444
- standardization at the following addresses:</p>
1445
-
1446
- <ul>
1447
- <li> <p>ISO Online browsing platform: available at
1448
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
1449
- <li> <p>IEC Electropedia: available at
1450
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
1451
- </p> </li> </ul>
1452
1459
  <p class="TermNum" id="_waxy_rice">2.1.</p><p class="Terms" style="text-align:left;">waxy rice</p>
1453
1460
  <div class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div><p class="TermNum" id="_nonwaxy_rice">2.2.</p><p class="Terms" style="text-align:left;">nonwaxy rice</p>
1454
1461
  <div class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
@@ -1581,15 +1588,6 @@ OUTPUT
1581
1588
  </div>
1582
1589
  <div id="H"><h1>3.&#160; Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document,
1583
1590
  the following terms and definitions apply.</p>
1584
- <p>ISO and IEC maintain terminological databases for use in
1585
- standardization at the following addresses:</p>
1586
-
1587
- <ul>
1588
- <li> <p>ISO Online browsing platform: available at
1589
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
1590
- <li> <p>IEC Electropedia: available at
1591
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
1592
- </p> </li> </ul>
1593
1591
  <div id="I">
1594
1592
  <h2>3.1. Normal Terms</h2>
1595
1593
  <p class="TermNum" id="J">3.1.1.</p>
@@ -1736,15 +1734,6 @@ OUTPUT
1736
1734
  </ol>
1737
1735
  </div>
1738
1736
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
1739
- <p>ISO and IEC maintain terminological databases for use in
1740
- standardization at the following addresses:</p>
1741
-
1742
- <ul>
1743
- <li> <p>ISO Online browsing platform: available at
1744
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
1745
- <li> <p>IEC Electropedia: available at
1746
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
1747
- </p> </li> </ul>
1748
1737
  </div>
1749
1738
  <div id="widgets">
1750
1739
  <h1>3.&#160; Widgets</h1>
@@ -1876,15 +1865,6 @@ OUTPUT
1876
1865
  </ol>
1877
1866
  </div>
1878
1867
  <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p>
1879
- <p>ISO and IEC maintain terminological databases for use in
1880
- standardization at the following addresses:</p>
1881
-
1882
- <ul>
1883
- <li> <p>ISO Online browsing platform: available at
1884
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
1885
- <li> <p>IEC Electropedia: available at
1886
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
1887
- </p> </li> </ul>
1888
1868
  </div>
1889
1869
  <div id="widgets">
1890
1870
  <h1>3.&#160; Widgets</h1>
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.22
4
+ version: 0.9.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-25 00:00:00.000000000 Z
11
+ date: 2019-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath