metanorma-cc 2.2.1 → 2.2.3

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: 7711b9675bcfab88ba0624be6f88f5ac5262e06b1f31b18a676ab370f9f83736
4
- data.tar.gz: 1af7111b2d6341c4264d8a8e639b538036ea98bd8d1ee909740101adad8c8d4f
3
+ metadata.gz: dba742dc424fbc707539ec873531152d3e70db8acf1132610db996f4f918b896
4
+ data.tar.gz: e179bbb086f0c5f6f6c09960498ac14ed0039cc4115acf6243f92378e22d716e
5
5
  SHA512:
6
- metadata.gz: dcb84e476aa6a99ab5575246b9ac9a3770476c737dadc098db6450a3f97df8168a0f9a28b70283a274d2534d6b84e77b6d7d2ed3d38c81401c558ca3cc93daef
7
- data.tar.gz: bae80bf550876a114d6c48e170e115dbd6f340dc60c7a0227c0e81115bae9542808bf17966d8d630e69afd9457821061626d9c1489afd027e457ee4c23cf0f44
6
+ metadata.gz: 161cfc6a1e6edc85896aabbc226a400926c022b343c68d234b1c8c2f9dcbc1df516d07c484e5c573e4443850677bdca0ed4e4e5ea330e1f132e3e59c3287c321
7
+ data.tar.gz: cae03fa76b69f2fb6e613e4f93660ae41542932abb1051a975c05244312abc32dedb2e843aff593d69d02fa1ecb9c76f1fafa37cb7df44cb3d100e379f903e2d
@@ -2,7 +2,7 @@
2
2
 
3
3
  <xsl:output version="1.0" method="xml" encoding="UTF-8" indent="no"/>
4
4
 
5
- <xsl:key name="kfn" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" use="@reference"/>
5
+ <xsl:key name="kfn" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure' or local-name() = 'localized-strings')] and not(ancestor::*[local-name() = 'name']))]" use="@reference"/>
6
6
 
7
7
  <xsl:variable name="debug">false</xsl:variable>
8
8
 
@@ -620,14 +620,14 @@
620
620
  BUT DON'T put any another conditions together with $namespace = '...' (such conditions will be ignored). For another conditions, please use nested xsl:if or xsl:choose -->
621
621
 
622
622
  <!--
623
- <misc-container>
623
+ <metanorma-extension>
624
624
  <presentation-metadata>
625
625
  <papersize>letter</papersize>
626
626
  </presentation-metadata>
627
- </misc-container>
627
+ </metanorma-extension>
628
628
  -->
629
629
 
630
- <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
630
+ <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
631
631
  <xsl:variable name="papersize_width_">
632
632
  <xsl:choose>
633
633
  <xsl:when test="$papersize = 'letter'">215.9</xsl:when>
@@ -744,7 +744,7 @@
744
744
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
745
745
 
746
746
  <xsl:variable name="title-list-tables">
747
- <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
747
+ <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
748
748
  <xsl:value-of select="$toc_table_title"/>
749
749
  <xsl:if test="normalize-space($toc_table_title) = ''">
750
750
  <xsl:call-template name="getTitle">
@@ -754,7 +754,7 @@
754
754
  </xsl:variable>
755
755
 
756
756
  <xsl:variable name="title-list-figures">
757
- <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
757
+ <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
758
758
  <xsl:value-of select="$toc_figure_title"/>
759
759
  <xsl:if test="normalize-space($toc_figure_title) = ''">
760
760
  <xsl:call-template name="getTitle">
@@ -764,7 +764,7 @@
764
764
  </xsl:variable>
765
765
 
766
766
  <xsl:variable name="title-list-recommendations">
767
- <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
767
+ <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
768
768
  <xsl:value-of select="$toc_requirement_title"/>
769
769
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
770
770
  <xsl:call-template name="getTitle">
@@ -836,7 +836,7 @@
836
836
  <xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
837
837
 
838
838
  <xsl:variable name="additional_fonts_">
839
- <xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
839
+ <xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
840
840
  <xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
841
841
  </xsl:for-each>
842
842
  </xsl:variable>
@@ -1875,10 +1875,10 @@
1875
1875
 
1876
1876
  <xsl:template name="processTablesFigures_Contents">
1877
1877
  <xsl:param name="always"/>
1878
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1878
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1879
1879
  <xsl:call-template name="processTables_Contents"/>
1880
1880
  </xsl:if>
1881
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1881
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1882
1882
  <xsl:call-template name="processFigures_Contents"/>
1883
1883
  </xsl:if>
1884
1884
  </xsl:template>
@@ -2215,6 +2215,8 @@
2215
2215
  <xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2216
2216
  </xsl:if>
2217
2217
 
2218
+ <xsl:call-template name="setBordersTableArray"/>
2219
+
2218
2220
  </xsl:element>
