metanorma-ribose 2.7.5 → 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/ribose/ribose.standard.xsl +187 -159
- data/lib/metanorma/ribose/biblio.rng +1 -1
- data/lib/metanorma/ribose/isodoc.rng +35 -10
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma-ribose.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38b190ae398a5e6724c9abc62418739045c05c00d5a5dcf1b9c1249077dd9885
|
4
|
+
data.tar.gz: 07f2118fd348f5a6adc2fe5f70f5be9aad98d965bbebabac624cfae45807be6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4204c8891cd12fc5a63dacc28eee280f9f2ee36a7ede9708fc04c0ce74277b162df90ede83d8e096dea1264bdf7d25e11fa7c31897040eb7db6ea65a19676c1
|
7
|
+
data.tar.gz: d70bb849797f7f7002f6e9a7840187e3d9b175960b77a2f93411df2f80fefd8341b92bbf25c42a0bc39d3cd6110b446c6c071e75fe7f4e4c4ea2810d14cafff5
|
@@ -423,108 +423,115 @@
|
|
423
423
|
|
424
424
|
<xsl:template name="cover-page">
|
425
425
|
<!-- Cover Page -->
|
426
|
-
<
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
426
|
+
<xsl:choose>
|
427
|
+
<xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
|
428
|
+
<xsl:call-template name="insertCoverPageFullImage"/>
|
429
|
+
</xsl:when>
|
430
|
+
<xsl:otherwise>
|
431
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
432
|
+
|
433
|
+
<fo:flow flow-name="xsl-region-body" color="black">
|
434
|
+
<!-- background image -->
|
435
|
+
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0">
|
436
|
+
<fo:block>
|
437
|
+
<!-- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/> -->
|
438
|
+
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" height="{$pageHeight}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
439
|
+
</fo:block>
|
440
|
+
</fo:block-container>
|
436
441
|
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
442
|
+
<!-- Ribose logo -->
|
443
|
+
<fo:block-container absolute-position="fixed" left="171mm" top="{$pageHeight - 33.4}mm" height="30mm" width="40mm" id="__internal_layout__logo_{generate-id()}"> <!-- top="246mm" -->
|
444
|
+
<fo:block>
|
445
|
+
<fo:instream-foreign-object content-width="32mm" fox:alt-text="Ribose Logo">
|
446
|
+
<xsl:copy-of select="$Ribose-Logo"/>
|
447
|
+
</fo:instream-foreign-object>
|
448
|
+
</fo:block>
|
449
|
+
</fo:block-container>
|
445
450
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
<fo:block>
|
460
|
-
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type='author']/mn:person/mn:name/mn:completename">
|
451
|
+
<fo:block-container absolute-position="fixed" left="0mm" top="{$pageHeight - 52.4}mm" height="41mm" display-align="after"> <!-- top="227mm" -->
|
452
|
+
<fo:block font-size="10pt" line-height="1.4">
|
453
|
+
<fo:table table-layout="fixed" width="100%">
|
454
|
+
<fo:table-column column-width="proportional-column-width(13)"/>
|
455
|
+
<fo:table-column column-width="proportional-column-width(38)"/>
|
456
|
+
<fo:table-column column-width="proportional-column-width(90)"/>
|
457
|
+
<fo:table-column column-width="proportional-column-width(61)"/>
|
458
|
+
<fo:table-column column-width="proportional-column-width(12)"/>
|
459
|
+
<fo:table-body>
|
460
|
+
<fo:table-row>
|
461
|
+
<fo:table-cell><fo:block/></fo:table-cell>
|
462
|
+
<fo:table-cell display-align="before" border-right="0.5pt solid black" padding-top="1.5mm" padding-right="5mm">
|
463
|
+
<!-- Author's list -->
|
461
464
|
<fo:block>
|
462
|
-
<xsl:
|
465
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type='author']/mn:person/mn:name/mn:completename">
|
466
|
+
<fo:block>
|
467
|
+
<xsl:apply-templates/>
|
468
|
+
</fo:block>
|
469
|
+
</xsl:for-each>
|
463
470
|
</fo:block>
|
464
|
-
</
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
</
|
490
|
-
</fo:
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
</fo:table
|
500
|
-
</fo:
|
501
|
-
</fo:
|
502
|
-
</fo:block>
|
503
|
-
</fo:block-container>
|
471
|
+
</fo:table-cell>
|
472
|
+
<fo:table-cell display-align="before" padding-top="1.5mm" padding-left="8mm">
|
473
|
+
<fo:block>
|
474
|
+
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:ext/mn:security"/>
|
475
|
+
<fo:block>
|
476
|
+
<xsl:call-template name="convertDate">
|
477
|
+
<xsl:with-param name="date" select="/mn:metanorma/mn:bibdata/mn:date[@type = 'published']/mn:on"/>
|
478
|
+
<xsl:with-param name="format" select="'Month DD, YYYY'"/>
|
479
|
+
</xsl:call-template>
|
480
|
+
</fo:block>
|
481
|
+
<fo:block><xsl:value-of select="$docnumber_version"/></fo:block>
|
482
|
+
<!-- <xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:committee"/> -->
|
483
|
+
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description = 'committee']/mn:organization/mn:subdivision[@type = 'Committee']/mn:name"/>
|
484
|
+
<fo:block>
|
485
|
+
<xsl:text>© </xsl:text>
|
486
|
+
<xsl:value-of select="$copyright_year"/>
|
487
|
+
<xsl:text> </xsl:text>
|
488
|
+
<xsl:variable name="publisher" select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type='publisher']/mn:organization/mn:name"/>
|
489
|
+
<xsl:value-of select="$publisher"/>
|
490
|
+
<xsl:if test="substring($publisher, string-length($publisher)) != '.'"><xsl:text>.</xsl:text></xsl:if>
|
491
|
+
<xsl:text> </xsl:text>
|
492
|
+
<xsl:call-template name="getLocalizedString">
|
493
|
+
<xsl:with-param name="key">all_rights_reserved</xsl:with-param>
|
494
|
+
</xsl:call-template>
|
495
|
+
</fo:block>
|
496
|
+
</fo:block>
|
497
|
+
</fo:table-cell>
|
498
|
+
<fo:table-cell display-align="after">
|
499
|
+
<fo:block text-align="right">
|
500
|
+
<!-- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Ribose-Logo))}" width="32mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Ribose Logo"/> -->
|
501
|
+
</fo:block>
|
502
|
+
</fo:table-cell>
|
503
|
+
<fo:table-cell><fo:block/></fo:table-cell>
|
504
|
+
</fo:table-row>
|
505
|
+
</fo:table-body>
|
506
|
+
</fo:table>
|
507
|
+
</fo:block>
|
508
|
+
</fo:block-container>
|
504
509
|
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
510
|
+
<!-- title and version -->
|
511
|
+
<fo:block-container margin-top="{$pageHeight - 279.4}mm" height="60mm" display-align="center">
|
512
|
+
<xsl:variable name="title" select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang]"/>
|
513
|
+
<xsl:if test="string-length($title) > 80">
|
514
|
+
<xsl:attribute name="margin-right">-30mm</xsl:attribute>
|
515
|
+
</xsl:if>
|
511
516
|
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
517
|
+
<xsl:variable name="titles">
|
518
|
+
<xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and (@type = 'intro' or not(@type))]"/>
|
519
|
+
<xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and @type = 'main'][last()]"/>
|
520
|
+
</xsl:variable>
|
521
|
+
<xsl:for-each select="xalan:nodeset($titles)/mn:title">
|
522
|
+
<fo:block font-size="27pt" font-weight="bold" role="H1">
|
523
|
+
<xsl:apply-templates/><xsl:if test="position() != last()"><xsl:value-of select="$nonbreak_space_em_dash"/></xsl:if>
|
524
|
+
</fo:block>
|
525
|
+
</xsl:for-each>
|
521
526
|
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
527
|
+
<fo:block space-before="9pt" font-size="16.8pt" font-weight="600">
|
528
|
+
<xsl:value-of select="$docnumber_version"/>
|
529
|
+
</fo:block>
|
530
|
+
</fo:block-container>
|
531
|
+
</fo:flow>
|
532
|
+
</fo:page-sequence>
|
533
|
+
</xsl:otherwise>
|
534
|
+
</xsl:choose>
|
528
535
|
</xsl:template> <!-- END: cover-page -->
|
529
536
|
|
530
537
|
<xsl:template name="inner-cover-page">
|
@@ -1013,15 +1020,17 @@
|
|
1013
1020
|
|
1014
1021
|
<xsl:template match="mn:fmt-preferred | mn:fmt-deprecates | mn:fmt-admitted" priority="2">
|
1015
1022
|
|
1016
|
-
<fo:block xsl:use-attribute-sets="preferred-style">
|
1017
|
-
<xsl:call-template name="
|
1023
|
+
<fo:block xsl:use-attribute-sets="term-preferred-block-style">
|
1024
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
1018
1025
|
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-name]">
|
1019
|
-
<fo:inline
|
1026
|
+
<fo:inline xsl:use-attribute-sets="term-number-style">
|
1027
|
+
<xsl:call-template name="refine_term-number-style"/>
|
1028
|
+
|
1020
1029
|
<xsl:apply-templates select="ancestor::mn:term[1]/mn:fmt-name"/>
|
1021
1030
|
</fo:inline>
|
1022
1031
|
</xsl:if>
|
1023
1032
|
|
1024
|
-
<fo:inline
|
1033
|
+
<fo:inline xsl:use-attribute-sets="term-preferred-style"><xsl:call-template name="refine_term-preferred-style"/><xsl:apply-templates/></fo:inline>
|
1025
1034
|
|
1026
1035
|
<xsl:variable name="term_kind">
|
1027
1036
|
<xsl:choose>
|
@@ -1147,13 +1156,20 @@
|
|
1147
1156
|
<xsl:template name="insertHeaderFooter">
|
1148
1157
|
<xsl:param name="section"/>
|
1149
1158
|
|
1150
|
-
<xsl:call-template name="
|
1159
|
+
<xsl:call-template name="insertHeader">
|
1151
1160
|
<xsl:with-param name="section" select="$section"/>
|
1152
1161
|
</xsl:call-template>
|
1153
1162
|
|
1154
1163
|
<xsl:call-template name="insertFooter"/>
|
1155
1164
|
</xsl:template>
|
1156
1165
|
|
1166
|
+
<xsl:template name="insertHeader">
|
1167
|
+
<xsl:param name="section"/>
|
1168
|
+
<xsl:call-template name="insertHoneycomb">
|
1169
|
+
<xsl:with-param name="section" select="$section"/>
|
1170
|
+
</xsl:call-template>
|
1171
|
+
</xsl:template>
|
1172
|
+
|
1157
1173
|
<xsl:template name="insertHoneycomb">
|
1158
1174
|
<xsl:param name="section"/>
|
1159
1175
|
<!-- LT - left top -->
|
@@ -4710,21 +4726,22 @@
|
|
4710
4726
|
<xsl:template name="refine_term-style">
|
4711
4727
|
</xsl:template>
|
4712
4728
|
|
4713
|
-
<xsl:attribute-set name="term-
|
4729
|
+
<xsl:attribute-set name="term-number-style">
|
4714
4730
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4715
4731
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4732
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
4716
4733
|
</xsl:attribute-set> <!-- term-name-style -->
|
4717
4734
|
|
4718
|
-
<xsl:template name="refine_term-
|
4735
|
+
<xsl:template name="refine_term-number-style">
|
4719
4736
|
</xsl:template>
|
4720
4737
|
|
4721
|
-
<xsl:attribute-set name="preferred-style">
|
4738
|
+
<xsl:attribute-set name="term-preferred-block-style">
|
4722
4739
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4723
4740
|
<xsl:attribute name="color">black</xsl:attribute>
|
4724
4741
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4725
|
-
</xsl:attribute-set> <!-- preferred-style -->
|
4742
|
+
</xsl:attribute-set> <!-- preferred-block-style -->
|
4726
4743
|
|
4727
|
-
<xsl:template name="
|
4744
|
+
<xsl:template name="refine_term-preferred-block-style">
|
4728
4745
|
<xsl:variable name="level">
|
4729
4746
|
<xsl:call-template name="getLevel"/>
|
4730
4747
|
</xsl:variable>
|
@@ -4744,78 +4761,75 @@
|
|
4744
4761
|
</xsl:if>
|
4745
4762
|
</xsl:template>
|
4746
4763
|
|
4747
|
-
<xsl:attribute-set name="preferred-
|
4748
|
-
</xsl:attribute-set> <!-- preferred-block-style -->
|
4749
|
-
|
4750
|
-
<xsl:template name="refine_preferred-block-style">
|
4751
|
-
</xsl:template>
|
4752
|
-
|
4753
|
-
<xsl:attribute-set name="preferred-term-style">
|
4764
|
+
<xsl:attribute-set name="term-preferred-style">
|
4754
4765
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4755
4766
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4767
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
4756
4768
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
4757
4769
|
|
4758
|
-
<xsl:template name="
|
4759
|
-
<xsl:
|
4760
|
-
|
4770
|
+
<xsl:template name="refine_term-preferred-style">
|
4771
|
+
<xsl:if test="self::mn:fmt-preferred">
|
4772
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
4773
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
4774
|
+
</xsl:if>
|
4761
4775
|
|
4762
4776
|
</xsl:template>
|
4763
4777
|
|
4764
|
-
<xsl:attribute-set name="domain-style">
|
4765
|
-
</xsl:attribute-set> <!-- domain-style -->
|
4778
|
+
<xsl:attribute-set name="term-domain-style">
|
4779
|
+
</xsl:attribute-set> <!-- term-domain-style -->
|
4766
4780
|
|
4767
|
-
<xsl:template name="
|
4781
|
+
<xsl:template name="refine_term-domain-style">
|
4768
4782
|
</xsl:template>
|
4769
4783
|
|
4770
|
-
<xsl:attribute-set name="admitted-style">
|
4784
|
+
<xsl:attribute-set name="term-admitted-style">
|
4771
4785
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4772
4786
|
<xsl:attribute name="color">black</xsl:attribute>
|
4773
|
-
</xsl:attribute-set> <!-- admitted-style -->
|
4787
|
+
</xsl:attribute-set> <!-- term-admitted-style -->
|
4774
4788
|
|
4775
|
-
<xsl:template name="
|
4789
|
+
<xsl:template name="refine_term-admitted-style">
|
4776
4790
|
</xsl:template>
|
4777
4791
|
|
4778
|
-
<xsl:attribute-set name="deprecates-style">
|
4792
|
+
<xsl:attribute-set name="term-deprecates-style">
|
4779
4793
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4780
4794
|
<xsl:attribute name="color">black</xsl:attribute>
|
4781
|
-
</xsl:attribute-set> <!-- deprecates-style -->
|
4795
|
+
</xsl:attribute-set> <!-- term-deprecates-style -->
|
4782
4796
|
|
4783
|
-
<xsl:template name="
|
4797
|
+
<xsl:template name="refine_term-deprecates-style">
|
4784
4798
|
</xsl:template>
|
4785
4799
|
|
4786
|
-
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
4800
|
+
<xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
|
4787
4801
|
</xsl:attribute-set>
|
4788
4802
|
|
4789
|
-
<xsl:template name="
|
4803
|
+
<xsl:template name="refine_term-related-block-style">
|
4790
4804
|
</xsl:template>
|
4791
4805
|
|
4792
|
-
<xsl:attribute-set name="definition-style">
|
4806
|
+
<xsl:attribute-set name="term-definition-style">
|
4793
4807
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4794
4808
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
4795
4809
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
4796
|
-
</xsl:attribute-set> <!-- definition-style -->
|
4810
|
+
</xsl:attribute-set> <!-- term-definition-style -->
|
4797
4811
|
|
4798
|
-
<xsl:template name="
|
4812
|
+
<xsl:template name="refine_term-definition-style">
|
4799
4813
|
</xsl:template>
|
4800
4814
|
|
4801
|
-
<xsl:attribute-set name="termsource-style">
|
4815
|
+
<xsl:attribute-set name="term-termsource-style">
|
4802
4816
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4803
|
-
</xsl:attribute-set> <!-- termsource-style -->
|
4817
|
+
</xsl:attribute-set> <!-- term-termsource-style -->
|
4804
4818
|
|
4805
|
-
<xsl:template name="
|
4806
|
-
</xsl:template> <!--
|
4819
|
+
<xsl:template name="refine_term-termsource-style">
|
4820
|
+
</xsl:template> <!-- refine_term-termsource-style -->
|
4807
4821
|
|
4808
|
-
<xsl:attribute-set name="termsource-text-style">
|
4822
|
+
<xsl:attribute-set name="term-termsource-text-style">
|
4809
4823
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4810
|
-
</xsl:attribute-set> <!-- termsource-text-style -->
|
4824
|
+
</xsl:attribute-set> <!-- term-termsource-text-style -->
|
4811
4825
|
|
4812
|
-
<xsl:template name="
|
4826
|
+
<xsl:template name="refine_term-termsource-text-style">
|
4813
4827
|
</xsl:template>
|
4814
4828
|
|
4815
|
-
<xsl:attribute-set name="origin-style">
|
4816
|
-
</xsl:attribute-set> <!-- origin-style -->
|
4829
|
+
<xsl:attribute-set name="term-origin-style">
|
4830
|
+
</xsl:attribute-set> <!-- term-origin-style -->
|
4817
4831
|
|
4818
|
-
<xsl:template name="
|
4832
|
+
<xsl:template name="refine_term-origin-style">
|
4819
4833
|
</xsl:template>
|
4820
4834
|
|
4821
4835
|
<!-- ====== -->
|
@@ -4859,9 +4873,9 @@
|
|
4859
4873
|
<!-- modification -->
|
4860
4874
|
<!-- ====== -->
|
4861
4875
|
<xsl:template match="mn:fmt-termsource" name="termsource">
|
4862
|
-
<fo:block xsl:use-attribute-sets="termsource-style">
|
4876
|
+
<fo:block xsl:use-attribute-sets="term-termsource-style">
|
4863
4877
|
|
4864
|
-
<xsl:call-template name="
|
4878
|
+
<xsl:call-template name="refine_term-termsource-style"/>
|
4865
4879
|
|
4866
4880
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4867
4881
|
<xsl:variable name="termsource_text">
|
@@ -4909,8 +4923,8 @@
|
|
4909
4923
|
|
4910
4924
|
<!-- text SOURCE: -->
|
4911
4925
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
4912
|
-
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
4913
|
-
<xsl:call-template name="
|
4926
|
+
<fo:inline xsl:use-attribute-sets="term-termsource-text-style">
|
4927
|
+
<xsl:call-template name="refine_term-termsource-text-style"/>
|
4914
4928
|
<xsl:value-of select="."/>
|
4915
4929
|
</fo:inline>
|
4916
4930
|
</xsl:template>
|
@@ -4922,8 +4936,8 @@
|
|
4922
4936
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4923
4937
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4924
4938
|
</xsl:if>
|
4925
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
4926
|
-
<xsl:call-template name="
|
4939
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
4940
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
4927
4941
|
<xsl:apply-templates/>
|
4928
4942
|
</fo:inline>
|
4929
4943
|
</fo:basic-link>
|
@@ -4971,14 +4985,14 @@
|
|
4971
4985
|
<xsl:variable name="levelTerm">
|
4972
4986
|
<xsl:call-template name="getLevelTermName"/>
|
4973
4987
|
</xsl:variable>
|
4974
|
-
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
4988
|
+
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
4975
4989
|
|
4976
|
-
<xsl:call-template name="
|
4990
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
4977
4991
|
|
4978
4992
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
4979
4993
|
|
4980
|
-
<fo:block xsl:use-attribute-sets="term-
|
4981
|
-
<xsl:call-template name="refine_term-
|
4994
|
+
<fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
|
4995
|
+
<xsl:call-template name="refine_term-number-style"/>
|
4982
4996
|
|
4983
4997
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
4984
4998
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -4988,8 +5002,8 @@
|
|
4988
5002
|
</fo:block>
|
4989
5003
|
</xsl:if>
|
4990
5004
|
|
4991
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
4992
|
-
<xsl:call-template name="
|
5005
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
|
5006
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
4993
5007
|
|
4994
5008
|
<xsl:apply-templates/>
|
4995
5009
|
</fo:block>
|
@@ -5009,15 +5023,15 @@
|
|
5009
5023
|
<xsl:template match="mn:domain"/>
|
5010
5024
|
|
5011
5025
|
<xsl:template match="mn:fmt-admitted">
|
5012
|
-
<fo:block xsl:use-attribute-sets="admitted-style">
|
5013
|
-
<xsl:call-template name="
|
5026
|
+
<fo:block xsl:use-attribute-sets="term-admitted-style">
|
5027
|
+
<xsl:call-template name="refine_term-admitted-style"/>
|
5014
5028
|
<xsl:apply-templates/>
|
5015
5029
|
</fo:block>
|
5016
5030
|
</xsl:template>
|
5017
5031
|
|
5018
5032
|
<xsl:template match="mn:fmt-deprecates">
|
5019
|
-
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5020
|
-
<xsl:call-template name="
|
5033
|
+
<fo:block xsl:use-attribute-sets="term-deprecates-style">
|
5034
|
+
<xsl:call-template name="refine_term-deprecates-style"/>
|
5021
5035
|
<xsl:apply-templates/>
|
5022
5036
|
</fo:block>
|
5023
5037
|
</xsl:template>
|
@@ -5030,8 +5044,8 @@
|
|
5030
5044
|
<!-- End Preferred, admitted, deprecated -->
|
5031
5045
|
|
5032
5046
|
<xsl:template match="mn:fmt-related">
|
5033
|
-
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
5034
|
-
<xsl:call-template name="
|
5047
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
|
5048
|
+
<xsl:call-template name="refine_term-related-block-style"/>
|
5035
5049
|
<xsl:apply-templates/>
|
5036
5050
|
</fo:block>
|
5037
5051
|
</xsl:template>
|
@@ -5045,8 +5059,8 @@
|
|
5045
5059
|
<!-- definition -->
|
5046
5060
|
<!-- ========== -->
|
5047
5061
|
<xsl:template match="mn:fmt-definition">
|
5048
|
-
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5049
|
-
<xsl:call-template name="
|
5062
|
+
<fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
|
5063
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
5050
5064
|
<xsl:apply-templates/>
|
5051
5065
|
</fo:block>
|
5052
5066
|
</xsl:template>
|
@@ -14994,6 +15008,20 @@
|
|
14994
15008
|
</fo:block-container>
|
14995
15009
|
</xsl:template>
|
14996
15010
|
|
15011
|
+
<!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
|
15012
|
+
<xsl:template name="insertCoverPageFullImage">
|
15013
|
+
<xsl:param name="name">coverpage-image</xsl:param>
|
15014
|
+
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
|
15015
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
15016
|
+
<fo:flow flow-name="xsl-region-body">
|
15017
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
15018
|
+
<xsl:with-param name="number" select="position()"/>
|
15019
|
+
</xsl:call-template>
|
15020
|
+
</fo:flow>
|
15021
|
+
</fo:page-sequence>
|
15022
|
+
</xsl:for-each>
|
15023
|
+
</xsl:template>
|
15024
|
+
|
14997
15025
|
<xsl:template name="insertPageImage">
|
14998
15026
|
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
14999
15027
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
@@ -869,7 +869,7 @@ depending on whether the items exist as independent documents, or are parts of a
|
|
869
869
|
</zeroOrMore>
|
870
870
|
</element>
|
871
871
|
</define>
|
872
|
-
<define name="BibItemType"
|
872
|
+
<define name="BibItemType">
|
873
873
|
<a:documentation>Type of bibliographic item.
|
874
874
|
The value list complies with the types provided in ISO 690:2021.
|
875
875
|
NOTE: These values represent a strict superset to BibTeX
|
@@ -311,17 +311,28 @@ and is intended to be referenced by a callout within the source code</a:document
|
|
311
311
|
</ref>
|
312
312
|
</optional>
|
313
313
|
<choice>
|
314
|
-
<a:documentation>Content of the figure</a:documentation>
|
315
|
-
<ref name="image"
|
314
|
+
<a:documentation>Content of the figure </a:documentation>
|
315
|
+
<ref name="image">
|
316
|
+
<a:documentation>by default the content of a figure is a media file</a:documentation>
|
317
|
+
</ref>
|
316
318
|
<ref name="video"/>
|
317
319
|
<ref name="audio"/>
|
318
|
-
<ref name="pre"
|
320
|
+
<ref name="pre">
|
321
|
+
<a:documentation>figures can contain ASCII art</a:documentation>
|
322
|
+
</ref>
|
319
323
|
<oneOrMore>
|
320
|
-
<ref name="paragraph-with-footnote"
|
324
|
+
<ref name="paragraph-with-footnote">
|
325
|
+
<a:documentation>figures can contain discursive art</a:documentation>
|
326
|
+
</ref>
|
321
327
|
</oneOrMore>
|
322
328
|
<zeroOrMore>
|
323
|
-
<ref name="figure"
|
329
|
+
<ref name="figure">
|
330
|
+
<a:documentation>subfigures, nested directly within a figure</a:documentation>
|
331
|
+
</ref>
|
324
332
|
</zeroOrMore>
|
333
|
+
<ref name="table">
|
334
|
+
<a:documentation>Table is understood in this context to be a tabular arrangement of subfigures</a:documentation>
|
335
|
+
</ref>
|
325
336
|
</choice>
|
326
337
|
<zeroOrMore>
|
327
338
|
<ref name="fn">
|
@@ -354,17 +365,28 @@ and is intended to be referenced by a callout within the source code</a:document
|
|
354
365
|
</ref>
|
355
366
|
</optional>
|
356
367
|
<choice>
|
357
|
-
<a:documentation>Content of the figure</a:documentation>
|
358
|
-
<ref name="image-no-id"
|
368
|
+
<a:documentation>Content of the figure </a:documentation>
|
369
|
+
<ref name="image-no-id">
|
370
|
+
<a:documentation>by default the content of a figure is a media file</a:documentation>
|
371
|
+
</ref>
|
359
372
|
<ref name="video-no-id"/>
|
360
373
|
<ref name="audio-no-id"/>
|
361
|
-
<ref name="pre-no-id"
|
374
|
+
<ref name="pre-no-id">
|
375
|
+
<a:documentation>figures can contain ASCII art</a:documentation>
|
376
|
+
</ref>
|
362
377
|
<oneOrMore>
|
363
|
-
<ref name="paragraph-with-footnote-no-id"
|
378
|
+
<ref name="paragraph-with-footnote-no-id">
|
379
|
+
<a:documentation>figures can contain discursive art</a:documentation>
|
380
|
+
</ref>
|
364
381
|
</oneOrMore>
|
365
382
|
<zeroOrMore>
|
366
|
-
<ref name="figure-no-id"
|
383
|
+
<ref name="figure-no-id">
|
384
|
+
<a:documentation>subfigures, nested directly within a figure</a:documentation>
|
385
|
+
</ref>
|
367
386
|
</zeroOrMore>
|
387
|
+
<ref name="table-no-id">
|
388
|
+
<a:documentation>Table is understood in this context to be a tabular arrangement of subfigures</a:documentation>
|
389
|
+
</ref>
|
368
390
|
</choice>
|
369
391
|
<zeroOrMore>
|
370
392
|
<ref name="fn">
|
@@ -876,6 +898,9 @@ titlecase, or lowercase</a:documentation>
|
|
876
898
|
<data type="boolean"/>
|
877
899
|
</attribute>
|
878
900
|
</optional>
|
901
|
+
<ref name="LocalizedStringAttributes">
|
902
|
+
<a:documentation>Specify language of bibitem, can be used to render it with language-specific bibliographic style</a:documentation>
|
903
|
+
</ref>
|
879
904
|
<ref name="ReducedBibliographicItem"/>
|
880
905
|
</element>
|
881
906
|
</define>
|
data/metanorma-ribose.gemspec
CHANGED
@@ -42,5 +42,5 @@ spec.add_development_dependency "rubocop-performance"
|
|
42
42
|
spec.add_development_dependency "sassc-embedded", "~> 1"
|
43
43
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
44
44
|
spec.add_development_dependency "timecop", "~> 0.9"
|
45
|
-
spec.add_development_dependency "canon"
|
45
|
+
spec.add_development_dependency "canon", "= 0.1.3"
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
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-
|
11
|
+
date: 2025-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -182,16 +182,16 @@ dependencies:
|
|
182
182
|
name: canon
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - '='
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 0.1.3
|
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: 0.1.3
|
195
195
|
description: |
|
196
196
|
metanorma-ribose lets you write Ribose standards in AsciiDoc syntax.
|
197
197
|
|