metanorma-standoc 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/asciidoctor/standoc/base.rb +0 -1
  3. data/lib/asciidoctor/standoc/blocks.rb +0 -1
  4. data/lib/asciidoctor/standoc/blocks_notes.rb +0 -1
  5. data/lib/asciidoctor/standoc/cleanup.rb +0 -1
  6. data/lib/asciidoctor/standoc/cleanup_amend.rb +0 -1
  7. data/lib/asciidoctor/standoc/cleanup_block.rb +0 -1
  8. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +0 -1
  9. data/lib/asciidoctor/standoc/cleanup_footnotes.rb +0 -1
  10. data/lib/asciidoctor/standoc/cleanup_image.rb +0 -1
  11. data/lib/asciidoctor/standoc/cleanup_inline.rb +0 -1
  12. data/lib/asciidoctor/standoc/cleanup_maths.rb +0 -1
  13. data/lib/asciidoctor/standoc/cleanup_ref.rb +0 -1
  14. data/lib/asciidoctor/standoc/cleanup_ref_dl.rb +0 -1
  15. data/lib/asciidoctor/standoc/cleanup_reqt.rb +0 -1
  16. data/lib/asciidoctor/standoc/cleanup_section.rb +0 -1
  17. data/lib/asciidoctor/standoc/cleanup_section_names.rb +0 -1
  18. data/lib/asciidoctor/standoc/cleanup_symbols.rb +0 -1
  19. data/lib/asciidoctor/standoc/cleanup_table.rb +0 -1
  20. data/lib/asciidoctor/standoc/cleanup_terms.rb +0 -1
  21. data/lib/asciidoctor/standoc/cleanup_terms_designations.rb +0 -1
  22. data/lib/asciidoctor/standoc/cleanup_text.rb +0 -1
  23. data/lib/asciidoctor/standoc/cleanup_toc.rb +0 -1
  24. data/lib/asciidoctor/standoc/cleanup_xref.rb +0 -1
  25. data/lib/asciidoctor/standoc/converter.rb +0 -1
  26. data/lib/asciidoctor/standoc/deprecated.rb +4 -2
  27. data/lib/asciidoctor/standoc/front.rb +0 -1
  28. data/lib/asciidoctor/standoc/front_contributor.rb +0 -1
  29. data/lib/asciidoctor/standoc/inline.rb +0 -1
  30. data/lib/asciidoctor/standoc/lists.rb +0 -1
  31. data/lib/asciidoctor/standoc/macros.rb +0 -1
  32. data/lib/asciidoctor/standoc/macros_form.rb +0 -1
  33. data/lib/asciidoctor/standoc/macros_note.rb +0 -1
  34. data/lib/asciidoctor/standoc/macros_plantuml.rb +0 -1
  35. data/lib/asciidoctor/standoc/macros_terms.rb +0 -1
  36. data/lib/asciidoctor/standoc/render.rb +0 -1
  37. data/lib/asciidoctor/standoc/reqt.rb +0 -1
  38. data/lib/asciidoctor/standoc/section.rb +0 -1
  39. data/lib/asciidoctor/standoc/table.rb +0 -1
  40. data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +0 -1
  41. data/lib/asciidoctor/standoc/terms.rb +0 -1
  42. data/lib/asciidoctor/standoc/utils.rb +0 -1
  43. data/lib/asciidoctor/standoc/validate.rb +0 -1
  44. data/lib/asciidoctor/standoc/validate_section.rb +0 -1
  45. data/lib/isodoc/pdf_convert.rb +2 -3
  46. data/lib/metanorma/standoc/biblio.rng +25 -2
  47. data/lib/metanorma/standoc/blocks.rb +10 -0
  48. data/lib/metanorma/standoc/cleanup_boilerplate.rb +15 -7
  49. data/lib/metanorma/standoc/cleanup_ref.rb +2 -4
  50. data/lib/metanorma/standoc/cleanup_xref.rb +3 -4
  51. data/lib/metanorma/standoc/inline.rb +11 -8
  52. data/lib/metanorma/standoc/macros_embed.rb +1 -3
  53. data/lib/metanorma/standoc/macros_terms.rb +1 -1
  54. data/lib/metanorma/standoc/processor.rb +2 -1
  55. data/lib/metanorma/standoc/ref.rb +4 -4
  56. data/lib/metanorma/standoc/render.rb +6 -1
  57. data/lib/metanorma/standoc/term_lookup_cleanup.rb +1 -1
  58. data/lib/metanorma/standoc/version.rb +1 -1
  59. data/metanorma-standoc.gemspec +2 -0
  60. data/spec/assets/iso.adoc +10 -0
  61. data/spec/metanorma/blocks_spec.rb +113 -72
  62. data/spec/metanorma/cleanup_sections_spec.rb +6 -6
  63. data/spec/metanorma/cleanup_spec.rb +5 -5
  64. data/spec/metanorma/cleanup_terms_spec.rb +93 -19
  65. data/spec/metanorma/inline_spec.rb +1 -1
  66. data/spec/metanorma/macros_spec.rb +216 -45
  67. data/spec/metanorma/refs_dl_spec.rb +11 -6
  68. data/spec/metanorma/section_spec.rb +15 -15
  69. data/spec/metanorma/table_spec.rb +339 -342
  70. data/spec/spec_helper.rb +2 -5
  71. metadata +17 -2