2219
2221
  </xsl:variable>
2220
2222
 
@@ -2359,6 +2361,10 @@
2359
2361
 
2360
2362
  </xsl:template>
2361
2363
 
2364
+ <xsl:template name="setBordersTableArray">
2365
+
2366
+ </xsl:template>
2367
+
2362
2368
  <xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
2363
2369
  <xsl:param name="continued"/>
2364
2370
  <xsl:if test="normalize-space() != ''">
@@ -2833,6 +2839,8 @@
2833
2839
  <fo:table-row>
2834
2840
  <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
2835
2841
 
2842
+ <xsl:call-template name="setBordersTableArray"/>
2843
+
2836
2844
  <!-- fn will be processed inside 'note' processing -->
2837
2845
 
2838
2846
  <!-- for BSI (not PAS) display Notes before footnotes -->
@@ -2954,6 +2962,8 @@
2954
2962
  <xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
2955
2963
  <fo:table-row xsl:use-attribute-sets="table-header-row-style">
2956
2964
 
2965
+ <xsl:call-template name="setBordersTableArray"/>
2966
+
2957
2967
  <xsl:call-template name="setTableRowAttributes"/>
2958
2968
 
2959
2969
  <xsl:apply-templates/>
@@ -2977,6 +2987,8 @@
2977
2987
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2978
2988
  </xsl:if>
2979
2989
 
2990
+ <xsl:call-template name="setBordersTableArray"/>
2991
+
2980
2992
  <xsl:call-template name="setTableRowAttributes"/>
2981
2993
  <xsl:apply-templates/>
2982
2994
  </fo:table-row>
@@ -2996,6 +3008,8 @@
2996
3008
  <xsl:with-param name="default">center</xsl:with-param>
2997
3009
  </xsl:call-template>
2998
3010
 
3011
+ <xsl:call-template name="setBordersTableArray"/>
3012
+
2999
3013
  <xsl:if test="$lang = 'ar'">
3000
3014
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3001
3015
  </xsl:if>
@@ -3048,6 +3062,8 @@
3048
3062
 
3049
3063
  <!-- bsi -->
3050
3064
 
3065
+ <xsl:call-template name="setBordersTableArray"/>
3066
+
3051
3067
  <xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
3052
3068
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3053
3069
  </xsl:if>
@@ -3102,7 +3118,7 @@
3102
3118
  </fn>
3103
3119
  -->
3104
3120
  <!-- footnotes in text (title, bibliography, main body, table's, figure's names), not for tables, figures -->
3105
- <xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" priority="2" name="fn">
3121
+ <xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure')] and not(ancestor::*[local-name() = 'name']))]" priority="2" name="fn">
3106
3122
 
3107
3123
  <!-- list of footnotes to calculate actual footnotes number -->
3108
3124
  <xsl:variable name="p_fn_">
@@ -3159,8 +3175,7 @@
3159
3175
  </fo:basic-link>
3160
3176
  </fo:inline>
3161
3177
  </xsl:variable>
3162
- <!-- DEBUG: p_fn=<xsl:copy-of select="$p_fn"/>
3163
- gen_id=<xsl:value-of select="$gen_id"/> -->
3178
+
3164
3179
  <xsl:choose>
3165
3180
  <xsl:when test="normalize-space(@skip_footnote_body) = 'true'">
3166
3181
  <xsl:copy-of select="$footnote_inline"/>
@@ -3215,7 +3230,7 @@
3215
3230
  <!-- commented:
3216
3231
  .//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] |
3217
3232
  because 'fn' there is in biblio-tag -->
3218
- <xsl:for-each select=".//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
3233
+ <xsl:for-each select=".//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure')] and not(ancestor::*[local-name() = 'name']))][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
3219
3234
  <!-- copy unique fn -->
3220
3235
  <fn gen_id="{generate-id(.)}">
3221
3236
  <xsl:copy-of select="@*"/>
@@ -5754,7 +5769,9 @@
5754
5769
 
5755
5770
  <xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $width_effective, $height_effective)"/>
5756
5771
  <xsl:if test="number($scale) &lt; 100">
5757
- <xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
5772
+
5773
+ <xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
5774
+
5758
5775
  </xsl:if>
5759
5776
 
5760
5777
  </xsl:if>
@@ -6680,7 +6697,7 @@
6680
6697
  <!-- sourcecode -->
6681
6698
  <!-- =============== -->
6682
6699
 
6683
- <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'source-highlighter-css']"/>
6700
+ <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
6684
6701
  <xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
6685
6702
  <xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
6686
6703
 
@@ -6770,6 +6787,12 @@
6770
6787
  </xsl:attribute>
6771
6788
  </xsl:for-each>
6772
6789
 
