metanorma-csa 1.8.12 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/csa/basicdoc.rng +21 -4
- data/lib/asciidoctor/csa/isodoc.rng +420 -76
- data/lib/asciidoctor/csa/reqt.rng +23 -2
- data/lib/isodoc/csa/base_convert.rb +1 -1
- data/lib/isodoc/csa/csa.standard.xsl +48 -13
- data/lib/isodoc/csa/html/wordstyle.css +12 -1
- data/lib/isodoc/csa/html/wordstyle.scss +12 -1
- data/lib/isodoc/csa/word_convert.rb +4 -5
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma-csa.gemspec +1 -1
- metadata +5 -5
@@ -58,6 +58,14 @@
|
|
58
58
|
<optional>
|
59
59
|
<attribute name="type"/>
|
60
60
|
</optional>
|
61
|
+
<optional>
|
62
|
+
<attribute name="tag"/>
|
63
|
+
</optional>
|
64
|
+
<optional>
|
65
|
+
<attribute name="multilingual-rendering">
|
66
|
+
<ref name="MultilingualRenderingType"/>
|
67
|
+
</attribute>
|
68
|
+
</optional>
|
61
69
|
<optional>
|
62
70
|
<ref name="reqtitle"/>
|
63
71
|
</optional>
|
@@ -101,7 +109,9 @@
|
|
101
109
|
</define>
|
102
110
|
<define name="label">
|
103
111
|
<element name="label">
|
104
|
-
<
|
112
|
+
<oneOrMore>
|
113
|
+
<ref name="TextElement"/>
|
114
|
+
</oneOrMore>
|
105
115
|
</element>
|
106
116
|
</define>
|
107
117
|
<define name="subject">
|
@@ -175,8 +185,19 @@
|
|
175
185
|
<data type="boolean"/>
|
176
186
|
</attribute>
|
177
187
|
</optional>
|
188
|
+
<optional>
|
189
|
+
<attribute name="tag"/>
|
190
|
+
</optional>
|
191
|
+
<optional>
|
192
|
+
<attribute name="multilingual-rendering">
|
193
|
+
<ref name="MultilingualRenderingType"/>
|
194
|
+
</attribute>
|
195
|
+
</optional>
|
178
196
|
<oneOrMore>
|
179
|
-
<
|
197
|
+
<choice>
|
198
|
+
<ref name="BasicBlock"/>
|
199
|
+
<ref name="component"/>
|
200
|
+
</choice>
|
180
201
|
</oneOrMore>
|
181
202
|
</define>
|
182
203
|
<define name="ObligationType">
|
@@ -735,7 +735,7 @@
|
|
735
735
|
</xsl:variable>
|
736
736
|
<fo:block font-size="{$font-size}" role="H{$levelTerm}">
|
737
737
|
<fo:block font-weight="bold" keep-with-next="always">
|
738
|
-
<xsl:apply-templates select="ancestor::csa:term/csa:name" mode="presentation"/>
|
738
|
+
<xsl:apply-templates select="ancestor::csa:term[1]/csa:name" mode="presentation"/>
|
739
739
|
</fo:block>
|
740
740
|
<fo:block font-weight="bold" keep-with-next="always" line-height="1">
|
741
741
|
<xsl:apply-templates/>
|
@@ -992,6 +992,8 @@
|
|
992
992
|
|
993
993
|
<title-list-figures lang="en">List of Figures</title-list-figures>
|
994
994
|
|
995
|
+
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
996
|
+
|
995
997
|
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
996
998
|
|
997
999
|
<title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
|
@@ -1276,6 +1278,11 @@
|
|
1276
1278
|
|
1277
1279
|
|
1278
1280
|
|
1281
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
1282
|
+
|
1283
|
+
|
1284
|
+
|
1285
|
+
|
1279
1286
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1280
1287
|
|
1281
1288
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
@@ -2361,9 +2368,8 @@
|
|
2361
2368
|
|
2362
2369
|
<!-- Table's note name (NOTE, for example) -->
|
2363
2370
|
|
2364
|
-
<fo:inline padding-right="2mm">
|
2371
|
+
<fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
|
2365
2372
|
|
2366
|
-
|
2367
2373
|
|
2368
2374
|
|
2369
2375
|
|
@@ -2868,6 +2874,7 @@
|
|
2868
2874
|
<fo:table-cell>
|
2869
2875
|
|
2870
2876
|
<fo:block margin-top="6pt">
|
2877
|
+
<xsl:copy-of select="@id"/>
|
2871
2878
|
|
2872
2879
|
|
2873
2880
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -2971,6 +2978,8 @@
|
|
2971
2978
|
<xsl:if test="$font-size != ''">
|
2972
2979
|
<xsl:attribute name="font-size">
|
2973
2980
|
<xsl:choose>
|
2981
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
2982
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
2974
2983
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
2975
2984
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
2976
2985
|
</xsl:choose>
|
@@ -3705,14 +3714,18 @@
|
|
3705
3714
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
3706
3715
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
3707
3716
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3717
|
+
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
3708
3718
|
<fo:block id="{@id}">
|
3709
3719
|
<xsl:apply-templates/>
|
3710
3720
|
</fo:block>
|
3711
3721
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3722
|
+
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
3712
3723
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3713
3724
|
|
3714
3725
|
|
3715
|
-
|
3726
|
+
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
3727
|
+
|
3728
|
+
</xsl:if>
|
3716
3729
|
<xsl:apply-templates/>
|
3717
3730
|
</fo:block>
|
3718
3731
|
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
@@ -3774,6 +3787,7 @@
|
|
3774
3787
|
<xsl:otherwise>
|
3775
3788
|
<fo:block xsl:use-attribute-sets="image-style">
|
3776
3789
|
|
3790
|
+
|
3777
3791
|
<xsl:variable name="src">
|
3778
3792
|
<xsl:call-template name="image_src"/>
|
3779
3793
|
</xsl:variable>
|
@@ -4140,7 +4154,7 @@
|
|
4140
4154
|
<xsl:text> </xsl:text>
|
4141
4155
|
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
|
4142
4156
|
<xsl:value-of select="."/>
|
4143
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']
|
4157
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
|
4144
4158
|
<xsl:value-of select="."/>
|
4145
4159
|
</xsl:template><xsl:template match="node()" mode="contents">
|
4146
4160
|
<xsl:apply-templates mode="contents"/>
|
@@ -4238,6 +4252,8 @@
|
|
4238
4252
|
|
4239
4253
|
|
4240
4254
|
|
4255
|
+
|
4256
|
+
|
4241
4257
|
</fo:bookmark-tree>
|
4242
4258
|
</xsl:if>
|
4243
4259
|
</xsl:template><xsl:template name="insertFigureBookmarks">
|
@@ -4431,12 +4447,16 @@
|
|
4431
4447
|
<xsl:if test="$font-size != ''">
|
4432
4448
|
<xsl:attribute name="font-size">
|
4433
4449
|
<xsl:choose>
|
4450
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4451
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4434
4452
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4435
4453
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4436
4454
|
</xsl:choose>
|
4437
4455
|
</xsl:attribute>
|
4438
4456
|
</xsl:if>
|
4439
4457
|
|
4458
|
+
|
4459
|
+
|
4440
4460
|
<xsl:apply-templates/>
|
4441
4461
|
</fo:block>
|
4442
4462
|
|
@@ -4679,7 +4699,8 @@
|
|
4679
4699
|
</fo:block>
|
4680
4700
|
</fo:table-cell>
|
4681
4701
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
4682
|
-
<fo:block font-size="11pt"
|
4702
|
+
<fo:block font-size="11pt">
|
4703
|
+
|
4683
4704
|
<xsl:apply-templates/>
|
4684
4705
|
</fo:block>
|
4685
4706
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
@@ -4784,6 +4805,7 @@
|
|
4784
4805
|
</xsl:choose>
|
4785
4806
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4786
4807
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4808
|
+
|
4787
4809
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4788
4810
|
<xsl:variable name="termsource_text">
|
4789
4811
|
<xsl:apply-templates/>
|
@@ -4794,13 +4816,15 @@
|
|
4794
4816
|
<!-- <xsl:apply-templates /> -->
|
4795
4817
|
<xsl:copy-of select="$termsource_text"/>
|
4796
4818
|
</xsl:when>
|
4797
|
-
<xsl:otherwise>
|
4819
|
+
<xsl:otherwise>
|
4820
|
+
|
4798
4821
|
|
4799
4822
|
<xsl:text>[</xsl:text>
|
4800
4823
|
|
4801
4824
|
<!-- <xsl:apply-templates /> -->
|
4802
4825
|
<xsl:copy-of select="$termsource_text"/>
|
4803
4826
|
|
4827
|
+
|
4804
4828
|
<xsl:text>]</xsl:text>
|
4805
4829
|
|
4806
4830
|
</xsl:otherwise>
|
@@ -4884,12 +4908,20 @@
|
|
4884
4908
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
4885
4909
|
<xsl:text>— </xsl:text>
|
4886
4910
|
<xsl:apply-templates/>
|
4887
|
-
</xsl:template><xsl:
|
4911
|
+
</xsl:template><xsl:variable name="bibitem_hidden_">
|
4912
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
4913
|
+
<xsl:copy-of select="."/>
|
4914
|
+
</xsl:for-each>
|
4915
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
|
4916
|
+
<xsl:copy-of select="."/>
|
4917
|
+
</xsl:for-each>
|
4918
|
+
</xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
4888
4919
|
|
4889
4920
|
<xsl:variable name="bibitemid">
|
4890
4921
|
<xsl:choose>
|
4891
|
-
<xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"
|
4892
|
-
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"
|
4922
|
+
<!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
|
4923
|
+
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
|
4924
|
+
<xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
|
4893
4925
|
<xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
|
4894
4926
|
</xsl:choose>
|
4895
4927
|
</xsl:variable>
|
@@ -4973,10 +5005,10 @@
|
|
4973
5005
|
</xsl:choose>
|
4974
5006
|
</xsl:variable>
|
4975
5007
|
|
4976
|
-
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
5008
|
+
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
4977
5009
|
|
4978
5010
|
<xsl:choose>
|
4979
|
-
<xsl:when test="$
|
5011
|
+
<xsl:when test="$lang = 'zh'">
|
4980
5012
|
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
4981
5013
|
</xsl:when>
|
4982
5014
|
<xsl:when test="../../@inline-header = 'true'">
|
@@ -5961,12 +5993,15 @@
|
|
5961
5993
|
<xsl:param name="default">left</xsl:param>
|
5962
5994
|
<xsl:attribute name="text-align">
|
5963
5995
|
<xsl:choose>
|
5964
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
5996
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
5965
5997
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
5966
5998
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
5967
5999
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5968
6000
|
</xsl:choose>
|
5969
6001
|
</xsl:attribute>
|
6002
|
+
<xsl:if test="@align = 'indent'">
|
6003
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
6004
|
+
</xsl:if>
|
5970
6005
|
</xsl:template><xsl:template name="number-to-words">
|
5971
6006
|
<xsl:param name="number"/>
|
5972
6007
|
<xsl:param name="first"/>
|
@@ -152,6 +152,7 @@ p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxS
|
|
152
152
|
|
153
153
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText {
|
154
154
|
mso-style-noshow: yes;
|
155
|
+
mso-style-name: "Comment Text";
|
155
156
|
mso-style-unhide: no;
|
156
157
|
margin: 0cm;
|
157
158
|
margin-bottom: .0001pt;
|
@@ -373,6 +374,7 @@ h1 {
|
|
373
374
|
mso-style-priority: 1;
|
374
375
|
mso-style-unhide: no;
|
375
376
|
mso-style-qformat: yes;
|
377
|
+
mso-style-name: "Heading 1";
|
376
378
|
mso-style-link: "Heading 1 Char";
|
377
379
|
mso-style-next: Normal;
|
378
380
|
margin-top: 13.5pt;
|
@@ -459,6 +461,7 @@ h2 {
|
|
459
461
|
mso-style-priority: 2;
|
460
462
|
mso-style-unhide: no;
|
461
463
|
mso-style-qformat: yes;
|
464
|
+
mso-style-name: "Heading 2";
|
462
465
|
mso-style-parent: "Heading 1";
|
463
466
|
mso-style-link: "Heading 2 Char";
|
464
467
|
mso-style-next: Normal;
|
@@ -487,7 +490,8 @@ h3 {
|
|
487
490
|
mso-style-priority: 3;
|
488
491
|
mso-style-unhide: no;
|
489
492
|
mso-style-qformat: yes;
|
490
|
-
mso-style-
|
493
|
+
mso-style-name: "Heading 3";
|
494
|
+
mso-style-parent: "Heading 2";
|
491
495
|
mso-style-link: "Heading 3 Char";
|
492
496
|
mso-style-next: Normal;
|
493
497
|
margin-top: 3.0pt;
|
@@ -514,6 +518,7 @@ h4 {
|
|
514
518
|
mso-style-priority: 4;
|
515
519
|
mso-style-unhide: no;
|
516
520
|
mso-style-qformat: yes;
|
521
|
+
mso-style-name: "Heading 4";
|
517
522
|
mso-style-parent: "Heading 3";
|
518
523
|
mso-style-link: "Heading 4 Char";
|
519
524
|
mso-style-next: Normal;
|
@@ -541,6 +546,7 @@ h5 {
|
|
541
546
|
mso-style-priority: 5;
|
542
547
|
mso-style-unhide: no;
|
543
548
|
mso-style-qformat: yes;
|
549
|
+
mso-style-name: "Heading 5";
|
544
550
|
mso-style-parent: "Heading 4";
|
545
551
|
mso-style-link: "Heading 5 Char";
|
546
552
|
mso-style-next: Normal;
|
@@ -568,6 +574,7 @@ h6 {
|
|
568
574
|
mso-style-priority: 6;
|
569
575
|
mso-style-unhide: no;
|
570
576
|
mso-style-qformat: yes;
|
577
|
+
mso-style-name: "Heading 6";
|
571
578
|
mso-style-parent: "Heading 5";
|
572
579
|
mso-style-link: "Heading 6 Char";
|
573
580
|
mso-style-next: Normal;
|
@@ -594,6 +601,7 @@ h6 {
|
|
594
601
|
p.MsoToc1, li.MsoToc1, div.MsoToc1 {
|
595
602
|
mso-style-priority: 39;
|
596
603
|
mso-style-unhide: no;
|
604
|
+
mso-style-name: "TOC 1";
|
597
605
|
mso-style-next: Normal;
|
598
606
|
margin-top: 6.0pt;
|
599
607
|
margin-right: 25.0pt;
|
@@ -617,6 +625,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2 {
|
|
617
625
|
mso-style-noshow: yes;
|
618
626
|
mso-style-priority: 39;
|
619
627
|
mso-style-unhide: no;
|
628
|
+
mso-style-name: "TOC 2";
|
620
629
|
mso-style-parent: "TOC 1";
|
621
630
|
mso-style-next: Normal;
|
622
631
|
margin-top: 0cm;
|
@@ -641,6 +650,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
641
650
|
mso-style-noshow: yes;
|
642
651
|
mso-style-priority: 39;
|
643
652
|
mso-style-unhide: no;
|
653
|
+
mso-style-name: "TOC 3";
|
644
654
|
mso-style-parent: "TOC 2";
|
645
655
|
mso-style-next: Normal;
|
646
656
|
margin-top: 0cm;
|
@@ -663,6 +673,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
663
673
|
|
664
674
|
span.MsoFootnoteReference {
|
665
675
|
mso-style-priority: 99;
|
676
|
+
mso-style-name: "Footnote Reference";
|
666
677
|
vertical-align: super; }
|
667
678
|
|
668
679
|
p.MsoFootnoteText, li.MsoFootnoteText, div.MsoFootnoteText {
|
@@ -138,6 +138,7 @@ p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxS
|
|
138
138
|
|
139
139
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText
|
140
140
|
{mso-style-noshow:yes;
|
141
|
+
mso-style-name:"Comment Text";
|
141
142
|
mso-style-unhide:no;
|
142
143
|
margin:0cm;
|
143
144
|
margin-bottom:.0001pt;
|
@@ -343,6 +344,7 @@ h1
|
|
343
344
|
{mso-style-priority:1;
|
344
345
|
mso-style-unhide:no;
|
345
346
|
mso-style-qformat:yes;
|
347
|
+
mso-style-name:"Heading 1";
|
346
348
|
mso-style-link:"Heading 1 Char";
|
347
349
|
mso-style-next:Normal;
|
348
350
|
margin-top:13.5pt;
|
@@ -426,6 +428,7 @@ h2
|
|
426
428
|
{mso-style-priority:2;
|
427
429
|
mso-style-unhide:no;
|
428
430
|
mso-style-qformat:yes;
|
431
|
+
mso-style-name:"Heading 2";
|
429
432
|
mso-style-parent:"Heading 1";
|
430
433
|
mso-style-link:"Heading 2 Char";
|
431
434
|
mso-style-next:Normal;
|
@@ -453,7 +456,8 @@ h3
|
|
453
456
|
{mso-style-priority:3;
|
454
457
|
mso-style-unhide:no;
|
455
458
|
mso-style-qformat:yes;
|
456
|
-
|
459
|
+
mso-style-name:"Heading 3";
|
460
|
+
mso-style-parent:"Heading 2";
|
457
461
|
mso-style-link:"Heading 3 Char";
|
458
462
|
mso-style-next:Normal;
|
459
463
|
margin-top:3.0pt;
|
@@ -479,6 +483,7 @@ h4
|
|
479
483
|
{mso-style-priority:4;
|
480
484
|
mso-style-unhide:no;
|
481
485
|
mso-style-qformat:yes;
|
486
|
+
mso-style-name:"Heading 4";
|
482
487
|
mso-style-parent:"Heading 3";
|
483
488
|
mso-style-link:"Heading 4 Char";
|
484
489
|
mso-style-next:Normal;
|
@@ -505,6 +510,7 @@ h5
|
|
505
510
|
{mso-style-priority:5;
|
506
511
|
mso-style-unhide:no;
|
507
512
|
mso-style-qformat:yes;
|
513
|
+
mso-style-name:"Heading 5";
|
508
514
|
mso-style-parent:"Heading 4";
|
509
515
|
mso-style-link:"Heading 5 Char";
|
510
516
|
mso-style-next:Normal;
|
@@ -531,6 +537,7 @@ h6
|
|
531
537
|
{mso-style-priority:6;
|
532
538
|
mso-style-unhide:no;
|
533
539
|
mso-style-qformat:yes;
|
540
|
+
mso-style-name:"Heading 6";
|
534
541
|
mso-style-parent:"Heading 5";
|
535
542
|
mso-style-link:"Heading 6 Char";
|
536
543
|
mso-style-next:Normal;
|
@@ -556,6 +563,7 @@ h6
|
|
556
563
|
p.MsoToc1, li.MsoToc1, div.MsoToc1
|
557
564
|
{mso-style-priority:39;
|
558
565
|
mso-style-unhide:no;
|
566
|
+
mso-style-name:"TOC 1";
|
559
567
|
mso-style-next:Normal;
|
560
568
|
margin-top:6.0pt;
|
561
569
|
margin-right:25.0pt;
|
@@ -578,6 +586,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2
|
|
578
586
|
{mso-style-noshow:yes;
|
579
587
|
mso-style-priority:39;
|
580
588
|
mso-style-unhide:no;
|
589
|
+
mso-style-name:"TOC 2";
|
581
590
|
mso-style-parent:"TOC 1";
|
582
591
|
mso-style-next:Normal;
|
583
592
|
margin-top:0cm;
|
@@ -601,6 +610,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
601
610
|
{mso-style-noshow:yes;
|
602
611
|
mso-style-priority:39;
|
603
612
|
mso-style-unhide:no;
|
613
|
+
mso-style-name:"TOC 3";
|
604
614
|
mso-style-parent:"TOC 2";
|
605
615
|
mso-style-next:Normal;
|
606
616
|
margin-top:0cm;
|
@@ -622,6 +632,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
622
632
|
mso-bidi-font-weight:normal;}
|
623
633
|
span.MsoFootnoteReference
|
624
634
|
{mso-style-priority:99;
|
635
|
+
mso-style-name:"Footnote Reference";
|
625
636
|
vertical-align:super;}
|
626
637
|
p.MsoFootnoteText, li.MsoFootnoteText, div.MsoFootnoteText
|
627
638
|
{mso-style-noshow:yes;
|
@@ -1,16 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
3
|
+
require_relative "base_convert"
|
4
4
|
require "isodoc/generic/word_convert"
|
5
|
-
require_relative
|
6
|
-
require
|
5
|
+
require_relative "init"
|
6
|
+
require "isodoc"
|
7
7
|
|
8
8
|
module IsoDoc
|
9
9
|
module Csa
|
10
10
|
# A {Converter} implementation that generates CSA output, and a document
|
11
11
|
# schema encapsulation of the document for validation
|
12
|
-
class WordConvert < IsoDoc::WordConvert
|
13
|
-
|
12
|
+
class WordConvert < IsoDoc::Generic::WordConvert
|
14
13
|
include BaseConvert
|
15
14
|
include Init
|
16
15
|
end
|
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", "~> 1.
|
31
|
+
spec.add_dependency "metanorma-generic", "~> 1.11.0"
|
32
32
|
|
33
33
|
spec.add_development_dependency "byebug", "~> 9.1"
|
34
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
- !ruby/object:Gem::Version
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
|
-
rubygems_version: 3.
|
251
|
+
rubygems_version: 3.2.22
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: metanorma-csa lets you write CSA Normal Documents (CSAND) in AsciiDoc.
|