@@ -11,86 +11,86 @@ RSpec.describe Metanorma::Standoc do
11
11
  h|1 |2 |3
12
12
  |===
13
13
  INPUT
14
- #{BLANK_HDR}
15
- <sections>
16
- <table id="_">
17
- <name>Table Name</name>
18
- <thead>
19
- <tr>
20
- <th valign="top" align="left">A</th>
21
- <th valign="top" align="left">B</th>
22
- <th valign="top" align="left">C</th>
23
- </tr>
24
- </thead>
25
- <tbody>
26
- <tr>
27
- <th valign="top" align="left">1</th>
28
- <td valign="top" align="left">2</td>
29
- <td valign="top" align="left">3</td>
30
- </tr>
31
- </tbody>
32
- </table>
33
- </sections>
34
- </standard-document>
14
+ #{BLANK_HDR}
15
+ <sections>
16
+ <table id="_">
17
+ <name>Table Name</name>
18
+ <thead>
19
+ <tr>
20
+ <th valign="top" align="left">A</th>
21
+ <th valign="top" align="left">B</th>
22
+ <th valign="top" align="left">C</th>
23
+ </tr>
24
+ </thead>
25
+ <tbody>
26
+ <tr>
27
+ <th valign="top" align="left">1</th>
28
+ <td valign="top" align="left">2</td>
29
+ <td valign="top" align="left">3</td>
30
+ </tr>
31
+ </tbody>
32
+ </table>
33
+ </sections>
34
+ </standard-document>
35
35
  OUTPUT
36
36
  end
37
37
 
38
38
  it "processes table widths" do
39
39
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
40
- #{ASCIIDOC_BLANK_HDR}
41
- [width=75%]
42
- |===
43
- |A
44
- |B
45
- |===
40
+ #{ASCIIDOC_BLANK_HDR}
41
+ [width=75%]
42
+ |===
43
+ |A
44
+ |B
45
+ |===
46
46
 
47
- [width=75]
48
- |===
49
- |A
50
- |B
51
- |===
47
+ [width=75]
48
+ |===
49
+ |A
50
+ |B
51
+ |===
52
52
 
53
- [width=575]
54
- |===
55
- |A
56
- |B
57
- |===
53
+ [width=575]
54
+ |===
55
+ |A
56
+ |B
57
+ |===
58
58
 
59
59
  INPUT
60
- #{BLANK_HDR}
61
- <sections>
62
- <table id='_' width='75%'>
63
- <tbody>
64
- <tr>
65
- <td valign='top' align='left'>A</td>
66
- </tr>
67
- <tr>
68
- <td valign='top' align='left'>B</td>
69
- </tr>
70
- </tbody>
71
- </table>
72
- <table id='_' width='75'>
73
- <tbody>
74
- <tr>
75
- <td valign='top' align='left'>A</td>
76
- </tr>
77
- <tr>
78
- <td valign='top' align='left'>B</td>
79
- </tr>
80
- </tbody>
81
- </table>
82
- <table id='_' width='575'>
83
- <tbody>
84
- <tr>
85
- <td valign='top' align='left'>A</td>
86
- </tr>
87
- <tr>
88
- <td valign='top' align='left'>B</td>
89
- </tr>
90
- </tbody>
91
- </table>
92
- </sections>
93
- </standard-document>
60
+ #{BLANK_HDR}
61
+ <sections>
62
+ <table id='_' width='75%'>
63
+ <tbody>
64
+ <tr>
65
+ <td valign='top' align='left'>A</td>
66
+ </tr>
67
+ <tr>
68
+ <td valign='top' align='left'>B</td>
69
+ </tr>
70
+ </tbody>
71
+ </table>
72
+ <table id='_' width='75'>
73
+ <tbody>
74
+ <tr>
75
+ <td valign='top' align='left'>A</td>
76
+ </tr>
77
+ <tr>
78
+ <td valign='top' align='left'>B</td>
79
+ </tr>
80
+ </tbody>
81
+ </table>
82
+ <table id='_' width='575'>
83
+ <tbody>
84
+ <tr>
85
+ <td valign='top' align='left'>A</td>
86
+ </tr>
87
+ <tr>
88
+ <td valign='top' align='left'>B</td>
89
+ </tr>
90
+ </tbody>
91
+ </table>
92
+ </sections>
93
+ </standard-document>
94
94
 
95
95
  OUTPUT
96
96
  end
@@ -120,69 +120,68 @@ RSpec.describe Metanorma::Standoc do
120
120
  |1 |2 |3
121
121
  |===
122
122
  INPUT
123
- #{BLANK_HDR}
124
- <sections>
125
- <table id='_'>
126
- <thead>
127
- <tr>
128
- <th valign='top' align='left'>A</th>
129
- <th valign='middle' align='left'>B</th>
130
- <th valign='bottom' align='center'>C</th>
131
- </tr>
132
- </thead>
133
- <tbody>
134
- <tr>
135
- <td valign='top' align='left'>1</td>
136
- <td valign='middle' align='left'>2</td>
137
- <td valign='bottom' align='center'>3</td>
138
- </tr>
139
- </tbody>
140
- </table>
141
- <table id='_'>
142
- <thead>
143
- <tr>
144
- <th valign='top' align='left'>A</th>
145
- <th valign='top' align='left'>B</th>
146
- <th valign='top' align='left'>C</th>
147
- </tr>
148
- </thead>
149
- <tbody>
150
- <tr>
151
- <td valign='top' align='left'>1</td>
152
- <td valign='top' align='left'>2</td>
153
- <td valign='top' align='left'>3</td>
154
- </tr>
155
- </tbody>
156
- </table>
123
+ #{BLANK_HDR}
124
+ <sections>
125
+ <table id='_'>
126
+ <thead>
127
+ <tr>
128
+ <th valign='top' align='left'>A</th>
129
+ <th valign='middle' align='left'>B</th>
130
+ <th valign='bottom' align='center'>C</th>
131
+ </tr>
132
+ </thead>
133
+ <tbody>
134
+ <tr>
135
+ <td valign='top' align='left'>1</td>
136
+ <td valign='middle' align='left'>2</td>
137
+ <td valign='bottom' align='center'>3</td>
138
+ </tr>
139
+ </tbody>
140
+ </table>
157
141
  <table id='_'>
158
- <colgroup>
159
- <col width='11.1111%'/>
160
- <col width='22.2222%'/>
161
- <col width='66.6667%'/>
162
- </colgroup>
163
- <thead>
164
- <tr>
165
- <th valign='top' align='left'>A</th>
166
- <th valign='top' align='left'>B</th>
167
- <th valign='top' align='left'>C</th>
168
- </tr>
169
- </thead>
170
- <tbody>
171
- <tr>
172
- <td valign='top' align='left'>1</td>
173
- <td valign='top' align='left'>2</td>
174
- <td valign='top' align='left'>3</td>
175
- </tr>
176
- </tbody>
177
- </table>
178
- </sections>
179
- </standard-document>
142
+ <thead>
143
+ <tr>
144
+ <th valign='top' align='left'>A</th>
145
+ <th valign='top' align='left'>B</th>
146
+ <th valign='top' align='left'>C</th>
147
+ </tr>
148
+ </thead>
149
+ <tbody>
150
+ <tr>
151
+ <td valign='top' align='left'>1</td>
152
+ <td valign='top' align='left'>2</td>
153
+ <td valign='top' align='left'>3</td>
154
+ </tr>
155
+ </tbody>
156
+ </table>
157
+ <table id='_'>
158
+ <colgroup>
159
+ <col width='11.1111%'/>
160
+ <col width='22.2222%'/>
161
+ <col width='66.6667%'/>
162
+ </colgroup>
163
+ <thead>
164
+ <tr>
165
+ <th valign='top' align='left'>A</th>
166
+ <th valign='top' align='left'>B</th>
167
+ <th valign='top' align='left'>C</th>
168
+ </tr>
169
+ </thead>
170
+ <tbody>
171
+ <tr>
172
+ <td valign='top' align='left'>1</td>
173
+ <td valign='top' align='left'>2</td>
174
+ <td valign='top' align='left'>3</td>
175
+ </tr>
176
+ </tbody>
177
+ </table>
178
+ </sections>
179
+ </standard-document>
180
180
  OUTPUT