6790
+ <!-- remove margin between rows in the table with sourcecode line numbers -->
6791
+ <xsl:if test="ancestor::*[local-name() = 'sourcecode'][@linenums = 'true'] and ancestor::*[local-name() = 'tr'][1]/following-sibling::*[local-name() = 'tr']">
6792
+ <xsl:attribute name="margin-top">0pt</xsl:attribute>
6793
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
6794
+ </xsl:if>
6795
+
6773
6796
  <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
6774
6797
  </fo:block>
6775
6798
 
@@ -6818,7 +6841,7 @@
6818
6841
  </xsl:template>
6819
6842
 
6820
6843
  <!-- outer table with line numbers for sourcecode -->
6821
- <xsl:template match="*[local-name()='table'][@type = 'sourcecode']" priority="2">
6844
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] | -->
6822
6845
  <fo:block>
6823
6846
  <fo:table width="100%" table-layout="fixed">
6824
6847
  <xsl:copy-of select="@id"/>
@@ -6830,16 +6853,16 @@
6830
6853
  </fo:table>
6831
6854
  </fo:block>
6832
6855
  </xsl:template>
6833
- <xsl:template match="*[local-name()='table'][@type = 'sourcecode']/*[local-name() = 'tbody']" priority="2">
6856
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']/*[local-name() = 'tbody']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode']/*[local-name() = 'tbody'] | -->
6834
6857
  <xsl:apply-templates/>
6835
6858
  </xsl:template>
6836
- <xsl:template match="*[local-name()='table'][@type = 'sourcecode']//*[local-name()='tr']" priority="2">
6859
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode']//*[local-name()='tr'] | -->
6837
6860
  <fo:table-row>
6838
6861
  <xsl:apply-templates/>
6839
6862
  </fo:table-row>
6840
6863
  </xsl:template>
6841
6864
  <!-- first td with line numbers -->
6842
- <xsl:template match="*[local-name()='table'][@type = 'sourcecode']//*[local-name()='tr']/*[local-name()='td'][not(preceding-sibling::*)]" priority="2">
6865
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][not(preceding-sibling::*)]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
6843
6866
  <fo:table-cell>
6844
6867
  <fo:block>
6845
6868
 
@@ -6859,8 +6882,9 @@
6859
6882
  </fo:block>
6860
6883
  </fo:table-cell>
6861
6884
  </xsl:template>
6885
+
6862
6886
  <!-- second td with sourcecode -->
6863
- <xsl:template match="*[local-name()='table'][@type = 'sourcecode']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2">
6887
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
6864
6888
  <fo:table-cell>
6865
6889
  <fo:block>
6866
6890
  <xsl:apply-templates/>
@@ -7098,7 +7122,25 @@
7098
7122
  <xsl:template match="*[local-name()='pre']" name="pre">
7099
7123
  <fo:block xsl:use-attribute-sets="pre-style">
7100
7124
  <xsl:copy-of select="@id"/>
7101
- <xsl:apply-templates/>
7125
+ <xsl:choose>
7126
+
7127
+ <xsl:when test="ancestor::*[local-name() = 'sourcecode'][@linenums = 'true'] and ancestor::*[local-name()='td'][1][not(preceding-sibling::*)]"> <!-- pre in the first td in the table with @linenums = 'true' -->
7128
+ <xsl:if test="ancestor::*[local-name() = 'tr'][1]/following-sibling::*[local-name() = 'tr']"> <!-- is current tr isn't last -->
7129
+ <xsl:attribute name="margin-top">0pt</xsl:attribute>
7130
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
7131
+ </xsl:if>
7132
+ <fo:instream-foreign-object fox:alt-text="{.}" content-width="95%">
7133
+ <math xmlns="http://www.w3.org/1998/Math/MathML">
7134
+ <mtext><xsl:value-of select="."/></mtext>
7135
+ </math>
7136
+ </fo:instream-foreign-object>
7137
+ </xsl:when>
7138
+
7139
+ <xsl:otherwise>
7140
+ <xsl:apply-templates/>
7141
+ </xsl:otherwise>
7142
+
7143
+ </xsl:choose>
7102
7144
  </fo:block>
7103
7145
  </xsl:template>
7104
7146
  <!-- =============== -->
@@ -8721,8 +8763,8 @@
8721
8763
 
8722
8764
  <xsl:variable name="toc_level">
8723
8765
  <!-- https://www.metanorma.org/author/ref/document-attributes/ -->
8724
- <xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
8725
- <xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
8766
+ <xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
8767
+ <xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
8726
8768
  <xsl:choose>
8727
8769
  <xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
8728
8770
  <xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
@@ -9719,6 +9761,7 @@
9719
9761
  <xsl:choose>
9720
9762
  <xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
9721
9763
  <xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
9764
+ <xsl:when test="$align = 'justified'">justify</xsl:when>
9722
9765
  <xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
9723
9766
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9724
9767
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
@@ -124,6 +124,35 @@ a.FootnoteRef + a.FootnoteRef:before {
124
124
  color: red;
125
125
  text-decoration: line-through; }
126
126
 
127
+ /* code highlighting with line numbers */
128
+ table.rouge-line-table td.rouge-gutter {
129
+ -moz-user-select: none;
130
+ -ms-user-select: none;
131
+ -webkit-user-select: none;
132
+ user-select: none;
133
+ padding-right: 1em; }
134
+
135
+ table.rouge-line-table td.rouge-code {
136
+ -moz-user-select: all;
137
+ -ms-user-select: all;
138
+ -webkit-user-select: all;
139
+ user-select: all; }
140
+
141
+ table.rouge-line-table,
142
+ table.rouge-line-table th,
143
+ table.rouge-line-table td {
144
+ width: auto;
145
+ border: none;
146
+ margin: 0;
147
+ padding: 0;
148
+ font-size: 100%; }
149
+
150
+ table.rouge-line-table pre {
151
+ margin: 0;
152
+ padding: 0;
153
+ overflow-x: visible;
154
+ font-size: 100%; }
155
+
127
156
  #standard-band {
