metanorma-iso 1.9.5 → 1.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iso/basicdoc.rng +21 -4
- data/lib/asciidoctor/iso/front.rb +9 -1
- data/lib/asciidoctor/iso/isodoc.rng +192 -50
- data/lib/asciidoctor/iso/isostandard.rng +6 -22
- data/lib/asciidoctor/iso/reqt.rng +23 -2
- data/lib/isodoc/iso/html/isodoc.css +1 -2
- data/lib/isodoc/iso/html/isodoc.scss +1 -1
- data/lib/isodoc/iso/html/wordstyle.css +16 -4
- data/lib/isodoc/iso/html/wordstyle.scss +16 -4
- data/lib/isodoc/iso/iso.amendment.xsl +12 -2
- data/lib/isodoc/iso/iso.international-standard.xsl +12 -2
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +3 -1
- data/spec/asciidoctor/base_spec.rb +351 -124
- data/spec/spec_helper.rb +12 -0
- data/spec/vcr_cassettes/docrels.yml +393 -0
- metadata +31 -2
@@ -197,7 +197,7 @@ p.AnnexTableTitle, li.AnnexTableTitle, div.AnnexTableTitle
|
|
197
197
|
{mso-style-name:"Annex Table Title";
|
198
198
|
mso-style-unhide:no;
|
199
199
|
mso-style-qformat:yes;
|
200
|
-
mso-style-parent:"
|
200
|
+
mso-style-parent:"List Paragraph";
|
201
201
|
mso-style-link:"Annex Table Title Char";
|
202
202
|
margin-top:0cm;
|
203
203
|
margin-right:0cm;
|
@@ -130,7 +130,7 @@ p.MsoBlockText, li.MsoBlockText, div.MsoBlockText {
|
|
130
130
|
p.MsoList, li.MsoList, div.MsoList {
|
131
131
|
mso-style-priority: 4;
|
132
132
|
mso-style-unhide: no;
|
133
|
-
mso-style-parent: "
|
133
|
+
mso-style-parent: "List Paragraph";
|
134
134
|
margin-top: 0cm;
|
135
135
|
margin-right: 0cm;
|
136
136
|
margin-bottom: 6.0pt;
|
@@ -151,7 +151,7 @@ p.MsoList, li.MsoList, div.MsoList {
|
|
151
151
|
p.MsoListCxSpFirst, li.MsoListCxSpFirst, div.MsoListCxSpFirst {
|
152
152
|
mso-style-priority: 4;
|
153
153
|
mso-style-unhide: no;
|
154
|
-
mso-style-parent: "
|
154
|
+
mso-style-parent: "List Paragraph";
|
155
155
|
mso-style-type: export-only;
|
156
156
|
margin-top: 0cm;
|
157
157
|
margin-right: 0cm;
|
@@ -173,7 +173,7 @@ p.MsoListCxSpFirst, li.MsoListCxSpFirst, div.MsoListCxSpFirst {
|
|
173
173
|
p.MsoListCxSpMiddle, li.MsoListCxSpMiddle, div.MsoListCxSpMiddle {
|
174
174
|
mso-style-priority: 4;
|
175
175
|
mso-style-unhide: no;
|
176
|
-
mso-style-parent: "
|
176
|
+
mso-style-parent: "List Paragraph";
|
177
177
|
mso-style-type: export-only;
|
178
178
|
margin-top: 0cm;
|
179
179
|
margin-right: 0cm;
|
@@ -195,7 +195,7 @@ p.MsoListCxSpMiddle, li.MsoListCxSpMiddle, div.MsoListCxSpMiddle {
|
|
195
195
|
p.MsoListCxSpLast, li.MsoListCxSpLast, div.MsoListCxSpLast {
|
196
196
|
mso-style-priority: 4;
|
197
197
|
mso-style-unhide: no;
|
198
|
-
mso-style-parent: "
|
198
|
+
mso-style-parent: "List Paragraph";
|
199
199
|
mso-style-type: export-only;
|
200
200
|
margin-top: 0cm;
|
201
201
|
margin-right: 0cm;
|
@@ -217,6 +217,7 @@ p.MsoListCxSpLast, li.MsoListCxSpLast, div.MsoListCxSpLast {
|
|
217
217
|
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
|
218
218
|
mso-style-priority: 34;
|
219
219
|
mso-style-unhide: no;
|
220
|
+
mso-style-name: "List Paragraph";
|
220
221
|
mso-style-qformat: yes;
|
221
222
|
margin-top: 0cm;
|
222
223
|
margin-right: 0cm;
|
@@ -292,6 +293,7 @@ h1 {
|
|
292
293
|
mso-style-priority: 1;
|
293
294
|
mso-style-unhide: no;
|
294
295
|
mso-style-qformat: yes;
|
296
|
+
mso-style-name: "Heading 1";
|
295
297
|
mso-style-link: "Heading 1 Char";
|
296
298
|
mso-style-next: Normal;
|
297
299
|
margin-top: 13.5pt;
|
@@ -360,6 +362,7 @@ h1.Annex {
|
|
360
362
|
mso-style-priority: 2;
|
361
363
|
mso-style-unhide: no;
|
362
364
|
mso-style-qformat: yes;
|
365
|
+
mso-style-name: "Heading 2";
|
363
366
|
mso-style-parent: "Heading 1";
|
364
367
|
mso-style-link: "Heading 2 Char";
|
365
368
|
mso-style-next: Normal;
|
@@ -396,6 +399,7 @@ h2 {
|
|
396
399
|
mso-style-priority: 3;
|
397
400
|
mso-style-unhide: no;
|
398
401
|
mso-style-qformat: yes;
|
402
|
+
mso-style-name: "Heading 3";
|
399
403
|
mso-style-parent: "Heading 1";
|
400
404
|
mso-style-link: "Heading 3 Char";
|
401
405
|
mso-style-next: Normal;
|
@@ -432,6 +436,7 @@ h3 {
|
|
432
436
|
mso-style-priority: 4;
|
433
437
|
mso-style-unhide: no;
|
434
438
|
mso-style-qformat: yes;
|
439
|
+
mso-style-name: "Heading 4";
|
435
440
|
mso-style-parent: "Heading 3";
|
436
441
|
mso-style-link: "Heading 4 Char";
|
437
442
|
mso-style-next: Normal;
|
@@ -466,6 +471,7 @@ h4 {
|
|
466
471
|
mso-style-priority: 5;
|
467
472
|
mso-style-unhide: no;
|
468
473
|
mso-style-qformat: yes;
|
474
|
+
mso-style-name: "Heading 5";
|
469
475
|
mso-style-parent: "Heading 4";
|
470
476
|
mso-style-link: "Heading 5 Char";
|
471
477
|
mso-style-next: Normal;
|
@@ -500,6 +506,7 @@ h6 {
|
|
500
506
|
mso-style-priority: 6;
|
501
507
|
mso-style-unhide: no;
|
502
508
|
mso-style-qformat: yes;
|
509
|
+
mso-style-name: "Heading 6";
|
503
510
|
mso-style-parent: "Heading 5";
|
504
511
|
mso-style-link: "Heading 6 Char";
|
505
512
|
mso-style-next: Normal;
|
@@ -533,6 +540,7 @@ h6 {
|
|
533
540
|
p.MsoToc1, li.MsoToc1, div.MsoToc1 {
|
534
541
|
mso-style-priority: 39;
|
535
542
|
mso-style-unhide: no;
|
543
|
+
mso-style-name: "TOC 1";
|
536
544
|
mso-style-next: Normal;
|
537
545
|
margin-top: 6.0pt;
|
538
546
|
margin-right: 25.0pt;
|
@@ -555,6 +563,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2 {
|
|
555
563
|
mso-style-noshow: yes;
|
556
564
|
mso-style-priority: 39;
|
557
565
|
mso-style-unhide: no;
|
566
|
+
mso-style-name: "TOC 2";
|
558
567
|
mso-style-parent: "TOC 1";
|
559
568
|
mso-style-next: Normal;
|
560
569
|
margin-top: 0cm;
|
@@ -578,6 +587,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
578
587
|
mso-style-noshow: yes;
|
579
588
|
mso-style-priority: 39;
|
580
589
|
mso-style-unhide: no;
|
590
|
+
mso-style-name: "TOC 3";
|
581
591
|
mso-style-parent: "TOC 2";
|
582
592
|
mso-style-next: Normal;
|
583
593
|
margin-top: 0cm;
|
@@ -683,6 +693,7 @@ p.MsoFooterLandscape, li.MsoFooterLandscape, div.MsoFooterLandscape {
|
|
683
693
|
|
684
694
|
span.MsoFootnoteReference {
|
685
695
|
mso-style-priority: 99;
|
696
|
+
mso-style-name: "Footnote Reference";
|
686
697
|
vertical-align: super; }
|
687
698
|
|
688
699
|
p.MsoCaption, li.MsoCaption, div.MsoCaption {
|
@@ -1084,6 +1095,7 @@ span.BodyTextChar, span.Char3 {
|
|
1084
1095
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText {
|
1085
1096
|
mso-style-noshow: yes;
|
1086
1097
|
mso-style-priority: 99;
|
1098
|
+
mso-style-name: "Comment Text";
|
1087
1099
|
mso-style-link: "Comment Text Char";
|
1088
1100
|
margin-top: 0cm;
|
1089
1101
|
margin-right: 0cm;
|
@@ -118,7 +118,7 @@ p.MsoBlockText, li.MsoBlockText, div.MsoBlockText
|
|
118
118
|
p.MsoList, li.MsoList, div.MsoList
|
119
119
|
{mso-style-priority:4;
|
120
120
|
mso-style-unhide:no;
|
121
|
-
mso-style-parent:"
|
121
|
+
mso-style-parent:"List Paragraph";
|
122
122
|
margin-top:0cm;
|
123
123
|
margin-right:0cm;
|
124
124
|
margin-bottom:6.0pt;
|
@@ -138,7 +138,7 @@ p.MsoList, li.MsoList, div.MsoList
|
|
138
138
|
p.MsoListCxSpFirst, li.MsoListCxSpFirst, div.MsoListCxSpFirst
|
139
139
|
{mso-style-priority:4;
|
140
140
|
mso-style-unhide:no;
|
141
|
-
mso-style-parent:"
|
141
|
+
mso-style-parent:"List Paragraph";
|
142
142
|
mso-style-type:export-only;
|
143
143
|
margin-top:0cm;
|
144
144
|
margin-right:0cm;
|
@@ -159,7 +159,7 @@ p.MsoListCxSpFirst, li.MsoListCxSpFirst, div.MsoListCxSpFirst
|
|
159
159
|
p.MsoListCxSpMiddle, li.MsoListCxSpMiddle, div.MsoListCxSpMiddle
|
160
160
|
{mso-style-priority:4;
|
161
161
|
mso-style-unhide:no;
|
162
|
-
mso-style-parent:"
|
162
|
+
mso-style-parent:"List Paragraph";
|
163
163
|
mso-style-type:export-only;
|
164
164
|
margin-top:0cm;
|
165
165
|
margin-right:0cm;
|
@@ -180,7 +180,7 @@ p.MsoListCxSpMiddle, li.MsoListCxSpMiddle, div.MsoListCxSpMiddle
|
|
180
180
|
p.MsoListCxSpLast, li.MsoListCxSpLast, div.MsoListCxSpLast
|
181
181
|
{mso-style-priority:4;
|
182
182
|
mso-style-unhide:no;
|
183
|
-
mso-style-parent:"
|
183
|
+
mso-style-parent:"List Paragraph";
|
184
184
|
mso-style-type:export-only;
|
185
185
|
margin-top:0cm;
|
186
186
|
margin-right:0cm;
|
@@ -201,6 +201,7 @@ p.MsoListCxSpLast, li.MsoListCxSpLast, div.MsoListCxSpLast
|
|
201
201
|
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
|
202
202
|
{mso-style-priority:34;
|
203
203
|
mso-style-unhide:no;
|
204
|
+
mso-style-name:"List Paragraph";
|
204
205
|
mso-style-qformat:yes;
|
205
206
|
margin-top:0cm;
|
206
207
|
margin-right:0cm;
|
@@ -272,6 +273,7 @@ h1
|
|
272
273
|
{mso-style-priority:1;
|
273
274
|
mso-style-unhide:no;
|
274
275
|
mso-style-qformat:yes;
|
276
|
+
mso-style-name:"Heading 1";
|
275
277
|
mso-style-link:"Heading 1 Char";
|
276
278
|
mso-style-next:Normal;
|
277
279
|
margin-top:13.5pt;
|
@@ -338,6 +340,7 @@ h1.Annex
|
|
338
340
|
{mso-style-priority:2;
|
339
341
|
mso-style-unhide:no;
|
340
342
|
mso-style-qformat:yes;
|
343
|
+
mso-style-name:"Heading 2";
|
341
344
|
mso-style-parent:"Heading 1";
|
342
345
|
mso-style-link:"Heading 2 Char";
|
343
346
|
mso-style-next:Normal;
|
@@ -373,6 +376,7 @@ h2
|
|
373
376
|
{mso-style-priority:3;
|
374
377
|
mso-style-unhide:no;
|
375
378
|
mso-style-qformat:yes;
|
379
|
+
mso-style-name:"Heading 3";
|
376
380
|
mso-style-parent:"Heading 1";
|
377
381
|
mso-style-link:"Heading 3 Char";
|
378
382
|
mso-style-next:Normal;
|
@@ -407,6 +411,7 @@ h3 {mso-list:l1 level3 lfo6;
|
|
407
411
|
{mso-style-priority:4;
|
408
412
|
mso-style-unhide:no;
|
409
413
|
mso-style-qformat:yes;
|
414
|
+
mso-style-name:"Heading 4";
|
410
415
|
mso-style-parent:"Heading 3";
|
411
416
|
mso-style-link:"Heading 4 Char";
|
412
417
|
mso-style-next:Normal;
|
@@ -439,6 +444,7 @@ h4 {mso-list:l1 level4 lfo6;
|
|
439
444
|
{mso-style-priority:5;
|
440
445
|
mso-style-unhide:no;
|
441
446
|
mso-style-qformat:yes;
|
447
|
+
mso-style-name:"Heading 5";
|
442
448
|
mso-style-parent:"Heading 4";
|
443
449
|
mso-style-link:"Heading 5 Char";
|
444
450
|
mso-style-next:Normal;
|
@@ -471,6 +477,7 @@ h6
|
|
471
477
|
{mso-style-priority:6;
|
472
478
|
mso-style-unhide:no;
|
473
479
|
mso-style-qformat:yes;
|
480
|
+
mso-style-name:"Heading 6";
|
474
481
|
mso-style-parent:"Heading 5";
|
475
482
|
mso-style-link:"Heading 6 Char";
|
476
483
|
mso-style-next:Normal;
|
@@ -502,6 +509,7 @@ h6 {mso-list:l1 level6 lfo6;
|
|
502
509
|
p.MsoToc1, li.MsoToc1, div.MsoToc1
|
503
510
|
{mso-style-priority:39;
|
504
511
|
mso-style-unhide:no;
|
512
|
+
mso-style-name:"TOC 1";
|
505
513
|
mso-style-next:Normal;
|
506
514
|
margin-top:6.0pt;
|
507
515
|
margin-right:25.0pt;
|
@@ -523,6 +531,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2
|
|
523
531
|
{mso-style-noshow:yes;
|
524
532
|
mso-style-priority:39;
|
525
533
|
mso-style-unhide:no;
|
534
|
+
mso-style-name:"TOC 2";
|
526
535
|
mso-style-parent:"TOC 1";
|
527
536
|
mso-style-next:Normal;
|
528
537
|
margin-top:0cm;
|
@@ -545,6 +554,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
545
554
|
{mso-style-noshow:yes;
|
546
555
|
mso-style-priority:39;
|
547
556
|
mso-style-unhide:no;
|
557
|
+
mso-style-name:"TOC 3";
|
548
558
|
mso-style-parent:"TOC 2";
|
549
559
|
mso-style-next:Normal;
|
550
560
|
margin-top:0cm;
|
@@ -645,6 +655,7 @@ p.MsoFooterLandscape, li.MsoFooterLandscape, div.MsoFooterLandscape
|
|
645
655
|
mso-ansi-language:EN-GB;}
|
646
656
|
span.MsoFootnoteReference
|
647
657
|
{mso-style-priority:99;
|
658
|
+
mso-style-name:"Footnote Reference";
|
648
659
|
vertical-align:super;}
|
649
660
|
p.MsoCaption, li.MsoCaption, div.MsoCaption
|
650
661
|
{mso-style-priority:35;
|
@@ -1022,6 +1033,7 @@ span.BodyTextChar, span.Char3
|
|
1022
1033
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText
|
1023
1034
|
{mso-style-noshow:yes;
|
1024
1035
|
mso-style-priority:99;
|
1036
|
+
mso-style-name:"Comment Text";
|
1025
1037
|
mso-style-link:"Comment Text Char";
|
1026
1038
|
margin-top:0cm;
|
1027
1039
|
margin-right:0cm;
|
@@ -2558,6 +2558,11 @@
|
|
2558
2558
|
|
2559
2559
|
|
2560
2560
|
|
2561
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
2562
|
+
|
2563
|
+
|
2564
|
+
|
2565
|
+
|
2561
2566
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
2562
2567
|
|
2563
2568
|
|
@@ -3757,9 +3762,8 @@
|
|
3757
3762
|
|
3758
3763
|
<!-- Table's note name (NOTE, for example) -->
|
3759
3764
|
|
3760
|
-
<fo:inline padding-right="2mm">
|
3765
|
+
<fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
|
3761
3766
|
|
3762
|
-
|
3763
3767
|
|
3764
3768
|
|
3765
3769
|
|
@@ -4394,6 +4398,8 @@
|
|
4394
4398
|
<xsl:if test="$font-size != ''">
|
4395
4399
|
<xsl:attribute name="font-size">
|
4396
4400
|
<xsl:choose>
|
4401
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4402
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4397
4403
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4398
4404
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4399
4405
|
</xsl:choose>
|
@@ -5859,12 +5865,16 @@
|
|
5859
5865
|
<xsl:if test="$font-size != ''">
|
5860
5866
|
<xsl:attribute name="font-size">
|
5861
5867
|
<xsl:choose>
|
5868
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
5869
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
5862
5870
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
5863
5871
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
5864
5872
|
</xsl:choose>
|
5865
5873
|
</xsl:attribute>
|
5866
5874
|
</xsl:if>
|
5867
5875
|
|
5876
|
+
|
5877
|
+
|
5868
5878
|
<xsl:apply-templates/>
|
5869
5879
|
</fo:block>
|
5870
5880
|
|
@@ -2558,6 +2558,11 @@
|
|
2558
2558
|
|
2559
2559
|
|
2560
2560
|
|
2561
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
2562
|
+
|
2563
|
+
|
2564
|
+
|
2565
|
+
|
2561
2566
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
2562
2567
|
|
2563
2568
|
|
@@ -3757,9 +3762,8 @@
|
|
3757
3762
|
|
3758
3763
|
<!-- Table's note name (NOTE, for example) -->
|
3759
3764
|
|
3760
|
-
<fo:inline padding-right="2mm">
|
3765
|
+
<fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
|
3761
3766
|
|
3762
|
-
|
3763
3767
|
|
3764
3768
|
|
3765
3769
|
|
@@ -4394,6 +4398,8 @@
|
|
4394
4398
|
<xsl:if test="$font-size != ''">
|
4395
4399
|
<xsl:attribute name="font-size">
|
4396
4400
|
<xsl:choose>
|
4401
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4402
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4397
4403
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4398
4404
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4399
4405
|
</xsl:choose>
|
@@ -5859,12 +5865,16 @@
|
|
5859
5865
|
<xsl:if test="$font-size != ''">
|
5860
5866
|
<xsl:attribute name="font-size">
|
5861
5867
|
<xsl:choose>
|
5868
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
5869
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
5862
5870
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
5863
5871
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
5864
5872
|
</xsl:choose>
|
5865
5873
|
</xsl:attribute>
|
5866
5874
|
</xsl:if>
|
5867
5875
|
|
5876
|
+
|
5877
|
+
|
5868
5878
|
<xsl:apply-templates/>
|
5869
5879
|
</fo:block>
|
5870
5880
|
|
data/metanorma-iso.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ["open.source@ribose.com"]
|
12
12
|
|
13
13
|
spec.summary = "metanorma-iso lets you write ISO standards "\
|
14
|
-
|
14
|
+
"in AsciiDoc."
|
15
15
|
spec.description = <<~DESCRIPTION
|
16
16
|
metanorma-iso lets you write ISO standards in AsciiDoc syntax.
|
17
17
|
|
@@ -47,4 +47,6 @@ Gem::Specification.new do |spec|
|
|
47
47
|
spec.add_development_dependency "sassc", "2.4.0"
|
48
48
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
49
49
|
spec.add_development_dependency "timecop", "~> 0.9"
|
50
|
+
spec.add_development_dependency "vcr", "~> 5.0.0"
|
51
|
+
spec.add_development_dependency "webmock"
|
50
52
|
end
|