metanorma-iec 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,11 +35,9 @@ module IsoDoc
35
35
  toc = ""
36
36
  toc += make_WordToC(docxml, level)
37
37
  if docxml.at("//p[@class = 'TableTitle']")
38
- #toc += %{<p class="TOCTitle">List of Tables</p>}
39
38
  toc += make_TableWordToC(docxml)
40
39
  end
41
40
  if docxml.at("//p[@class = 'FigureTitle']")
42
- #toc += %{<p class="TOCTitle">List of Figures</p>}
43
41
  toc += make_FigureWordToC(docxml)
44
42
  end
45
43
  intro.sub(/WORDTOC/, toc)
@@ -162,11 +160,11 @@ module IsoDoc
162
160
  def make_body1(body, _docxml)
163
161
  end
164
162
 
165
- def make_body2(body, docxml)
166
- FileUtils.rm_rf tmpimagedir
167
- FileUtils.mkdir tmpimagedir
168
- super
169
- end
163
+ #def make_body2(body, docxml)
164
+ #FileUtils.rm_rf tmpimagedir
165
+ #FileUtils.mkdir tmpimagedir
166
+ #super
167
+ #end
170
168
 
171
169
  def word_cover(docxml)
172
170
  end
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
6
6
 
@@ -99,7 +99,7 @@ RSpec.describe Asciidoctor::Iec do
99
99
  <title language="fr" format="text/plain" type="title-intro">Introduction Française</title>
100
100
  <title language="fr" format="text/plain" type="title-main">Titre Principal</title>
101
101
  <title language="fr" format="text/plain" type="title-part">Part du Titre</title>
102
- <docidentifier type="iso">IEC/3NWIP 1000-1</docidentifier>
102
+ <docidentifier type="iso">IEC/3NWIP 1000-1 ED 2</docidentifier>
103
103
  <docnumber>1000</docnumber>
104
104
  <contributor>
105
105
  <role type="author"/>
@@ -188,7 +188,7 @@ RSpec.describe Asciidoctor::Iec do
188
188
  <?xml version="1.0" encoding="UTF-8"?>
189
189
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
190
190
  <bibdata type="standard">
191
- <docidentifier type="iso">ISO/IEC/IETF/2CD 1000-1-1</docidentifier>
191
+ <docidentifier type="iso">ISO/IEC/IETF/2CD 1000-1-1 ED 1</docidentifier>
192
192
  <docidentifier type="iso-tc">2000</docidentifier>
193
193
  <docnumber>1000</docnumber>
194
194
  <contributor>
@@ -335,7 +335,7 @@ RSpec.describe Asciidoctor::Iec do
335
335
  INPUT
336
336
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
337
337
  <bibdata type="standard">
338
- <docidentifier type="iso">IEC/FDIS 1000</docidentifier>
338
+ <docidentifier type="iso">IEC/FDIS 1000 ED 1</docidentifier>
339
339
  <docnumber>1000</docnumber>
340
340
  <contributor>
341
341
  <role type="author"/>
@@ -398,7 +398,7 @@ OUTPUT
398
398
  INPUT
399
399
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
400
400
  <bibdata type="standard">
401
- <docidentifier type="iso">IEC 1000</docidentifier>
401
+ <docidentifier type="iso">IEC 1000 ED 1</docidentifier>
402
402
  <docnumber>1000</docnumber>
403
403
  <contributor>
404
404
  <role type="author"/>
@@ -462,7 +462,7 @@ OUTPUT
462
462
  INPUT
463
463
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
464
464
  <bibdata type="standard">
465
- <docidentifier type="iso">IEC 1000</docidentifier>
465
+ <docidentifier type="iso">IEC 1000 ED 1</docidentifier>
466
466
  <docnumber>1000</docnumber>
467
467
  <contributor>
468
468
  <role type="author"/>
@@ -536,7 +536,7 @@ OUTPUT
536
536
  :no-isobib:
537
537
  INPUT
538
538
  html = File.read("test.html", encoding: "utf-8")
539
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
539
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
540
540
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Cambria", serif;]m)
541
541
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Cambria", serif;]m)
542
542
  end
@@ -551,7 +551,7 @@ OUTPUT
551
551
  :no-isobib:
552
552
  INPUT
553
553
  html = File.read("test_alt.html", encoding: "utf-8")
554
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
554
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
555
555
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
556
556
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
557
557
  end