128
157
  background-color: #0AC442; }
129
158
 
@@ -124,6 +124,35 @@ a.FootnoteRef + a.FootnoteRef:before {
124
124
  color: red;
125
125
  text-decoration: line-through; }
126
126
 
127
+ /* code highlighting with line numbers */
128
+ table.rouge-line-table td.rouge-gutter {
129
+ -moz-user-select: none;
130
+ -ms-user-select: none;
131
+ -webkit-user-select: none;
132
+ user-select: none;
133
+ padding-right: 1em; }
134
+
135
+ table.rouge-line-table td.rouge-code {
136
+ -moz-user-select: all;
137
+ -ms-user-select: all;
138
+ -webkit-user-select: all;
139
+ user-select: all; }
140
+
141
+ table.rouge-line-table,
142
+ table.rouge-line-table th,
143
+ table.rouge-line-table td {
144
+ width: auto;
145
+ border: none;
146
+ margin: 0;
147
+ padding: 0;
148
+ font-size: 100%; }
149
+
150
+ table.rouge-line-table pre {
151
+ margin: 0;
152
+ padding: 0;
153
+ overflow-x: visible;
154
+ font-size: 100%; }
155
+
127
156
  #standard-band {
128
157
  background-color: #0AC442; }
129
158
 
@@ -352,6 +381,35 @@ a.FootnoteRef + a.FootnoteRef:before {
352
381
  color: red;
353
382
  text-decoration: line-through; }
354
383
 
384
+ /* code highlighting with line numbers */
385
+ table.rouge-line-table td.rouge-gutter {
386
+ -moz-user-select: none;
387
+ -ms-user-select: none;
388
+ -webkit-user-select: none;
389
+ user-select: none;
390
+ padding-right: 1em; }
391
+
392
+ table.rouge-line-table td.rouge-code {
393
+ -moz-user-select: all;
394
+ -ms-user-select: all;
395
+ -webkit-user-select: all;
396
+ user-select: all; }
397
+
398
+ table.rouge-line-table,
399
+ table.rouge-line-table th,
400
+ table.rouge-line-table td {
401
+ width: auto;
402
+ border: none;
403
+ margin: 0;
404
+ padding: 0;
405
+ font-size: 100%; }
406
+
407
+ table.rouge-line-table pre {
408
+ margin: 0;
409
+ padding: 0;
410
+ overflow-x: visible;
411
+ font-size: 100%; }
412
+
355
413
  #standard-band {
356
414
  background-color: #0AC442; }
357
415
 
@@ -989,7 +1047,7 @@ table {
989
1047
  table th, table td {
990
1048
  padding: 1em; }
991
1049
  table td.header {
992
- font-weigth: 400; }
1050
+ font-weight: 400; }
993
1051
 
994
1052
  p.TableTitle {
995
1053
  text-align: center;
@@ -1316,7 +1316,7 @@
1316
1316
  <value>commentaryOf</value>
1317
1317
  <value>hasCommentary</value>
1318
1318
  <value>related</value>
1319
- <value>complements</value>
1319
+ <value>hasComplement</value>
1320
1320
  <value>complementOf</value>
1321
1321
  <value>obsoletes</value>
1322
1322
  <value>obsoletedBy</value>
@@ -1580,7 +1580,7 @@
1580
1580
  </element>
1581
1581
  </define>
1582
1582
  <define name="misccontainer">
1583
- <element name="misc-container">
1583
+ <element name="metanorma-extension">
1584
1584
  <oneOrMore>
1585
1585
  <ref name="AnyElement"/>
1586
1586
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "2.2.1".freeze
3
+ VERSION = "2.2.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic