metanorma-plateau 0.2.0 → 0.2.1

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: bc057d7f63ba85f003ce8745ea7016e53cf8eb341e291a03b70571c0eb4ba35f
4
- data.tar.gz: d7440561640e70e239ee0efb56dc16e56a7f1a124a9795e8d36f9e2adff2b8d1
3
+ metadata.gz: fad86c30ca216b3f72f5d1a0a1e98174196edd55c2647d02d517597c3c57f7dd
4
+ data.tar.gz: 9fa218900c22975dcd9386d0a5ce6813cf408788bd251a7a40c29bc81efea8bc
5
5
  SHA512:
6
- metadata.gz: 0b2672a0a31db4d891a0a63baa410f5e58218e7ab779ce5126acdb3d69a9f6368ff694dbfa0ccb295969d86013bf7ec8f3d10de8ea974435f844a7cb819d12d6
7
- data.tar.gz: a4d13b8dda0e125b14e0f963862f40fb8537f6d8278531bc2a9f315abd485bbbdf69142d2cf307aaf833e4ef02778c94332ad9976270433b33cc3ed95b5677ca
6
+ metadata.gz: b676fea6a044ac18402d7ccc7dc62d0b16862fcaa168b8a2fdfe24e4147b9a4efd3ad14c10b0a9a6103233f57e9c79d60dc078073ffce4f0a00ca3a89adecefa
7
+ data.tar.gz: c005bd268ffc2eed5ed01726917903535bbb07c12647019a403c7165ae583a0177add3a3ab14eb6676543d23edb4c89215d3a5e81caaa2aac1fa3ff23b43851d
@@ -186,33 +186,40 @@
186
186
  <xsl:apply-templates mode="update_xml_pres"/>
187
187
  </xsl:variable>
188
188
 
189
- <!-- <xsl:message>start redirect</xsl:message>
190
- <redirect:write file="update_xml_pres.xml">
191
- <xsl:copy-of select="$updated_xml_pres"/>
192
- </redirect:write>
193
- <xsl:message>end redirect</xsl:message> -->
189
+ <xsl:if test="$debug = 'true'">
190
+ <xsl:message>start redirect</xsl:message>
191
+ <redirect:write file="update_xml_pres.xml">
192
+ <xsl:copy-of select="$updated_xml_pres"/>
193
+ </redirect:write>
194
+ <xsl:message>end redirect</xsl:message>
195
+ </xsl:if>
194
196
 
195
197
  <xsl:variable name="updated_xml_step1">
196
198
  <!-- <xsl:apply-templates mode="update_xml_step1"/> -->
197
199
  <xsl:apply-templates select="xalan:nodeset($updated_xml_pres)" mode="update_xml_step1"/>
198
200
  </xsl:variable>
199
201
  <!-- DEBUG: updated_xml_step1=<xsl:copy-of select="$updated_xml_step1"/> -->
200
- <!-- <xsl:message>start redirect</xsl:message>
201
- <redirect:write file="update_xml_step1.xml">
202
- <xsl:copy-of select="$updated_xml_step1"/>
203
- </redirect:write>
204
- <xsl:message>end redirect</xsl:message> -->
202
+ <xsl:if test="$debug = 'true'">
203
+ <xsl:message>start redirect</xsl:message>
204
+ <redirect:write file="update_xml_step1.xml">
205
+ <xsl:copy-of select="$updated_xml_step1"/>
206
+ </redirect:write>
207
+ <xsl:message>end redirect</xsl:message>
208
+ </xsl:if>
205
209
 
206
210
  <xsl:variable name="updated_xml_step2_">
207
211
  <xsl:apply-templates select="xalan:nodeset($updated_xml_step1)" mode="update_xml_step2"/>
208
212
  </xsl:variable>
209
213
  <xsl:variable name="updated_xml_step2" select="xalan:nodeset($updated_xml_step2_)"/>
210
214
  <!-- DEBUG: updated_xml_step2=<xsl:copy-of select="$updated_xml_step2"/> -->
211
- <!-- <xsl:message>start redirect</xsl:message>
212
- <redirect:write file="update_xml_step2.xml">
213
- <xsl:copy-of select="$updated_xml_step2"/>
214
- </redirect:write>
215
- <xsl:message>end redirect</xsl:message> -->
215
+
216
+ <xsl:if test="$debug = 'true'">
217
+ <xsl:message>start redirect</xsl:message>
218
+ <redirect:write file="update_xml_step2.xml">
219
+ <xsl:copy-of select="$updated_xml_step2"/>
220
+ </redirect:write>
221
+ <xsl:message>end redirect</xsl:message>
222
+ </xsl:if>
216
223
 
217
224
  <xsl:for-each select="$updated_xml_step2//plateau:metanorma">
218
225
  <xsl:variable name="num"><xsl:number level="any" count="plateau:metanorma"/></xsl:variable>
@@ -1699,7 +1706,7 @@
1699
1706
  <xsl:template match="plateau:table/plateau:p[@class = 'ListTitle']" priority="2" mode="update_xml_step1"/>
1700
1707
 
1701
1708
  <!-- added to fix conflict with previous update in update_xml_pres -->
1702
- <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">
1709
+ <xsl:template match="*[local-name() = 'preferred'] | *[local-name() = 'admitted'] | *[local-name() = 'deprecates'] | *[local-name() = 'definition'] | *[local-name() = 'termsource'] | *[local-name() = 'term'][@unnumbered = 'true'] | *[local-name() = 'identifier'] | *[local-name() = 'eref'] | *[local-name() = 'xref'] | *[local-name() = 'link'] | *[local-name() = 'origin']" mode="update_xml_step1" priority="2">
1703
1710
  <xsl:copy>
1704
1711
  <xsl:apply-templates select="@*|node()" mode="update_xml_step1"/>
1705
1712
  </xsl:copy>
@@ -20,6 +20,7 @@ module Metanorma
20
20
  {
21
21
  "Yu Gothic" => nil,
22
22
  "Noto Sans Condensed" => nil,
23
+ "Noto Sans Condensed Light" => nil,
23
24
  "Noto Sans CJK JP" => nil,
24
25
  "STIX Two Math" => nil,
25
26
  "Courier New" => nil,
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.2.1".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.2.0
4
+ version: 0.2.1
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-02-17 00:00:00.000000000 Z
11
+ date: 2025-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-jis