metanorma-jis 1.0.4 → 1.0.5
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/jis/html/style-human.css +7 -6
- data/lib/isodoc/jis/html/style-human.scss +3 -6
- data/lib/isodoc/jis/html/style-iso.css +7 -5
- data/lib/isodoc/jis/html/style-iso.scss +2 -5
- data/lib/isodoc/jis/jis.international-standard.xsl +79 -55
- data/lib/isodoc/jis/word_cleanup.rb +5 -2
- data/lib/metanorma/jis/biblio.rng +4 -4
- data/lib/metanorma/jis/isodoc.rng +77 -28
- data/lib/metanorma/jis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4ff985af7fc1b5ab74a4ee61850124c6e36a3a83147644d07eb69e5be745058
|
|
4
|
+
data.tar.gz: 3ea4831e961be0aba07344cd093a7944ee73fcf096d125312ee9bbc7ddb7716f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 607db2ddd112f5f47d487af9404f1bb65f3b3d689f28234e15d480a745d4b3e91547faeb267e2b33404e6a0b4b457af27059a4190be70703a89a63c90427d2fc
|
|
7
|
+
data.tar.gz: 9b908b1459da1193eb16eafe5e512af43263e4b10d099b60013fdb20e307f00639191f7c044b29946fb532e0965f20a8a0bd4a46b4915c293e35702532c744bc
|
|
@@ -319,6 +319,11 @@ svg {
|
|
|
319
319
|
display: block; /* ← removes unwanted inline spacing */
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
/* style dfn by override in flavor */
|
|
323
|
+
dfn {
|
|
324
|
+
font-style: inherit;
|
|
325
|
+
}
|
|
326
|
+
|
|
322
327
|
#standard-band {
|
|
323
328
|
background-color: #0AC442;
|
|
324
329
|
}
|
|
@@ -1444,16 +1449,12 @@ span.keyword {
|
|
|
1444
1449
|
}
|
|
1445
1450
|
|
|
1446
1451
|
.Admonition p,
|
|
1447
|
-
.admonition p
|
|
1448
|
-
.zzHelp p {
|
|
1452
|
+
.admonition p {
|
|
1449
1453
|
margin: 0;
|
|
1450
1454
|
}
|
|
1451
1455
|
|
|
1452
|
-
div.
|
|
1456
|
+
div.Admonition.AdmonitionEditorial {
|
|
1453
1457
|
color: green;
|
|
1454
|
-
padding: 0.5em;
|
|
1455
|
-
margin: 1.5em 0 1.5em 0;
|
|
1456
|
-
text-align: left;
|
|
1457
1458
|
}
|
|
1458
1459
|
|
|
1459
1460
|
/* Collapse TOC */
|
|
@@ -752,16 +752,13 @@ span.keyword {
|
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
.Admonition p,
|
|
755
|
-
.admonition p
|
|
756
|
-
|
|
755
|
+
.admonition p
|
|
756
|
+
{
|
|
757
757
|
margin: 0;
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
-
div.
|
|
760
|
+
div.Admonition.AdmonitionEditorial {
|
|
761
761
|
color: green;
|
|
762
|
-
padding: 0.5em;
|
|
763
|
-
margin: 1.5em 0 1.5em 0;
|
|
764
|
-
text-align: left;
|
|
765
762
|
}
|
|
766
763
|
|
|
767
764
|
/* Collapse TOC */
|
|
@@ -319,6 +319,11 @@ svg {
|
|
|
319
319
|
display: block; /* ← removes unwanted inline spacing */
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
/* style dfn by override in flavor */
|
|
323
|
+
dfn {
|
|
324
|
+
font-style: inherit;
|
|
325
|
+
}
|
|
326
|
+
|
|
322
327
|
#standard-band {
|
|
323
328
|
background-color: #0AC442;
|
|
324
329
|
}
|
|
@@ -1274,15 +1279,12 @@ figcaption, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
|
|
|
1274
1279
|
text-align: left;
|
|
1275
1280
|
}
|
|
1276
1281
|
|
|
1277
|
-
.Admonition p
|
|
1282
|
+
.Admonition p {
|
|
1278
1283
|
margin: 0;
|
|
1279
1284
|
}
|
|
1280
1285
|
|
|
1281
|
-
div.
|
|
1286
|
+
div.Admonition.AdmonitionEditorial {
|
|
1282
1287
|
color: green;
|
|
1283
|
-
padding: 0.5em;
|
|
1284
|
-
margin: 1.5em 0 1.5em 0;
|
|
1285
|
-
text-align: left;
|
|
1286
1288
|
}
|
|
1287
1289
|
|
|
1288
1290
|
/*
|
|
@@ -584,15 +584,12 @@ figure dl {
|
|
|
584
584
|
text-align: left;
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
-
.Admonition p
|
|
587
|
+
.Admonition p {
|
|
588
588
|
margin: 0;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
div.
|
|
591
|
+
div.Admonition.AdmonitionEditorial {
|
|
592
592
|
color: green;
|
|
593
|
-
padding: 0.5em;
|
|
594
|
-
margin: 1.5em 0 1.5em 0;
|
|
595
|
-
text-align: left;
|
|
596
593
|
}
|
|
597
594
|
|
|
598
595
|
|
|
@@ -619,16 +619,8 @@
|
|
|
619
619
|
|
|
620
620
|
<xsl:if test="$paged_xml_preface/mn:page and count($paged_xml_preface/mn:page/*) != 0">
|
|
621
621
|
<!-- Preface pages -->
|
|
622
|
-
<fo:page-sequence
|
|
623
|
-
|
|
624
|
-
<xsl:if test="$vertical_layout = 'true'">
|
|
625
|
-
<xsl:attribute name="master-reference">document_vertical_layout</xsl:attribute>
|
|
626
|
-
<xsl:attribute name="format">一</xsl:attribute>
|
|
627
|
-
</xsl:if>
|
|
628
|
-
|
|
629
|
-
<xsl:if test="position() = 1">
|
|
630
|
-
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
631
|
-
</xsl:if>
|
|
622
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
623
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
632
624
|
|
|
633
625
|
<fo:static-content flow-name="xsl-footnote-separator" role="artifact">
|
|
634
626
|
<fo:block text-align="center" margin-bottom="6pt">
|
|
@@ -681,7 +673,7 @@
|
|
|
681
673
|
<xsl:if test="not($vertical_layout = 'true') and not($doctype = 'technical-specification')">
|
|
682
674
|
|
|
683
675
|
<!-- Document type rendering -->
|
|
684
|
-
<fo:page-sequence
|
|
676
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
685
677
|
<xsl:call-template name="insertHeaderFooter">
|
|
686
678
|
<xsl:with-param name="docidentifier" select="$docidentifier"/>
|
|
687
679
|
<xsl:with-param name="copyrightText" select="$copyrightText"/>
|
|
@@ -777,33 +769,8 @@
|
|
|
777
769
|
|
|
778
770
|
<xsl:variable name="isCommentary" select="normalize-space(.//mn:annex[@commentary = 'true'] and 1 = 1)"/> <!-- true or false -->
|
|
779
771
|
<!-- DEBUG: <xsl:copy-of select="."/> -->
|
|
780
|
-
<fo:page-sequence
|
|
781
|
-
|
|
782
|
-
<xsl:choose>
|
|
783
|
-
<xsl:when test="$vertical_layout = 'true'">
|
|
784
|
-
<xsl:attribute name="master-reference">document_vertical_layout</xsl:attribute>
|
|
785
|
-
<xsl:if test="position() = last()">
|
|
786
|
-
<xsl:attribute name="master-reference">document_vertical_layout_with_last</xsl:attribute>
|
|
787
|
-
</xsl:if>
|
|
788
|
-
|
|
789
|
-
<xsl:attribute name="format">一</xsl:attribute>
|
|
790
|
-
<!-- <xsl:attribute name="fox:number-conversion-features">ア</xsl:attribute> -->
|
|
791
|
-
</xsl:when>
|
|
792
|
-
<xsl:otherwise>
|
|
793
|
-
<xsl:if test="position() = 1">
|
|
794
|
-
<xsl:attribute name="master-reference">document_first_section</xsl:attribute>
|
|
795
|
-
</xsl:if>
|
|
796
|
-
<xsl:if test="@orientation = 'landscape'">
|
|
797
|
-
<xsl:attribute name="master-reference">document-<xsl:value-of select="@orientation"/></xsl:attribute>
|
|
798
|
-
</xsl:if>
|
|
799
|
-
<xsl:if test="$isCommentary = 'true'">
|
|
800
|
-
<xsl:attribute name="master-reference">document_commentary_section</xsl:attribute>
|
|
801
|
-
</xsl:if>
|
|
802
|
-
<xsl:if test="position() = 1">
|
|
803
|
-
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
804
|
-
</xsl:if>
|
|
805
|
-
</xsl:otherwise>
|
|
806
|
-
</xsl:choose>
|
|
772
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-main">
|
|
773
|
+
<xsl:call-template name="refine_page-sequence-main"/>
|
|
807
774
|
|
|
808
775
|
<xsl:call-template name="insertFootnoteSeparatorCommon">
|
|
809
776
|
<xsl:with-param name="leader_length">15%</xsl:with-param>
|
|
@@ -1156,13 +1123,7 @@
|
|
|
1156
1123
|
<xsl:apply-templates select="mnx:title"/>
|
|
1157
1124
|
</fo:inline>
|
|
1158
1125
|
<fo:inline keep-together.within-line="always">
|
|
1159
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style">
|
|
1160
|
-
<xsl:if test="$vertical_layout = 'true'">
|
|
1161
|
-
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
|
1162
|
-
<xsl:attribute name="rule-thickness">0.5pt</xsl:attribute>
|
|
1163
|
-
<xsl:attribute name="baseline-shift">60%</xsl:attribute>
|
|
1164
|
-
</xsl:if>
|
|
1165
|
-
</fo:leader>
|
|
1126
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
1166
1127
|
<fo:inline>
|
|
1167
1128
|
<xsl:if test="not($vertical_layout = 'true')">
|
|
1168
1129
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
|
@@ -5791,20 +5752,59 @@
|
|
|
5791
5752
|
</xsl:variable>
|
|
5792
5753
|
|
|
5793
5754
|
<xsl:attribute-set name="page-sequence-preface">
|
|
5794
|
-
<xsl:attribute name="
|
|
5795
|
-
|
|
5755
|
+
<xsl:attribute name="master-reference">preface</xsl:attribute>
|
|
5756
|
+
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
|
|
5757
|
+
</xsl:attribute-set> <!-- page-sequence-preface -->
|
|
5796
5758
|
|
|
5797
5759
|
<xsl:template name="refine_page-sequence-preface">
|
|
5798
5760
|
<xsl:param name="layoutVersion"/>
|
|
5799
|
-
|
|
5761
|
+
<xsl:param name="doctype"/>
|
|
5762
|
+
<xsl:param name="num"/>
|
|
5763
|
+
<xsl:param name="skip_force_page_count">false</xsl:param>
|
|
5764
|
+
<xsl:if test="$vertical_layout = 'true'">
|
|
5765
|
+
<xsl:attribute name="master-reference">document_vertical_layout</xsl:attribute>
|
|
5766
|
+
<xsl:attribute name="format">一</xsl:attribute>
|
|
5767
|
+
</xsl:if>
|
|
5800
5768
|
|
|
5801
|
-
|
|
5769
|
+
<xsl:if test="position() = 1">
|
|
5770
|
+
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
5771
|
+
</xsl:if>
|
|
5772
|
+
</xsl:template> <!-- refine_page-sequence-preface -->
|
|
5802
5773
|
|
|
5803
|
-
|
|
5774
|
+
<xsl:attribute-set name="page-sequence-main">
|
|
5775
|
+
<xsl:attribute name="master-reference">document</xsl:attribute>
|
|
5776
|
+
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
|
|
5777
|
+
</xsl:attribute-set> <!-- page-sequence-main -->
|
|
5804
5778
|
|
|
5805
5779
|
<xsl:template name="refine_page-sequence-main">
|
|
5806
5780
|
<xsl:param name="layoutVersion"/>
|
|
5807
|
-
|
|
5781
|
+
<xsl:param name="doctype"/>
|
|
5782
|
+
<xsl:choose>
|
|
5783
|
+
<xsl:when test="$vertical_layout = 'true'">
|
|
5784
|
+
<xsl:attribute name="master-reference">document_vertical_layout</xsl:attribute>
|
|
5785
|
+
<xsl:if test="position() = last()">
|
|
5786
|
+
<xsl:attribute name="master-reference">document_vertical_layout_with_last</xsl:attribute>
|
|
5787
|
+
</xsl:if>
|
|
5788
|
+
<xsl:attribute name="format">一</xsl:attribute>
|
|
5789
|
+
<!-- <xsl:attribute name="fox:number-conversion-features">ア</xsl:attribute> -->
|
|
5790
|
+
</xsl:when>
|
|
5791
|
+
<xsl:otherwise>
|
|
5792
|
+
<xsl:if test="position() = 1">
|
|
5793
|
+
<xsl:attribute name="master-reference">document_first_section</xsl:attribute>
|
|
5794
|
+
</xsl:if>
|
|
5795
|
+
<xsl:if test="@orientation = 'landscape'">
|
|
5796
|
+
<xsl:attribute name="master-reference">document-<xsl:value-of select="@orientation"/></xsl:attribute>
|
|
5797
|
+
</xsl:if>
|
|
5798
|
+
<xsl:variable name="isCommentary" select="normalize-space(.//mn:annex[@commentary = 'true'] and 1 = 1)"/>
|
|
5799
|
+
<xsl:if test="$isCommentary = 'true'">
|
|
5800
|
+
<xsl:attribute name="master-reference">document_commentary_section</xsl:attribute>
|
|
5801
|
+
</xsl:if>
|
|
5802
|
+
<xsl:if test="position() = 1">
|
|
5803
|
+
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
5804
|
+
</xsl:if>
|
|
5805
|
+
</xsl:otherwise>
|
|
5806
|
+
</xsl:choose>
|
|
5807
|
+
</xsl:template> <!-- refine_page-sequence-main -->
|
|
5808
5808
|
|
|
5809
5809
|
<xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable>
|
|
5810
5810
|
<xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable>
|
|
@@ -16926,6 +16926,7 @@
|
|
|
16926
16926
|
</xsl:attribute-set>
|
|
16927
16927
|
|
|
16928
16928
|
<xsl:template name="refine_toc-style">
|
|
16929
|
+
<xsl:copy-of select="@id"/>
|
|
16929
16930
|
<xsl:if test="not($vertical_layout = 'true') and not($lang = 'en')">
|
|
16930
16931
|
<xsl:attribute name="font-family">IPAexGothic</xsl:attribute>
|
|
16931
16932
|
</xsl:if>
|
|
@@ -16987,6 +16988,11 @@
|
|
|
16987
16988
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
|
16988
16989
|
|
|
16989
16990
|
<xsl:template name="refine_toc-leader-style">
|
|
16991
|
+
<xsl:if test="$vertical_layout = 'true'">
|
|
16992
|
+
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
|
16993
|
+
<xsl:attribute name="rule-thickness">0.5pt</xsl:attribute>
|
|
16994
|
+
<xsl:attribute name="baseline-shift">60%</xsl:attribute>
|
|
16995
|
+
</xsl:if>
|
|
16990
16996
|
</xsl:template>
|
|
16991
16997
|
|
|
16992
16998
|
<xsl:attribute-set name="toc-pagenumber-style">
|
|
@@ -17018,13 +17024,13 @@
|
|
|
17018
17024
|
|
|
17019
17025
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
|
17020
17026
|
<xsl:variable name="nodes_preface_">
|
|
17021
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
17027
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
17022
17028
|
<node id="{@id}"/>
|
|
17023
17029
|
</xsl:for-each>
|
|
17024
17030
|
</xsl:variable>
|
|
17025
17031
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
|
17026
17032
|
|
|
17027
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
17033
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
17028
17034
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
17029
17035
|
|
|
17030
17036
|
<!-- process Section's title -->
|
|
@@ -17037,6 +17043,23 @@
|
|
|
17037
17043
|
</xsl:for-each>
|
|
17038
17044
|
</xsl:template>
|
|
17039
17045
|
|
|
17046
|
+
<xsl:template match="*[@type = 'toc'][mn:title or mn:fmt-title]" mode="contents" priority="2">
|
|
17047
|
+
<xsl:variable name="title">
|
|
17048
|
+
<xsl:call-template name="getName"/>
|
|
17049
|
+
</xsl:variable>
|
|
17050
|
+
<xsl:variable name="root">
|
|
17051
|
+
<xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
|
|
17052
|
+
<xsl:if test="ancestor-or-self::mn:annex">annex</xsl:if>
|
|
17053
|
+
</xsl:variable>
|
|
17054
|
+
<mnx:item id="{@id}" level="1" section="" type="toc" root="{$root}" display="false">
|
|
17055
|
+
<mnx:title>
|
|
17056
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
|
|
17057
|
+
<xsl:with-param name="element" select="$root"/>
|
|
17058
|
+
</xsl:apply-templates>
|
|
17059
|
+
</mnx:title>
|
|
17060
|
+
</mnx:item>
|
|
17061
|
+
</xsl:template>
|
|
17062
|
+
|
|
17040
17063
|
<xsl:template name="processMainSectionsDefault_Contents">
|
|
17041
17064
|
|
|
17042
17065
|
<xsl:variable name="nodes_sections_">
|
|
@@ -18893,16 +18916,17 @@
|
|
|
18893
18916
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
|
18894
18917
|
<xsl:template name="insert_basic_link">
|
|
18895
18918
|
<xsl:param name="element"/>
|
|
18919
|
+
<xsl:param name="wrapper">true</xsl:param>
|
|
18896
18920
|
<xsl:variable name="element_node" select="xalan:nodeset($element)"/>
|
|
18897
18921
|
<xsl:variable name="external-destination" select="normalize-space(count($element_node/fo:basic-link/@external-destination[. != '']) = 1)"/>
|
|
18898
18922
|
<xsl:variable name="internal-destination" select="normalize-space(count($element_node/fo:basic-link/@internal-destination[. != '']) = 1)"/>
|
|
18899
18923
|
<xsl:choose>
|
|
18900
|
-
<xsl:when test="$internal-destination = 'true'">
|
|
18924
|
+
<xsl:when test="$internal-destination = 'true' and $wrapper = 'true'">
|
|
18901
18925
|
<fo:wrapper role="Reference">
|
|
18902
18926
|
<xsl:copy-of select="$element_node"/>
|
|
18903
18927
|
</fo:wrapper>
|
|
18904
18928
|
</xsl:when>
|
|
18905
|
-
<xsl:when test="$external-destination = 'true'">
|
|
18929
|
+
<xsl:when test="$internal-destination = 'true' or $external-destination = 'true'">
|
|
18906
18930
|
<xsl:copy-of select="$element_node"/>
|
|
18907
18931
|
</xsl:when>
|
|
18908
18932
|
<xsl:otherwise>
|
|
@@ -64,7 +64,6 @@ module IsoDoc
|
|
|
64
64
|
|
|
65
65
|
def to_word1(result, filename, dir, header)
|
|
66
66
|
result or return
|
|
67
|
-
result = from_xhtml(result).gsub(/-DOUBLE_HYPHEN_ESCAPE-/, "--")
|
|
68
67
|
::Html2Doc::Jis.new(
|
|
69
68
|
filename: filename, imagedir: @localdir,
|
|
70
69
|
stylesheet: @wordstylesheet&.path,
|
|
@@ -76,7 +75,11 @@ module IsoDoc
|
|
|
76
75
|
|
|
77
76
|
def word_split(xml)
|
|
78
77
|
b = xml.dup
|
|
79
|
-
{ _cover: cover_split(xml),
|
|
78
|
+
{ _cover: cover_split(xml),
|
|
79
|
+
"": main_split(b) }.transform_values do |x|
|
|
80
|
+
unescape_amp_in_hrefs(from_xhtml(x)
|
|
81
|
+
.gsub("-DOUBLE_HYPHEN_ESCAPE-", "--"))
|
|
82
|
+
end
|
|
80
83
|
end
|
|
81
84
|
|
|
82
85
|
def cover_split(xml)
|
|
@@ -1939,10 +1939,10 @@ Detailed in https://www.relaton.org/model/relations/</a:documentation>
|
|
|
1939
1939
|
<value>hasAnnotation</value>
|
|
1940
1940
|
<value>draftOf</value>
|
|
1941
1941
|
<value>hasDraft</value>
|
|
1942
|
-
<value>
|
|
1943
|
-
<value>
|
|
1944
|
-
<value>
|
|
1945
|
-
<value>
|
|
1942
|
+
<value>predecessorDraftOf</value>
|
|
1943
|
+
<value>hasPredecessorDraft</value>
|
|
1944
|
+
<value>successorDraftOf</value>
|
|
1945
|
+
<value>hasSuccessorDraft</value>
|
|
1946
1946
|
<value>editionOf</value>
|
|
1947
1947
|
<value>hasEdition</value>
|
|
1948
1948
|
<value>updates</value>
|
|
@@ -641,8 +641,85 @@ This is done if the footnote reference is already presented in some other form,
|
|
|
641
641
|
</ref>
|
|
642
642
|
</zeroOrMore>
|
|
643
643
|
</define>
|
|
644
|
+
<define name="altsource">
|
|
645
|
+
<a:documentation>Alternative file to use as media</a:documentation>
|
|
646
|
+
<element name="altsource">
|
|
647
|
+
<ref name="MediaAttributes"/>
|
|
648
|
+
<optional>
|
|
649
|
+
<attribute name="tag">
|
|
650
|
+
<a:documentation>Comma-delimited tag to indicate when the alternate file is to be used,
|
|
651
|
+
at minimum allows contain `html`, `doc`, `pdf` as the main target formats of Metanorma,
|
|
652
|
+
and `default` for the fallback. The presence of an altsource tagged `default` is required</a:documentation>
|
|
653
|
+
</attribute>
|
|
654
|
+
</optional>
|
|
655
|
+
<optional>
|
|
656
|
+
<attribute name="media">
|
|
657
|
+
<a:documentation>CSS media query to indicate when the alternate file is to be used</a:documentation>
|
|
658
|
+
</attribute>
|
|
659
|
+
</optional>
|
|
660
|
+
</element>
|
|
661
|
+
</define>
|
|
662
|
+
<define name="image">
|
|
663
|
+
<a:documentation>Container for image content</a:documentation>
|
|
664
|
+
<choice>
|
|
665
|
+
<element name="image">
|
|
666
|
+
<ref name="RequiredId"/>
|
|
667
|
+
<ref name="ImageAttributes">
|
|
668
|
+
<a:documentation>When specified along with altsource, ImageAttributes give the default image to be rendered</a:documentation>
|
|
669
|
+
</ref>
|
|
670
|
+
<ref name="ImageBody"/>
|
|
671
|
+
</element>
|
|
672
|
+
<element name="svg">
|
|
673
|
+
<a:documentation>Add svg mark up to image</a:documentation>
|
|
674
|
+
<oneOrMore>
|
|
675
|
+
<choice>
|
|
676
|
+
<text/>
|
|
677
|
+
<ref name="AnyElement"/>
|
|
678
|
+
</choice>
|
|
679
|
+
</oneOrMore>
|
|
680
|
+
</element>
|
|
681
|
+
</choice>
|
|
682
|
+
</define>
|
|
683
|
+
<define name="ImageAttributes">
|
|
684
|
+
<optional>
|
|
685
|
+
<ref name="MediaAttributes">
|
|
686
|
+
<a:documentation>If the image contains altsource, the media attributes are given on each of the altsource elements instead of the root node</a:documentation>
|
|
687
|
+
</ref>
|
|
688
|
+
</optional>
|
|
689
|
+
<ref name="MediaAccessibilityAttributes"/>
|
|
690
|
+
<optional>
|
|
691
|
+
<attribute name="width">
|
|
692
|
+
<a:documentation>Height of image</a:documentation>
|
|
693
|
+
<ref name="ImageSize"/>
|
|
694
|
+
</attribute>
|
|
695
|
+
</optional>
|
|
696
|
+
<optional>
|
|
697
|
+
<attribute name="height">
|
|
698
|
+
<a:documentation>Width of image</a:documentation>
|
|
699
|
+
<ref name="ImageSize"/>
|
|
700
|
+
</attribute>
|
|
701
|
+
</optional>
|
|
702
|
+
</define>
|
|
644
703
|
</include>
|
|
645
704
|
<!-- end overrides -->
|
|
705
|
+
<define name="ImageBody">
|
|
706
|
+
<optional>
|
|
707
|
+
<element name="svg">
|
|
708
|
+
<a:documentation>image can contain SVG XML, which is used to access its identifiers within the Metanorma XML</a:documentation>
|
|
709
|
+
<oneOrMore>
|
|
710
|
+
<choice>
|
|
711
|
+
<text/>
|
|
712
|
+
<ref name="AnyElement"/>
|
|
713
|
+
</choice>
|
|
714
|
+
</oneOrMore>
|
|
715
|
+
</element>
|
|
716
|
+
</optional>
|
|
717
|
+
<zeroOrMore>
|
|
718
|
+
<ref name="altsource">
|
|
719
|
+
<a:documentation>Alternative files to use as media</a:documentation>
|
|
720
|
+
</ref>
|
|
721
|
+
</zeroOrMore>
|
|
722
|
+
</define>
|
|
646
723
|
<define name="key">
|
|
647
724
|
<a:documentation>Key to a table, figure, or formula</a:documentation>
|
|
648
725
|
<element name="key">
|
|
@@ -930,34 +1007,6 @@ titlecase, or lowercase</a:documentation>
|
|
|
930
1007
|
<ref name="ReducedBibliographicItem"/>
|
|
931
1008
|
</element>
|
|
932
1009
|
</define>
|
|
933
|
-
<define name="image" combine="choice">
|
|
934
|
-
<choice>
|
|
935
|
-
<element name="image">
|
|
936
|
-
<ref name="RequiredId"/>
|
|
937
|
-
<ref name="ImageAttributes"/>
|
|
938
|
-
<optional>
|
|
939
|
-
<element name="svg">
|
|
940
|
-
<a:documentation>Allow svg in image/svg, for consistency</a:documentation>
|
|
941
|
-
<oneOrMore>
|
|
942
|
-
<choice>
|
|
943
|
-
<text/>
|
|
944
|
-
<ref name="AnyElement"/>
|
|
945
|
-
</choice>
|
|
946
|
-
</oneOrMore>
|
|
947
|
-
</element>
|
|
948
|
-
</optional>
|
|
949
|
-
</element>
|
|
950
|
-
<element name="svg">
|
|
951
|
-
<a:documentation>Add svg mark up to image</a:documentation>
|
|
952
|
-
<oneOrMore>
|
|
953
|
-
<choice>
|
|
954
|
-
<text/>
|
|
955
|
-
<ref name="AnyElement"/>
|
|
956
|
-
</choice>
|
|
957
|
-
</oneOrMore>
|
|
958
|
-
</element>
|
|
959
|
-
</choice>
|
|
960
|
-
</define>
|
|
961
1010
|
<define name="ParagraphFnBody" combine="interleave">
|
|
962
1011
|
<ref name="BlockSource">
|
|
963
1012
|
<a:documentation>Bibliographic source for the information in the paragraph
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-jis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: japanese_calendar
|