@@ -567,7 +567,7 @@ OUTPUT
567
567
  :script: Hans
568
568
  INPUT
569
569
  html = File.read("test.html", encoding: "utf-8")
570
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
570
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
571
571
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "SimSun", serif;]m)
572
572
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "SimHei", sans-serif;]m)
573
573
  end
@@ -586,7 +586,7 @@ OUTPUT
586
586
  :monospace-font: Andale Mono
587
587
  INPUT
588
588
  html = File.read("test.html", encoding: "utf-8")
589
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: Andale Mono;]m)
589
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: Andale Mono;]m)
590
590
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: Zapf Chancery;]m)
591
591
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: Comic Sans;]m)
592
592
  end
@@ -264,7 +264,7 @@ RSpec.describe Asciidoctor::Iec do
264
264
  == Section 1
265
265
  INPUT
266
266
  #{BLANK_HDR}
267
- <preface><foreword obligation="informative">
267
+ <preface><foreword id="_" obligation="informative">
268
268
  <title>Foreword</title>
269
269
  <p id="_">This is a preamble</p>
270
270
  </foreword></preface><sections>
@@ -120,7 +120,7 @@ RSpec.describe Asciidoctor::Iec do
120
120
  INPUT
121
121
  #{BLANK_HDR}
122
122
  <preface>
123
- <foreword obligation="informative">
123
+ <foreword id="_" obligation="informative">
124
124
  <title>Foreword</title>
125
125
  <p id="_">
126
126
  <eref type="inline" bibitemid="iso216" citeas="ISO 216"/>
@@ -268,90 +268,6 @@ RSpec.describe Asciidoctor::Iec do
268
268
  OUTPUT
269
269
  end
270
270
 
271
- it "processes headerrows attribute for table without header rows" do
272
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
273
- #{ASCIIDOC_BLANK_HDR}
274
- [headerrows=3]
275
- |===
276
- |a |b |c
277
- |a |b |c
278
- |a |b |c
279
- |a |b |c
280
- |===
281
- INPUT
282
- #{BLANK_HDR}
283
- <sections>
284
- <table id="_"><thead><tr>
285
- <td align="left">a</td>
286
- <td align="left">b</td>
287
- <td align="left">c</td>
288
- </tr><tr>
289
- <td align="left">a</td>
290
- <td align="left">b</td>
291
- <td align="left">c</td>
292
- </tr><tr>
293
- <td align="left">a</td>
294
- <td align="left">b</td>
295
- <td align="left">c</td>
296
- </tr></thead>
297
- <tbody>
298
- <tr>
299
- <td align="left">a</td>
300
- <td align="left">b</td>
301
- <td align="left">c</td>
302
- </tr>
303
- </tbody>
304
- </table>
305
- </sections>
306
- </iec-standard>
307
- OUTPUT
308
- end
309
-
310
- it "processes headerrows attribute for table with header rows" do
311
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
312
- #{ASCIIDOC_BLANK_HDR}
313
- [headerrows=3]
314
- |===
315
- |a |b |c
316
-
317
- |a |b |c
318
- |a |b |c
319
- |a |b |c
320
- |===
321
- INPUT
322
- #{BLANK_HDR}
323
- <sections>
324
- <table id="_">
325
- <thead>
326
- <tr>
327
- <th align="left">a</th>
328
- <th align="left">b</th>
329
- <th align="left">c</th>
330
- </tr>
331
- <tr>
332
- <td align="left">a</td>
333
- <td align="left">b</td>
334
- <td align="left">c</td>
335
- </tr><tr>
336
- <td align="left">a</td>
337
- <td align="left">b</td>
338
- <td align="left">c</td>
339
- </tr></thead>
340
- <tbody>
341
-
342
-
343
- <tr>
344
- <td align="left">a</td>
345
- <td align="left">b</td>
346
- <td align="left">c</td>
347
- </tr>
348
- </tbody>
349
- </table>
350
- </sections>
351
- </iec-standard>
352
- OUTPUT
353
- end
354
-
355
271
  it "moves formula key inside formula" do
356
272
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
357
273
  #{ASCIIDOC_BLANK_HDR}
@@ -53,7 +53,7 @@ RSpec.describe Asciidoctor::Iec do
53
53
  === Bibliography Subsection
54
54
  INPUT
55
55
  #{BLANK_HDR}
