metanorma-bipm 2.7.4 → 2.7.6
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 +134 -112
- data/lib/isodoc/bipm/bipm.guide.xsl +134 -112
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +134 -112
- data/lib/isodoc/bipm/bipm.rapport.xsl +134 -112
- data/lib/isodoc/bipm/html/htmlstyle.css +27 -31
- data/lib/isodoc/bipm/init.rb +1 -1
- data/lib/isodoc/bipm/jcgm.standard.xsl +80 -62
- data/lib/isodoc/bipm/presentation_footnotes.rb +2 -5
- data/lib/metanorma/bipm/front.rb +2 -8
- data/lib/metanorma/bipm/isodoc.rng +26 -19
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +2 -2
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
<fo:region-end extent="19mm"/>
|
|
165
165
|
</fo:simple-page-master>
|
|
166
166
|
<!-- internal cover page -->
|
|
167
|
-
<fo:simple-page-master master-name="
|
|
167
|
+
<fo:simple-page-master master-name="inner-cover-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
|
168
168
|
<fo:region-body margin-top="11mm" margin-bottom="21mm" margin-left="25mm" margin-right="19mm"/>
|
|
169
169
|
<fo:region-before region-name="header" extent="11mm"/>
|
|
170
|
-
<fo:region-after region-name="
|
|
170
|
+
<fo:region-after region-name="inner-cover-page-footer" extent="21mm"/>
|
|
171
171
|
<fo:region-start extent="25mm"/>
|
|
172
172
|
<fo:region-end extent="19mm"/>
|
|
173
173
|
</fo:simple-page-master>
|
|
@@ -253,6 +253,8 @@
|
|
|
253
253
|
|
|
254
254
|
<xsl:call-template name="cover-page"/>
|
|
255
255
|
|
|
256
|
+
<xsl:call-template name="inner-cover-page"/>
|
|
257
|
+
|
|
256
258
|
<xsl:variable name="updated_xml">
|
|
257
259
|
<xsl:call-template name="updateXML"/>
|
|
258
260
|
<!-- <xsl:copy-of select="."/> -->
|
|
@@ -427,9 +429,11 @@
|
|
|
427
429
|
</fo:block-container>
|
|
428
430
|
</fo:flow>
|
|
429
431
|
</fo:page-sequence>
|
|
432
|
+
</xsl:template> <!-- END: cover-page -->
|
|
430
433
|
|
|
431
|
-
|
|
432
|
-
|
|
434
|
+
<xsl:template name="inner-cover-page">
|
|
435
|
+
<fo:page-sequence master-reference="inner-cover-page" force-page-count="no-force">
|
|
436
|
+
<fo:static-content flow-name="inner-cover-page-footer" font-size="9pt">
|
|
433
437
|
<!-- example: (c) JCGM 2009— All rights reserved -->
|
|
434
438
|
<fo:block text-align="right">
|
|
435
439
|
<xsl:value-of select="$copyrightText"/>
|
|
@@ -477,8 +481,8 @@
|
|
|
477
481
|
</xsl:if>
|
|
478
482
|
</fo:block>
|
|
479
483
|
</fo:flow>
|
|
480
|
-
</fo:page-sequence>
|
|
481
|
-
|
|
484
|
+
</fo:page-sequence>
|
|
485
|
+
</xsl:template> <!-- END: inner-cover-page -->
|
|
482
486
|
|
|
483
487
|
<xsl:template name="processPrefaceAndMainSectionsJCGM_items">
|
|
484
488
|
|
|
@@ -2184,6 +2188,7 @@
|
|
|
2184
2188
|
<xsl:variable name="en_dash">–</xsl:variable>
|
|
2185
2189
|
<xsl:variable name="em_dash">—</xsl:variable>
|
|
2186
2190
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
|
2191
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
|
2187
2192
|
<xsl:variable name="cr"> </xsl:variable>
|
|
2188
2193
|
<xsl:variable name="lf">
|
|
2189
2194
|
</xsl:variable>
|
|
@@ -2726,6 +2731,7 @@
|
|
|
2726
2731
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
|
2727
2732
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
|
2728
2733
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
|
2734
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
|
2729
2735
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
|
2730
2736
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
|
2731
2737
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
|
@@ -2740,10 +2746,10 @@
|
|
|
2740
2746
|
|
|
2741
2747
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
|
2742
2748
|
|
|
2743
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
|
2749
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
|
2744
2750
|
<xsl:copy>
|
|
2745
2751
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
2746
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
|
2752
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
|
2747
2753
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
|
2748
2754
|
</xsl:copy>
|
|
2749
2755
|
</xsl:template>
|
|
@@ -3585,7 +3591,6 @@
|
|
|
3585
3591
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
|
3586
3592
|
|
|
3587
3593
|
<xsl:template name="refine_feedback-statement-title-style">
|
|
3588
|
-
|
|
3589
3594
|
</xsl:template>
|
|
3590
3595
|
|
|
3591
3596
|
<xsl:attribute-set name="feedback-statement-p-style">
|
|
@@ -3839,6 +3844,12 @@
|
|
|
3839
3844
|
<xsl:template name="refine_sourcecode-style">
|
|
3840
3845
|
</xsl:template> <!-- refine_sourcecode-style -->
|
|
3841
3846
|
|
|
3847
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
|
3848
|
+
</xsl:attribute-set>
|
|
3849
|
+
|
|
3850
|
+
<xsl:template name="refine_sourcecode-number-style">
|
|
3851
|
+
</xsl:template>
|
|
3852
|
+
|
|
3842
3853
|
<xsl:attribute-set name="sourcecode-name-style">
|
|
3843
3854
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
3844
3855
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
@@ -5226,6 +5237,12 @@
|
|
|
5226
5237
|
<xsl:template name="refine_term-name-style">
|
|
5227
5238
|
</xsl:template>
|
|
5228
5239
|
|
|
5240
|
+
<xsl:attribute-set name="preferred-style">
|
|
5241
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
|
5242
|
+
|
|
5243
|
+
<xsl:template name="refine_preferred-style">
|
|
5244
|
+
</xsl:template>
|
|
5245
|
+
|
|
5229
5246
|
<xsl:attribute-set name="preferred-block-style">
|
|
5230
5247
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
|
5231
5248
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
|
@@ -5870,6 +5887,12 @@
|
|
|
5870
5887
|
</xsl:if>
|
|
5871
5888
|
</xsl:template> <!-- refine_table-style -->
|
|
5872
5889
|
|
|
5890
|
+
<xsl:attribute-set name="table-number-style">
|
|
5891
|
+
</xsl:attribute-set>
|
|
5892
|
+
|
|
5893
|
+
<xsl:template name="refine_table-number-style">
|
|
5894
|
+
</xsl:template>
|
|
5895
|
+
|
|
5873
5896
|
<xsl:attribute-set name="table-name-style">
|
|
5874
5897
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
|
5875
5898
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
@@ -6339,7 +6362,7 @@
|
|
|
6339
6362
|
|
|
6340
6363
|
</fo:block>
|
|
6341
6364
|
|
|
6342
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
|
6365
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
|
6343
6366
|
<xsl:if test="$continued = 'true'">
|
|
6344
6367
|
|
|
6345
6368
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
|
@@ -9439,15 +9462,22 @@
|
|
|
9439
9462
|
<xsl:attribute name="margin-right">7mm</xsl:attribute>
|
|
9440
9463
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
|
9441
9464
|
</xsl:if>
|
|
9442
|
-
</xsl:template>
|
|
9465
|
+
</xsl:template> <!-- refine_quote-style -->
|
|
9443
9466
|
|
|
9444
9467
|
<xsl:attribute-set name="quote-source-style">
|
|
9445
9468
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
|
9446
|
-
</xsl:attribute-set>
|
|
9469
|
+
</xsl:attribute-set> <!-- quote-source-style -->
|
|
9447
9470
|
|
|
9448
9471
|
<xsl:template name="refine_quote-source-style">
|
|
9449
9472
|
</xsl:template>
|
|
9450
9473
|
|
|
9474
|
+
<xsl:attribute-set name="source-style">
|
|
9475
|
+
</xsl:attribute-set> <!-- source-style -->
|
|
9476
|
+
|
|
9477
|
+
<xsl:template name="refine_source-style">
|
|
9478
|
+
|
|
9479
|
+
</xsl:template> <!-- refine_source-style -->
|
|
9480
|
+
|
|
9451
9481
|
<!-- ====== -->
|
|
9452
9482
|
<!-- quote -->
|
|
9453
9483
|
<!-- source -->
|
|
@@ -9498,7 +9528,9 @@
|
|
|
9498
9528
|
</xsl:if>
|
|
9499
9529
|
<xsl:choose>
|
|
9500
9530
|
<xsl:when test="not(parent::quote)">
|
|
9501
|
-
<fo:block>
|
|
9531
|
+
<fo:block xsl:use-attribute-sets="source-style">
|
|
9532
|
+
<xsl:call-template name="refine_source-style"/>
|
|
9533
|
+
|
|
9502
9534
|
<xsl:call-template name="insert_basic_link">
|
|
9503
9535
|
<xsl:with-param name="element">
|
|
9504
9536
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
|
@@ -9545,6 +9577,12 @@
|
|
|
9545
9577
|
<xsl:template name="refine_figure-style">
|
|
9546
9578
|
</xsl:template>
|
|
9547
9579
|
|
|
9580
|
+
<xsl:attribute-set name="figure-number-style">
|
|
9581
|
+
</xsl:attribute-set>
|
|
9582
|
+
|
|
9583
|
+
<xsl:template name="refine_figure-number-style">
|
|
9584
|
+
</xsl:template>
|
|
9585
|
+
|
|
9548
9586
|
<xsl:attribute-set name="figure-name-style">
|
|
9549
9587
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
|
9550
9588
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
@@ -11598,7 +11636,7 @@
|
|
|
11598
11636
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
|
11599
11637
|
</xsl:if>
|
|
11600
11638
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
|
11601
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
|
11639
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
|
|
11602
11640
|
</xsl:template> <!-- refine_fn-reference-style -->
|
|
11603
11641
|
|
|
11604
11642
|
<xsl:attribute-set name="fn-style">
|
|
@@ -11609,6 +11647,7 @@
|
|
|
11609
11647
|
</xsl:template>
|
|
11610
11648
|
|
|
11611
11649
|
<xsl:attribute-set name="fn-num-style">
|
|
11650
|
+
<xsl:attribute name="role">Reference</xsl:attribute>
|
|
11612
11651
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
|
11613
11652
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
|
11614
11653
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
|
@@ -11685,33 +11724,16 @@
|
|
|
11685
11724
|
<xsl:variable name="ref_id" select="@target"/>
|
|
11686
11725
|
|
|
11687
11726
|
<xsl:variable name="footnote_inline">
|
|
11688
|
-
<fo:inline
|
|
11689
|
-
|
|
11690
|
-
<xsl:variable name="fn_styles">
|
|
11691
|
-
<xsl:choose>
|
|
11692
|
-
<xsl:when test="ancestor::mn:bibitem">
|
|
11693
|
-
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
|
11694
|
-
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
|
11695
|
-
</fn_styles>
|
|
11696
|
-
</xsl:when>
|
|
11697
|
-
<xsl:otherwise>
|
|
11698
|
-
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
|
11699
|
-
<xsl:call-template name="refine_fn-num-style"/>
|
|
11700
|
-
</fn_styles>
|
|
11701
|
-
</xsl:otherwise>
|
|
11702
|
-
</xsl:choose>
|
|
11703
|
-
</xsl:variable>
|
|
11727
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
|
11704
11728
|
|
|
11705
|
-
<xsl:
|
|
11706
|
-
<xsl:copy-of select="."/>
|
|
11707
|
-
</xsl:for-each>
|
|
11729
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
|
11708
11730
|
|
|
11709
11731
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
|
11710
11732
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
|
11711
11733
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
|
11712
11734
|
</xsl:if> -->
|
|
11713
11735
|
|
|
11714
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
|
11736
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
|
|
11715
11737
|
|
|
11716
11738
|
<xsl:call-template name="insert_basic_link">
|
|
11717
11739
|
<xsl:with-param name="element">
|
|
@@ -12011,32 +12033,6 @@
|
|
|
12011
12033
|
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
|
12012
12034
|
</xsl:template>
|
|
12013
12035
|
|
|
12014
|
-
<!-- footnote reference number for bibitem, in the text -->
|
|
12015
|
-
<xsl:attribute-set name="bibitem-note-fn-style">
|
|
12016
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
|
12017
|
-
<xsl:attribute name="font-size">65%</xsl:attribute>
|
|
12018
|
-
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
|
12019
|
-
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
|
12020
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
|
12021
|
-
|
|
12022
|
-
<xsl:template name="refine_bibitem-note-fn-style">
|
|
12023
|
-
</xsl:template>
|
|
12024
|
-
|
|
12025
|
-
<!-- footnote number on the page bottom -->
|
|
12026
|
-
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
|
12027
|
-
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
|
12028
|
-
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
|
|
12029
|
-
<xsl:attribute name="padding-right">3mm</xsl:attribute>
|
|
12030
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
|
12031
|
-
|
|
12032
|
-
<!-- footnote body (text) on the page bottom -->
|
|
12033
|
-
<xsl:attribute-set name="bibitem-note-fn-body-style">
|
|
12034
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
12035
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
12036
|
-
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
|
12037
|
-
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
|
12038
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
|
12039
|
-
|
|
12040
12036
|
<xsl:attribute-set name="references-non-normative-style">
|
|
12041
12037
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
|
12042
12038
|
|
|
@@ -12116,7 +12112,7 @@
|
|
|
12116
12112
|
|
|
12117
12113
|
<fo:list-item>
|
|
12118
12114
|
<fo:list-item-label end-indent="label-end()">
|
|
12119
|
-
<fo:block role="SKIP">
|
|
12115
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
|
12120
12116
|
<fo:inline role="SKIP">
|
|
12121
12117
|
<xsl:apply-templates select="mn:biblio-tag">
|
|
12122
12118
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
|
@@ -14392,10 +14388,28 @@
|
|
|
14392
14388
|
</xsl:choose>
|
|
14393
14389
|
</xsl:template>
|
|
14394
14390
|
|
|
14391
|
+
<xsl:attribute-set name="clause-style">
|
|
14392
|
+
|
|
14393
|
+
</xsl:attribute-set>
|
|
14394
|
+
|
|
14395
|
+
<xsl:template name="refine_clause-style">
|
|
14396
|
+
<!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
|
|
14397
|
+
<!-- <xsl:if test="$namespace = 'rsd'">
|
|
14398
|
+
<xsl:variable name="level">
|
|
14399
|
+
<xsl:call-template name="getLevel">
|
|
14400
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
14401
|
+
</xsl:call-template>
|
|
14402
|
+
</xsl:variable>
|
|
14403
|
+
<xsl:if test="$level >= 4">
|
|
14404
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
14405
|
+
</xsl:if>
|
|
14406
|
+
</xsl:if> -->
|
|
14407
|
+
</xsl:template>
|
|
14408
|
+
|
|
14395
14409
|
<!-- main sections -->
|
|
14396
14410
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
14397
14411
|
<xsl:call-template name="setNamedDestination"/>
|
|
14398
|
-
<fo:block>
|
|
14412
|
+
<fo:block role="Sect">
|
|
14399
14413
|
<xsl:call-template name="setId"/>
|
|
14400
14414
|
|
|
14401
14415
|
<xsl:call-template name="sections_element_style"/>
|
|
@@ -14525,6 +14539,10 @@
|
|
|
14525
14539
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
14526
14540
|
</xsl:template>
|
|
14527
14541
|
|
|
14542
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
|
14543
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
|
14544
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
|
14545
|
+
|
|
14528
14546
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
|
14529
14547
|
<xsl:template name="insert_basic_link">
|
|
14530
14548
|
<xsl:param name="element"/>
|
|
@@ -99,15 +99,12 @@ module IsoDoc
|
|
|
99
99
|
super
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
def
|
|
102
|
+
def table_footnotes(docxml)
|
|
103
103
|
table_fns = docxml.xpath(ns("//table//fn")) -
|
|
104
104
|
docxml.xpath(ns("//table/name//fn")) -
|
|
105
105
|
docxml.xpath(ns("//table/fmt-name//fn"))
|
|
106
106
|
@jcgm or table_fns -= docxml.xpath(ns("//quote//table//fn"))
|
|
107
|
-
|
|
108
|
-
docxml.xpath(ns("//figure/name//fn")) -
|
|
109
|
-
docxml.xpath(ns("//figure/fmt-name//fn"))
|
|
110
|
-
table_fns + fig_fns
|
|
107
|
+
table_fns
|
|
111
108
|
end
|
|
112
109
|
end
|
|
113
110
|
end
|
data/lib/metanorma/bipm/front.rb
CHANGED
|
@@ -91,10 +91,7 @@ module Metanorma
|
|
|
91
91
|
|
|
92
92
|
def title(node, xml)
|
|
93
93
|
["en", "fr"].each do |lang|
|
|
94
|
-
|
|
95
|
-
xml.title **attr_code(at.merge(type: "title-main")) do |t1|
|
|
96
|
-
t1 << Metanorma::Utils::asciidoc_sub(node.attr("title-#{lang}"))
|
|
97
|
-
end
|
|
94
|
+
add_title_xml(xml, node.attr("title-#{lang}"), lang, "title-main")
|
|
98
95
|
%w(cover appendix annex part subpart provenance).each do |w|
|
|
99
96
|
typed_title(node, xml, lang, w)
|
|
100
97
|
end
|
|
@@ -102,11 +99,8 @@ module Metanorma
|
|
|
102
99
|
end
|
|
103
100
|
|
|
104
101
|
def typed_title(node, xml, lang, type)
|
|
105
|
-
at = { language: lang, format: "text/plain" }
|
|
106
102
|
title = node.attr("title-#{type}-#{lang}") or return
|
|
107
|
-
xml
|
|
108
|
-
t1 << Metanorma::Utils::asciidoc_sub(title)
|
|
109
|
-
end
|
|
103
|
+
add_title_xml(xml, title, lang, "title-#{type}")
|
|
110
104
|
end
|
|
111
105
|
end
|
|
112
106
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
3
|
-
<!-- VERSION v2.1.
|
|
3
|
+
<!-- VERSION v2.1.3 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
|
@@ -455,14 +455,7 @@ normative or informative references, some split references into sections organiz
|
|
|
455
455
|
</ref>
|
|
456
456
|
</zeroOrMore>
|
|
457
457
|
<zeroOrMore>
|
|
458
|
-
<ref name="
|
|
459
|
-
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
|
460
|
-
</ref>
|
|
461
|
-
<zeroOrMore>
|
|
462
|
-
<ref name="note">
|
|
463
|
-
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
|
464
|
-
</ref>
|
|
465
|
-
</zeroOrMore>
|
|
458
|
+
<ref name="ReferenceEntry"/>
|
|
466
459
|
</zeroOrMore>
|
|
467
460
|
<zeroOrMore>
|
|
468
461
|
<ref name="references">
|
|
@@ -604,18 +597,21 @@ gives an explicit page orientation</a:documentation>
|
|
|
604
597
|
</element>
|
|
605
598
|
</optional>
|
|
606
599
|
</define>
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
<attribute name="hiddenref">
|
|
613
|
-
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
|
600
|
+
<define name="FnAttributes">
|
|
601
|
+
<ref name="RequiredId"/>
|
|
602
|
+
<optional>
|
|
603
|
+
<attribute name="hiddenref">
|
|
604
|
+
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
|
614
605
|
This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
|
|
615
|
-
|
|
606
|
+
<data type="boolean"/>
|
|
607
|
+
</attribute>
|
|
608
|
+
</optional>
|
|
609
|
+
<attribute name="reference">
|
|
610
|
+
<a:documentation>The number of the footnote, used to identify it visually</a:documentation>
|
|
616
611
|
</attribute>
|
|
617
|
-
</
|
|
618
|
-
</
|
|
612
|
+
</define>
|
|
613
|
+
</include>
|
|
614
|
+
<!-- end overrides -->
|
|
619
615
|
<define name="TdAttributes" combine="interleave">
|
|
620
616
|
<ref name="RequiredId"/>
|
|
621
617
|
<optional>
|
|
@@ -853,6 +849,17 @@ titlecase, or lowercase</a:documentation>
|
|
|
853
849
|
<value>informative</value>
|
|
854
850
|
</choice>
|
|
855
851
|
</define>
|
|
852
|
+
<define name="ReferenceEntry">
|
|
853
|
+
<a:documentation>Entry in bibliography</a:documentation>
|
|
854
|
+
<ref name="doc_bibitem">
|
|
855
|
+
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
|
856
|
+
</ref>
|
|
857
|
+
<zeroOrMore>
|
|
858
|
+
<ref name="note">
|
|
859
|
+
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
|
860
|
+
</ref>
|
|
861
|
+
</zeroOrMore>
|
|
862
|
+
</define>
|
|
856
863
|
<define name="doc_bibitem">
|
|
857
864
|
<a:documentation>Standardisation document representation of bibliographic entry</a:documentation>
|
|
858
865
|
<element name="bibitem">
|
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.7.
|
|
4
|
+
version: 2.7.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-09-
|
|
11
|
+
date: 2025-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-generic
|