181
181
  end
182
182
 
183
-
184
183
  it "inserts header rows in a table with a name and no header" do
185
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
184
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
186
185
  #{ASCIIDOC_BLANK_HDR}
187
186
  [headerrows=2]
188
187
  .Table Name
@@ -192,37 +191,36 @@ RSpec.describe Metanorma::Standoc do
192
191
  h|1 |2 |3
193
192
  |===
194
193
  INPUT
195
- #{BLANK_HDR}
196
- <sections>
197
- <table id="_">
198
- <name>Table Name</name>
199
- <thead><tr>
200
- <th valign="top" align="left">A</th>
201
- <th valign="top" align="left">B</th>
202
- <th valign="top" align="left">C</th>
203
- </tr><tr>
204
- <th valign="top" align="left">1</th>
205
- <th valign="top" align="left">2</th>
206
- <th valign="top" align="left">3</th>
207
- </tr></thead>
208
- <tbody>
194
+ #{BLANK_HDR}
195
+ <sections>
196
+ <table id="_">
197
+ <name>Table Name</name>
198
+ <thead><tr>
199
+ <th valign="top" align="left">A</th>
200
+ <th valign="top" align="left">B</th>
201
+ <th valign="top" align="left">C</th>
202
+ </tr><tr>
203
+ <th valign="top" align="left">1</th>
204
+ <th valign="top" align="left">2</th>
205
+ <th valign="top" align="left">3</th>
206
+ </tr></thead>
207
+ <tbody>
209
208
 
210
209
 
211
- <tr>
212
- <th valign="top" align="left">1</th>
213
- <td valign="top" align="left">2</td>
214
- <td valign="top" align="left">3</td>
215
- </tr>
216
- </tbody>
217
- </table>
218
- </sections>
219
- </standard-document>
210
+ <tr>
211
+ <th valign="top" align="left">1</th>
212
+ <td valign="top" align="left">2</td>
213
+ <td valign="top" align="left">3</td>
214
+ </tr>
215
+ </tbody>
216
+ </table>
217
+ </sections>
218
+ </standard-document>
220
219
  OUTPUT
221
220
  end
222
221
 
223
-
224
222
  it "inserts header rows in a table without a name and no header" do
225
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
223
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
226
224
  #{ASCIIDOC_BLANK_HDR}
227
225
  [headerrows=2]
228
226
  |===
@@ -231,29 +229,29 @@ RSpec.describe Metanorma::Standoc do
231
229
  h|1 |2 |3
232
230
  |===
233
231
  INPUT
234
- #{BLANK_HDR}
235
- <sections>
236
- <table id="_"><thead><tr>
237
- <th valign="top" align="left">A</th>
238
- <th valign="top" align="left">B</th>
239
- <th valign="top" align="left">C</th>
240
- </tr><tr>
241
- <th valign="top" align="left">1</th>
242
- <th valign="top" align="left">2</th>
243
- <th valign="top" align="left">3</th>
244
- </tr></thead>
245
- <tbody>
232
+ #{BLANK_HDR}
233
+ <sections>
234
+ <table id="_"><thead><tr>
235
+ <th valign="top" align="left">A</th>
236
+ <th valign="top" align="left">B</th>
237
+ <th valign="top" align="left">C</th>
238
+ </tr><tr>
239
+ <th valign="top" align="left">1</th>
240
+ <th valign="top" align="left">2</th>
241
+ <th valign="top" align="left">3</th>
242
+ </tr></thead>
243
+ <tbody>
246
244
 
247
245
 
