metanorma-plateau 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 395bd0ddb1051233f50c4e50672c98227da150d638f4693857861421b43d238a
4
- data.tar.gz: 0f69c4cee8908eb8c104a116150df2f05ed458bb01bfa2105c12669a85a558a7
3
+ metadata.gz: 86f7c18c1343e8d2ef7350db1a5b5249c09c645b16269ec63581be1a7fb34323
4
+ data.tar.gz: 8f8eb68e1dc7610e21d650b9595228421786927e203da3276cd7971d1a9fce6c
5
5
  SHA512:
6
- metadata.gz: 2aba824057acd6a554ef6829d166072e5f685816248cfd2f5b1a44bb4e7ed20debbbf18207054739d8f2b4f58dba03ea382e0f89c8750a6b9b77a0a0f9790280
7
- data.tar.gz: d26e2a4f67a0caf9a2bf2087222abcf286c09a8917eebb38e899c6babeb04bf2c05ddd45d89afc5a01d597a37828775e39a01d8e2592cc768f54756aef4a240c
6
+ metadata.gz: b0440e60dec457cd3a971d47cb3974b39600ed3c93380df7642404b074391fe273b743cdd58694085059b48ef24ca058fb2a1ac8813646e1ceeaab64ea736e26
7
+ data.tar.gz: b1d933ad3ad3befbefd20bdb2922fac4cb4acd1bec3e722964b41adc657475b5ab11ed962b012f7390a2705508635261ad5688724a7d4ee11e748fd4de32aaa8
@@ -1213,6 +1213,13 @@
1213
1213
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
1214
1214
  </xsl:if>
1215
1215
 
1216
+ <xsl:if test="(ancestor::*[local-name() = 'td' or local-name() = 'th']) and (.//*[local-name() = 'font_en' or local-name() = 'font_en_bold'])">
1217
+ <xsl:if test="$isGenerateTableIF = 'false'">
1218
+ <xsl:attribute name="language">en</xsl:attribute>
1219
+ <xsl:attribute name="hyphenate">true</xsl:attribute>
1220
+ </xsl:if>
1221
+ </xsl:if>
1222
+
1216
1223
  <xsl:if test="parent::plateau:clause or (ancestor::plateau:note and not(ancestor::plateau:table))">
1217
1224
  <xsl:text> </xsl:text>
1218
1225
  </xsl:if>
@@ -1670,8 +1677,20 @@
1670
1677
  <!-- Key title after the table -->
1671
1678
  <xsl:template match="plateau:table/plateau:p[@class = 'ListTitle']" priority="2" mode="update_xml_step1"/>
1672
1679
 
1680
+ <!-- added to fix conflict with previous update in update_xml_pres -->
1681
+ <xsl:template match="*[local-name() = 'preferred'] | *[local-name() = 'admitted'] | *[local-name() = 'deprecates'] | *[local-name() = 'definition'] | *[local-name() = 'termsource'] | *[local-name() = 'termsource'] | *[local-name() = 'term'][@unnumbered = 'true']" mode="update_xml_step1" priority="2">
1682
+ <xsl:copy>
1683
+ <xsl:apply-templates select="@*|node()" mode="update_xml_step1"/>
1684
+ </xsl:copy>
1685
+ </xsl:template>
1686
+
1673
1687
  <xsl:template match="*[local-name() = 'font_en_bold'][normalize-space() != '']">
1674
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1688
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1689
+ <xsl:choose>
1690
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1691
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1692
+ </xsl:choose>
1693
+ </xsl:if>
1675
1694
  <fo:inline font-family="Noto Sans Condensed" font-weight="300"> <!-- font-weight="bold" -->
1676
1695
  <!-- <xsl:if test="ancestor::*[local-name() = 'preferred']">
1677
1696
  <xsl:attribute name="font-weight">normal</xsl:attribute>
@@ -1690,11 +1709,21 @@
1690
1709
 
1691
1710
  <xsl:apply-templates/>
1692
1711
  </fo:inline>
1693
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1712
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1713
+ <xsl:choose>
1714
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1715
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1716
+ </xsl:choose>
1717
+ </xsl:if>
1694
1718
  </xsl:template>
