metanorma-iec 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 489e431cdb476cb3d5526c645e6a41b7f163ae0abc8c903f48a0a99a36b7b6b4
4
- data.tar.gz: fd8b9c6b5c2aa79f1c1453027532d211ac2308f85d0b1d0e30f03d3f641ee7d6
3
+ metadata.gz: cdade5476ad8dd460b9cc6a168b2b9be121f3c429aaceb0c2170811ce57e71c4
4
+ data.tar.gz: 3c4c9e1d94871fb47ffcf65daf25d49402f229b7c4d3bfe711db50baa5bd974d
5
5
  SHA512:
6
- metadata.gz: 0011dbc5a6261195f51f58766adc0635d71f4981be53024770ba8ecbfca1367949fc69db7b84a02492bd1dd4718adad44cdcfe5c385781a0143d09e9b0df16e6
7
- data.tar.gz: f7703c90cb73b42240b236267c00b0e27b0ecf1f1c5dbffeaf980fb33cf068db73c269dc05bafe9ba07148677dd4518e8ecdc9b472bb6d73c323072ecd07fa17
6
+ metadata.gz: 65769c948bc7de0f1ec06126caf53bc6960089ee6b05093915a65c71d86aa756e75eb4e42cb6ea99b5eb22f2bebcd61388a72617ea34b9087940f48f46cf637e
7
+ data.tar.gz: 351f31f704621038b4e044da788b52874c8b1c7b922150b7fe748c153dc9666635dcf768a0929367c1dbe46c83a354c7976dac5868d97dc7d1823483cae0fb19
@@ -54,10 +54,6 @@ module Asciidoctor
54
54
  File.read(file, encoding: "UTF-8")
55
55
  end
56
56
 
57
- def relaton_relations
58
- super + %w(translated-from)
59
- end
60
-
61
57
  def doctype_validate(xmldoc)
62
58
  doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
