metanorma-csd 1.3.11 → 1.3.12

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: 8cef6ae5953838d2c23076c9e6d0cfb14048488cee01566dc6e360e40783bbd6
4
- data.tar.gz: be0a2c8cf262d6d6eb66b309ceb2d24de0917afa2e22f943cb3886ba3f60737e
3
+ metadata.gz: '063966bb9e38798ebbd456247f1d7874eb12d187d603dde16ee710767c663786'
4
+ data.tar.gz: b2f49666df9ef4f5892ea7b88d23b94dff8312e01884bdc45b634e96ef2f0eda
5
5
  SHA512:
6
- metadata.gz: 870483cc136fd0be8922e5aa9198febd4185bfdc7b4828a61fc4cd9a2310923ec804e6c1f970ee3ec96993f779b0b4b8dc44ae187c200f9b9d88721d01e47980
7
- data.tar.gz: 7f54bbffe0f4a08fe10a56e853f4c62e1d9338a2a546465e16f4e24253d74303f9e1256bc0c1658e785f8588d8bc77eb8ac1328ef0c41100ca9e2c7de31f1f77
6
+ metadata.gz: cbbb399a89d5694514a418193bba108910859a75406c8a68aa6db0e22bcf0f773f30d7053ad3f5c233680b1aa79976d0fdb64cfd7f1479de210b355d55a2575b
7
+ data.tar.gz: 6b1fc04a9c8d19b57fa34cb2ee829f6136abbe67b38bd31b8a7e6b62407127bf093985f5b57d14e4cdaee90cf9459754ba5fc535d67b6e9770c2c563d68a0b61
@@ -10,11 +10,12 @@ require_relative "front"
10
10
 
11
11
  module Asciidoctor
12
12
  module Csd
13
- CSD_NAMESPACE = "https://www.calconnect.org/standards/csd"
14
13
 
15
14
  # A {Converter} implementation that generates CSD output, and a document
16
15
  # schema encapsulation of the document for validation
17
16
  class Converter < Standoc::Converter
17
+ XML_ROOT_TAG = "csd-standard".freeze
18
+ XML_NAMESPACE = "https://www.metanorma.com/ns/csd".freeze
18
19
 
19
20
  register_for "csd"
20
21
 
@@ -22,19 +23,6 @@ module Asciidoctor
22
23
  super
23
24
  end
24
25
 
25
- def makexml(node)
26
- result = ["<?xml version='1.0' encoding='UTF-8'?>\n<csd-standard>"]
27
- @draft = node.attributes.has_key?("draft")
28
- result << noko { |ixml| front node, ixml }
29
- result << noko { |ixml| middle node, ixml }
30
- result << "</csd-standard>"
31
- result = textcleanup(result)
32
- ret1 = cleanup(Nokogiri::XML(result))
33
- validate(ret1) unless @novalid
34
- ret1.root.add_namespace(nil, CSD_NAMESPACE)
35
- ret1
36
- end
37
-
38
26
  def document(node)
39
27
  init(node)
40
28
  ret1 = makexml(node)
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
2
+ <grammar ns="https://www.metanorma.com/ns/csd" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
3
  <!--
4
4
  default namespace = "http://riboseinc.com/csd"
5
5
  Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
@@ -583,10 +583,10 @@ div.WordSection1
583
583
  margin:39.7pt 53.85pt 1.0cm 53.85pt;
584
584
  mso-header-margin:35.45pt;
585
585
  mso-footer-margin:14.2pt;
586
- mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
587
- mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
588
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
589
- mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
586
+ mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
587
+ mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2l;
588
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2l;
589
+ mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2l;
590
590
  mso-paper-source:0;}
591
591
  @page WordSection2P
592
592
  {size:595.3pt 841.9pt;
@@ -616,10 +616,10 @@ div.WordSection2
616
616
  margin:39.7pt 53.85pt 1.0cm 53.85pt;
617
617
  mso-header-margin:35.45pt;
618
618
  mso-footer-margin:14.2pt;
619
- mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
620
- mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
621
- mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
622
- mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
619
+ mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2l;
620
+ mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2l;
621
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3l;
622
+ mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3l;
623
623
  mso-paper-source:0;}
624
624
  @page WordSection3P
625
625
  {size:595.3pt 841.9pt;
@@ -64,10 +64,8 @@ normal'><span lang=EN-GB><span style='mso-special-character:footnote-continuatio
64
64
  </div>
65
65
 
66
66
  <div style='mso-element:header' id=eh1>
67
-
68
67
  <p class=MsoHeader align=left style='text-align:left;line-height:12.0pt;
69
68
  mso-line-height-rule:exactly'><span lang=EN-GB>CC&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
70
-
71
69
  </div>
72
70
 
73
71
  <div style='mso-element:header' id=h1>
@@ -98,21 +96,26 @@ The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All
98
96
  </div>
99
97
 
100
98
  <div style='mso-element:header' id=eh2>
101
-
102
99
  <p class=MsoHeader align=left style='text-align:left;line-height:12.0pt;
103
100
  mso-line-height-rule:exactly'><span lang=EN-GB>The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
101
+ </div>
104
102
 
103
+ <div style='mso-element:header' id=eh2l>
104
+ <p class=MsoHeaderLandscape align=left style='text-align:left;line-height:12.0pt;
105
+ mso-line-height-rule:exactly'><span lang=EN-GB>The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
105
106
  </div>
106
107
 
107
108
  <div style='mso-element:header' id=h2>
108
-
109
109
  <p class=MsoHeader align=right style='text-align:right;line-height:12.0pt;
110
110
  mso-line-height-rule:exactly'><span lang=EN-GB>The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
111
+ </div>
111
112
 
113
+ <div style='mso-element:header' id=h2l>
114
+ <p class=MsoHeaderLandscape align=right style='text-align:right;line-height:12.0pt;
115
+ mso-line-height-rule:exactly'><span lang=EN-GB>The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
112
116
  </div>
113
117
 
114
118
  <div style='mso-element:footer' id=ef2>
115
-
116
119
  <p class=MsoFooter style='line-height:12.0pt;mso-line-height-rule:exactly'><!--[if supportFields]><span
117
120
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
118
121
  style='mso-element:field-begin'></span><span
@@ -125,11 +128,24 @@ style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
125
128
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span style='mso-tab-count:
126
129
  1'>                                                                                                                                                                           </span>©
127
130
  The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
131
+ </div>
128
132
 
133
+ <div style='mso-element:footer' id=ef2l>
134
+ <p class=MsoFooterLandscape style='line-height:12.0pt;mso-line-height-rule:exactly'><!--[if supportFields]><span
135
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
136
+ style='mso-element:field-begin'></span><span
137
+ style='mso-spacerun:yes'> </span>PAGE<span style='mso-spacerun:yes'>  
138
+ </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span><![endif]--><span
139
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
140
+ style='mso-no-proof:yes'>ii</span></span><!--[if supportFields]><span
141
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
142
+ style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
143
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span style='mso-tab-count:
144
+ 1'>                                                                                                                                                                           </span>©
145
+ The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
129
146
  </div>
130
147
 
131
148
  <div style='mso-element:footer' id=f2>
132
-
133
149
  <p class=MsoFooter style='line-height:12.0pt'><span lang=EN-GB
134
150
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All
135
151
  rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                          </span></span><!--[if supportFields]><span
@@ -141,11 +157,23 @@ style='mso-no-proof:yes'>iii</span></span><!--[if supportFields]><span
141
157
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
142
158
  style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
143
159
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
160
+ </div>
144
161
 
162
+ <div style='mso-element:footer' id=f2l>
163
+ <p class=MsoFooterLandscape style='line-height:12.0pt'><span lang=EN-GB
164
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All
165
+ rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                          </span></span><!--[if supportFields]><span
166
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
167
+ style='mso-element:field-begin'></span> PAGE<span style='mso-spacerun:yes'>  
168
+ </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span><![endif]--><span
169
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
170
+ style='mso-no-proof:yes'>iii</span></span><!--[if supportFields]><span
171
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
172
+ style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
173
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
145
174
  </div>
146
175
 
147
176
  <div style='mso-element:footer' id=ef3>
148
-
149
177
  <p class=MsoFooter style='margin-top:12.0pt;line-height:12.0pt;mso-line-height-rule:
150
178
  exactly'><!--[if supportFields]><b style='mso-bidi-font-weight:normal'><span
151
179
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
@@ -159,11 +187,25 @@ mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b
159
187
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
160
188
  style='mso-tab-count:1'>                                                                                                                                                                           </span>©
161
189
  The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
190
+ </div>
162
191
 
192
+ <div style='mso-element:footer' id=ef3l>
193
+ <p class=MsoFooterLandscape style='margin-top:12.0pt;line-height:12.0pt;mso-line-height-rule:
194
+ exactly'><!--[if supportFields]><b style='mso-bidi-font-weight:normal'><span
195
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
196
+ style='mso-element:field-begin'></span><span
197
+ style='mso-spacerun:yes'> </span>PAGE<span style='mso-spacerun:yes'>  
198
+ </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span></b><![endif]--><b
199
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
200
+ mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>2</span></span></b><!--[if supportFields]><b
201
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
202
+ mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
203
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
204
+ style='mso-tab-count:1'>                                                                                                                                                                           </span>©
205
+ The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
163
206
  </div>
164
207
 
165
208
  <div style='mso-element:footer' id=f3>
166
-
167
209
  <p class=MsoFooter style='line-height:12.0pt'><span lang=EN-GB
168
210
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All
169
211
  rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                           </span></span><!--[if supportFields]><b
@@ -176,7 +218,21 @@ mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>3</span></span></b><!-
176
218
  style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
177
219
  mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
178
220
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
221
+ </div>
179
222
 
223
+ <div style='mso-element:footer' id=f3l>
224
+ <p class=MsoFooterLandscape style='line-height:12.0pt'><span lang=EN-GB
225
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© The Calendaring and Scheduling Consortium, Inc.&nbsp;{{ docyear }}&nbsp;– All
226
+ rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                           </span></span><!--[if supportFields]><b
227
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
228
+ mso-bidi-font-size:11.0pt'><span style='mso-element:field-begin'></span>
229
+ PAGE<span style='mso-spacerun:yes'>   </span>\* MERGEFORMAT <span
230
+ style='mso-element:field-separator'></span></span></b><![endif]--><b
231
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
232
+ mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>3</span></span></b><!--[if supportFields]><b
233
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
234
+ mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
235
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
180
236
  </div>
181
237
 
182
238
  </body>
@@ -158,6 +158,17 @@ p.MsoHeader, li.MsoHeader, div.MsoHeader
158
158
  mso-fareast-font-family:"Times New Roman";
159
159
  mso-ansi-language:EN-US;
160
160
  mso-fareast-language:EN-US;}
161
+ p.MsoHeaderLandscape, li.MsoHeaderLandscape, div.MsoHeaderLandscape
162
+ {mso-style-unhide:no;
163
+ margin:0cm;
164
+ margin-bottom:.0001pt;
165
+ mso-pagination:widow-orphan;
166
+ tab-stops:center 367.0pt right 734.0pt;
167
+ font-size:10.5pt;
168
+ font-family:$bodyfont;
169
+ mso-fareast-font-family:"Times New Roman";
170
+ mso-ansi-language:EN-US;
171
+ mso-fareast-language:EN-US;}
161
172
  p.MsoFooter, li.MsoFooter, div.MsoFooter
162
173
  {mso-style-unhide:no;
163
174
  margin:0cm;
@@ -169,6 +180,17 @@ p.MsoFooter, li.MsoFooter, div.MsoFooter
169
180
  mso-fareast-font-family:"Times New Roman";
170
181
  mso-ansi-language:EN-US;
171
182
  mso-fareast-language:EN-US;}
183
+ p.MsoFooterLandscape, li.MsoFooterLandscape, div.MsoFooterLandscape
184
+ {mso-style-unhide:no;
185
+ margin:0cm;
186
+ margin-bottom:.0001pt;
187
+ mso-pagination:widow-orphan;
188
+ tab-stops:right 734.0pt;
189
+ font-size:10.5pt;
190
+ font-family:$bodyfont;
191
+ mso-fareast-font-family:"Times New Roman";
192
+ mso-ansi-language:EN-US;
193
+ mso-fareast-language:EN-US;}
172
194
  span.MsoCommentReference
173
195
  {mso-style-noshow:yes;
174
196
  mso-style-unhide:no;
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csd
3
- VERSION = "1.3.11"
3
+ VERSION = "1.3.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.11
4
+ version: 1.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-30 00:00:00.000000000 Z
11
+ date: 2020-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc