metanorma-bipm 2.0.5 → 2.0.8
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 +4 -4
- data/lib/isodoc/bipm/bipm.brochure.xsl +172 -32
- data/lib/isodoc/bipm/bipm.guide.xsl +172 -32
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +172 -32
- data/lib/isodoc/bipm/bipm.rapport.xsl +172 -32
- data/lib/isodoc/bipm/jcgm.standard.xsl +173 -33
- data/lib/metanorma/bipm/biblio.rng +25 -2
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +1 -1
- metadata +5 -5
@@ -155,7 +155,13 @@
|
|
155
155
|
|
156
156
|
|
157
157
|
<xsl:template match="/">
|
158
|
-
<fo:root
|
158
|
+
<fo:root xml:lang="{$lang}">
|
159
|
+
<xsl:variable name="root-style">
|
160
|
+
<root-style xsl:use-attribute-sets="root-style"/>
|
161
|
+
</xsl:variable>
|
162
|
+
<xsl:call-template name="insertRootStyle">
|
163
|
+
<xsl:with-param name="root-style" select="$root-style"/>
|
164
|
+
</xsl:call-template>
|
159
165
|
<fo:layout-master-set>
|
160
166
|
<!-- cover page -->
|
161
167
|
<fo:simple-page-master master-name="cover-page-jcgm" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
@@ -1760,7 +1766,7 @@
|
|
1760
1766
|
</fo:block-container>
|
1761
1767
|
</xsl:template>
|
1762
1768
|
|
1763
|
-
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:
|
1769
|
+
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:variable name="lang">
|
1764
1770
|
<xsl:call-template name="getLang"/>
|
1765
1771
|
</xsl:variable><xsl:variable name="pageWidth_">
|
1766
1772
|
210
|
@@ -1910,7 +1916,30 @@
|
|
1910
1916
|
|
1911
1917
|
|
1912
1918
|
|
1913
|
-
</xsl:attribute-set><xsl:
|
1919
|
+
</xsl:attribute-set><xsl:template name="insertRootStyle">
|
1920
|
+
<xsl:param name="root-style"/>
|
1921
|
+
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
1922
|
+
|
1923
|
+
<xsl:variable name="additional_fonts_">
|
1924
|
+
<xsl:for-each select="//*[local-name() = 'misc-container'][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
|
1925
|
+
<xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
|
1926
|
+
</xsl:for-each>
|
1927
|
+
</xsl:variable>
|
1928
|
+
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
|
1929
|
+
|
1930
|
+
<xsl:for-each select="$root-style_/root-style/@*">
|
1931
|
+
<xsl:choose>
|
1932
|
+
<xsl:when test="local-name() = 'font-family' and $additional_fonts != ''">
|
1933
|
+
<xsl:attribute name="{local-name()}">
|
1934
|
+
<xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
|
1935
|
+
</xsl:attribute>
|
1936
|
+
</xsl:when>
|
1937
|
+
<xsl:otherwise>
|
1938
|
+
<xsl:copy-of select="."/>
|
1939
|
+
</xsl:otherwise>
|
1940
|
+
</xsl:choose>
|
1941
|
+
</xsl:for-each>
|
1942
|
+
</xsl:template><xsl:attribute-set name="copyright-statement-style">
|
1914
1943
|
|
1915
1944
|
</xsl:attribute-set><xsl:attribute-set name="copyright-statement-title-style">
|
1916
1945
|
|
@@ -2451,7 +2480,7 @@
|
|
2451
2480
|
|
2452
2481
|
|
2453
2482
|
|
2454
|
-
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
2483
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
2455
2484
|
|
2456
2485
|
|
2457
2486
|
|
@@ -3159,8 +3188,27 @@
|
|
3159
3188
|
<xsl:sort select="@displayorder" data-type="number"/>
|
3160
3189
|
<xsl:apply-templates select="."/>
|
3161
3190
|
</xsl:for-each>
|
3162
|
-
</xsl:template><xsl:template match="text()">
|
3163
|
-
<xsl:
|
3191
|
+
</xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
|
3192
|
+
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
3193
|
+
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
|
3194
|
+
<xsl:call-template name="replace_fo_inline">
|
3195
|
+
<xsl:with-param name="text" select="$text"/>
|
3196
|
+
</xsl:call-template>
|
3197
|
+
</xsl:template><xsl:template name="replace_fo_inline">
|
3198
|
+
<xsl:param name="text"/>
|
3199
|
+
<xsl:choose>
|
3200
|
+
<xsl:when test="contains($text, $tag_open)">
|
3201
|
+
<xsl:value-of select="substring-before($text, $tag_open)"/>
|
3202
|
+
<xsl:text disable-output-escaping="yes"><fo:inline keep-together.within-line="always"></xsl:text>
|
3203
|
+
<xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
|
3204
|
+
<xsl:value-of select="substring-before($text_after, $tag_close)"/>
|
3205
|
+
<xsl:text disable-output-escaping="yes"></fo:inline></xsl:text>
|
3206
|
+
<xsl:call-template name="replace_fo_inline">
|
3207
|
+
<xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
|
3208
|
+
</xsl:call-template>
|
3209
|
+
</xsl:when>
|
3210
|
+
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
3211
|
+
</xsl:choose>
|
3164
3212
|
</xsl:template><xsl:template match="*[local-name()='br']">
|
3165
3213
|
<xsl:value-of select="$linebreak"/>
|
3166
3214
|
</xsl:template><xsl:template match="*[local-name()='copyright-statement']">
|
@@ -4897,24 +4945,28 @@
|
|
4897
4945
|
</xsl:template><xsl:template name="add-zero-spaces-equal">
|
4898
4946
|
<xsl:param name="text" select="."/>
|
4899
4947
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
4948
|
+
<xsl:variable name="regex_zero-space-after-equals">(==========)</xsl:variable>
|
4900
4949
|
<xsl:variable name="zero-space-after-equal">=</xsl:variable>
|
4950
|
+
<xsl:variable name="regex_zero-space-after-equal">(=)</xsl:variable>
|
4901
4951
|
<xsl:variable name="zero-space"></xsl:variable>
|
4902
4952
|
<xsl:choose>
|
4903
4953
|
<xsl:when test="contains($text, $zero-space-after-equals)">
|
4904
|
-
<xsl:value-of select="substring-before($text, $zero-space-after-equals)"/>
|
4954
|
+
<!-- <xsl:value-of select="substring-before($text, $zero-space-after-equals)"/>
|
4905
4955
|
<xsl:value-of select="$zero-space-after-equals"/>
|
4906
4956
|
<xsl:value-of select="$zero-space"/>
|
4907
4957
|
<xsl:call-template name="add-zero-spaces-equal">
|
4908
4958
|
<xsl:with-param name="text" select="substring-after($text, $zero-space-after-equals)"/>
|
4909
|
-
</xsl:call-template>
|
4959
|
+
</xsl:call-template> -->
|
4960
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),$regex_zero-space-after-equals,concat('$1',$zero_width_space))"/>
|
4910
4961
|
</xsl:when>
|
4911
4962
|
<xsl:when test="contains($text, $zero-space-after-equal)">
|
4912
|
-
<xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
|
4963
|
+
<!-- <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
|
4913
4964
|
<xsl:value-of select="$zero-space-after-equal"/>
|
4914
4965
|
<xsl:value-of select="$zero-space"/>
|
4915
4966
|
<xsl:call-template name="add-zero-spaces-equal">
|
4916
4967
|
<xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
|
4917
|
-
</xsl:call-template>
|
4968
|
+
</xsl:call-template> -->
|
4969
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),$regex_zero-space-after-equal,concat('$1',$zero_width_space))"/>
|
4918
4970
|
</xsl:when>
|
4919
4971
|
<xsl:otherwise>
|
4920
4972
|
<xsl:value-of select="$text"/>
|
@@ -5390,7 +5442,12 @@
|
|
5390
5442
|
|
5391
5443
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
5392
5444
|
|
5445
|
+
<xsl:if test="not(*[local-name() = 'name']/following-sibling::node()[1][self::text()][normalize-space()=''])">
|
5446
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5447
|
+
</xsl:if>
|
5448
|
+
|
5393
5449
|
|
5450
|
+
|
5394
5451
|
|
5395
5452
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
5396
5453
|
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
@@ -6362,7 +6419,73 @@
|
|
6362
6419
|
<xsl:with-param name="text" select="$text_step1"/>
|
6363
6420
|
</xsl:call-template>
|
6364
6421
|
</xsl:variable>
|
6365
|
-
|
6422
|
+
|
6423
|
+
<!-- <xsl:value-of select="$text_step2"/> -->
|
6424
|
+
|
6425
|
+
<!-- add zero-width space after space -->
|
6426
|
+
<xsl:variable name="text_step3" select="java:replaceAll(java:java.lang.String.new($text_step2),' ',' ')"/>
|
6427
|
+
|
6428
|
+
<!-- split text by zero-width space -->
|
6429
|
+
<xsl:variable name="text_step4">
|
6430
|
+
<xsl:call-template name="split_for_interspers">
|
6431
|
+
<xsl:with-param name="pText" select="$text_step3"/>
|
6432
|
+
<xsl:with-param name="sep" select="$zero_width_space"/>
|
6433
|
+
</xsl:call-template>
|
6434
|
+
</xsl:variable>
|
6435
|
+
|
6436
|
+
<xsl:for-each select="xalan:nodeset($text_step4)/node()">
|
6437
|
+
<xsl:choose>
|
6438
|
+
<xsl:when test="local-name() = 'interspers'"> <!-- word with length more than 30 will be interspersed with zero-width space -->
|
6439
|
+
<xsl:call-template name="interspers">
|
6440
|
+
<xsl:with-param name="str" select="."/>
|
6441
|
+
</xsl:call-template>
|
6442
|
+
</xsl:when>
|
6443
|
+
<xsl:otherwise>
|
6444
|
+
<xsl:value-of select="."/>
|
6445
|
+
</xsl:otherwise>
|
6446
|
+
</xsl:choose>
|
6447
|
+
</xsl:for-each>
|
6448
|
+
|
6449
|
+
</xsl:template><xsl:variable name="interspers_tag_open">###interspers123###</xsl:variable><xsl:variable name="interspers_tag_close">###/interspers123###</xsl:variable><xsl:template name="split_for_interspers">
|
6450
|
+
<xsl:param name="pText" select="."/>
|
6451
|
+
<xsl:param name="sep" select="','"/>
|
6452
|
+
<!-- word with length more than 30 will be interspersed with zero-width space -->
|
6453
|
+
<xsl:variable name="regex" select="concat('([^', $zero_width_space, ']{31,})')"/> <!-- sequence of characters (more 31), that doesn't contains zero-width space -->
|
6454
|
+
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new($pText),$regex,concat($interspers_tag_open,'$1',$interspers_tag_close))"/>
|
6455
|
+
<xsl:call-template name="replace_tag_interspers">
|
6456
|
+
<xsl:with-param name="text" select="$text"/>
|
6457
|
+
</xsl:call-template>
|
6458
|
+
</xsl:template><xsl:template name="replace_tag_interspers">
|
6459
|
+
<xsl:param name="text"/>
|
6460
|
+
<xsl:choose>
|
6461
|
+
<xsl:when test="contains($text, $interspers_tag_open)">
|
6462
|
+
<xsl:value-of select="substring-before($text, $interspers_tag_open)"/>
|
6463
|
+
<xsl:variable name="text_after" select="substring-after($text, $interspers_tag_open)"/>
|
6464
|
+
<interspers>
|
6465
|
+
<xsl:value-of select="substring-before($text_after, $interspers_tag_close)"/>
|
6466
|
+
</interspers>
|
6467
|
+
<xsl:call-template name="replace_tag_interspers">
|
6468
|
+
<xsl:with-param name="text" select="substring-after($text_after, $interspers_tag_close)"/>
|
6469
|
+
</xsl:call-template>
|
6470
|
+
</xsl:when>
|
6471
|
+
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
6472
|
+
</xsl:choose>
|
6473
|
+
</xsl:template><xsl:template name="interspers">
|
6474
|
+
<xsl:param name="str"/>
|
6475
|
+
<xsl:param name="char" select="$zero_width_space"/>
|
6476
|
+
<xsl:if test="$str != ''">
|
6477
|
+
<xsl:value-of select="substring($str, 1, 1)"/>
|
6478
|
+
|
6479
|
+
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
6480
|
+
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
6481
|
+
<xsl:value-of select="$char"/>
|
6482
|
+
</xsl:if>
|
6483
|
+
|
6484
|
+
<xsl:call-template name="interspers">
|
6485
|
+
<xsl:with-param name="str" select="substring($str, 2)"/>
|
6486
|
+
<xsl:with-param name="char" select="$char"/>
|
6487
|
+
</xsl:call-template>
|
6488
|
+
</xsl:if>
|
6366
6489
|
</xsl:template><xsl:template match="*" mode="syntax_highlight">
|
6367
6490
|
<xsl:apply-templates mode="syntax_highlight"/>
|
6368
6491
|
</xsl:template><xsl:variable name="syntax_highlight_styles_">
|
@@ -6743,7 +6866,7 @@
|
|
6743
6866
|
<xsl:variable name="element">
|
6744
6867
|
|
6745
6868
|
<xsl:choose>
|
6746
|
-
<xsl:when test="$num = 1">inline</xsl:when>
|
6869
|
+
<xsl:when test="$num = 1 and not(contains($fo_element, 'block'))">inline</xsl:when>
|
6747
6870
|
<xsl:otherwise>block</xsl:otherwise>
|
6748
6871
|
</xsl:choose>
|
6749
6872
|
|
@@ -6799,7 +6922,7 @@
|
|
6799
6922
|
</xsl:otherwise>
|
6800
6923
|
</xsl:choose> -->
|
6801
6924
|
</fo:block>
|
6802
|
-
</xsl:template><xsl:template match="*[local-name() = 'termsource']/text()[starts-with(., '[SOURCE: Adapted from: ')]" priority="2">
|
6925
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']/text()[starts-with(., '[SOURCE: Adapted from: ') or starts-with(., '[SOURCE: Quoted from: ') or starts-with(., '[SOURCE: Modified from: ')]" priority="2">
|
6803
6926
|
<xsl:text>[</xsl:text><xsl:value-of select="substring-after(., '[SOURCE: ')"/>
|
6804
6927
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
|
6805
6928
|
<xsl:if test="normalize-space() != ''">
|
@@ -6835,7 +6958,8 @@
|
|
6835
6958
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
6836
6959
|
</xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
|
6837
6960
|
<xsl:if test="normalize-space() != ''">
|
6838
|
-
<xsl:value-of select="."/>
|
6961
|
+
<!-- <xsl:value-of select="."/> -->
|
6962
|
+
<xsl:call-template name="text"/>
|
6839
6963
|
</xsl:if>
|
6840
6964
|
</xsl:template><xsl:template match="*[local-name() = 'quote']">
|
6841
6965
|
<fo:block-container margin-left="0mm">
|
@@ -6885,11 +7009,24 @@
|
|
6885
7009
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
6886
7010
|
<xsl:text>— </xsl:text>
|
6887
7011
|
<xsl:apply-templates/>
|
6888
|
-
</xsl:template><xsl:
|
7012
|
+
</xsl:template><xsl:variable name="bibitems_">
|
7013
|
+
<xsl:for-each select="//*[local-name() = 'bibitem']">
|
7014
|
+
<xsl:copy-of select="."/>
|
7015
|
+
</xsl:for-each>
|
7016
|
+
</xsl:variable><xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/><xsl:variable name="bibitems_hidden_">
|
7017
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
7018
|
+
<xsl:copy-of select="."/>
|
7019
|
+
</xsl:for-each>
|
7020
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
|
7021
|
+
<xsl:copy-of select="."/>
|
7022
|
+
</xsl:for-each>
|
7023
|
+
</xsl:variable><xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
6889
7024
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
6890
|
-
<xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/>
|
7025
|
+
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
7026
|
+
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6891
7027
|
<xsl:choose>
|
6892
|
-
<xsl:when test="$external-destination != '' or not(key('bibitems_hidden', $current_bibitemid))"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
7028
|
+
<!-- <xsl:when test="$external-destination != '' or not(key('bibitems_hidden', $current_bibitemid))"> --> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
7029
|
+
<xsl:when test="$external-destination != '' or not($bibitems_hidden/*[local-name() ='bibitem'][@id = $current_bibitemid])"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6893
7030
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
6894
7031
|
<xsl:if test="@type = 'footnote'">
|
6895
7032
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
@@ -8012,7 +8149,7 @@
|
|
8012
8149
|
<xsl:copy>
|
8013
8150
|
<xsl:copy-of select="@*"/>
|
8014
8151
|
<!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
|
8015
|
-
<xsl:for-each select="*[not(@normative='true') and not(*[
|
8152
|
+
<xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
|
8016
8153
|
<xsl:sort select="@displayorder" data-type="number"/>
|
8017
8154
|
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
8018
8155
|
</xsl:for-each>
|
@@ -8258,22 +8395,25 @@
|
|
8258
8395
|
<xsl:param name="pText" select="."/>
|
8259
8396
|
<xsl:param name="sep" select="','"/>
|
8260
8397
|
<xsl:param name="normalize-space" select="'true'"/>
|
8398
|
+
<xsl:param name="keep_sep" select="'false'"/>
|
8261
8399
|
<xsl:if test="string-length($pText) >0">
|
8262
|
-
|
8263
|
-
|
8264
|
-
|
8265
|
-
|
8266
|
-
|
8267
|
-
|
8268
|
-
|
8269
|
-
|
8270
|
-
|
8271
|
-
|
8272
|
-
|
8273
|
-
<xsl:
|
8274
|
-
|
8275
|
-
|
8276
|
-
|
8400
|
+
<item>
|
8401
|
+
<xsl:choose>
|
8402
|
+
<xsl:when test="$normalize-space = 'true'">
|
8403
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
8404
|
+
</xsl:when>
|
8405
|
+
<xsl:otherwise>
|
8406
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
8407
|
+
</xsl:otherwise>
|
8408
|
+
</xsl:choose>
|
8409
|
+
</item>
|
8410
|
+
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></item></xsl:if>
|
8411
|
+
<xsl:call-template name="split">
|
8412
|
+
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
8413
|
+
<xsl:with-param name="sep" select="$sep"/>
|
8414
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
8415
|
+
<xsl:with-param name="keep_sep" select="$keep_sep"/>
|
8416
|
+
</xsl:call-template>
|
8277
8417
|
</xsl:if>
|
8278
8418
|
</xsl:template><xsl:template name="getDocumentId">
|
8279
8419
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
@@ -527,7 +527,7 @@
|
|
527
527
|
</define>
|
528
528
|
<define name="LocalityType">
|
529
529
|
<data type="string">
|
530
|
-
<param name="pattern">section|clause|part|paragraph|chapter|page|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
|
530
|
+
<param name="pattern">section|clause|part|paragraph|chapter|page|title|line|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
|
531
531
|
</data>
|
532
532
|
</define>
|
533
533
|
<define name="referenceFrom">
|
@@ -677,6 +677,9 @@
|
|
677
677
|
<zeroOrMore>
|
678
678
|
<ref name="extent"/>
|
679
679
|
</zeroOrMore>
|
680
|
+
<optional>
|
681
|
+
<ref name="bibliographic_size"/>
|
682
|
+
</optional>
|
680
683
|
<zeroOrMore>
|
681
684
|
<ref name="accesslocation"/>
|
682
685
|
</zeroOrMore>
|
@@ -922,9 +925,29 @@
|
|
922
925
|
<text/>
|
923
926
|
</element>
|
924
927
|
</define>
|
928
|
+
<define name="sizevalue">
|
929
|
+
<element name="value">
|
930
|
+
<attribute name="type"/>
|
931
|
+
<text/>
|
932
|
+
</element>
|
933
|
+
</define>
|
934
|
+
<define name="bibliographic_size">
|
935
|
+
<element name="size">
|
936
|
+
<oneOrMore>
|
937
|
+
<ref name="sizevalue"/>
|
938
|
+
</oneOrMore>
|
939
|
+
</element>
|
940
|
+
</define>
|
925
941
|
<define name="extent">
|
926
942
|
<element name="extent">
|
927
|
-
<
|
943
|
+
<choice>
|
944
|
+
<zeroOrMore>
|
945
|
+
<ref name="locality"/>
|
946
|
+
</zeroOrMore>
|
947
|
+
<zeroOrMore>
|
948
|
+
<ref name="localityStack"/>
|
949
|
+
</zeroOrMore>
|
950
|
+
</choice>
|
928
951
|
</element>
|
929
952
|
</define>
|
930
953
|
<define name="series">
|
data/metanorma-bipm.gemspec
CHANGED
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency "sassc", "2.4.0"
|
40
40
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
41
41
|
spec.add_development_dependency "timecop", "~> 0.9"
|
42
|
-
spec.add_development_dependency "vcr", "~>
|
42
|
+
spec.add_development_dependency "vcr", "~> 6.1.0"
|
43
43
|
spec.add_development_dependency "webmock"
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-bipm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.8
|
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-
|
11
|
+
date: 2022-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 6.1.0
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 6.1.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: webmock
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
rubygems_version: 3.
|
301
|
+
rubygems_version: 3.3.9
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: metanorma-bipm lets you write BIPM standards in Metanorma.
|