metanorma-jis 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/jis/jis.international-standard.xsl +68 -23
- data/lib/metanorma/jis/biblio.rng +2 -0
- 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: da9709b15e71dab76fa533ab0b25ebaceaa4e6ce54d873d1d7a1cf42badaaff2
|
4
|
+
data.tar.gz: 97b4c270b01ebd428b741db1a297575c830be52d8754c365bf9e50848602cf7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 939759f056436000c2b3f809a5b16466928a76d6eb237b99cb3caf17b034a0bd078e3fc8302241b7c9a762944526ce0fe7538628b1781b4d041d49d51d70f12c
|
7
|
+
data.tar.gz: 498e749399c5bce3c30e213381f619378a33f0c0843eb9711c8835c091c0b70dfa10df6ab761bb953a733575e6dc5e89306329c47e83b4d84ae0c62b7d81d343
|
@@ -1369,20 +1369,20 @@
|
|
1369
1369
|
<fo:table-body>
|
1370
1370
|
<fo:table-row height="50mm">
|
1371
1371
|
<fo:table-cell>
|
1372
|
-
<fo:block><xsl:value-of select="$publisher"/></fo:block>
|
1372
|
+
<fo:block id="__internal_layout__coverpage_footer_block1_{$num}_{generate-id()}"><xsl:value-of select="$publisher"/></fo:block>
|
1373
1373
|
</fo:table-cell>
|
1374
|
-
<fo:table-cell><fo:block> </fo:block></fo:table-cell>
|
1374
|
+
<fo:table-cell><fo:block id="__internal_layout__coverpage_footer_block2_{$num}_{generate-id()}"> </fo:block></fo:table-cell>
|
1375
1375
|
<fo:table-cell>
|
1376
|
-
<fo:block><xsl:value-of select="$authorizer"/></fo:block>
|
1376
|
+
<fo:block id="__internal_layout__coverpage_footer_block3_{$num}_{generate-id()}"><xsl:value-of select="$authorizer"/></fo:block>
|
1377
1377
|
</fo:table-cell>
|
1378
1378
|
</fo:table-row>
|
1379
1379
|
<fo:table-row>
|
1380
1380
|
<fo:table-cell>
|
1381
|
-
<fo:block><xsl:if test="normalize-space($publisher) != ''">発行</xsl:if></fo:block>
|
1381
|
+
<fo:block id="__internal_layout__coverpage_footer_block4_{$num}_{generate-id()}"><xsl:if test="normalize-space($publisher) != ''">発行</xsl:if></fo:block>
|
1382
1382
|
</fo:table-cell>
|
1383
|
-
<fo:table-cell><fo:block> </fo:block></fo:table-cell>
|
1383
|
+
<fo:table-cell><fo:block id="__internal_layout__coverpage_footer_block5_{$num}_{generate-id()}"> </fo:block></fo:table-cell>
|
1384
1384
|
<fo:table-cell>
|
1385
|
-
<fo:block><xsl:if test="normalize-space($authorizer) != ''">審議</xsl:if></fo:block>
|
1385
|
+
<fo:block id="__internal_layout__coverpage_footer_block6_{$num}_{generate-id()}"><xsl:if test="normalize-space($authorizer) != ''">審議</xsl:if></fo:block>
|
1386
1386
|
</fo:table-cell>
|
1387
1387
|
</fo:table-row>
|
1388
1388
|
</fo:table-body>
|
@@ -1433,7 +1433,7 @@
|
|
1433
1433
|
</xsl:for-each>
|
1434
1434
|
</xsl:variable>
|
1435
1435
|
<xsl:attribute name="width"><xsl:value-of select="sum(xalan:nodeset($blocksWidth)//width)"/>em</xsl:attribute>
|
1436
|
-
<fo:block-container width="1em">
|
1436
|
+
<fo:block-container width="1em" id="__internal_layout__coverpage_block1_{$num}_{generate-id()}">
|
1437
1437
|
<xsl:copy-of select="$blocks"/>
|
1438
1438
|
</fo:block-container>
|
1439
1439
|
</fo:inline-container>
|
@@ -1441,7 +1441,7 @@
|
|
1441
1441
|
<fo:inline font-size="8.16pt" baseline-shift="20%">:</fo:inline>
|
1442
1442
|
|
1443
1443
|
<fo:inline-container writing-mode="lr-tb" text-align="center" alignment-baseline="central" reference-orientation="90" width="1em" margin="0" padding="0" text-indent="0mm" last-line-end-indent="0mm" start-indent="0mm" end-indent="0mm">
|
1444
|
-
<fo:block-container width="1em">
|
1444
|
+
<fo:block-container width="1em" id="__internal_layout__coverpage_block2_{$num}_{generate-id()}">
|
1445
1445
|
<fo:block line-height="1em" margin-top="0.2em"/>
|
1446
1446
|
<fo:block font-size="8.16pt" baseline-shift="20%">
|
1447
1447
|
<xsl:call-template name="insertEachCharInBlock">
|
@@ -3024,7 +3024,12 @@
|
|
3024
3024
|
|
3025
3025
|
<!-- bold English text in non-vertical layout -->
|
3026
3026
|
<xsl:template match="*[local-name() = 'font_en_bold'][normalize-space() != '']">
|
3027
|
-
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"
|
3027
|
+
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
|
3028
|
+
<xsl:choose>
|
3029
|
+
<xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
|
3030
|
+
<xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
|
3031
|
+
</xsl:choose>
|
3032
|
+
</xsl:if>
|
3028
3033
|
<fo:inline>
|
3029
3034
|
<xsl:attribute name="font-family">Times New Roman</xsl:attribute>
|
3030
3035
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -3033,12 +3038,22 @@
|
|
3033
3038
|
</xsl:if>
|
3034
3039
|
<xsl:apply-templates/>
|
3035
3040
|
</fo:inline>
|
3036
|
-
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"
|
3041
|
+
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
|
3042
|
+
<xsl:choose>
|
3043
|
+
<xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
|
3044
|
+
<xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
|
3045
|
+
</xsl:choose>
|
3046
|
+
</xsl:if>
|
3037
3047
|
</xsl:template>
|
3038
3048
|
|
3039
3049
|
<!-- English text in non-vertical layout -->
|
3040
3050
|
<xsl:template match="*[local-name() = 'font_en'][normalize-space() != '']">
|
3041
|
-
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"
|
3051
|
+
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
|
3052
|
+
<xsl:choose>
|
3053
|
+
<xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
|
3054
|
+
<xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
|
3055
|
+
</xsl:choose>
|
3056
|
+
</xsl:if>
|
3042
3057
|
<fo:inline>
|
3043
3058
|
<xsl:if test="not(ancestor::jis:p[@class = 'zzSTDTitle2']) and not(ancestor::jis:span[@class = 'JIS'])">
|
3044
3059
|
<xsl:attribute name="font-family">Times New Roman</xsl:attribute>
|
@@ -3048,7 +3063,12 @@
|
|
3048
3063
|
</xsl:if>
|
3049
3064
|
<xsl:apply-templates/>
|
3050
3065
|
</fo:inline>
|
3051
|
-
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"
|
3066
|
+
<xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
|
3067
|
+
<xsl:choose>
|
3068
|
+
<xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
|
3069
|
+
<xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
|
3070
|
+
</xsl:choose>
|
3071
|
+
</xsl:if>
|
3052
3072
|
</xsl:template>
|
3053
3073
|
|
3054
3074
|
<!-- English text in vertical layout -->
|
@@ -3329,7 +3349,7 @@
|
|
3329
3349
|
<fo:static-content flow-name="header-last" role="artifact">
|
3330
3350
|
<fo:block font-size="12pt" font-weight="bold" margin-left="10mm">
|
3331
3351
|
<fo:inline-container writing-mode="lr-tb" text-align="center" alignment-baseline="central" reference-orientation="90" width="1em" margin="0" padding="0" text-indent="0mm" last-line-end-indent="0mm" start-indent="0mm" end-indent="0mm">
|
3332
|
-
<fo:block-container width="1em">
|
3352
|
+
<fo:block-container width="1em" id="__internal_layout__lastpage_{generate-id()}">
|
3333
3353
|
<xsl:call-template name="insertEachCharInBlock">
|
3334
3354
|
<xsl:with-param name="str">JIS <xsl:value-of select="$docidentifier_number"/></xsl:with-param>
|
3335
3355
|
<xsl:with-param name="spaceIndent">0.5em</xsl:with-param>
|
@@ -3382,7 +3402,10 @@
|
|
3382
3402
|
<fo:static-content flow-name="left-region"> <!-- role="artifact" commented, because there is <fo:retrieve-marker below, occurs java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 -->
|
3383
3403
|
<fo:block-container absolute-position="fixed" left="0mm" top="0" width="6mm" height="{$pageHeightA5}mm" background-color="{$cover_header_footer_background}">
|
3384
3404
|
<fo:block-container font-size="9pt" color="white" text-align="center">
|
3385
|
-
<
|
3405
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
3406
|
+
<xsl:attribute name="writing-mode">tb-rl</xsl:attribute>
|
3407
|
+
</xsl:if>
|
3408
|
+
<fo:block margin-top="131mm" margin-right="1mm">
|
3386
3409
|
<fo:page-number/>
|
3387
3410
|
</fo:block> <!-- 二 -->
|
3388
3411
|
</fo:block-container>
|
@@ -10945,9 +10968,14 @@
|
|
10945
10968
|
|
10946
10969
|
<xsl:variable name="simple-table">
|
10947
10970
|
|
10971
|
+
<xsl:variable name="table_without_semantic_elements">
|
10972
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
10973
|
+
</xsl:variable>
|
10974
|
+
|
10948
10975
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
10949
10976
|
<xsl:variable name="table_without_br">
|
10950
|
-
<xsl:apply-templates mode="table-without-br"/>
|
10977
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
10978
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
10951
10979
|
</xsl:variable>
|
10952
10980
|
|
10953
10981
|
<!-- Step 1. colspan processing -->
|
@@ -17021,16 +17049,30 @@
|
|
17021
17049
|
|
17022
17050
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
17023
17051
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
17024
|
-
<xsl:
|
17025
|
-
<xsl:
|
17026
|
-
|
17027
|
-
|
17052
|
+
<xsl:choose>
|
17053
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
17054
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17055
|
+
</xsl:when>
|
17056
|
+
<xsl:otherwise>
|
17057
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
17058
|
+
<xsl:copy-of select="@*"/>
|
17059
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17060
|
+
</xsl:element>
|
17061
|
+
</xsl:otherwise>
|
17062
|
+
</xsl:choose>
|
17028
17063
|
</xsl:template>
|
17029
17064
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
17030
|
-
<xsl:
|
17031
|
-
<xsl:
|
17032
|
-
|
17033
|
-
|
17065
|
+
<xsl:choose>
|
17066
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
17067
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17068
|
+
</xsl:when>
|
17069
|
+
<xsl:otherwise>
|
17070
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
17071
|
+
<xsl:copy-of select="@*"/>
|
17072
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
17073
|
+
</xsl:element>
|
17074
|
+
</xsl:otherwise>
|
17075
|
+
</xsl:choose>
|
17034
17076
|
</xsl:template>
|
17035
17077
|
|
17036
17078
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -17128,6 +17170,9 @@
|
|
17128
17170
|
<xsl:apply-templates mode="update_xml_pres"/>
|
17129
17171
|
</xsl:template>
|
17130
17172
|
|
17173
|
+
<xsl:template match="*[local-name() = 'semx']">
|
17174
|
+
<xsl:apply-templates/>
|
17175
|
+
</xsl:template>
|
17131
17176
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
17132
17177
|
<xsl:apply-templates mode="update_xml_step1"/>
|
17133
17178
|
</xsl:template>
|
@@ -947,6 +947,8 @@ May be electronic (e.g. Twitter direct message, email) or voice (e.g. a remark m
|
|
947
947
|
typically cited as "personal communication")</a:documentation>
|
948
948
|
<value>conversation</value>
|
949
949
|
<a:documentation>An exchange of messages between two or more persons. May be electronic (e.g. web chat) or voice (e.g. phone call)</a:documentation>
|
950
|
+
<value>collection</value>
|
951
|
+
<a:documentation>A compound resource consisting of other resources, which are themselves presupposed to have their type specified..</a:documentation>
|
950
952
|
<value>misc</value>
|
951
953
|
<a:documentation>Bibliographic type not adequately described in the foregoing</a:documentation>
|
952
954
|
</choice>
|
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: 0.4.
|
4
|
+
version: 0.4.6
|
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-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: japanese_calendar
|