248
- <tr>
249
- <th valign="top" align="left">1</th>
250
- <td valign="top" align="left">2</td>
251
- <td valign="top" align="left">3</td>
252
- </tr>
253
- </tbody>
254
- </table>
255
- </sections>
256
- </standard-document>
246
+ <tr>
247
+ <th valign="top" align="left">1</th>
248
+ <td valign="top" align="left">2</td>
249
+ <td valign="top" align="left">3</td>
250
+ </tr>
251
+ </tbody>
252
+ </table>
253
+ </sections>
254
+ </standard-document>
257
255
  OUTPUT
258
256
  end
259
257
 
@@ -266,7 +264,7 @@ RSpec.describe Metanorma::Standoc do
266
264
  .2+|Defect 4+^| Maximum permissible mass fraction of defects in husked rice +
267
265
  stem:[w_max]
268
266
  | in husked rice | in milled rice (non-glutinous) | in husked parboiled rice | in milled parboiled rice
269
-
267
+
270
268
  | Extraneous matter: organic footnote:[Organic extraneous matter includes foreign seeds, husks, bran, parts of straw, etc.] | 1,0 | 0,5 | 1,0 | 0,5
271
269
  // not rendered list here
272
270
  | Extraneous matter: inorganic footnote:[Inorganic extraneous matter includes stones, sand, dust, etc.] | 0,5 | 0,5 | 0,5 | 0,5
@@ -284,176 +282,175 @@ RSpec.describe Metanorma::Standoc do
284
282
  | Partly gelatinized kernels | Not applicable | Not applicable | 11,0 footnote:defectsmass[] | 11,0
285
283
  | Pecks | Not applicable | Not applicable | 4,0 | 2,0
286
284
  | Waxy rice | 1,0 footnote:defectsmass[] | 1,0 | 1,0 footnote:defectsmass[] | 1,0
287
-
285
+
288
286
  5+a| Live insects shall not be present. Dead insects shall be included in extraneous matter.
289
287
  |===
290
288
  INPUT
291
- #{BLANK_HDR}
292
- <sections>
293
- <table id="_" alt="An extensive summary, and illustration, of tables" unnumbered="true" subsequence="A" summary="This is an extremely long, convoluted summary" width="70%" number="3" keep-with-next="true" keep-lines-together="true">
294
- <name>Maximum <em>permissible</em> mass fraction of defects</name>
295
- <thead>
296
- <tr>
297
- <th rowspan="2" valign="middle" align="left">Defect</th>
298
- <th colspan="4" valign="top" align="center">Maximum permissible mass fraction of defects in husked rice<br/>
299
- <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow>
300
- <mi>w</mi>
301
- </mrow>
302
- <mrow>
303
- <mo>max</mo>
304
- </mrow>
305
- </msub></math></stem></th>
306
- </tr>
307
- <tr>
308
- <th valign="middle" align="left">in husked rice</th>
309
- <th valign="top" align="center">in milled rice (non-glutinous)</th>
310
- <th valign="bottom" align="center">in husked parboiled rice</th>
311
- <th valign="top" align="center">in milled parboiled rice</th>
312
- </tr></thead>
313
- <tbody>
289
+ #{BLANK_HDR}
290
+ <sections>
291
+ <table id="_" alt="An extensive summary, and illustration, of tables" unnumbered="true" subsequence="A" summary="This is an extremely long, convoluted summary" width="70%" number="3" keep-with-next="true" keep-lines-together="true">
292
+ <name>Maximum <em>permissible</em> mass fraction of defects</name>
293
+ <thead>
294
+ <tr>
295
+ <th rowspan="2" valign="middle" align="left">Defect</th>
296
+ <th colspan="4" valign="top" align="center">Maximum permissible mass fraction of defects in husked rice<br/>
297
+ <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow>
298
+ <mi>w</mi>
299
+ </mrow>
300
+ <mrow>
301
+ <mo>max</mo>
302
+ </mrow>
303
+ </msub></math></stem></th>
304
+ </tr>
305
+ <tr>
306
+ <th valign="middle" align="left">in husked rice</th>
307
+ <th valign="top" align="center">in milled rice (non-glutinous)</th>
308
+ <th valign="bottom" align="center">in husked parboiled rice</th>
309
+ <th valign="top" align="center">in milled parboiled rice</th>
310
+ </tr></thead>
311
+ <tbody>
314
312
 
