metanorma-csa 1.9.3 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +4 -32
- data/.gitignore +3 -0
- data/bin/console +1 -1
- data/lib/isodoc/csa/csa.standard.xsl +1589 -1259
- data/lib/isodoc/csa/html/htmlstyle.css +39 -26
- data/lib/isodoc/csa/html/htmlstyle.scss +17 -11
- data/lib/isodoc/csa/html/scripts.html +0 -1
- data/lib/isodoc/csa/html/wordstyle.css +30 -18
- data/lib/isodoc/csa/html/wordstyle.scss +30 -18
- data/lib/{asciidoctor → metanorma}/csa/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/csa/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/csa/boilerplate.xml +0 -0
- data/lib/{asciidoctor → metanorma}/csa/converter.rb +3 -3
- data/lib/{asciidoctor → metanorma}/csa/csa.rng +0 -0
- data/lib/{asciidoctor → metanorma}/csa/isodoc.rng +20 -2
- data/lib/{asciidoctor → metanorma}/csa/reqt.rng +0 -0
- data/lib/metanorma/csa/version.rb +1 -1
- data/lib/metanorma-csa.rb +1 -1
- data/metanorma-csa.gemspec +1 -1
- data/metanorma.yml +1 -1
- metadata +12 -13
- data/lib/asciidoctor/csa.rb +0 -5
@@ -75,6 +75,12 @@ code *, pre *, tt *, kbd *, samp * {
|
|
75
75
|
font-family: {{monospacefont}} !important;
|
76
76
|
font-variant-ligatures: none; }
|
77
77
|
|
78
|
+
p code, dt code, li code, label code, legend code, caption code, th code, td code,
|
79
|
+
p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
|
80
|
+
p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
|
81
|
+
p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
|
82
|
+
font-size: {{monospacefontsize}}; }
|
83
|
+
|
78
84
|
article, aside, details, figcaption, figure,
|
79
85
|
footer, header, hgroup, menu, nav, section {
|
80
86
|
display: block; }
|
@@ -86,6 +92,9 @@ table {
|
|
86
92
|
h1, h2, h3, h4, h5, h6 {
|
87
93
|
font-family: {{headerfont}}; }
|
88
94
|
|
95
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
96
|
+
font-family: {{headerfont}}; }
|
97
|
+
|
89
98
|
blockquote, q {
|
90
99
|
quotes: none; }
|
91
100
|
blockquote:before, blockquote:after, q:before, q:after {
|
@@ -239,51 +248,55 @@ body {
|
|
239
248
|
main {
|
240
249
|
margin: 0 3em 0 6em; }
|
241
250
|
|
242
|
-
#toc {
|
251
|
+
#toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
243
252
|
font-family: {{bodyfont}};
|
244
253
|
font-weight: 400; }
|
245
|
-
#toc ul {
|
254
|
+
#toc ul, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
|
246
255
|
margin: 0;
|
247
256
|
padding: 0;
|
248
257
|
list-style: none; }
|
249
|
-
#toc ul li a {
|
258
|
+
#toc ul li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul li a {
|
250
259
|
padding: 5px 10px; }
|
251
|
-
#toc ul a {
|
260
|
+
#toc ul a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a {
|
252
261
|
color: #4D7EA5;
|
253
262
|
text-decoration: none;
|
254
263
|
display: block; }
|
255
|
-
#toc ul a:hover {
|
264
|
+
#toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
|
256
265
|
box-shadow: none;
|
257
266
|
color: #4D7EA5; }
|
258
|
-
#toc .h2 {
|
267
|
+
#toc .h2, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h2 {
|
259
268
|
padding-left: 30px; }
|
260
|
-
#toc .h3 {
|
269
|
+
#toc .h3, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
|
261
270
|
padding-left: 50px; }
|
262
|
-
#toc .toc-active, #toc li:hover {
|
271
|
+
#toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
|
263
272
|
background: #4D7EA5;
|
264
273
|
box-shadow: inset -5px 0px 10px -5px #4D7EA5 !important; }
|
265
|
-
#toc .toc-active a, #toc li:hover a {
|
274
|
+
#toc .toc-active a, #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
|
266
275
|
color: #4D7EA5; }
|
267
276
|
@media print {
|
268
|
-
#toc .toc-active, #toc li:hover {
|
277
|
+
#toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
|
269
278
|
background: white;
|
270
279
|
box-shadow: none !important; }
|
271
|
-
#toc .toc-active a {
|
280
|
+
#toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
|
272
281
|
color: #4D7EA5; }
|
273
|
-
#toc li:hover a {
|
282
|
+
#toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
|
274
283
|
color: black; } }
|
275
284
|
@media screen and (max-width: 768px) {
|
276
|
-
#toc {
|
285
|
+
#toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
277
286
|
padding: 0 1.5em;
|
278
287
|
overflow: visible; } }
|
279
|
-
#toc .toc-active a {
|
288
|
+
#toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
|
280
289
|
color: white; }
|
281
|
-
#toc li a {
|
290
|
+
#toc li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li a {
|
282
291
|
text-transform: none; }
|
283
|
-
#toc ul a:hover {
|
292
|
+
#toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
|
284
293
|
box-shadow: none;
|
285
294
|
color: white; }
|
286
295
|
|
296
|
+
#toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
297
|
+
margin-top: 0;
|
298
|
+
margin-bottom: 0; }
|
299
|
+
|
287
300
|
li {
|
288
301
|
margin-left: 1em;
|
289
302
|
list-style-position: outside; }
|
@@ -344,7 +357,7 @@ li {
|
|
344
357
|
display: none; }
|
345
358
|
h1.toc-contents {
|
346
359
|
margin-top: 1em; }
|
347
|
-
ul#toc-list {
|
360
|
+
ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
348
361
|
padding: 0;
|
349
362
|
margin: 0; } }
|
350
363
|
|
@@ -506,7 +519,7 @@ dt {
|
|
506
519
|
/*
|
507
520
|
3.1 Titles
|
508
521
|
*/
|
509
|
-
h1, h2, h3, h4, h5, h6 {
|
522
|
+
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
|
510
523
|
font-family: {{headerfont}};
|
511
524
|
line-height: 1.2em;
|
512
525
|
color: black;
|
@@ -514,18 +527,18 @@ h1, h2, h3, h4, h5, h6 {
|
|
514
527
|
margin-top: 1.5em;
|
515
528
|
margin-bottom: 0.3em; }
|
516
529
|
|
517
|
-
h1 {
|
530
|
+
h1, .h1 {
|
518
531
|
font-size: 1.8em;
|
519
532
|
text-transform: uppercase;
|
520
533
|
/* margin-top: 2em;*/ }
|
521
534
|
|
522
|
-
h1#content {
|
535
|
+
h1#content, #content.h1 {
|
523
536
|
margin-top: 2em; }
|
524
537
|
|
525
|
-
h2 {
|
538
|
+
h2, .h2 {
|
526
539
|
font-size: 1.6em; }
|
527
540
|
|
528
|
-
h3 {
|
541
|
+
h3, .h3 {
|
529
542
|
font-size: 1.5em; }
|
530
543
|
|
531
544
|
/*
|
@@ -604,7 +617,7 @@ ul, ol {
|
|
604
617
|
margin: 2em 0; }
|
605
618
|
|
606
619
|
/*
|
607
|
-
h2 p {
|
620
|
+
h2 p,.h2 p {
|
608
621
|
display: inline;
|
609
622
|
}
|
610
623
|
*/
|
@@ -964,7 +977,7 @@ img.csa-logo {
|
|
964
977
|
color: white;
|
965
978
|
text-transform: uppercase; }
|
966
979
|
|
967
|
-
.section-title h1 {
|
980
|
+
.section-title h1, .section-title .h1 {
|
968
981
|
font-size: 2em;
|
969
982
|
font-weight: 800;
|
970
983
|
line-height: 1em;
|
@@ -973,11 +986,11 @@ img.csa-logo {
|
|
973
986
|
color: white;
|
974
987
|
text-transform: none; }
|
975
988
|
|
976
|
-
h2 {
|
989
|
+
h2, .h2 {
|
977
990
|
border-bottom: solid 1px #4D7EA5;
|
978
991
|
color: #4D7EA5; }
|
979
992
|
|
980
|
-
h3, h4, h5, h6 {
|
993
|
+
h3, h4, h5, h6, .h3, .h4, .h5, .h6 {
|
981
994
|
color: #EE9C4F; }
|
982
995
|
|
983
996
|
/*
|
@@ -18,7 +18,7 @@ main {
|
|
18
18
|
margin: 0 3em 0 6em;
|
19
19
|
}
|
20
20
|
|
21
|
-
#toc {
|
21
|
+
#toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
22
22
|
@include toc(#4D7EA5, #4D7EA5, #4D7EA5);
|
23
23
|
@include sidebarToc();
|
24
24
|
|
@@ -38,6 +38,12 @@ main {
|
|
38
38
|
}
|
39
39
|
}
|
40
40
|
|
41
|
+
#toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
42
|
+
margin-top: 0;
|
43
|
+
margin-bottom: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
41
47
|
li {
|
42
48
|
margin-left: 1em;
|
43
49
|
list-style-position: outside;
|
@@ -68,7 +74,7 @@ nav {
|
|
68
74
|
margin-top: 1em;
|
69
75
|
}
|
70
76
|
|
71
|
-
ul#toc-list {
|
77
|
+
ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
72
78
|
padding: 0;
|
73
79
|
margin: 0;
|
74
80
|
}
|
@@ -186,7 +192,7 @@ dt {
|
|
186
192
|
3.1 Titles
|
187
193
|
*/
|
188
194
|
|
189
|
-
h1,h2,h3,h4,h5,h6 {
|
195
|
+
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
|
190
196
|
font-family: $headerfont;
|
191
197
|
line-height: 1.2em;
|
192
198
|
color: black;
|
@@ -195,21 +201,21 @@ h1,h2,h3,h4,h5,h6 {
|
|
195
201
|
margin-bottom: 0.3em;
|
196
202
|
}
|
197
203
|
|
198
|
-
h1 {
|
204
|
+
h1,.h1 {
|
199
205
|
font-size: 1.8em;
|
200
206
|
text-transform: uppercase;
|
201
207
|
/* margin-top: 2em;*/
|
202
208
|
}
|
203
209
|
|
204
|
-
h1#content {
|
210
|
+
h1#content,.h1#content {
|
205
211
|
margin-top: 2em;
|
206
212
|
}
|
207
213
|
|
208
|
-
h2 {
|
214
|
+
h2,.h2 {
|
209
215
|
font-size: 1.6em;
|
210
216
|
}
|
211
217
|
|
212
|
-
h3 {
|
218
|
+
h3,.h3 {
|
213
219
|
font-size: 1.5em;
|
214
220
|
}
|
215
221
|
/*
|
@@ -283,7 +289,7 @@ ul, ol {
|
|
283
289
|
@include rule(1px, #00427e)
|
284
290
|
}
|
285
291
|
/*
|
286
|
-
h2 p {
|
292
|
+
h2 p,.h2 p {
|
287
293
|
display: inline;
|
288
294
|
}
|
289
295
|
*/
|
@@ -663,7 +669,7 @@ img.csa-logo {
|
|
663
669
|
text-transform: uppercase;
|
664
670
|
}
|
665
671
|
|
666
|
-
.section-title h1 {
|
672
|
+
.section-title h1, .section-title .h1 {
|
667
673
|
font-size: 2em;
|
668
674
|
font-weight: 800;
|
669
675
|
line-height: 1em;
|
@@ -673,12 +679,12 @@ img.csa-logo {
|
|
673
679
|
text-transform: none;
|
674
680
|
}
|
675
681
|
|
676
|
-
h2 {
|
682
|
+
h2,.h2 {
|
677
683
|
border-bottom: solid 1px #4D7EA5;
|
678
684
|
color: #4D7EA5;
|
679
685
|
}
|
680
686
|
|
681
|
-
h3, h4, h5, h6 {
|
687
|
+
h3, h4, h5, h6, .h3, .h4, .h5, .h6 {
|
682
688
|
color: #EE9C4F;
|
683
689
|
}
|
684
690
|
|
@@ -370,7 +370,7 @@ span.blackgraphtx {
|
|
370
370
|
div.figure, p.figure {
|
371
371
|
text-align: center; }
|
372
372
|
|
373
|
-
h1 {
|
373
|
+
h1, .h1 {
|
374
374
|
mso-style-priority: 1;
|
375
375
|
mso-style-unhide: no;
|
376
376
|
mso-style-qformat: yes;
|
@@ -385,8 +385,6 @@ h1 {
|
|
385
385
|
line-height: 13.5pt;
|
386
386
|
mso-pagination: widow-orphan;
|
387
387
|
page-break-after: avoid;
|
388
|
-
mso-outline-level: 1;
|
389
|
-
mso-list: l1 level1 lfo6;
|
390
388
|
mso-hyphenate: none;
|
391
389
|
tab-stops: 20.0pt list 21.6pt left 28.0pt;
|
392
390
|
font-size: 13.0pt;
|
@@ -399,6 +397,10 @@ h1 {
|
|
399
397
|
mso-fareast-language: JA;
|
400
398
|
mso-bidi-font-weight: normal; }
|
401
399
|
|
400
|
+
h1 {
|
401
|
+
mso-outline-level: 1;
|
402
|
+
mso-list: l1 level1 lfo6; }
|
403
|
+
|
402
404
|
h1.Annex {
|
403
405
|
mso-style-priority: 1;
|
404
406
|
mso-style-unhide: no;
|
@@ -457,7 +459,7 @@ h1.Annex {
|
|
457
459
|
mso-fareast-language: JA;
|
458
460
|
mso-bidi-font-weight: normal; }
|
459
461
|
|
460
|
-
h2 {
|
462
|
+
h2, .h2 {
|
461
463
|
mso-style-priority: 2;
|
462
464
|
mso-style-unhide: no;
|
463
465
|
mso-style-qformat: yes;
|
@@ -473,8 +475,6 @@ h2 {
|
|
473
475
|
line-height: 12.5pt;
|
474
476
|
mso-pagination: widow-orphan;
|
475
477
|
page-break-after: avoid;
|
476
|
-
mso-outline-level: 2;
|
477
|
-
mso-list: l1 level2 lfo6;
|
478
478
|
mso-hyphenate: none;
|
479
479
|
tab-stops: 27.0pt 35.0pt;
|
480
480
|
font-size: 12.0pt;
|
@@ -486,7 +486,11 @@ h2 {
|
|
486
486
|
mso-fareast-language: JA;
|
487
487
|
mso-bidi-font-weight: normal; }
|
488
488
|
|
489
|
-
|
489
|
+
h2 {
|
490
|
+
mso-outline-level: 2;
|
491
|
+
mso-list: l1 level2 lfo6; }
|
492
|
+
|
493
|
+
h3, .h3 {
|
490
494
|
mso-style-priority: 3;
|
491
495
|
mso-style-unhide: no;
|
492
496
|
mso-style-qformat: yes;
|
@@ -502,8 +506,6 @@ h3 {
|
|
502
506
|
line-height: 12.0pt;
|
503
507
|
mso-pagination: widow-orphan;
|
504
508
|
page-break-after: avoid;
|
505
|
-
mso-outline-level: 3;
|
506
|
-
mso-list: l1 level3 lfo6;
|
507
509
|
mso-hyphenate: none;
|
508
510
|
tab-stops: list 36.0pt left 44.0pt;
|
509
511
|
font-size: 11.0pt;
|
@@ -514,7 +516,11 @@ h3 {
|
|
514
516
|
mso-fareast-language: JA;
|
515
517
|
mso-bidi-font-weight: normal; }
|
516
518
|
|
517
|
-
|
519
|
+
h3 {
|
520
|
+
mso-outline-level: 3;
|
521
|
+
mso-list: l1 level3 lfo6; }
|
522
|
+
|
523
|
+
h4, .h4 {
|
518
524
|
mso-style-priority: 4;
|
519
525
|
mso-style-unhide: no;
|
520
526
|
mso-style-qformat: yes;
|
@@ -530,8 +536,6 @@ h4 {
|
|
530
536
|
line-height: 12.0pt;
|
531
537
|
mso-pagination: widow-orphan;
|
532
538
|
page-break-after: avoid;
|
533
|
-
mso-outline-level: 4;
|
534
|
-
mso-list: l1 level4 lfo6;
|
535
539
|
mso-hyphenate: none;
|
536
540
|
tab-stops: 51.05pt 57.0pt 68.0pt;
|
537
541
|
font-size: 11.0pt;
|
@@ -542,7 +546,11 @@ h4 {
|
|
542
546
|
mso-fareast-language: JA;
|
543
547
|
mso-bidi-font-weight: normal; }
|
544
548
|
|
545
|
-
|
549
|
+
h4 {
|
550
|
+
mso-outline-level: 4;
|
551
|
+
mso-list: l1 level4 lfo6; }
|
552
|
+
|
553
|
+
h5, .h5 {
|
546
554
|
mso-style-priority: 5;
|
547
555
|
mso-style-unhide: no;
|
548
556
|
mso-style-qformat: yes;
|
@@ -558,8 +566,6 @@ h5 {
|
|
558
566
|
line-height: 12.0pt;
|
559
567
|
mso-pagination: widow-orphan;
|
560
568
|
page-break-after: avoid;
|
561
|
-
mso-outline-level: 5;
|
562
|
-
mso-list: l1 level5 lfo6;
|
563
569
|
mso-hyphenate: none;
|
564
570
|
tab-stops: 51.05pt list 54.0pt;
|
565
571
|
font-size: 11.0pt;
|
@@ -570,7 +576,11 @@ h5 {
|
|
570
576
|
mso-fareast-language: JA;
|
571
577
|
mso-bidi-font-weight: normal; }
|
572
578
|
|
573
|
-
|
579
|
+
h5 {
|
580
|
+
mso-outline-level: 5;
|
581
|
+
mso-list: l1 level5 lfo6; }
|
582
|
+
|
583
|
+
h6, .h6 {
|
574
584
|
mso-style-priority: 6;
|
575
585
|
mso-style-unhide: no;
|
576
586
|
mso-style-qformat: yes;
|
@@ -586,8 +596,6 @@ h6 {
|
|
586
596
|
line-height: 12.0pt;
|
587
597
|
mso-pagination: widow-orphan;
|
588
598
|
page-break-after: avoid;
|
589
|
-
mso-outline-level: 6;
|
590
|
-
mso-list: l1 level6 lfo6;
|
591
599
|
mso-hyphenate: none;
|
592
600
|
tab-stops: 51.05pt list 72.0pt;
|
593
601
|
font-size: 11.0pt;
|
@@ -598,6 +606,10 @@ h6 {
|
|
598
606
|
mso-fareast-language: JA;
|
599
607
|
mso-bidi-font-weight: normal; }
|
600
608
|
|
609
|
+
h6 {
|
610
|
+
mso-outline-level: 6;
|
611
|
+
mso-list: l1 level6 lfo6; }
|
612
|
+
|
601
613
|
p.MsoToc1, li.MsoToc1, div.MsoToc1 {
|
602
614
|
mso-style-priority: 39;
|
603
615
|
mso-style-unhide: no;
|
@@ -340,7 +340,7 @@ div.figure, p.figure
|
|
340
340
|
|
341
341
|
|
342
342
|
|
343
|
-
h1
|
343
|
+
h1, .h1
|
344
344
|
{mso-style-priority:1;
|
345
345
|
mso-style-unhide:no;
|
346
346
|
mso-style-qformat:yes;
|
@@ -355,8 +355,6 @@ h1
|
|
355
355
|
line-height:13.5pt;
|
356
356
|
mso-pagination:widow-orphan;
|
357
357
|
page-break-after:avoid;
|
358
|
-
mso-outline-level:1;
|
359
|
-
mso-list:l1 level1 lfo6;
|
360
358
|
mso-hyphenate:none;
|
361
359
|
tab-stops:20.0pt list 21.6pt left 28.0pt;
|
362
360
|
font-size:13.0pt;
|
@@ -368,6 +366,10 @@ h1
|
|
368
366
|
mso-ansi-language:EN-GB;
|
369
367
|
mso-fareast-language:JA;
|
370
368
|
mso-bidi-font-weight:normal;}
|
369
|
+
h1 {
|
370
|
+
mso-outline-level:1;
|
371
|
+
mso-list:l1 level1 lfo6;
|
372
|
+
}
|
371
373
|
h1.Annex
|
372
374
|
{mso-style-priority:1;
|
373
375
|
mso-style-unhide:no;
|
@@ -424,7 +426,7 @@ h1.Annex
|
|
424
426
|
mso-ansi-language:EN-GB;
|
425
427
|
mso-fareast-language:JA;
|
426
428
|
mso-bidi-font-weight:normal;}
|
427
|
-
h2
|
429
|
+
h2, .h2
|
428
430
|
{mso-style-priority:2;
|
429
431
|
mso-style-unhide:no;
|
430
432
|
mso-style-qformat:yes;
|
@@ -440,8 +442,6 @@ h2
|
|
440
442
|
line-height:12.5pt;
|
441
443
|
mso-pagination:widow-orphan;
|
442
444
|
page-break-after:avoid;
|
443
|
-
mso-outline-level:2;
|
444
|
-
mso-list:l1 level2 lfo6;
|
445
445
|
mso-hyphenate:none;
|
446
446
|
tab-stops:27.0pt 35.0pt;
|
447
447
|
font-size:12.0pt;
|
@@ -452,7 +452,11 @@ h2
|
|
452
452
|
mso-ansi-language:EN-GB;
|
453
453
|
mso-fareast-language:JA;
|
454
454
|
mso-bidi-font-weight:normal;}
|
455
|
-
|
455
|
+
h2 {
|
456
|
+
mso-outline-level:2;
|
457
|
+
mso-list:l1 level2 lfo6;
|
458
|
+
}
|
459
|
+
h3, .h3
|
456
460
|
{mso-style-priority:3;
|
457
461
|
mso-style-unhide:no;
|
458
462
|
mso-style-qformat:yes;
|
@@ -468,8 +472,6 @@ h3
|
|
468
472
|
line-height:12.0pt;
|
469
473
|
mso-pagination:widow-orphan;
|
470
474
|
page-break-after:avoid;
|
471
|
-
mso-outline-level:3;
|
472
|
-
mso-list:l1 level3 lfo6;
|
473
475
|
mso-hyphenate:none;
|
474
476
|
tab-stops:list 36.0pt left 44.0pt;
|
475
477
|
font-size:11.0pt;
|
@@ -479,7 +481,11 @@ h3
|
|
479
481
|
mso-ansi-language:EN-GB;
|
480
482
|
mso-fareast-language:JA;
|
481
483
|
mso-bidi-font-weight:normal;}
|
482
|
-
|
484
|
+
h3 {
|
485
|
+
mso-outline-level:3;
|
486
|
+
mso-list:l1 level3 lfo6;
|
487
|
+
}
|
488
|
+
h4, .h4
|
483
489
|
{mso-style-priority:4;
|
484
490
|
mso-style-unhide:no;
|
485
491
|
mso-style-qformat:yes;
|
@@ -495,8 +501,6 @@ h4
|
|
495
501
|
line-height:12.0pt;
|
496
502
|
mso-pagination:widow-orphan;
|
497
503
|
page-break-after:avoid;
|
498
|
-
mso-outline-level:4;
|
499
|
-
mso-list:l1 level4 lfo6;
|
500
504
|
mso-hyphenate:none;
|
501
505
|
tab-stops:51.05pt 57.0pt 68.0pt;
|
502
506
|
font-size:11.0pt;
|
@@ -506,7 +510,11 @@ h4
|
|
506
510
|
mso-ansi-language:EN-GB;
|
507
511
|
mso-fareast-language:JA;
|
508
512
|
mso-bidi-font-weight:normal;}
|
509
|
-
|
513
|
+
h4 {
|
514
|
+
mso-outline-level:4;
|
515
|
+
mso-list:l1 level4 lfo6;
|
516
|
+
}
|
517
|
+
h5, .h5
|
510
518
|
{mso-style-priority:5;
|
511
519
|
mso-style-unhide:no;
|
512
520
|
mso-style-qformat:yes;
|
@@ -522,8 +530,6 @@ h5
|
|
522
530
|
line-height:12.0pt;
|
523
531
|
mso-pagination:widow-orphan;
|
524
532
|
page-break-after:avoid;
|
525
|
-
mso-outline-level:5;
|
526
|
-
mso-list:l1 level5 lfo6;
|
527
533
|
mso-hyphenate:none;
|
528
534
|
tab-stops:51.05pt list 54.0pt;
|
529
535
|
font-size:11.0pt;
|
@@ -533,7 +539,11 @@ h5
|
|
533
539
|
mso-ansi-language:EN-GB;
|
534
540
|
mso-fareast-language:JA;
|
535
541
|
mso-bidi-font-weight:normal;}
|
536
|
-
|
542
|
+
h5 {
|
543
|
+
mso-outline-level:5;
|
544
|
+
mso-list:l1 level5 lfo6;
|
545
|
+
}
|
546
|
+
h6, .h6
|
537
547
|
{mso-style-priority:6;
|
538
548
|
mso-style-unhide:no;
|
539
549
|
mso-style-qformat:yes;
|
@@ -549,8 +559,6 @@ h6
|
|
549
559
|
line-height:12.0pt;
|
550
560
|
mso-pagination:widow-orphan;
|
551
561
|
page-break-after:avoid;
|
552
|
-
mso-outline-level:6;
|
553
|
-
mso-list:l1 level6 lfo6;
|
554
562
|
mso-hyphenate:none;
|
555
563
|
tab-stops:51.05pt list 72.0pt;
|
556
564
|
font-size:11.0pt;
|
@@ -560,6 +568,10 @@ h6
|
|
560
568
|
mso-ansi-language:EN-GB;
|
561
569
|
mso-fareast-language:JA;
|
562
570
|
mso-bidi-font-weight:normal;}
|
571
|
+
h6 {
|
572
|
+
mso-outline-level:6;
|
573
|
+
mso-list:l1 level6 lfo6;
|
574
|
+
}
|
563
575
|
p.MsoToc1, li.MsoToc1, div.MsoToc1
|
564
576
|
{mso-style-priority:39;
|
565
577
|
mso-style-unhide:no;
|
File without changes
|
File without changes
|
File without changes
|
@@ -9,9 +9,9 @@ require "isodoc/csa/presentation_xml_convert"
|
|
9
9
|
require "metanorma/csa"
|
10
10
|
require "fileutils"
|
11
11
|
|
12
|
-
module
|
12
|
+
module Metanorma
|
13
13
|
module Csa
|
14
|
-
class Converter < ::
|
14
|
+
class Converter < ::Metanorma::Generic::Converter
|
15
15
|
XML_ROOT_TAG = "csa-standard"
|
16
16
|
XML_NAMESPACE = "https://www.metanorma.org/ns/csa"
|
17
17
|
|
@@ -91,7 +91,7 @@ module Asciidoctor
|
|
91
91
|
def pdf_converter(node)
|
92
92
|
return if node.attr("no-pdf")
|
93
93
|
|
94
|
-
IsoDoc::Csa::PdfConvert.new(
|
94
|
+
IsoDoc::Csa::PdfConvert.new(pdf_extract_attributes(node))
|
95
95
|
end
|
96
96
|
|
97
97
|
def doc_converter(node)
|
File without changes
|
@@ -1796,6 +1796,20 @@
|
|
1796
1796
|
<data type="ID"/>
|
1797
1797
|
</attribute>
|
1798
1798
|
</optional>
|
1799
|
+
<optional>
|
1800
|
+
<attribute name="language"/>
|
1801
|
+
</optional>
|
1802
|
+
<optional>
|
1803
|
+
<attribute name="script"/>
|
1804
|
+
</optional>
|
1805
|
+
<optional>
|
1806
|
+
<attribute name="tag"/>
|
1807
|
+
</optional>
|
1808
|
+
<optional>
|
1809
|
+
<attribute name="multilingual-rendering">
|
1810
|
+
<ref name="MultilingualRenderingType"/>
|
1811
|
+
</attribute>
|
1812
|
+
</optional>
|
1799
1813
|
<oneOrMore>
|
1800
1814
|
<ref name="preferred"/>
|
1801
1815
|
</oneOrMore>
|
@@ -1959,7 +1973,11 @@
|
|
1959
1973
|
</optional>
|
1960
1974
|
<element name="name">
|
1961
1975
|
<zeroOrMore>
|
1962
|
-
<
|
1976
|
+
<choice>
|
1977
|
+
<ref name="PureTextElement"/>
|
1978
|
+
<ref name="stem"/>
|
1979
|
+
<ref name="index"/>
|
1980
|
+
</choice>
|
1963
1981
|
</zeroOrMore>
|
1964
1982
|
</element>
|
1965
1983
|
<optional>
|
@@ -1973,7 +1991,7 @@
|
|
1973
1991
|
</element>
|
1974
1992
|
</optional>
|
1975
1993
|
<optional>
|
1976
|
-
<element name="grammar
|
1994
|
+
<element name="grammar">
|
1977
1995
|
<ref name="Grammar"/>
|
1978
1996
|
</element>
|
1979
1997
|
</optional>
|
File without changes
|
data/lib/metanorma-csa.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'asciidoctor' unless defined? Asciidoctor::Converter
|
2
|
-
require_relative '
|
2
|
+
require_relative 'metanorma/csa/converter'
|
3
3
|
require_relative 'isodoc/csa/html_convert'
|
4
4
|
require_relative 'isodoc/csa/pdf_convert'
|
5
5
|
require_relative 'isodoc/csa/word_convert'
|
data/metanorma-csa.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
30
30
|
|
31
|
-
spec.add_dependency "metanorma-generic", "~>
|
31
|
+
spec.add_dependency "metanorma-generic", "~> 2.0.0"
|
32
32
|
|
33
33
|
spec.add_development_dependency "debug"
|
34
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
data/metanorma.yml
CHANGED
@@ -6,7 +6,7 @@ xml_root_tag: csa-standard
|
|
6
6
|
html_bodyfont: 'Lato,"Source Sans Pro",sans-serif'
|
7
7
|
html_headerfont: 'Lato,"Source Sans Pro",sans-serif'
|
8
8
|
html_monospacefont: '"Source Code Pro",monospace'
|
9
|
-
validate_rng_file: lib/
|
9
|
+
validate_rng_file: lib/metanorma/csa/csa.rng
|
10
10
|
htmlcoverpage: lib/isodoc/csa/html/html_csa_titlepage.html
|
11
11
|
htmlintropage: lib/isodoc/csa/html/html_csa_intro.html
|
12
12
|
htmlstylesheet: lib/isodoc/csa/html/htmlstyle.scss
|