63
59
  %w(international-standard technical-specification technical-report
@@ -1,72 +1,3 @@
1
- <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
2
- border-bottom:none;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:
3
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 0cm 4.0pt;
4
- margin-left:5.1pt;margin-right:5.1pt'>
5
-
6
- <p class="zzCopyright" align="left" style='margin-top:2.0pt;margin-right:0cm;
7
- margin-bottom:12.0pt;margin-left:0cm;text-align:left;page-break-before:always;
8
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-top-alt:
9
- solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-right-alt:
10
- solid windowtext .5pt;padding:0cm;mso-padding-alt:1.0pt 4.0pt 0cm 4.0pt'><span
11
- lang="EN-GB" style='color:windowtext'>© {{ agency }} {{ docyear }}, Published in Switzerland.<o:p></o:p></span></p>
12
-
13
- <p class="zzCopyright" style='margin-top:0cm;margin-right:0cm;margin-bottom:12.0pt;
14
- margin-left:0cm;mso-layout-grid-align:none;text-autospace:none;border:none;
15
- mso-border-left-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;
16
- padding:0cm;mso-padding-alt:0cm 4.0pt 0cm 4.0pt'><span lang="EN-GB"
17
- style='font-size:10.0pt;mso-bidi-font-size:11.0pt;color:windowtext'>All rights
18
- reserved. Unless otherwise specified, no part of this publication may be
19
- reproduced or utilized otherwise in any form or by any means, electronic or
20
- mechanical, including photocopying, or posting on the internet or an intranet,
21
- without prior written permission. Permission can be requested from either IEC
22
- at the address below or IEC’s member body in the country of the requester.<o:p></o:p></span></p>
23
-
24
- <p class="zzCopyright" style='margin:0cm;margin-bottom:.0001pt;text-indent:20.15pt;
25
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-left-alt:
26
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:0cm;
27
- mso-padding-alt:0cm 4.0pt 0cm 4.0pt'><span lang="EN-GB" style='font-size:10.0pt;
28
- mso-bidi-font-size:11.0pt;color:windowtext'>IEC Central Office<o:p></o:p></span></p>
29
-
30
- <p class="zzCopyright" style='margin:0cm;margin-bottom:.0001pt;text-indent:20.15pt;
31
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-left-alt:
32
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:0cm;
33
- mso-padding-alt:0cm 4.0pt 0cm 4.0pt'><span lang="EN-GB" style='font-size:10.0pt;
34
- mso-bidi-font-size:11.0pt;color:windowtext'>3, rue de Varembé<o:p></o:p></span></p>
35
-
36
- <p class="zzCopyright" style='margin:0cm;margin-bottom:.0001pt;text-indent:20.15pt;
37
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-left-alt:
38
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:0cm;
39
- mso-padding-alt:0cm 4.0pt 0cm 4.0pt'><span lang="EN-GB" style='font-size:10.0pt;
40
- mso-bidi-font-size:11.0pt;color:windowtext'>CH-1211 Geneva 20,
41
- Switzerland<o:p></o:p></span></p>
42
-
43
- <p class="zzCopyright" style='margin:0cm;margin-bottom:.0001pt;text-indent:20.15pt;
44
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-left-alt:
45
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:0cm;
46
- mso-padding-alt:0cm 4.0pt 0cm 4.0pt'><span lang="EN-GB" style='font-size:10.0pt;
47
- mso-bidi-font-size:11.0pt;color:windowtext'>Tel.&nbsp;&nbsp;+ 41 22 919 02 11<o:p></o:p></span></p>
48
-
49
- <p class="zzCopyright" style='margin:0cm;margin-bottom:.0001pt;text-indent:20.15pt;
50
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-left-alt:
51
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:0cm;
52
- mso-padding-alt:0cm 4.0pt 0cm 4.0pt'><span lang="EN-GB" style='font-size:10.0pt;
53
- mso-bidi-font-size:11.0pt;color:windowtext'>Fax&nbsp;&nbsp;+ 41 22 919 03 00<o:p></o:p></span></p>
54
-
55
- <p class="zzCopyright" style='margin:0cm;margin-bottom:.0001pt;text-indent:20.15pt;
56
- mso-layout-grid-align:none;text-autospace:none;border:none;mso-border-left-alt:
57
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:0cm;
58
- mso-padding-alt:0cm 4.0pt 0cm 4.0pt'><span lang="EN-GB" style='font-size:10.0pt;
59
- mso-bidi-font-size:11.0pt;color:windowtext'>info@iec.ch<o:p></o:p></span></p>
60
-
61
- <p class="zzCopyright" style='margin-top:0cm;margin-right:0cm;margin-bottom:12.0pt;
62
- margin-left:0cm;text-indent:20.15pt;mso-layout-grid-align:none;text-autospace:
63
- none;border:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:
64
- solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:0cm;
65
- mso-padding-alt:0cm 4.0pt 1.0pt 4.0pt'><span lang="EN-GB" style='font-size:10.0pt;
66
- mso-bidi-font-size:11.0pt;color:windowtext'>www.iec.ch<o:p></o:p></span></p>
67
-
68
- </div>
69
-
70
1
  <p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">Contents</span></p>
71
2
 
72
3
  WORDTOC
@@ -1,92 +1,2 @@
1
- {% if tc_docnumber %}
2
- <p class="MsoNormal" align="right" style='text-align:right'><b style='mso-bidi-font-weight:
3
- normal'><span lang="EN-GB" style='font-size:14.0pt;mso-no-proof:yes'>{{ tc_docnumber }}</span></b><b
4
- style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'><o:p></o:p></span></b></p>
5
- {% else %}
6
- <p class="MsoNormal" align="right" style='text-align:right'><b style='mso-bidi-font-weight:
7
- normal'><span lang="EN-GB" style='font-size:14.0pt;mso-no-proof:yes'>{{ docnumber }}(E) {{ draftinfo }}</span></b><b
8
- style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'><o:p></o:p></span></b></p>
9
- {% endif %}
10
-
11
- {% if revdate %}
12
- <p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB" style='mso-no-proof:yes'>Date: {{ revdate }}</span></p>
13
- {% endif %}
14
-
15
- {% if tc_docnumber %}
16
- <p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB" style='mso-no-proof:yes'>{{ docnumber }}(E) {{ draftinfo }}</span></p>
17
- {% endif %}
18
-
19
- <p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB"
20
- style='mso-no-proof:yes'>{{ agency }}/{{ editorialgroup | join: "/" }}</span></p>
21
-
22
- <p class="MsoNormal" align="right" style='margin-bottom:100.0pt;text-align:right'><span lang="EN-GB">Secretariat: <span style='mso-no-proof:yes'>{{ secretariat }}</span></span></p>
23
-
24
- <p class="MsoNormal" align="left" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;font-size:16.0pt'>
25
- <span class="title"><b>{{ doctitleintro }}{% if doctitleintro and doctitlemain %} &mdash; {% endif %}</b></span><b><span class="subtitle">{{ doctitlemain }}{% if doctitlemain and doctitlepart %} &mdash;{% endif %}</b></span>
26
- {% if doctitlepart %}
27
- </p><p class="MsoNormal" align="left" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;margin-top:6.0pt;font-size:16.0pt'>
28
- {% if doctitlepartlabel %}<span class="partlabel">{{ doctitlepartlabel }}: </span><br/>{% endif %}
29
- <span class="part"><b>{{ doctitlepart }}</b></span>
30
- {% endif %}
31
- </p>
32
-
33
- <br/>
34
- <p class="MsoNormal" align="left" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;font-size:16.0pt'>
35
- <span class="title">{{ docsubtitleintro }}{% if docsubtitleintro and docsubtitlemain %} &mdash; {% endif %}</span><span class="subtitle">{{ docsubtitlemain }}{% if docsubtitlemain and docsubtitlepart %} &mdash;{% endif %}</span>
36
- {% if docsubtitlepart %}
37
- </p><p class="MsoNormal" align="left" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;font-size:16.0pt'>
38
- <br/>
39
- {% if docsubtitlepartlabel %}<span class="partlabel">{{ docsubtitlepartlabel }}: </span><br/>{% endif %}
40
- <span class="part">{{ docsubtitlepart }}</span>
41
- {% endif %}
42
- </p>
43
-
44
-
45
-
46
-
47
- <p class="MsoNormal" style='margin-top:100.0pt'><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
48
-
49
- <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
50
- mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
51
- margin-left:4.25pt;margin-right:4.25pt'>
52
-
53
- <p class="MsoNormal" align="center" style='text-align:center;border:none;
54
- mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt'><span
55
- lang="EN-GB" style='font-size:40.0pt'>{% if unpublished %}{{ stageabbr }} stage{% endif %}<o:p></o:p></span></p>
56
-
57
- </div>
58
-
59
- <p class="MsoNormal" style='margin-bottom:6.0pt'><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
60
-
61
- {% if unpublished %}
62
-
63
- <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
64
- mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
65
- margin-left:4.25pt;margin-right:4.25pt'>
66
-
67
- <p class="MsoNormal" align="center" style='margin-bottom:6.0pt;text-align:center;
68
- border:none;mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:
69
- 1.0pt 4.0pt 1.0pt 4.0pt'><b style='mso-bidi-font-weight:normal'><span
70
- lang="EN-GB" style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>Warning for WDs
71
- and CDs<o:p></o:p></span></b></p>
72
-
73
- <p class="MsoNormal" style='margin-bottom:6.0pt;border:none;mso-border-alt:solid windowtext .5pt;
74
- padding:0cm;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt'><span lang="EN-GB"
75
- style='font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-weight:bold'>This
76
- document is not an ISO International Standard. It is distributed for review and
77
- comment. It is subject to change without notice and may not be referred to as
78
- an International Standard.<o:p></o:p></span></p>
79
-
80
- <p class="MsoNormal" style='border:none;mso-border-alt:solid windowtext .5pt;
81
- padding:0cm;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt'><span lang="EN-GB"
82
- style='font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-weight:bold'>Recipients
83
- of this draft are invited to submit, with their comments, notification of any
84
- relevant patent rights of which they are aware and to provide supporting
85
- documentation.</span><span lang="EN-GB" style='font-size:10.0pt;mso-bidi-font-size:
86
- 11.0pt'><o:p></o:p></span></p>
87
-
88
- {% endif %}
89
-
90
- </div>
91
1
 
92
2
 
@@ -159,6 +159,18 @@ module IsoDoc
159
159
  b.replace(b.children)
160
160
  end
161
161
 
162
+ def make_body1(body, _docxml)
163
+ end
164
+
165
+ def make_body2(body, docxml)
166
+ FileUtils.rm_rf tmpimagedir
167
+ FileUtils.mkdir tmpimagedir
168
+ super
169
+ end
170
+
171
+ def word_cover(docxml)
172
+ end
173
+
162
174
  include BaseConvert
163
175
  end
164
176
  end
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
6
6
 
@@ -87,7 +87,6 @@ RSpec.describe Asciidoctor::Iec do
87
87
  :title-main-fr: Titre Principal
88
88
  :title-part-fr: Part du Titre
89
89
  :library-ics: 1,2,3
90
- :translated-from: ABC 123
91
90
  INPUT
92
91
  <?xml version="1.0" encoding="UTF-8"?>
93
92
  <iso-standard xmlns="http://riboseinc.com/isoxml">
@@ -137,12 +136,6 @@ RSpec.describe Asciidoctor::Iec do
137
136
  </organization>
138
137
  </owner>
139
138
  </copyright>
140
- <relation type="translatedFrom">
141
- <bibitem>
142
- <title>--</title>
143
- <docidentifier>ABC 123</docidentifier>
144
- </bibitem>
145
- </relation>
146
139
  <ext>
147
140
  <doctype>article</doctype>
148
141
  <editorialgroup>
@@ -231,12 +231,6 @@ end
231
231
  </iso-standard>
232
232
  INPUT
233
233
  <body lang="EN-US" link="blue" vlink="#954F72">
234
- <div class="WordSection1">
235
- <p>&#160;</p>
236
- </div>
237
- <p>
238
- <br clear="all" class="section"/>
239
- </p>
240
234
  <div class="WordSection2">
241
235
  <p>
242
236
  <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
@@ -279,12 +273,6 @@ end
279
273
  </iso-standard>
280
274
  INPUT
281
275
  <body lang="EN-US" link="blue" vlink="#954F72">
282
- <div class="WordSection1">
283
- <p>&#160;</p>
284
- </div>
285
- <p>
286
- <br clear="all" class="section"/>
287
- </p>
288
276
  <div class="WordSection2">
289
277
  <p>
290
278
  <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
@@ -227,10 +227,6 @@ OUTPUT
227
227
  </iso-standard>
228
228
  INPUT
229
229
  <body lang="EN-US" link="blue" vlink="#954F72">
230
- <div class="WordSection1">
231
- <p>&#160;</p>
232
- </div>
233
- <p><br clear="all" class="section"/></p>
234
230
  <div class="WordSection2">
235
231
  <p><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
236
232
  #{IEC_TITLE}
@@ -392,10 +388,6 @@ OUTPUT
392
388
  </iso-standard>
393
389
  INPUT
394
390
  <body lang="EN-US" link="blue" vlink="#954F72">
395
- <div class="WordSection1">
396
- <p>&#160;</p>
397
- </div>
398
- <p><br clear="all" class="section"/></p>
399
391
  <div class="WordSection2">
400
392
  <p>
401
393
  <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
@@ -431,10 +423,6 @@ OUTPUT
431
423
  </iso-standard>
432
424
  INPUT
433
425
  <body lang="EN-US" link="blue" vlink="#954F72">
434
- <div class="WordSection1">
435
- <p>&#160;</p>
436
- </div>
437
- <p><br clear="all" class="section"/></p>
438
426
  <div class="WordSection2">
439
427
  <p>
440
428
  <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
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: 0.0.4
4
+ version: 0.0.5
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-09-01 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor