metanorma-iso 2.3.0 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/base_convert.rb +6 -0
- data/lib/isodoc/iso/html/isodoc-dis.css +8 -8
- data/lib/isodoc/iso/html/isodoc-dis.scss +8 -8
- data/lib/isodoc/iso/html/isodoc.css +8 -8
- data/lib/isodoc/iso/html/isodoc.scss +8 -8
- data/lib/isodoc/iso/html/style-human.css +30 -1
- data/lib/isodoc/iso/html/style-iso.css +30 -1
- data/lib/isodoc/iso/init.rb +12 -1
- data/lib/isodoc/iso/iso.amendment.xsl +277 -221
- data/lib/isodoc/iso/iso.international-standard.xsl +277 -221
- data/lib/isodoc/iso/presentation_xml_convert.rb +1 -1
- data/lib/isodoc/iso/word_cleanup.rb +4 -0
- data/lib/isodoc/iso/word_dis_cleanup.rb +14 -1
- data/lib/isodoc/iso/word_dis_convert.rb +1 -7
- data/lib/isodoc/iso/xref.rb +1 -0
- data/lib/isodoc/iso/xref_section.rb +3 -4
- data/lib/metanorma/iso/isodoc.rng +11 -1
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/relaton/render/config.yml +2 -1
- data/lib/relaton/render/general.rb +6 -0
- data/lib/relaton/render/parse.rb +20 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81070b729e77856b0d083c3be2d81856202fd3040a8fed0e62873144b9eefcec
|
4
|
+
data.tar.gz: 51d711e98ec5b9b998bf5e8efbddd2d1fafc726f2144b4a87cf6386b78d7c69e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 725b067fa1e85403afd5645149652b3047ec4bda0587ceee1da3613165c80547110c23a2225154f13ee3ed8bfe84a57f0fe5cd9e2a5b6f368e71e195877d5bb4
|
7
|
+
data.tar.gz: 1c9fede3fbdc0d623c02d247298d4dde37d96b1ac3051620f3aa167ebb2949268b5d1c3447e28533da1f48b23506b68f93a7adfdaa5c9713ba0dae065d369b6a
|
@@ -220,9 +220,9 @@ p.AnnexTableTitle, li.AnnexTableTitle, div.AnnexTableTitle {
|
|
220
220
|
text-align: center;
|
221
221
|
text-indent: 0cm;
|
222
222
|
line-height: 12.0pt;
|
223
|
-
page-break-before:
|
223
|
+
/*page-break-before:always;*/
|
224
224
|
mso-pagination: widow-orphan;
|
225
|
-
|
225
|
+
page-break-after: avoid;
|
226
226
|
/* mso-list:l4 level1 lfo15; */
|
227
227
|
tab-stops: list 0cm left 20.15pt;
|
228
228
|
font-size: {{normalfontsize}};
|
@@ -246,9 +246,9 @@ p.AnnexTableTitleCxSpFirst, li.AnnexTableTitleCxSpFirst, div.AnnexTableTitleCxSp
|
|
246
246
|
text-align: center;
|
247
247
|
text-indent: 0cm;
|
248
248
|
line-height: 12.0pt;
|
249
|
-
page-break-before:
|
249
|
+
/*page-break-before:always;*/
|
250
250
|
mso-pagination: widow-orphan;
|
251
|
-
|
251
|
+
page-break-after: avoid;
|
252
252
|
/* mso-list:l4 level1 lfo15; */
|
253
253
|
tab-stops: list 0cm left 20.15pt;
|
254
254
|
font-size: {{normalfontsize}};
|
@@ -272,9 +272,9 @@ p.AnnexTableTitleCxSpMiddle, li.AnnexTableTitleCxSpMiddle, div.AnnexTableTitleCx
|
|
272
272
|
text-align: center;
|
273
273
|
text-indent: 0cm;
|
274
274
|
line-height: 12.0pt;
|
275
|
-
page-break-before:
|
275
|
+
/*page-break-before:always;*/
|
276
276
|
mso-pagination: widow-orphan;
|
277
|
-
|
277
|
+
page-break-after: avoid;
|
278
278
|
/* mso-list:l4 level1 lfo15; */
|
279
279
|
tab-stops: list 0cm left 20.15pt;
|
280
280
|
font-size: {{normalfontsize}};
|
@@ -301,9 +301,9 @@ p.AnnexTableTitleCxSpLast, li.AnnexTableTitleCxSpLast, div.AnnexTableTitleCxSpLa
|
|
301
301
|
text-align: center;
|
302
302
|
text-indent: 0cm;
|
303
303
|
line-height: 12.0pt;
|
304
|
-
page-break-before:
|
304
|
+
/*page-break-before:always;*/
|
305
305
|
mso-pagination: widow-orphan;
|
306
|
-
|
306
|
+
page-break-after: avoid;
|
307
307
|
/* mso-list:l4 level1 lfo15; */
|
308
308
|
tab-stops: list 0cm left 20.15pt;
|
309
309
|
font-size: {{normalfontsize}};
|
@@ -209,9 +209,9 @@ p.AnnexTableTitle, li.AnnexTableTitle, div.AnnexTableTitle
|
|
209
209
|
text-align:center;
|
210
210
|
text-indent:0cm;
|
211
211
|
line-height:12.0pt;
|
212
|
-
page-break-before:always
|
212
|
+
/*page-break-before:always;*/
|
213
213
|
mso-pagination:widow-orphan;
|
214
|
-
|
214
|
+
page-break-after:avoid;
|
215
215
|
/* mso-list:l4 level1 lfo15; */
|
216
216
|
tab-stops:list 0cm left 20.15pt;
|
217
217
|
font-size:$normalfontsize;
|
@@ -234,9 +234,9 @@ p.AnnexTableTitleCxSpFirst, li.AnnexTableTitleCxSpFirst, div.AnnexTableTitleCxSp
|
|
234
234
|
text-align:center;
|
235
235
|
text-indent:0cm;
|
236
236
|
line-height:12.0pt;
|
237
|
-
page-break-before:always
|
237
|
+
/*page-break-before:always;*/
|
238
238
|
mso-pagination:widow-orphan;
|
239
|
-
|
239
|
+
page-break-after:avoid;
|
240
240
|
/* mso-list:l4 level1 lfo15; */
|
241
241
|
tab-stops:list 0cm left 20.15pt;
|
242
242
|
font-size:$normalfontsize;
|
@@ -259,9 +259,9 @@ p.AnnexTableTitleCxSpMiddle, li.AnnexTableTitleCxSpMiddle, div.AnnexTableTitleCx
|
|
259
259
|
text-align:center;
|
260
260
|
text-indent:0cm;
|
261
261
|
line-height:12.0pt;
|
262
|
-
page-break-before:always
|
262
|
+
/*page-break-before:always;*/
|
263
263
|
mso-pagination:widow-orphan;
|
264
|
-
|
264
|
+
page-break-after:avoid;
|
265
265
|
/* mso-list:l4 level1 lfo15; */
|
266
266
|
tab-stops:list 0cm left 20.15pt;
|
267
267
|
font-size:$normalfontsize;
|
@@ -287,9 +287,9 @@ p.AnnexTableTitleCxSpLast, li.AnnexTableTitleCxSpLast, div.AnnexTableTitleCxSpLa
|
|
287
287
|
text-align:center;
|
288
288
|
text-indent:0cm;
|
289
289
|
line-height:12.0pt;
|
290
|
-
page-break-before:always
|
290
|
+
/*page-break-before:always;*/
|
291
291
|
mso-pagination:widow-orphan;
|
292
|
-
|
292
|
+
page-break-after:avoid;
|
293
293
|
/* mso-list:l4 level1 lfo15; */
|
294
294
|
tab-stops:list 0cm left 20.15pt;
|
295
295
|
font-size:$normalfontsize;
|
@@ -217,9 +217,9 @@ p.AnnexTableTitle, li.AnnexTableTitle, div.AnnexTableTitle {
|
|
217
217
|
text-align: center;
|
218
218
|
text-indent: 0cm;
|
219
219
|
line-height: 12.0pt;
|
220
|
-
page-break-before:
|
220
|
+
/*page-break-before:always;*/
|
221
221
|
mso-pagination: widow-orphan;
|
222
|
-
|
222
|
+
page-break-after: avoid;
|
223
223
|
/* mso-list:l4 level1 lfo15; */
|
224
224
|
tab-stops: list 0cm left 20.15pt;
|
225
225
|
font-size: {{normalfontsize}};
|
@@ -243,9 +243,9 @@ p.AnnexTableTitleCxSpFirst, li.AnnexTableTitleCxSpFirst, div.AnnexTableTitleCxSp
|
|
243
243
|
text-align: center;
|
244
244
|
text-indent: 0cm;
|
245
245
|
line-height: 12.0pt;
|
246
|
-
page-break-before:
|
246
|
+
/*page-break-before:always;*/
|
247
247
|
mso-pagination: widow-orphan;
|
248
|
-
|
248
|
+
page-break-after: avoid;
|
249
249
|
/* mso-list:l4 level1 lfo15; */
|
250
250
|
tab-stops: list 0cm left 20.15pt;
|
251
251
|
font-size: {{normalfontsize}};
|
@@ -269,9 +269,9 @@ p.AnnexTableTitleCxSpMiddle, li.AnnexTableTitleCxSpMiddle, div.AnnexTableTitleCx
|
|
269
269
|
text-align: center;
|
270
270
|
text-indent: 0cm;
|
271
271
|
line-height: 12.0pt;
|
272
|
-
page-break-before:
|
272
|
+
/*page-break-before:always;*/
|
273
273
|
mso-pagination: widow-orphan;
|
274
|
-
|
274
|
+
page-break-after: avoid;
|
275
275
|
/* mso-list:l4 level1 lfo15; */
|
276
276
|
tab-stops: list 0cm left 20.15pt;
|
277
277
|
font-size: {{normalfontsize}};
|
@@ -298,9 +298,9 @@ p.AnnexTableTitleCxSpLast, li.AnnexTableTitleCxSpLast, div.AnnexTableTitleCxSpLa
|
|
298
298
|
text-align: center;
|
299
299
|
text-indent: 0cm;
|
300
300
|
line-height: 12.0pt;
|
301
|
-
page-break-before:
|
301
|
+
/*page-break-before:always;*/
|
302
302
|
mso-pagination: widow-orphan;
|
303
|
-
|
303
|
+
page-break-after: avoid;
|
304
304
|
/* mso-list:l4 level1 lfo15; */
|
305
305
|
tab-stops: list 0cm left 20.15pt;
|
306
306
|
font-size: {{normalfontsize}};
|
@@ -207,9 +207,9 @@ p.AnnexTableTitle, li.AnnexTableTitle, div.AnnexTableTitle
|
|
207
207
|
text-align:center;
|
208
208
|
text-indent:0cm;
|
209
209
|
line-height:12.0pt;
|
210
|
-
page-break-before:always
|
210
|
+
/*page-break-before:always;*/
|
211
211
|
mso-pagination:widow-orphan;
|
212
|
-
|
212
|
+
page-break-after:avoid;
|
213
213
|
/* mso-list:l4 level1 lfo15; */
|
214
214
|
tab-stops:list 0cm left 20.15pt;
|
215
215
|
font-size:$normalfontsize;
|
@@ -232,9 +232,9 @@ p.AnnexTableTitleCxSpFirst, li.AnnexTableTitleCxSpFirst, div.AnnexTableTitleCxSp
|
|
232
232
|
text-align:center;
|
233
233
|
text-indent:0cm;
|
234
234
|
line-height:12.0pt;
|
235
|
-
page-break-before:always
|
235
|
+
/*page-break-before:always;*/
|
236
236
|
mso-pagination:widow-orphan;
|
237
|
-
|
237
|
+
page-break-after:avoid;
|
238
238
|
/* mso-list:l4 level1 lfo15; */
|
239
239
|
tab-stops:list 0cm left 20.15pt;
|
240
240
|
font-size:$normalfontsize;
|
@@ -257,9 +257,9 @@ p.AnnexTableTitleCxSpMiddle, li.AnnexTableTitleCxSpMiddle, div.AnnexTableTitleCx
|
|
257
257
|
text-align:center;
|
258
258
|
text-indent:0cm;
|
259
259
|
line-height:12.0pt;
|
260
|
-
page-break-before:always
|
260
|
+
/*page-break-before:always;*/
|
261
261
|
mso-pagination:widow-orphan;
|
262
|
-
|
262
|
+
page-break-after:avoid;
|
263
263
|
/* mso-list:l4 level1 lfo15; */
|
264
264
|
tab-stops:list 0cm left 20.15pt;
|
265
265
|
font-size:$normalfontsize;
|
@@ -285,9 +285,9 @@ p.AnnexTableTitleCxSpLast, li.AnnexTableTitleCxSpLast, div.AnnexTableTitleCxSpLa
|
|
285
285
|
text-align:center;
|
286
286
|
text-indent:0cm;
|
287
287
|
line-height:12.0pt;
|
288
|
-
page-break-before:always
|
288
|
+
/*page-break-before:always;*/
|
289
289
|
mso-pagination:widow-orphan;
|
290
|
-
|
290
|
+
page-break-after:avoid;
|
291
291
|
/* mso-list:l4 level1 lfo15; */
|
292
292
|
tab-stops:list 0cm left 20.15pt;
|
293
293
|
font-size:$normalfontsize;
|
@@ -131,6 +131,35 @@ a.FootnoteRef + a.FootnoteRef:before {
|
|
131
131
|
color: red;
|
132
132
|
text-decoration: line-through; }
|
133
133
|
|
134
|
+
/* code highlighting with line numbers */
|
135
|
+
table.rouge-line-table td.rouge-gutter {
|
136
|
+
-moz-user-select: none;
|
137
|
+
-ms-user-select: none;
|
138
|
+
-webkit-user-select: none;
|
139
|
+
user-select: none;
|
140
|
+
padding-right: 1em; }
|
141
|
+
|
142
|
+
table.rouge-line-table td.rouge-code {
|
143
|
+
-moz-user-select: all;
|
144
|
+
-ms-user-select: all;
|
145
|
+
-webkit-user-select: all;
|
146
|
+
user-select: all; }
|
147
|
+
|
148
|
+
table.rouge-line-table,
|
149
|
+
table.rouge-line-table th,
|
150
|
+
table.rouge-line-table td {
|
151
|
+
width: auto;
|
152
|
+
border: none;
|
153
|
+
margin: 0;
|
154
|
+
padding: 0;
|
155
|
+
font-size: 100%; }
|
156
|
+
|
157
|
+
table.rouge-line-table pre {
|
158
|
+
margin: 0;
|
159
|
+
padding: 0;
|
160
|
+
overflow-x: visible;
|
161
|
+
font-size: 100%; }
|
162
|
+
|
134
163
|
#standard-band {
|
135
164
|
background-color: #0AC442; }
|
136
165
|
|
@@ -894,7 +923,7 @@ table {
|
|
894
923
|
table th, table td {
|
895
924
|
padding: 1em; }
|
896
925
|
table td.header {
|
897
|
-
font-
|
926
|
+
font-weight: 400; }
|
898
927
|
|
899
928
|
td > p:first-child, th > p:first-child {
|
900
929
|
margin-top: 0em; }
|
@@ -131,6 +131,35 @@ a.FootnoteRef + a.FootnoteRef:before {
|
|
131
131
|
color: red;
|
132
132
|
text-decoration: line-through; }
|
133
133
|
|
134
|
+
/* code highlighting with line numbers */
|
135
|
+
table.rouge-line-table td.rouge-gutter {
|
136
|
+
-moz-user-select: none;
|
137
|
+
-ms-user-select: none;
|
138
|
+
-webkit-user-select: none;
|
139
|
+
user-select: none;
|
140
|
+
padding-right: 1em; }
|
141
|
+
|
142
|
+
table.rouge-line-table td.rouge-code {
|
143
|
+
-moz-user-select: all;
|
144
|
+
-ms-user-select: all;
|
145
|
+
-webkit-user-select: all;
|
146
|
+
user-select: all; }
|
147
|
+
|
148
|
+
table.rouge-line-table,
|
149
|
+
table.rouge-line-table th,
|
150
|
+
table.rouge-line-table td {
|
151
|
+
width: auto;
|
152
|
+
border: none;
|
153
|
+
margin: 0;
|
154
|
+
padding: 0;
|
155
|
+
font-size: 100%; }
|
156
|
+
|
157
|
+
table.rouge-line-table pre {
|
158
|
+
margin: 0;
|
159
|
+
padding: 0;
|
160
|
+
overflow-x: visible;
|
161
|
+
font-size: 100%; }
|
162
|
+
|
134
163
|
#standard-band {
|
135
164
|
background-color: #0AC442; }
|
136
165
|
|
@@ -936,7 +965,7 @@ table {
|
|
936
965
|
table th, table td {
|
937
966
|
padding: 1em; }
|
938
967
|
table td.header {
|
939
|
-
font-
|
968
|
+
font-weight: 400; }
|
940
969
|
|
941
970
|
td,
|
942
971
|
th {
|
data/lib/isodoc/iso/init.rb
CHANGED
@@ -34,9 +34,20 @@ module IsoDoc
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def std_docid_semantic(id)
|
37
|
-
|
37
|
+
id.nil? and return nil
|
38
|
+
ret = Nokogiri::XML.fragment(id)
|
39
|
+
ret.traverse do |x|
|
40
|
+
x.text? or next
|
41
|
+
x.replace(std_docid_semantic1(x.text))
|
42
|
+
end
|
43
|
+
to_xml(ret)
|
44
|
+
end
|
38
45
|
|
46
|
+
def std_docid_semantic1(id)
|
39
47
|
ids = id.split(/ /)
|
48
|
+
%w(ISO IEC ITU IETF NIST OGC IEEE BIPM BSI IANA UN W3C IEV)
|
49
|
+
.include?(ids[0].sub(/\/.*$/, "")) or
|
50
|
+
return id
|
40
51
|
ids.map! do |i|
|
41
52
|
if %w(GUIDE TR TS DIR).include?(i)
|
42
53
|
"<span class='stddocNumber'>#{i}</span>"
|