metanorma-plateau 1.1.6 → 1.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc668fc3016f9b8a7396df9d79751fe7e0262923b7074b778553d775ccbac26e
|
4
|
+
data.tar.gz: ad93f003c5395ef1a0bcdcc26b1afd8aa8c149e031a87cf03671c59f3fffc836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 982c770bf96dbb3a95b71936c0f48327d3741be40fce1854b0569e7a63b069e7d242f0d7bbd5e31f69fbca607788e5ee3091035fa5ee5049f59196d415926445
|
7
|
+
data.tar.gz: e0f1fc46ed7623320d33c4af36febe6e67a37ebf0a802abef630e1c109289df9427f240e2e16a93e730ecca96fe2181680778363207c0985319dddb8d56a7ce1
|
@@ -586,143 +586,150 @@
|
|
586
586
|
|
587
587
|
<xsl:template name="cover-page">
|
588
588
|
<xsl:param name="num"/>
|
589
|
-
<
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
<xsl:attribute name="font-family">Noto Sans</xsl:attribute>
|
596
|
-
</xsl:if>
|
597
|
-
|
598
|
-
<fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage_header_{generate-id()}">
|
599
|
-
<!-- background cover image -->
|
600
|
-
<xsl:call-template name="insertBackgroundPageImage"/>
|
601
|
-
</fo:static-content>
|
602
|
-
|
603
|
-
<fo:static-content flow-name="footer" role="artifact">
|
604
|
-
<fo:block-container>
|
605
|
-
<fo:table table-layout="fixed" width="100%">
|
606
|
-
<fo:table-column column-width="proportional-column-width(140)"/>
|
607
|
-
<fo:table-column column-width="proportional-column-width(13.5)"/>
|
608
|
-
<xsl:choose>
|
609
|
-
<xsl:when test="$doctype = 'technical-report'">
|
610
|
-
<fo:table-column column-width="proportional-column-width(20)"/>
|
611
|
-
</xsl:when>
|
612
|
-
<xsl:otherwise>
|
613
|
-
<fo:table-column column-width="proportional-column-width(11)"/>
|
614
|
-
</xsl:otherwise>
|
615
|
-
</xsl:choose>
|
616
|
-
<fo:table-body>
|
617
|
-
<fo:table-row>
|
618
|
-
<fo:table-cell>
|
619
|
-
<fo:block font-size="28pt" font-family="Noto Sans JP">
|
620
|
-
<xsl:if test="$doctype = 'annex'">
|
621
|
-
<xsl:attribute name="text-indent">-7mm</xsl:attribute>
|
622
|
-
<xsl:value-of select="concat('(', $i18n_doctype_dict_annex)"/>
|
623
|
-
<fo:inline letter-spacing="-3mm">)</fo:inline>
|
624
|
-
</xsl:if>
|
625
|
-
<xsl:if test="$doctype = 'technical-report'">
|
626
|
-
<xsl:attribute name="font-size">18pt</xsl:attribute>
|
627
|
-
<xsl:attribute name="line-height">1.8</xsl:attribute>
|
628
|
-
</xsl:if>
|
629
|
-
<xsl:variable name="title">
|
630
|
-
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'ja' and @type = 'title-main']/node()"/>
|
631
|
-
</xsl:variable>
|
632
|
-
<xsl:copy-of select="$title"/>
|
633
|
-
<xsl:if test="$doctype = 'technical-report'">
|
634
|
-
<xsl:choose>
|
635
|
-
<xsl:when test="string-length($title) > 60">
|
636
|
-
<fo:inline> <xsl:value-of select="$i18n_doctype_dict_technical_report"/></fo:inline>
|
637
|
-
</xsl:when>
|
638
|
-
<xsl:otherwise>
|
639
|
-
<fo:block><xsl:value-of select="$i18n_doctype_dict_technical_report"/></fo:block>
|
640
|
-
</xsl:otherwise>
|
641
|
-
</xsl:choose>
|
642
|
-
</xsl:if>
|
643
|
-
</fo:block>
|
644
|
-
<fo:block font-size="14pt" margin-top="3mm">
|
645
|
-
<xsl:if test="$doctype = 'technical-report'">
|
646
|
-
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
647
|
-
<xsl:attribute name="margin-top">1mm</xsl:attribute>
|
648
|
-
</xsl:if>
|
649
|
-
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'en' and @type = 'title-main']/node()"/>
|
650
|
-
</fo:block>
|
651
|
-
</fo:table-cell>
|
652
|
-
<fo:table-cell text-align="right" font-size="8.5pt" padding-top="3mm" padding-right="2mm">
|
653
|
-
<xsl:if test="$doctype = 'technical-report'">
|
654
|
-
<xsl:attribute name="font-size">9.5pt</xsl:attribute>
|
655
|
-
<xsl:attribute name="padding-top">2mm</xsl:attribute>
|
656
|
-
</xsl:if>
|
657
|
-
<fo:block>series</fo:block>
|
658
|
-
<fo:block>No.</fo:block>
|
659
|
-
</fo:table-cell>
|
660
|
-
<fo:table-cell text-align="right">
|
661
|
-
<xsl:if test="$doctype = 'technical-report'">
|
662
|
-
<xsl:attribute name="text-align">center</xsl:attribute>
|
663
|
-
</xsl:if>
|
664
|
-
<fo:block font-size="32pt">
|
665
|
-
<xsl:if test="$doctype = 'technical-report'">
|
666
|
-
<xsl:attribute name="font-size">28pt</xsl:attribute>
|
667
|
-
</xsl:if>
|
668
|
-
<xsl:variable name="docnumber" select="/*/mn:bibdata/mn:docnumber"/>
|
669
|
-
<xsl:if test="string-length($docnumber) = 1">0</xsl:if><xsl:value-of select="$docnumber"/>
|
670
|
-
</fo:block>
|
671
|
-
</fo:table-cell>
|
672
|
-
</fo:table-row>
|
673
|
-
</fo:table-body>
|
674
|
-
</fo:table>
|
675
|
-
</fo:block-container>
|
676
|
-
</fo:static-content>
|
589
|
+
<xsl:choose>
|
590
|
+
<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'">
|
591
|
+
<xsl:call-template name="insertCoverPageFullImage"/>
|
592
|
+
</xsl:when>
|
593
|
+
<xsl:otherwise>
|
594
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force" font-family="Noto Sans Condensed">
|
677
595
|
|
678
|
-
|
679
|
-
|
680
|
-
<xsl:if test="$doctype = 'technical-report'">
|
681
|
-
<xsl:attribute name="margin-left">5.5mm</xsl:attribute>
|
596
|
+
<xsl:if test="$doctype = 'annex'">
|
597
|
+
<xsl:attribute name="color">white</xsl:attribute>
|
682
598
|
</xsl:if>
|
683
|
-
<fo:instream-foreign-object content-width="24mm" fox:alt-text="PLATEAU Logo">
|
684
|
-
<xsl:if test="$doctype = 'technical-report'">
|
685
|
-
<xsl:attribute name="content-width">20.5mm</xsl:attribute>
|
686
|
-
</xsl:if>
|
687
|
-
<xsl:choose>
|
688
|
-
<xsl:when test="$doctype = 'annex'">
|
689
|
-
<xsl:copy-of select="$PLATEAU-Logo-inverted"/>
|
690
|
-
</xsl:when>
|
691
|
-
<xsl:otherwise>
|
692
|
-
<xsl:copy-of select="$PLATEAU-Logo"/>
|
693
|
-
</xsl:otherwise>
|
694
|
-
</xsl:choose>
|
695
|
-
</fo:instream-foreign-object>
|
696
|
-
</fo:block>
|
697
|
-
<fo:block-container reference-orientation="-90" width="205mm" height="36mm" margin-top="6mm">
|
698
599
|
<xsl:if test="$doctype = 'technical-report'">
|
699
|
-
<xsl:attribute name="
|
600
|
+
<xsl:attribute name="font-family">Noto Sans</xsl:attribute>
|
700
601
|
</xsl:if>
|
701
|
-
<fo:block font-size="21.2pt" margin-top="7mm">
|
702
|
-
<xsl:if test="$doctype = 'technical-report'">
|
703
|
-
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
704
|
-
<xsl:attribute name="margin-top">8mm</xsl:attribute>
|
705
|
-
</xsl:if>
|
706
|
-
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'en' and @type = 'title-intro']/node()"/>
|
707
|
-
</fo:block>
|
708
|
-
<fo:block font-family="Noto Sans JP" font-size="14.2pt" margin-top="2mm">
|
709
|
-
<xsl:if test="$doctype = 'annex'">
|
710
|
-
<xsl:attribute name="text-indent">-3.5mm</xsl:attribute>
|
711
|
-
<xsl:value-of select="concat('(', $i18n_doctype_dict_annex)"/>
|
712
|
-
<fo:inline letter-spacing="-1mm">)</fo:inline>
|
713
|
-
</xsl:if>
|
714
|
-
<xsl:if test="$doctype = 'technical-report'">
|
715
|
-
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
716
|
-
</xsl:if>
|
717
|
-
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'ja' and @type = 'title-intro']/node()"/>
|
718
|
-
</fo:block>
|
719
|
-
</fo:block-container>
|
720
|
-
</fo:static-content>
|
721
602
|
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
603
|
+
<fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage_header_{generate-id()}">
|
604
|
+
<!-- background cover image -->
|
605
|
+
<xsl:call-template name="insertBackgroundPageImage"/>
|
606
|
+
</fo:static-content>
|
607
|
+
|
608
|
+
<fo:static-content flow-name="footer" role="artifact">
|
609
|
+
<fo:block-container>
|
610
|
+
<fo:table table-layout="fixed" width="100%">
|
611
|
+
<fo:table-column column-width="proportional-column-width(140)"/>
|
612
|
+
<fo:table-column column-width="proportional-column-width(13.5)"/>
|
613
|
+
<xsl:choose>
|
614
|
+
<xsl:when test="$doctype = 'technical-report'">
|
615
|
+
<fo:table-column column-width="proportional-column-width(20)"/>
|
616
|
+
</xsl:when>
|
617
|
+
<xsl:otherwise>
|
618
|
+
<fo:table-column column-width="proportional-column-width(11)"/>
|
619
|
+
</xsl:otherwise>
|
620
|
+
</xsl:choose>
|
621
|
+
<fo:table-body>
|
622
|
+
<fo:table-row>
|
623
|
+
<fo:table-cell>
|
624
|
+
<fo:block font-size="28pt" font-family="Noto Sans JP">
|
625
|
+
<xsl:if test="$doctype = 'annex'">
|
626
|
+
<xsl:attribute name="text-indent">-7mm</xsl:attribute>
|
627
|
+
<xsl:value-of select="concat('(', $i18n_doctype_dict_annex)"/>
|
628
|
+
<fo:inline letter-spacing="-3mm">)</fo:inline>
|
629
|
+
</xsl:if>
|
630
|
+
<xsl:if test="$doctype = 'technical-report'">
|
631
|
+
<xsl:attribute name="font-size">18pt</xsl:attribute>
|
632
|
+
<xsl:attribute name="line-height">1.8</xsl:attribute>
|
633
|
+
</xsl:if>
|
634
|
+
<xsl:variable name="title">
|
635
|
+
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'ja' and @type = 'title-main']/node()"/>
|
636
|
+
</xsl:variable>
|
637
|
+
<xsl:copy-of select="$title"/>
|
638
|
+
<xsl:if test="$doctype = 'technical-report'">
|
639
|
+
<xsl:choose>
|
640
|
+
<xsl:when test="string-length($title) > 60">
|
641
|
+
<fo:inline> <xsl:value-of select="$i18n_doctype_dict_technical_report"/></fo:inline>
|
642
|
+
</xsl:when>
|
643
|
+
<xsl:otherwise>
|
644
|
+
<fo:block><xsl:value-of select="$i18n_doctype_dict_technical_report"/></fo:block>
|
645
|
+
</xsl:otherwise>
|
646
|
+
</xsl:choose>
|
647
|
+
</xsl:if>
|
648
|
+
</fo:block>
|
649
|
+
<fo:block font-size="14pt" margin-top="3mm">
|
650
|
+
<xsl:if test="$doctype = 'technical-report'">
|
651
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
652
|
+
<xsl:attribute name="margin-top">1mm</xsl:attribute>
|
653
|
+
</xsl:if>
|
654
|
+
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'en' and @type = 'title-main']/node()"/>
|
655
|
+
</fo:block>
|
656
|
+
</fo:table-cell>
|
657
|
+
<fo:table-cell text-align="right" font-size="8.5pt" padding-top="3mm" padding-right="2mm">
|
658
|
+
<xsl:if test="$doctype = 'technical-report'">
|
659
|
+
<xsl:attribute name="font-size">9.5pt</xsl:attribute>
|
660
|
+
<xsl:attribute name="padding-top">2mm</xsl:attribute>
|
661
|
+
</xsl:if>
|
662
|
+
<fo:block>series</fo:block>
|
663
|
+
<fo:block>No.</fo:block>
|
664
|
+
</fo:table-cell>
|
665
|
+
<fo:table-cell text-align="right">
|
666
|
+
<xsl:if test="$doctype = 'technical-report'">
|
667
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
668
|
+
</xsl:if>
|
669
|
+
<fo:block font-size="32pt">
|
670
|
+
<xsl:if test="$doctype = 'technical-report'">
|
671
|
+
<xsl:attribute name="font-size">28pt</xsl:attribute>
|
672
|
+
</xsl:if>
|
673
|
+
<xsl:variable name="docnumber" select="/*/mn:bibdata/mn:docnumber"/>
|
674
|
+
<xsl:if test="string-length($docnumber) = 1">0</xsl:if><xsl:value-of select="$docnumber"/>
|
675
|
+
</fo:block>
|
676
|
+
</fo:table-cell>
|
677
|
+
</fo:table-row>
|
678
|
+
</fo:table-body>
|
679
|
+
</fo:table>
|
680
|
+
</fo:block-container>
|
681
|
+
</fo:static-content>
|
682
|
+
|
683
|
+
<fo:static-content flow-name="left-region" role="artifact" id="__internal_layout__coverpage_left_region_{generate-id()}">
|
684
|
+
<fo:block text-align="center" margin-top="14.5mm" margin-left="2mm">
|
685
|
+
<xsl:if test="$doctype = 'technical-report'">
|
686
|
+
<xsl:attribute name="margin-left">5.5mm</xsl:attribute>
|
687
|
+
</xsl:if>
|
688
|
+
<fo:instream-foreign-object content-width="24mm" fox:alt-text="PLATEAU Logo">
|
689
|
+
<xsl:if test="$doctype = 'technical-report'">
|
690
|
+
<xsl:attribute name="content-width">20.5mm</xsl:attribute>
|
691
|
+
</xsl:if>
|
692
|
+
<xsl:choose>
|
693
|
+
<xsl:when test="$doctype = 'annex'">
|
694
|
+
<xsl:copy-of select="$PLATEAU-Logo-inverted"/>
|
695
|
+
</xsl:when>
|
696
|
+
<xsl:otherwise>
|
697
|
+
<xsl:copy-of select="$PLATEAU-Logo"/>
|
698
|
+
</xsl:otherwise>
|
699
|
+
</xsl:choose>
|
700
|
+
</fo:instream-foreign-object>
|
701
|
+
</fo:block>
|
702
|
+
<fo:block-container reference-orientation="-90" width="205mm" height="36mm" margin-top="6mm">
|
703
|
+
<xsl:if test="$doctype = 'technical-report'">
|
704
|
+
<xsl:attribute name="margin-top">2mm</xsl:attribute>
|
705
|
+
</xsl:if>
|
706
|
+
<fo:block font-size="21.2pt" margin-top="7mm">
|
707
|
+
<xsl:if test="$doctype = 'technical-report'">
|
708
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
709
|
+
<xsl:attribute name="margin-top">8mm</xsl:attribute>
|
710
|
+
</xsl:if>
|
711
|
+
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'en' and @type = 'title-intro']/node()"/>
|
712
|
+
</fo:block>
|
713
|
+
<fo:block font-family="Noto Sans JP" font-size="14.2pt" margin-top="2mm">
|
714
|
+
<xsl:if test="$doctype = 'annex'">
|
715
|
+
<xsl:attribute name="text-indent">-3.5mm</xsl:attribute>
|
716
|
+
<xsl:value-of select="concat('(', $i18n_doctype_dict_annex)"/>
|
717
|
+
<fo:inline letter-spacing="-1mm">)</fo:inline>
|
718
|
+
</xsl:if>
|
719
|
+
<xsl:if test="$doctype = 'technical-report'">
|
720
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
721
|
+
</xsl:if>
|
722
|
+
<xsl:apply-templates select="/*/mn:bibdata/mn:title[@language = 'ja' and @type = 'title-intro']/node()"/>
|
723
|
+
</fo:block>
|
724
|
+
</fo:block-container>
|
725
|
+
</fo:static-content>
|
726
|
+
|
727
|
+
<fo:flow flow-name="xsl-region-body">
|
728
|
+
<fo:block id="firstpage_id_{$num}"> </fo:block>
|
729
|
+
</fo:flow>
|
730
|
+
</fo:page-sequence>
|
731
|
+
</xsl:otherwise>
|
732
|
+
</xsl:choose>
|
726
733
|
</xsl:template> <!-- cover-page -->
|
727
734
|
|
728
735
|
<xsl:template name="inner-cover-page">
|
@@ -1844,32 +1851,7 @@
|
|
1844
1851
|
|
1845
1852
|
<xsl:template name="insertHeaderFooter">
|
1846
1853
|
<xsl:call-template name="insertHeader"/>
|
1847
|
-
<
|
1848
|
-
<xsl:choose>
|
1849
|
-
<xsl:when test="$doctype = 'technical-report'">
|
1850
|
-
<fo:block-container height="23mm" display-align="after">
|
1851
|
-
<fo:block text-align="center" margin-bottom="16mm">
|
1852
|
-
<xsl:if test="$vertical_layout = 'true'">
|
1853
|
-
<xsl:attribute name="margin-bottom">0mm</xsl:attribute>
|
1854
|
-
</xsl:if>
|
1855
|
-
<xsl:text>- </xsl:text>
|
1856
|
-
<fo:page-number/>
|
1857
|
-
<xsl:text> -</xsl:text>
|
1858
|
-
</fo:block>
|
1859
|
-
</fo:block-container>
|
1860
|
-
</xsl:when>
|
1861
|
-
<xsl:otherwise>
|
1862
|
-
<fo:block-container height="24mm" display-align="after">
|
1863
|
-
<fo:block text-align="center" margin-bottom="16mm">
|
1864
|
-
<xsl:if test="$vertical_layout = 'true'">
|
1865
|
-
<xsl:attribute name="margin-bottom">0mm</xsl:attribute>
|
1866
|
-
</xsl:if>
|
1867
|
-
<fo:page-number/>
|
1868
|
-
</fo:block>
|
1869
|
-
</fo:block-container>
|
1870
|
-
</xsl:otherwise>
|
1871
|
-
</xsl:choose>
|
1872
|
-
</fo:static-content>
|
1854
|
+
<xsl:call-template name="insertFooter"/>
|
1873
1855
|
</xsl:template>
|
1874
1856
|
|
1875
1857
|
<xsl:template name="insertHeader">
|
@@ -1884,6 +1866,24 @@
|
|
1884
1866
|
</xsl:if>
|
1885
1867
|
</xsl:template>
|
1886
1868
|
|
1869
|
+
<xsl:template name="insertFooter">
|
1870
|
+
<fo:static-content flow-name="footer">
|
1871
|
+
<fo:block-container height="24mm" display-align="after">
|
1872
|
+
<xsl:if test="$doctype = 'technical-report'">
|
1873
|
+
<xsl:attribute name="height">23mm</xsl:attribute>
|
1874
|
+
</xsl:if>
|
1875
|
+
<fo:block text-align="center" margin-bottom="16mm">
|
1876
|
+
<xsl:if test="$vertical_layout = 'true'">
|
1877
|
+
<xsl:attribute name="margin-bottom">0mm</xsl:attribute>
|
1878
|
+
</xsl:if>
|
1879
|
+
<xsl:if test="$doctype = 'technical-report'"><xsl:text>- </xsl:text></xsl:if>
|
1880
|
+
<fo:page-number/>
|
1881
|
+
<xsl:if test="$doctype = 'technical-report'"><xsl:text> -</xsl:text></xsl:if>
|
1882
|
+
</fo:block>
|
1883
|
+
</fo:block-container>
|
1884
|
+
</fo:static-content>
|
1885
|
+
</xsl:template>
|
1886
|
+
|
1887
1887
|
<xsl:template name="back-page">
|
1888
1888
|
<xsl:choose>
|
1889
1889
|
<xsl:when test="$doctype = 'technical-report'">
|
@@ -5406,91 +5406,85 @@
|
|
5406
5406
|
<xsl:template name="refine_term-style">
|
5407
5407
|
</xsl:template>
|
5408
5408
|
|
5409
|
-
<xsl:attribute-set name="term-
|
5409
|
+
<xsl:attribute-set name="term-number-style">
|
5410
5410
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5411
5411
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5412
5412
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5413
5413
|
<xsl:attribute name="space-after">2pt</xsl:attribute>
|
5414
5414
|
</xsl:attribute-set> <!-- term-name-style -->
|
5415
5415
|
|
5416
|
-
<xsl:template name="refine_term-
|
5416
|
+
<xsl:template name="refine_term-number-style">
|
5417
5417
|
</xsl:template>
|
5418
5418
|
|
5419
|
-
<xsl:attribute-set name="preferred-style">
|
5420
|
-
</xsl:attribute-set> <!-- preferred-style -->
|
5421
|
-
|
5422
|
-
<xsl:template name="refine_preferred-style">
|
5423
|
-
</xsl:template>
|
5424
|
-
|
5425
|
-
<xsl:attribute-set name="preferred-block-style">
|
5419
|
+
<xsl:attribute-set name="term-preferred-block-style">
|
5426
5420
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
5427
5421
|
|
5428
|
-
<xsl:template name="
|
5422
|
+
<xsl:template name="refine_term-preferred-block-style">
|
5429
5423
|
</xsl:template>
|
5430
5424
|
|
5431
|
-
<xsl:attribute-set name="preferred-
|
5425
|
+
<xsl:attribute-set name="term-preferred-style">
|
5432
5426
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5433
5427
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5434
5428
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5435
5429
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
5436
5430
|
|
5437
|
-
<xsl:template name="
|
5431
|
+
<xsl:template name="refine_term-preferred-style">
|
5438
5432
|
<xsl:if test="mn:strong">
|
5439
5433
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5440
5434
|
</xsl:if>
|
5441
5435
|
</xsl:template>
|
5442
5436
|
|
5443
|
-
<xsl:attribute-set name="domain-style">
|
5444
|
-
</xsl:attribute-set> <!-- domain-style -->
|
5437
|
+
<xsl:attribute-set name="term-domain-style">
|
5438
|
+
</xsl:attribute-set> <!-- term-domain-style -->
|
5445
5439
|
|
5446
|
-
<xsl:template name="
|
5440
|
+
<xsl:template name="refine_term-domain-style">
|
5447
5441
|
</xsl:template>
|
5448
5442
|
|
5449
|
-
<xsl:attribute-set name="admitted-style">
|
5450
|
-
</xsl:attribute-set> <!-- admitted-style -->
|
5443
|
+
<xsl:attribute-set name="term-admitted-style">
|
5444
|
+
</xsl:attribute-set> <!-- term-admitted-style -->
|
5451
5445
|
|
5452
|
-
<xsl:template name="
|
5446
|
+
<xsl:template name="refine_term-admitted-style">
|
5453
5447
|
</xsl:template>
|
5454
5448
|
|
5455
|
-
<xsl:attribute-set name="deprecates-style">
|
5456
|
-
</xsl:attribute-set> <!-- deprecates-style -->
|
5449
|
+
<xsl:attribute-set name="term-deprecates-style">
|
5450
|
+
</xsl:attribute-set> <!-- term-deprecates-style -->
|
5457
5451
|
|
5458
|
-
<xsl:template name="
|
5452
|
+
<xsl:template name="refine_term-deprecates-style">
|
5459
5453
|
</xsl:template>
|
5460
5454
|
|
5461
|
-
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
5455
|
+
<xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
|
5462
5456
|
</xsl:attribute-set>
|
5463
5457
|
|
5464
|
-
<xsl:template name="
|
5458
|
+
<xsl:template name="refine_term-related-block-style">
|
5465
5459
|
</xsl:template>
|
5466
5460
|
|
5467
|
-
<xsl:attribute-set name="definition-style">
|
5461
|
+
<xsl:attribute-set name="term-definition-style">
|
5468
5462
|
<xsl:attribute name="space-before">2pt</xsl:attribute>
|
5469
5463
|
<xsl:attribute name="space-after">2pt</xsl:attribute>
|
5470
|
-
</xsl:attribute-set> <!-- definition-style -->
|
5464
|
+
</xsl:attribute-set> <!-- term-definition-style -->
|
5471
5465
|
|
5472
|
-
<xsl:template name="
|
5466
|
+
<xsl:template name="refine_term-definition-style">
|
5473
5467
|
</xsl:template>
|
5474
5468
|
|
5475
|
-
<xsl:attribute-set name="termsource-style">
|
5476
|
-
</xsl:attribute-set> <!-- termsource-style -->
|
5469
|
+
<xsl:attribute-set name="term-termsource-style">
|
5470
|
+
</xsl:attribute-set> <!-- term-termsource-style -->
|
5477
5471
|
|
5478
|
-
<xsl:template name="
|
5472
|
+
<xsl:template name="refine_term-termsource-style">
|
5479
5473
|
<xsl:if test="ancestor::mn:table">
|
5480
5474
|
<xsl:attribute name="margin-bottom">1pt</xsl:attribute>
|
5481
5475
|
</xsl:if>
|
5482
|
-
</xsl:template> <!--
|
5476
|
+
</xsl:template> <!-- refine_term-termsource-style -->
|
5483
5477
|
|
5484
|
-
<xsl:attribute-set name="termsource-text-style">
|
5485
|
-
</xsl:attribute-set> <!-- termsource-text-style -->
|
5478
|
+
<xsl:attribute-set name="term-termsource-text-style">
|
5479
|
+
</xsl:attribute-set> <!-- term-termsource-text-style -->
|
5486
5480
|
|
5487
|
-
<xsl:template name="
|
5481
|
+
<xsl:template name="refine_term-termsource-text-style">
|
5488
5482
|
</xsl:template>
|
5489
5483
|
|
5490
|
-
<xsl:attribute-set name="origin-style">
|
5491
|
-
</xsl:attribute-set> <!-- origin-style -->
|
5484
|
+
<xsl:attribute-set name="term-origin-style">
|
5485
|
+
</xsl:attribute-set> <!-- term-origin-style -->
|
5492
5486
|
|
5493
|
-
<xsl:template name="
|
5487
|
+
<xsl:template name="refine_term-origin-style">
|
5494
5488
|
</xsl:template>
|
5495
5489
|
|
5496
5490
|
<!-- ====== -->
|
@@ -5534,9 +5528,9 @@
|
|
5534
5528
|
<!-- modification -->
|
5535
5529
|
<!-- ====== -->
|
5536
5530
|
<xsl:template match="mn:fmt-termsource" name="termsource">
|
5537
|
-
<fo:block xsl:use-attribute-sets="termsource-style">
|
5531
|
+
<fo:block xsl:use-attribute-sets="term-termsource-style">
|
5538
5532
|
|
5539
|
-
<xsl:call-template name="
|
5533
|
+
<xsl:call-template name="refine_term-termsource-style"/>
|
5540
5534
|
|
5541
5535
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
5542
5536
|
<xsl:variable name="termsource_text">
|
@@ -5584,8 +5578,8 @@
|
|
5584
5578
|
|
5585
5579
|
<!-- text SOURCE: -->
|
5586
5580
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
5587
|
-
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
5588
|
-
<xsl:call-template name="
|
5581
|
+
<fo:inline xsl:use-attribute-sets="term-termsource-text-style">
|
5582
|
+
<xsl:call-template name="refine_term-termsource-text-style"/>
|
5589
5583
|
<xsl:value-of select="."/>
|
5590
5584
|
</fo:inline>
|
5591
5585
|
</xsl:template>
|
@@ -5597,8 +5591,8 @@
|
|
5597
5591
|
<xsl:if test="normalize-space(@citeas) = ''">
|
5598
5592
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
5599
5593
|
</xsl:if>
|
5600
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
5601
|
-
<xsl:call-template name="
|
5594
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
5595
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
5602
5596
|
<xsl:apply-templates/>
|
5603
5597
|
</fo:inline>
|
5604
5598
|
</fo:basic-link>
|
@@ -5646,14 +5640,14 @@
|
|
5646
5640
|
<xsl:variable name="levelTerm">
|
5647
5641
|
<xsl:call-template name="getLevelTermName"/>
|
5648
5642
|
</xsl:variable>
|
5649
|
-
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
5643
|
+
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
5650
5644
|
|
5651
|
-
<xsl:call-template name="
|
5645
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
5652
5646
|
|
5653
5647
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
5654
5648
|
|
5655
|
-
<fo:block xsl:use-attribute-sets="term-
|
5656
|
-
<xsl:call-template name="refine_term-
|
5649
|
+
<fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
|
5650
|
+
<xsl:call-template name="refine_term-number-style"/>
|
5657
5651
|
|
5658
5652
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
5659
5653
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -5663,8 +5657,8 @@
|
|
5663
5657
|
</fo:block>
|
5664
5658
|
</xsl:if>
|
5665
5659
|
|
5666
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
5667
|
-
<xsl:call-template name="
|
5660
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
|
5661
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
5668
5662
|
|
5669
5663
|
<xsl:apply-templates/>
|
5670
5664
|
</fo:block>
|
@@ -5684,15 +5678,15 @@
|
|
5684
5678
|
<xsl:template match="mn:domain"/>
|
5685
5679
|
|
5686
5680
|
<xsl:template match="mn:fmt-admitted">
|
5687
|
-
<fo:block xsl:use-attribute-sets="admitted-style">
|
5688
|
-
<xsl:call-template name="
|
5681
|
+
<fo:block xsl:use-attribute-sets="term-admitted-style">
|
5682
|
+
<xsl:call-template name="refine_term-admitted-style"/>
|
5689
5683
|
<xsl:apply-templates/>
|
5690
5684
|
</fo:block>
|
5691
5685
|
</xsl:template>
|
5692
5686
|
|
5693
5687
|
<xsl:template match="mn:fmt-deprecates">
|
5694
|
-
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5695
|
-
<xsl:call-template name="
|
5688
|
+
<fo:block xsl:use-attribute-sets="term-deprecates-style">
|
5689
|
+
<xsl:call-template name="refine_term-deprecates-style"/>
|
5696
5690
|
<xsl:apply-templates/>
|
5697
5691
|
</fo:block>
|
5698
5692
|
</xsl:template>
|
@@ -5705,8 +5699,8 @@
|
|
5705
5699
|
<!-- End Preferred, admitted, deprecated -->
|
5706
5700
|
|
5707
5701
|
<xsl:template match="mn:fmt-related">
|
5708
|
-
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
5709
|
-
<xsl:call-template name="
|
5702
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
|
5703
|
+
<xsl:call-template name="refine_term-related-block-style"/>
|
5710
5704
|
<xsl:apply-templates/>
|
5711
5705
|
</fo:block>
|
5712
5706
|
</xsl:template>
|
@@ -5720,8 +5714,8 @@
|
|
5720
5714
|
<!-- definition -->
|
5721
5715
|
<!-- ========== -->
|
5722
5716
|
<xsl:template match="mn:fmt-definition">
|
5723
|
-
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5724
|
-
<xsl:call-template name="
|
5717
|
+
<fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
|
5718
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
5725
5719
|
<xsl:apply-templates/>
|
5726
5720
|
</fo:block>
|
5727
5721
|
</xsl:template>
|
@@ -15604,6 +15598,20 @@
|
|
15604
15598
|
</fo:block-container>
|
15605
15599
|
</xsl:template>
|
15606
15600
|
|
15601
|
+
<!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
|
15602
|
+
<xsl:template name="insertCoverPageFullImage">
|
15603
|
+
<xsl:param name="name">coverpage-image</xsl:param>
|
15604
|
+
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
|
15605
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
15606
|
+
<fo:flow flow-name="xsl-region-body">
|
15607
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
15608
|
+
<xsl:with-param name="number" select="position()"/>
|
15609
|
+
</xsl:call-template>
|
15610
|
+
</fo:flow>
|
15611
|
+
</fo:page-sequence>
|
15612
|
+
</xsl:for-each>
|
15613
|
+
</xsl:template>
|
15614
|
+
|
15607
15615
|
<xsl:template name="insertPageImage">
|
15608
15616
|
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
15609
15617
|
<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-plateau.gemspec
CHANGED
@@ -45,5 +45,5 @@ spec.add_development_dependency "rubocop-performance"
|
|
45
45
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
46
46
|
spec.add_development_dependency "timecop", "~> 0.9"
|
47
47
|
spec.add_development_dependency "webmock"
|
48
|
-
spec.add_development_dependency "canon"
|
48
|
+
spec.add_development_dependency "canon", "= 0.1.3"
|
49
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plateau
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
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-jis
|
@@ -224,16 +224,16 @@ dependencies:
|
|
224
224
|
name: canon
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- -
|
227
|
+
- - '='
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
229
|
+
version: 0.1.3
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- -
|
234
|
+
- - '='
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
236
|
+
version: 0.1.3
|
237
237
|
description: |
|
238
238
|
Metanorma standards authoring environment for MLIT Project PLATEAU.
|
239
239
|
|