56
- <preface><foreword obligation="informative">
56
+ <preface><foreword id="_" obligation="informative">
57
57
  <title>Foreword</title>
58
58
  <p id="_">Text</p>
59
59
  </foreword><introduction id="_" obligation="informative"><title>Introduction</title><clause id="_" inline-header="false" obligation="informative">
@@ -75,6 +75,25 @@ RSpec.describe Asciidoctor::Iec do
75
75
  </terms>
76
76
  <clause id="_" obligation="normative"><title>Terms, definitions, symbols and abbreviated terms</title><terms id="_" obligation="normative">
77
77
  <title>Normal Terms</title>
78
+ <p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
79
+ <p id='_'>
80
+ ISO and IEC maintain terminological databases for use in
81
+ standardization at the following addresses:
82
+ </p>
83
+ <ul id='_'>
84
+ <li>
85
+ <p id='_'>
86
+ IEC Electropedia: available at
87
+ <link target='http://www.electropedia.org'/>
88
+ </p>
89
+ </li>
90
+ <li>
91
+ <p id='_'>
92
+ ISO Online browsing platform: available at
93
+ <link target='http://www.iso.org/obp'/>
94
+ </p>
95
+ </li>
96
+ </ul>
78
97
  <term id="_">
79
98
  <preferred>Term2</preferred>
80
99
  </term>
@@ -171,7 +190,7 @@ RSpec.describe Asciidoctor::Iec do
171
190
  INPUT
172
191
  #{BLANK_HDR}
173
192
  <preface>
174
- <foreword obligation="informative">
193
+ <foreword id="_" obligation="informative">
175
194
  <title>Foreword</title>
176
195
  <p id="_">Text</p>
177
196
  </foreword>
@@ -198,6 +217,25 @@ RSpec.describe Asciidoctor::Iec do
198
217
  <title>Terms and definitions</title>
199
218
  <terms id='_' obligation='normative'>
200
219
  <title>Normal Terms</title>
220
+ <p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
221
+ <p id='_'>
222
+ ISO and IEC maintain terminological databases for use in
223
+ standardization at the following addresses:
224
+ </p>
225
+ <ul id='_'>
226
+ <li>
227
+ <p id='_'>
228
+ IEC Electropedia: available at
229
+ <link target='http://www.electropedia.org'/>
230
+ </p>
231
+ </li>
232
+ <li>
233
+ <p id='_'>
234
+ ISO Online browsing platform: available at
235
+ <link target='http://www.iso.org/obp'/>
236
+ </p>
237
+ </li>
238
+ </ul>
201
239
  <term id='_'>
202
240
  <preferred>Term2</preferred>
203
241
  </term>
@@ -14,7 +14,7 @@ RSpec.describe IsoDoc::Iec do
14
14
  </iso-standard>
15
15
  INPUT
16
16
  html = File.read("test.html", encoding: "utf-8")
17
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
17
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
18
18
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Cambria", serif;]m)
19
19
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Cambria", serif;]m)
20
20
  end
@@ -31,7 +31,7 @@ RSpec.describe IsoDoc::Iec do
31
31
  </iso-standard>
32
32
  INPUT
33
33
  html = File.read("test.html", encoding: "utf-8")
34
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
34
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
35
35
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
36
36
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
37
37
  end
@@ -48,7 +48,7 @@ RSpec.describe IsoDoc::Iec do
48
48
  </iso-standard>
49
49
  INPUT
50
50
  html = File.read("test.html", encoding: "utf-8")
51
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
51
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
52
52
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "SimSun", serif;]m)
53
53
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "SimHei", sans-serif;]m)
54
54
  end
@@ -65,7 +65,7 @@ RSpec.describe IsoDoc::Iec do
65
65
  </iso-standard>
66
66
  INPUT
67
67
  html = File.read("test.html", encoding: "utf-8")
68
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: Andale Mono;]m)
68
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: Andale Mono;]m)
69
69
  expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: Zapf Chancery;]m)
70
70
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: Comic Sans;]m)
71
71
  end
@@ -82,7 +82,7 @@ RSpec.describe IsoDoc::Iec do
82
82
  </iso-standard>
83
83
  INPUT
84
84
  html = File.read("test.doc", encoding: "utf-8")