315
- <tr>
316
- <td valign="middle" align="left">Extraneous matter: organic<fn reference="a">
317
- <p id="_">Organic extraneous matter includes foreign seeds, husks, bran, parts of straw, etc.</p>
318
- </fn></td>
319
- <td valign="top" align="center">1,0</td>
320
- <td valign="bottom" align="center">0,5</td>
321
- <td valign="top" align="center">1,0</td>
322
- <td valign="top" align="center">0,5</td>
323
- </tr>
324
- <tr>
325
- <td valign="middle" align="left">Extraneous matter: inorganic<fn reference="b">
326
- <p id="_">Inorganic extraneous matter includes stones, sand, dust, etc.</p>
327
- </fn></td>
328
- <td valign="top" align="center">0,5</td>
329
- <td valign="bottom" align="center">0,5</td>
330
- <td valign="top" align="center">0,5</td>
331
- <td valign="top" align="center">0,5</td>
332
- </tr>
333
- <tr>
334
- <td valign="middle" align="left">Paddy</td>
335
- <td valign="top" align="center">2,5</td>
336
- <td valign="bottom" align="center">0,3</td>
337
- <td valign="top" align="center">2,5</td>
338
- <td valign="top" align="center">0,3</td>
339
- </tr>
340
- <tr>
341
- <td valign="middle" align="left">Husked rice, non-parboiled</td>
342
- <td valign="top" align="center">Not applicable</td>
343
- <td valign="bottom" align="center">1,0</td>
344
- <td valign="top" align="center">1,0</td>
345
- <td valign="top" align="center">1,0</td>
346
- </tr>
347
- <tr>
348
- <td valign="middle" align="left">Milled rice, non-parboiled</td>
349
- <td valign="top" align="center">1,0</td>
350
- <td valign="bottom" align="center">Not applicable</td>
351
- <td valign="top" align="center">1,0</td>
352
- <td valign="top" align="center">1,0</td>
353
- </tr>
354
- <tr>
355
- <td valign="middle" align="left">Husked rice, parboiled</td>
356
- <td valign="top" align="center">1,0</td>
357
- <td valign="bottom" align="center">1,0</td>
358
- <td valign="top" align="center">Not applicable</td>
359
- <td valign="top" align="center">1,0</td>
360
- </tr>
361
- <tr>
362
- <td valign="middle" align="left">Milled rice, parboiled</td>
363
- <td valign="top" align="center">1,0</td>
364
- <td valign="bottom" align="center">1,0</td>
365
- <td valign="top" align="center">1,0</td>
366
- <td valign="top" align="center">Not applicable</td>
367
- </tr>
368
- <tr>
369
- <td valign="middle" align="left">Chips</td>
370
- <td valign="top" align="center">0,1</td>
371
- <td valign="bottom" align="center">0,1</td>
372
- <td valign="top" align="center">0,1</td>
373
- <td valign="top" align="center">0,1</td>
374
- </tr>
375
- <tr>
376
- <td valign="middle" align="left">HDK</td>
377
- <td valign="top" align="center">2,0<fn reference="c">
378
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
379
- </fn></td>
380
- <td valign="bottom" align="center">2,0</td>
381
- <td valign="top" align="center">2,0<fn reference="c">
382
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
383
- </fn></td>
384
- <td valign="top" align="center">2,0</td>
385
- </tr>
386
- <tr>
387
- <td valign="middle" align="left">Damaged kernels</td>
388
- <td valign="top" align="center">4,0</td>
389
- <td valign="bottom" align="center">3,0</td>
390
- <td valign="top" align="center">4,0</td>
391
- <td valign="top" align="center">3,0</td>
392
- </tr>
393
- <tr>
394
- <td valign="middle" align="left">Immature and/or malformed kernels</td>
395
- <td valign="top" align="center">8,0</td>
396
- <td valign="bottom" align="center">2,0</td>
397
- <td valign="top" align="center">8,0</td>
398
- <td valign="top" align="center">2,0</td>
399
- </tr>
400
- <tr>
401
- <td valign="middle" align="left">Chalky kernels</td>
402
- <td valign="top" align="center">5,0<fn reference="c">
403
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
404
- </fn></td>
405
- <td valign="bottom" align="center">5,0</td>
406
- <td valign="top" align="center">Not applicable</td>
407
- <td valign="top" align="center">Not applicable</td>
408
- </tr>
409
- <tr>
410
- <td valign="middle" align="left">Red kernels and red-streaked kernels</td>
411
- <td valign="top" align="center">12,0</td>
412
- <td valign="bottom" align="center">12,0</td>
413
- <td valign="top" align="center">12,0<fn reference="c">
414
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
415
- </fn></td>
416
- <td valign="top" align="center">12,0</td>
417
- </tr>
418
- <tr>
419
- <td valign="middle" align="left">Partly gelatinized kernels</td>
420
- <td valign="top" align="center">Not applicable</td>
421
- <td valign="bottom" align="center">Not applicable</td>
422
- <td valign="top" align="center">11,0<fn reference="c">
423
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
424
- </fn></td>
425
- <td valign="top" align="center">11,0</td>
426
- </tr>
427
- <tr>
428
- <td valign="middle" align="left">Pecks</td>
429
- <td valign="top" align="center">Not applicable</td>
430
- <td valign="bottom" align="center">Not applicable</td>
431
- <td valign="top" align="center">4,0</td>
432
- <td valign="top" align="center">2,0</td>
433
- </tr>
434
- <tr>
435
- <td valign="middle" align="left">Waxy rice</td>
436
- <td valign="top" align="center">1,0<fn reference="c">
437
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
438
- </fn></td>
439
- <td valign="bottom" align="center">1,0</td>
440
- <td valign="top" align="center">1,0<fn reference="c">
441
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
442
- </fn></td>
443
- <td valign="top" align="center">1,0</td>
444
- </tr>
445
- </tbody>
446
- <tfoot>
447
- <tr>
448
- <td colspan="5" valign="middle" align="left">
449
- <p id="_">Live insects shall not be present. Dead insects shall be included in extraneous matter.</p>
450
- </td>
451
- </tr>
452
- </tfoot>
453
- </table>
454
- </sections>
455
- </standard-document>
313
+ <tr>
314
+ <td valign="middle" align="left">Extraneous matter: organic<fn reference="a">
315
+ <p id="_">Organic extraneous matter includes foreign seeds, husks, bran, parts of straw, etc.</p>
316
+ </fn></td>
317
+ <td valign="top" align="center">1,0</td>
318
+ <td valign="bottom" align="center">0,5</td>
319
+ <td valign="top" align="center">1,0</td>
320
+ <td valign="top" align="center">0,5</td>
321
+ </tr>
322
+ <tr>
323
+ <td valign="middle" align="left">Extraneous matter: inorganic<fn reference="b">
324
+ <p id="_">Inorganic extraneous matter includes stones, sand, dust, etc.</p>
325
+ </fn></td>
326
+ <td valign="top" align="center">0,5</td>
327
+ <td valign="bottom" align="center">0,5</td>
328
+ <td valign="top" align="center">0,5</td>
329
+ <td valign="top" align="center">0,5</td>
330
+ </tr>
331
+ <tr>
332
+ <td valign="middle" align="left">Paddy</td>
333
+ <td valign="top" align="center">2,5</td>
334
+ <td valign="bottom" align="center">0,3</td>
335
+ <td valign="top" align="center">2,5</td>
336
+ <td valign="top" align="center">0,3</td>
337
+ </tr>
338
+ <tr>
339
+ <td valign="middle" align="left">Husked rice, non-parboiled</td>
340
+ <td valign="top" align="center">Not applicable</td>
341
+ <td valign="bottom" align="center">1,0</td>
342
+ <td valign="top" align="center">1,0</td>
343
+ <td valign="top" align="center">1,0</td>
344
+ </tr>
345
+ <tr>
346
+ <td valign="middle" align="left">Milled rice, non-parboiled</td>
347
+ <td valign="top" align="center">1,0</td>
348
+ <td valign="bottom" align="center">Not applicable</td>
349
+ <td valign="top" align="center">1,0</td>
350
+ <td valign="top" align="center">1,0</td>
351
+ </tr>
352
+ <tr>
353
+ <td valign="middle" align="left">Husked rice, parboiled</td>
354
+ <td valign="top" align="center">1,0</td>
355
+ <td valign="bottom" align="center">1,0</td>
356
+ <td valign="top" align="center">Not applicable</td>
357
+ <td valign="top" align="center">1,0</td>
358
+ </tr>
359
+ <tr>
360
+ <td valign="middle" align="left">Milled rice, parboiled</td>
361
+ <td valign="top" align="center">1,0</td>
362
+ <td valign="bottom" align="center">1,0</td>
363
+ <td valign="top" align="center">1,0</td>
364
+ <td valign="top" align="center">Not applicable</td>
365
+ </tr>
366
+ <tr>
367
+ <td valign="middle" align="left">Chips</td>
368
+ <td valign="top" align="center">0,1</td>
369
+ <td valign="bottom" align="center">0,1</td>
370
+ <td valign="top" align="center">0,1</td>
371
+ <td valign="top" align="center">0,1</td>
372
+ </tr>
373
+ <tr>
374
+ <td valign="middle" align="left">HDK</td>
375
+ <td valign="top" align="center">2,0<fn reference="c">
376
+ <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
377
+ </fn></td>
378
+ <td valign="bottom" align="center">2,0</td>
379
+ <td valign="top" align="center">2,0<fn reference="c">
380
+ <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
381
+ </fn></td>
382
+ <td valign="top" align="center">2,0</td>
383
+ </tr>
384
+ <tr>
385
+ <td valign="middle" align="left">Damaged kernels</td>
386
+ <td valign="top" align="center">4,0</td>
387
+ <td valign="bottom" align="center">3,0</td>
388
+ <td valign="top" align="center">4,0</td>
389
+ <td valign="top" align="center">3,0</td>
390
+ </tr>
391
+ <tr>
392
+ <td valign="middle" align="left">Immature and/or malformed kernels</td>
393
+ <td valign="top" align="center">8,0</td>
394
+ <td valign="bottom" align="center">2,0</td>
395
+ <td valign="top" align="center">8,0</td>
396
+ <td valign="top" align="center">2,0</td>
397
+ </tr>
398
+ <tr>
399
+ <td valign="middle" align="left">Chalky kernels</td>
400
+ <td valign="top" align="center">5,0<fn reference="c">
401
+ <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
402
+ </fn></td>
403
+ <td valign="bottom" align="center">5,0</td>
404
+ <td valign="top" align="center">Not applicable</td>
405
+ <td valign="top" align="center">Not applicable</td>
406
+ </tr>
407
+ <tr>
408
+ <td valign="middle" align="left">Red kernels and red-streaked kernels</td>
409
+ <td valign="top" align="center">12,0</td>
410
+ <td valign="bottom" align="center">12,0</td>
411
+ <td valign="top" align="center">12,0<fn reference="c">
412
+ <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
413
+ </fn></td>
414
+ <td valign="top" align="center">12,0</td>
415
+ </tr>
416
+ <tr>
417
+ <td valign="middle" align="left">Partly gelatinized kernels</td>
418
+ <td valign="top" align="center">Not applicable</td>
419
+ <td valign="bottom" align="center">Not applicable</td>
420
+ <td valign="top" align="center">11,0<fn reference="c">
421
+ <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
422
+ </fn></td>
423
+ <td valign="top" align="center">11,0</td>
424
+ </tr>
425
+ <tr>
426
+ <td valign="middle" align="left">Pecks</td>
427
+ <td valign="top" align="center">Not applicable</td>
428
+ <td valign="bottom" align="center">Not applicable</td>
429
+ <td valign="top" align="center">4,0</td>
430
+ <td valign="top" align="center">2,0</td>
431
+ </tr>
432
+ <tr>
433
+ <td valign="middle" align="left">Waxy rice</td>
434
+ <td valign="top" align="center">1,0<fn reference="c">
435
+ <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
436
+ </fn></td>
437
+ <td valign="bottom" align="center">1,0</td>
438
+ <td valign="top" align="center">1,0<fn reference="c">
439
+ <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
440
+ </fn></td>
441
+ <td valign="top" align="center">1,0</td>
442
+ </tr>
443
+ </tbody>
444
+ <tfoot>
445
+ <tr>
446
+ <td colspan="5" valign="middle" align="left">
447
+ <p id="_">Live insects shall not be present. Dead insects shall be included in extraneous matter.</p>
448
+ </td>
449
+ </tr>
450
+ </tfoot>
451
+ </table>
452
+ </sections>
453
+ </standard-document>
456
454
  OUTPUT
457
455
  end
458
456
  end
459
-