1695
1719
 
1696
1720
  <xsl:template match="*[local-name() = 'font_en'][normalize-space() != '']">
1697
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1721
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1722
+ <xsl:choose>
1723
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1724
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1725
+ </xsl:choose>
1726
+ </xsl:if>
1698
1727
  <fo:inline>
1699
1728
  <xsl:if test="not(ancestor::plateau:p[@class = 'zzSTDTitle2']) and not(ancestor::plateau:span[@class = 'JIS'])">
1700
1729
  <xsl:attribute name="font-family">Noto Sans Condensed</xsl:attribute>
@@ -1705,7 +1734,12 @@
1705
1734
  </xsl:if>
1706
1735
  <xsl:apply-templates/>
1707
1736
  </fo:inline>
1708
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1737
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1738
+ <xsl:choose>
1739
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1740
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1741
+ </xsl:choose>
1742
+ </xsl:if>
1709
1743
  </xsl:template>
1710
1744
 
1711
1745
  <!-- ========================= -->
@@ -7109,9 +7143,14 @@
7109
7143
 
7110
7144
  <xsl:variable name="simple-table">
7111
7145
 
7146
+ <xsl:variable name="table_without_semantic_elements">
7147
+ <xsl:apply-templates mode="update_xml_pres"/>
7148
+ </xsl:variable>
7149
+
7112
7150
  <!-- Step 0. replace <br/> to <p>...</p> -->
7113
7151
  <xsl:variable name="table_without_br">
7114
- <xsl:apply-templates mode="table-without-br"/>
7152
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
7153
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
7115
7154
  </xsl:variable>
7116
7155
 
7117
7156
  <!-- Step 1. colspan processing -->
@@ -13164,16 +13203,30 @@
13164
13203
 
13165
13204
  <xsl:template match="*[local-name() = 'fmt-name']"/>
13166
13205
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
13167
- <xsl:element name="name" namespace="{$namespace_full}">
13168
- <xsl:copy-of select="@*"/>
13169
- <xsl:apply-templates mode="update_xml_step1"/>
13170
- </xsl:element>
13206
+ <xsl:choose>
13207
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13208
+ <xsl:apply-templates mode="update_xml_step1"/>
13209
+ </xsl:when>
13210
+ <xsl:otherwise>
13211
+ <xsl:element name="name" namespace="{$namespace_full}">
13212
+ <xsl:copy-of select="@*"/>
13213
+ <xsl:apply-templates mode="update_xml_step1"/>
13214
+ </xsl:element>
13215
+ </xsl:otherwise>
13216
+ </xsl:choose>
13171
13217
  </xsl:template>
13172
13218
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
13173
- <xsl:element name="name" namespace="{$namespace_full}">
13174
- <xsl:copy-of select="@*"/>
13175
- <xsl:apply-templates mode="update_xml_pres"/>
13176
- </xsl:element>
13219
+ <xsl:choose>
13220
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13221
+ <xsl:apply-templates mode="update_xml_step1"/>
13222
+ </xsl:when>
13223
+ <xsl:otherwise>
13224
+ <xsl:element name="name" namespace="{$namespace_full}">
13225
+ <xsl:copy-of select="@*"/>
13226
+ <xsl:apply-templates mode="update_xml_pres"/>
13227
+ </xsl:element>
13228
+ </xsl:otherwise>
13229
+ </xsl:choose>
13177
13230
  </xsl:template>
13178
13231
 
13179
13232
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -13271,6 +13324,9 @@
13271
13324
  <xsl:apply-templates mode="update_xml_pres"/>
13272
13325
  </xsl:template>
13273
13326
 
13327
+ <xsl:template match="*[local-name() = 'semx']">
13328
+ <xsl:apply-templates/>
13329
+ </xsl:template>
13274
13330
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
13275
13331
  <xsl:apply-templates mode="update_xml_step1"/>
13276
13332
  </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>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "0.1.15".freeze
3
+ VERSION = "0.1.16".freeze
4
4
  end
5
5
  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: 0.1.15
4
+ version: 0.1.16
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-01-20 00:00:00.000000000 Z
11
+ date: 2025-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-jis