85
- expect(html).to match(%r[\.Sourcecode[^{]+\{[^{]+font-family: "Courier New",monospace;]m)
85
+ expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New",monospace;]m)
86
86
  expect(html).to match(%r[Quote[^{]+\{[^{]+font-family: "Arial", sans-serif;]m)
87
87
  expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Arial",sans-serif;]m)
88
88
  end
data/spec/spec_helper.rb CHANGED
@@ -100,11 +100,12 @@ TERMS_BOILERPLATE = <<~"BOILERPLATE"
100
100
  standardization at the following addresses:</p>
101
101
 
102
102
  <ul id="_">
103
- <li> <p id="_">ISO Online browsing platform: available at
104
- <link target="http://www.iso.org/obp"/></p> </li>
105
103
  <li> <p id="_">IEC Electropedia: available at
106
104
  <link target="http://www.electropedia.org"/>
107
- </p> </li> </ul>
105
+ </p> </li>
106
+ <li> <p id="_">ISO Online browsing platform: available at
107
+ <link target="http://www.iso.org/obp"/></p> </li>
108
+ </ul>
108
109
  BOILERPLATE
109
110
 
110
111
  BOILERPLATE =
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-17 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-jing
@@ -267,7 +267,6 @@ files:
267
267
  - spec/asciidoctor-iec/inline_spec.rb
268
268
  - spec/asciidoctor-iec/lists_spec.rb
269
269
  - spec/asciidoctor-iec/section_spec.rb
270
- - spec/asciidoctor-iec/table_spec.rb
271
270
  - spec/asciidoctor-iec/validate_spec.rb
272
271
  - spec/assets/header.html
273
272
  - spec/assets/html.css
@@ -1,307 +0,0 @@
1
- require "spec_helper"
2
-
3
- RSpec.describe Asciidoctor::Iec do
4
- it "processes basic tables" do
5
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
- #{ASCIIDOC_BLANK_HDR}
7
- .Table Name
8
- |===
9
- |A |B |C
10
-
11
- h|1 |2 |3
12
- |===
13
- INPUT
14
- #{BLANK_HDR}
15
- <sections>
16
- <table id="_">
17
- <name>Table Name</name>
18
- <thead>
19
- <tr>
20
- <th align="left">A</th>
21
- <th align="left">B</th>
22
- <th align="left">C</th>
23
- </tr>
24
- </thead>
25
- <tbody>
26
- <tr>
27
- <th align="left">1</th>
28
- <td align="left">2</td>
29
- <td align="left">3</td>
30
- </tr>
31
- </tbody>
32
- </table>
33
- </sections>
34
- </iec-standard>
35
- OUTPUT
36
- end
37
-
38
- it "inserts header rows in a table with a name and no header" do
39
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
40
- #{ASCIIDOC_BLANK_HDR}
41
- [headerrows=2]
42
- .Table Name
43
- |===
44
- |A |B |C
45
- h|1 |2 |3
46
- h|1 |2 |3
47
- |===
48
- INPUT
49
- #{BLANK_HDR}
50
- <sections>
51
- <table id="_">
52
- <name>Table Name</name>
53
- <thead><tr>
54
- <td align="left">A</td>
55
- <td align="left">B</td>
56
- <td align="left">C</td>
57
- </tr><tr>
58
- <th align="left">1</th>
59
- <td align="left">2</td>
60
- <td align="left">3</td>
61
- </tr></thead>
62
- <tbody>
63
-
64
-
65
- <tr>
66
- <th align="left">1</th>
67
- <td align="left">2</td>
68
- <td align="left">3</td>
69
- </tr>
70
- </tbody>
71
- </table>
72
- </sections>
73
- </iec-standard>
74
- OUTPUT
75
- end
76
-
77
-
78
- it "inserts header rows in a table without a name and no header" do
79
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
80
- #{ASCIIDOC_BLANK_HDR}
81
- [headerrows=2]
82
- |===
83
- |A |B |C
84
- h|1 |2 |3
85
- h|1 |2 |3
86
- |===
87
- INPUT
88
- #{BLANK_HDR}
89
- <sections>
90
- <table id="_"><thead><tr>
91
- <td align="left">A</td>
92
- <td align="left">B</td>
93
- <td align="left">C</td>
94
- </tr><tr>
95
- <th align="left">1</th>
96
- <td align="left">2</td>
97
- <td align="left">3</td>
98
- </tr></thead>
99
- <tbody>
100
-
101
-
102
- <tr>
103
- <th align="left">1</th>
104
- <td align="left">2</td>
105
- <td align="left">3</td>
106
- </tr>
107
- </tbody>
108
- </table>
109
- </sections>
110
- </iec-standard>
111
- OUTPUT
112
- end
113
-
114
- it "processes complex tables" do
115
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
116
- #{ASCIIDOC_BLANK_HDR}
117
- [cols="<,^,^,^,^",options="header,footer",headerrows=2]
118
- .Maximum permissible mass fraction of defects
119
- |===
120
- .2+|Defect 4+^| Maximum permissible mass fraction of defects in husked rice +
121
- stem:[w_max]
122
- | in husked rice | in milled rice (non-glutinous) | in husked parboiled rice | in milled parboiled rice
123
-
124
- | Extraneous matter: organic footnote:[Organic extraneous matter includes foreign seeds, husks, bran, parts of straw, etc.] | 1,0 | 0,5 | 1,0 | 0,5
125
- // not rendered list here
126
- | Extraneous matter: inorganic footnote:[Inorganic extraneous matter includes stones, sand, dust, etc.] | 0,5 | 0,5 | 0,5 | 0,5
127
- | Paddy | 2,5 | 0,3 | 2,5 | 0,3
128
- | Husked rice, non-parboiled | Not applicable | 1,0 | 1,0 | 1,0
129
- | Milled rice, non-parboiled | 1,0 | Not applicable | 1,0 | 1,0
130
- | Husked rice, parboiled | 1,0 | 1,0 | Not applicable | 1,0
131
- | Milled rice, parboiled | 1,0 | 1,0 | 1,0 | Not applicable
132
- | Chips | 0,1 | 0,1 | 0,1 | 0,1
133
- | HDK | 2,0 footnote:defectsmass[The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.] | 2,0 | 2,0 footnote:defectsmass[] | 2,0
134
- | Damaged kernels | 4,0 | 3,0 | 4,0 | 3,0
135
- | Immature and/or malformed kernels | 8,0 | 2,0 | 8,0 | 2,0
136
- | Chalky kernels | 5,0 footnote:defectsmass[] | 5,0 | Not applicable | Not applicable
137
- | Red kernels and red-streaked kernels | 12,0 | 12,0 | 12,0 footnote:defectsmass[] | 12,0
138
- | Partly gelatinized kernels | Not applicable | Not applicable | 11,0 footnote:defectsmass[] | 11,0
139
- | Pecks | Not applicable | Not applicable | 4,0 | 2,0
140
- | Waxy rice | 1,0 footnote:defectsmass[] | 1,0 | 1,0 footnote:defectsmass[] | 1,0
141
-
142
- 5+a| Live insects shall not be present. Dead insects shall be included in extraneous matter.
143
- |===
144
- INPUT
145
- #{BLANK_HDR}
146
- <sections>
147
- <table id="_">
148
- <name>Maximum permissible mass fraction of defects</name>
149
- <thead>
150
- <tr>
151
- <th rowspan="2" align="left">Defect</th>
152
- <th colspan="4" align="center">Maximum permissible mass fraction of defects in husked rice<br/>
153
- <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>w</mi><mi>max</mi></msub></math></stem></th>
154
- </tr>
155
- <tr>
156
- <td align="left">in husked rice</td>
157
- <td align="center">in milled rice (non-glutinous)</td>
158
- <td align="center">in husked parboiled rice</td>
159
- <td align="center">in milled parboiled rice</td>
160
- </tr></thead>
161
- <tbody>
162
-
163
- <tr>
164
- <td align="left">Extraneous matter: organic<fn reference="a">
165
- <p id="_">Organic extraneous matter includes foreign seeds, husks, bran, parts of straw, etc.</p>
166
- </fn></td>
167
- <td align="center">1,0</td>
168
- <td align="center">0,5</td>
169
- <td align="center">1,0</td>
170
- <td align="center">0,5</td>
171
- </tr>
172
- <tr>
173
- <td align="left">Extraneous matter: inorganic<fn reference="b">
174
- <p id="_">Inorganic extraneous matter includes stones, sand, dust, etc.</p>
175
- </fn></td>
176
- <td align="center">0,5</td>
177
- <td align="center">0,5</td>
178
- <td align="center">0,5</td>
179
- <td align="center">0,5</td>
180
- </tr>
181
- <tr>
182
- <td align="left">Paddy</td>
183
- <td align="center">2,5</td>
184
- <td align="center">0,3</td>
185
- <td align="center">2,5</td>
186
- <td align="center">0,3</td>
187
- </tr>
188
- <tr>
189
- <td align="left">Husked rice, non-parboiled</td>
190
- <td align="center">Not applicable</td>
191
- <td align="center">1,0</td>
192
- <td align="center">1,0</td>
193
- <td align="center">1,0</td>
194
- </tr>
195
- <tr>
196
- <td align="left">Milled rice, non-parboiled</td>
197
- <td align="center">1,0</td>
198
- <td align="center">Not applicable</td>
199
- <td align="center">1,0</td>
200
- <td align="center">1,0</td>
201
- </tr>
202
- <tr>
203
- <td align="left">Husked rice, parboiled</td>
204
- <td align="center">1,0</td>
205
- <td align="center">1,0</td>
206
- <td align="center">Not applicable</td>
207
- <td align="center">1,0</td>
208
- </tr>
209
- <tr>
210
- <td align="left">Milled rice, parboiled</td>
211
- <td align="center">1,0</td>
212
- <td align="center">1,0</td>
213
- <td align="center">1,0</td>
214
- <td align="center">Not applicable</td>
215
- </tr>
216
- <tr>
217
- <td align="left">Chips</td>
218
- <td align="center">0,1</td>
219
- <td align="center">0,1</td>
220
- <td align="center">0,1</td>
221
- <td align="center">0,1</td>
222
- </tr>
223
- <tr>
224
- <td align="left">HDK</td>
225
- <td align="center">2,0<fn reference="c">
226
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
227
- </fn></td>
228
- <td align="center">2,0</td>
229
- <td align="center">2,0<fn reference="c">
230
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
231
- </fn></td>
232
- <td align="center">2,0</td>
233
- </tr>
234
- <tr>
235
- <td align="left">Damaged kernels</td>
236
- <td align="center">4,0</td>
237
- <td align="center">3,0</td>
238
- <td align="center">4,0</td>
239
- <td align="center">3,0</td>
240
- </tr>
241
- <tr>
242
- <td align="left">Immature and/or malformed kernels</td>
243
- <td align="center">8,0</td>
244
- <td align="center">2,0</td>
245
- <td align="center">8,0</td>
246
- <td align="center">2,0</td>
247
- </tr>
248
- <tr>
249
- <td align="left">Chalky kernels</td>
250
- <td align="center">5,0<fn reference="c">
251
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
252
- </fn></td>
253
- <td align="center">5,0</td>
254
- <td align="center">Not applicable</td>
255
- <td align="center">Not applicable</td>
256
- </tr>
257
- <tr>
258
- <td align="left">Red kernels and red-streaked kernels</td>
259
- <td align="center">12,0</td>
260
- <td align="center">12,0</td>
261
- <td align="center">12,0<fn reference="c">
262
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
263
- </fn></td>
264
- <td align="center">12,0</td>
265
- </tr>
266
- <tr>
267
- <td align="left">Partly gelatinized kernels</td>
268
- <td align="center">Not applicable</td>
269
- <td align="center">Not applicable</td>
270
- <td align="center">11,0<fn reference="c">
271
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
272
- </fn></td>
273
- <td align="center">11,0</td>
274
- </tr>
275
- <tr>
276
- <td align="left">Pecks</td>
277
- <td align="center">Not applicable</td>
278
- <td align="center">Not applicable</td>
279
- <td align="center">4,0</td>
280
- <td align="center">2,0</td>
281
- </tr>
282
- <tr>
283
- <td align="left">Waxy rice</td>
284
- <td align="center">1,0<fn reference="c">
285
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
286
- </fn></td>
287
- <td align="center">1,0</td>
288
- <td align="center">1,0<fn reference="c">
289
- <p id="_">The maximum permissible mass fraction of defects shall be determined with respect to the mass fraction obtained after milling.</p>
290
- </fn></td>
291
- <td align="center">1,0</td>
292
- </tr>
293
- </tbody>
294
- <tfoot>
295
- <tr>
296
- <td colspan="5" align="left">
297
- <p id="_">Live insects shall not be present. Dead insects shall be included in extraneous matter.</p>
298
- </td>
299
- </tr>
300
- </tfoot>
301
- </table>
302
- </sections>
303
- </iec-standard>
304
- OUTPUT
305
- end
306
- end
307
-