metanorma-cc 2.7.4 → 2.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f73000680e511d8e998ff10f830adbfe0435a3ad7e36093372f3ca7f0ac9a34e
4
- data.tar.gz: 521967b9a30c47f4b0d30b81c5cb4ca5379fd845f7a875841818aac3af5c75e0
3
+ metadata.gz: 4ac3b3a75965dbdafd86766d5f51ade18833186845b3ae5933722adea6101811
4
+ data.tar.gz: 1009119a627b80d955dfad8852d32000bf8bb3bff6e404cb5afc379955ffd508
5
5
  SHA512:
6
- metadata.gz: 698fa135b508aa07b177b367238d42beaf140ddeb83ad331b5a32942c777d3ce064e3469741b733c17a4c8fab55c91d6aad3ecd686a3710b04c57e79ccd3028a
7
- data.tar.gz: 76ed2c211bf0b0b84aa7cb11dbb812da73ff97c514d1f73c96ccf6094e04baf561ab607587b426288ee0efbab98bba377314dfdbce06ca4cdb2f9af1ff118b22
6
+ metadata.gz: 4dfc2b6a15dc3ce85ee5a40d214a7fa6bbc99ebb044884c11d780b3b2e527b4e954509728553f280a6553e21b59e3220f58184df28efa9be7d71fe5a96c3a6e4
7
+ data.tar.gz: febc6660d5f8cdfb58e84e9352ee83ae381bd29f45eea0b5708e150df2d749793e7e3fe98a2129eb22521d2dd70e0d0d7d8fd0aaede8e626febaa3428335ddf2
@@ -175,13 +175,34 @@
175
175
  <xsl:call-template name="updateXML"/>
176
176
  </xsl:variable>
177
177
 
178
+ <xsl:if test="$debug = 'true'">
179
+ <redirect:write file="updated_xml.xml">
180
+ <xsl:copy-of select="$updated_xml"/>
181
+ </redirect:write>
182
+ </xsl:if>
183
+
178
184
  <xsl:for-each select="xalan:nodeset($updated_xml)/*">
179
185
 
180
186
  <xsl:variable name="updated_xml_with_pages">
181
187
  <xsl:call-template name="processPrefaceAndMainSectionsDefault_items"/>
182
188
  </xsl:variable>
183
189
 
190
+ <xsl:if test="$debug = 'true'">
191
+ <redirect:write file="updated_xml_with_pages.xml">
192
+ <xsl:copy-of select="$updated_xml_with_pages"/>
193
+ </redirect:write>
194
+ </xsl:if>
195
+
196
+ <xsl:if test="$debug = 'true'">
197
+ <redirect:write file="contents_.xml"> <!-- {java:getTime(java:java.util.Date.new())} -->
198
+ <xsl:copy-of select="$contents"/>
199
+ </redirect:write>
200
+ </xsl:if>
201
+
184
202
  <xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface/sections -->
203
+
204
+ <xsl:call-template name="inner-cover-page"/>
205
+
185
206
  <xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
186
207
 
187
208
  <!-- Copyright, Content, Foreword, etc. pages -->
@@ -192,9 +213,6 @@
192
213
  <xsl:call-template name="getPageSequenceOrientation"/>
193
214
  </xsl:attribute>
194
215
 
195
- <xsl:if test="position() = 1">
196
- <xsl:attribute name="initial-page-number">2</xsl:attribute>
197
- </xsl:if>
198
216
  <xsl:if test="position() = last()">
199
217
  <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
200
218
  </xsl:if>
@@ -203,35 +221,6 @@
203
221
  <xsl:call-template name="insertHeaderFooter"/>
204
222
  <fo:flow flow-name="xsl-region-body">
205
223
 
206
- <xsl:if test="$debug = 'true'">
207
- <redirect:write file="contents_.xml"> <!-- {java:getTime(java:java.util.Date.new())} -->
208
- <xsl:copy-of select="$contents"/>
209
- </redirect:write>
210
- </xsl:if>
211
-
212
- <xsl:if test="position() = 1">
213
- <fo:block margin-bottom="15pt"> </fo:block>
214
- <fo:block margin-bottom="14pt">
215
- <xsl:text>© </xsl:text>
216
- <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/>
217
- <xsl:text> </xsl:text>
218
- <fo:inline>
219
- <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement/mn:clause/mn:p[@id = 'boilerplate-name']"/>
220
- </fo:inline>
221
- </fo:block>
222
- <fo:block margin-bottom="12pt">
223
- <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
224
- </fo:block>
225
- <fo:block margin-bottom="12pt">
226
- <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement/mn:clause/mn:p[@id = 'boilerplate-name']"/>
227
- </fo:block>
228
- <fo:block>
229
- <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement/mn:clause/mn:p[@id = 'boilerplate-address']"/>
230
- </fo:block>
231
-
232
- <fo:block break-after="page"/>
233
- </xsl:if> <!-- for 1st page_sequence only -->
234
-
235
224
  <!-- Table of contents, Foreword, Introduction -->
236
225
  <!-- <xsl:call-template name="processPrefaceSectionsDefault"/> -->
237
226
  <xsl:apply-templates/>
@@ -274,6 +263,8 @@
274
263
 
275
264
  </xsl:for-each>
276
265
 
266
+ <xsl:call-template name="back-page"/>
267
+
277
268
  </fo:root>
278
269
  </xsl:template>
279
270
 
@@ -344,6 +335,36 @@
344
335
  </fo:page-sequence>
345
336
  </xsl:template> <!-- END: cover-page -->
346
337
 
338
+ <xsl:template name="inner-cover-page">
339
+ <fo:page-sequence master-reference="preface" format="i" initial-page-number="2">
340
+ <xsl:call-template name="insertFootnoteSeparatorCommon"/>
341
+ <xsl:call-template name="insertHeaderFooter"/>
342
+ <fo:flow flow-name="xsl-region-body">
343
+ <fo:block margin-bottom="15pt"> </fo:block>
344
+ <fo:block margin-bottom="14pt">
345
+ <xsl:text>© </xsl:text>
346
+ <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/>
347
+ <xsl:text> </xsl:text>
348
+ <fo:inline>
349
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement/mn:clause/mn:p[@id = 'boilerplate-name']"/>
350
+ </fo:inline>
351
+ </fo:block>
352
+ <fo:block margin-bottom="12pt">
353
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
354
+ </fo:block>
355
+ <fo:block margin-bottom="12pt">
356
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement/mn:clause/mn:p[@id = 'boilerplate-name']"/>
357
+ </fo:block>
358
+ <fo:block>
359
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement/mn:clause/mn:p[@id = 'boilerplate-address']"/>
360
+ </fo:block>
361
+ </fo:flow>
362
+ </fo:page-sequence>
363
+ </xsl:template> <!-- inner-cover-page -->
364
+
365
+ <xsl:template name="back-page">
366
+ </xsl:template>
367
+
347
368
  <xsl:template name="insertListOf_Title">
348
369
  <xsl:param name="title"/>
349
370
  <fo:block xsl:use-attribute-sets="toc-listof-title-style">
@@ -2282,7 +2303,6 @@
2282
2303
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
2283
2304
 
2284
2305
  <xsl:template name="refine_feedback-statement-title-style">
2285
-
2286
2306
  </xsl:template>
2287
2307
 
2288
2308
  <xsl:attribute-set name="feedback-statement-p-style">
@@ -8054,15 +8074,22 @@
8054
8074
  </xsl:attribute-set> <!-- quote-style -->
8055
8075
 
8056
8076
  <xsl:template name="refine_quote-style">
8057
- </xsl:template>
8077
+ </xsl:template> <!-- refine_quote-style -->
8058
8078
 
8059
8079
  <xsl:attribute-set name="quote-source-style">
8060
8080
  <xsl:attribute name="text-align">right</xsl:attribute>
8061
- </xsl:attribute-set>
8081
+ </xsl:attribute-set> <!-- quote-source-style -->
8062
8082
 
8063
8083
  <xsl:template name="refine_quote-source-style">
8064
8084
  </xsl:template>
8065
8085
 
8086
+ <xsl:attribute-set name="source-style">
8087
+ </xsl:attribute-set> <!-- source-style -->
8088
+
8089
+ <xsl:template name="refine_source-style">
8090
+
8091
+ </xsl:template> <!-- refine_source-style -->
8092
+
8066
8093
  <!-- ====== -->
8067
8094
  <!-- quote -->
8068
8095
  <!-- source -->
@@ -8110,7 +8137,9 @@
8110
8137
  </xsl:if>
8111
8138
  <xsl:choose>
8112
8139
  <xsl:when test="not(parent::quote)">
8113
- <fo:block>
8140
+ <fo:block xsl:use-attribute-sets="source-style">
8141
+ <xsl:call-template name="refine_source-style"/>
8142
+
8114
8143
  <xsl:call-template name="insert_basic_link">
8115
8144
  <xsl:with-param name="element">
8116
8145
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -10203,7 +10232,7 @@
10203
10232
 
10204
10233
  <xsl:template name="refine_fn-reference-style">
10205
10234
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
10206
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
10235
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
10207
10236
  </xsl:template> <!-- refine_fn-reference-style -->
10208
10237
 
10209
10238
  <xsl:attribute-set name="fn-style">
@@ -10214,6 +10243,7 @@
10214
10243
  </xsl:template>
10215
10244
 
10216
10245
  <xsl:attribute-set name="fn-num-style">
10246
+ <xsl:attribute name="role">Reference</xsl:attribute>
10217
10247
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
10218
10248
  <xsl:attribute name="font-size">65%</xsl:attribute>
10219
10249
  <xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -10287,33 +10317,16 @@
10287
10317
  <xsl:variable name="ref_id" select="@target"/>
10288
10318
 
10289
10319
  <xsl:variable name="footnote_inline">
10290
- <fo:inline role="Reference">
10320
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
10291
10321
 
10292
- <xsl:variable name="fn_styles">
10293
- <xsl:choose>
10294
- <xsl:when test="ancestor::mn:bibitem">
10295
- <fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
10296
- <xsl:call-template name="refine_bibitem-note-fn-style"/>
10297
- </fn_styles>
10298
- </xsl:when>
10299
- <xsl:otherwise>
10300
- <fn_styles xsl:use-attribute-sets="fn-num-style">
10301
- <xsl:call-template name="refine_fn-num-style"/>
10302
- </fn_styles>
10303
- </xsl:otherwise>
10304
- </xsl:choose>
10305
- </xsl:variable>
10306
-
10307
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
10308
- <xsl:copy-of select="."/>
10309
- </xsl:for-each>
10322
+ <xsl:call-template name="refine_fn-num-style"/>
10310
10323
 
10311
10324
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
10312
10325
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
10313
10326
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
10314
10327
  </xsl:if> -->
10315
10328
 
10316
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
10329
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
10317
10330
 
10318
10331
  <xsl:call-template name="insert_basic_link">
10319
10332
  <xsl:with-param name="element">
@@ -10610,30 +10623,6 @@
10610
10623
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
10611
10624
  </xsl:template>
10612
10625
 
10613
- <!-- footnote reference number for bibitem, in the text -->
10614
- <xsl:attribute-set name="bibitem-note-fn-style">
10615
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
10616
- <xsl:attribute name="font-size">65%</xsl:attribute>
10617
- <xsl:attribute name="vertical-align">super</xsl:attribute>
10618
- </xsl:attribute-set> <!-- bibitem-note-fn-style -->
10619
-
10620
- <xsl:template name="refine_bibitem-note-fn-style">
10621
- </xsl:template>
10622
-
10623
- <!-- footnote number on the page bottom -->
10624
- <xsl:attribute-set name="bibitem-note-fn-number-style">
10625
- <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
10626
- <xsl:attribute name="font-size">60%</xsl:attribute>
10627
- <xsl:attribute name="vertical-align">super</xsl:attribute>
10628
- </xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
10629
-
10630
- <!-- footnote body (text) on the page bottom -->
10631
- <xsl:attribute-set name="bibitem-note-fn-body-style">
10632
- <xsl:attribute name="font-size">10pt</xsl:attribute>
10633
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
10634
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
10635
- </xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
10636
-
10637
10626
  <xsl:attribute-set name="references-non-normative-style">
10638
10627
  </xsl:attribute-set> <!-- references-non-normative-style -->
10639
10628
 
@@ -12996,6 +12985,17 @@
12996
12985
  </xsl:attribute-set>
12997
12986
 
12998
12987
  <xsl:template name="refine_clause-style">
12988
+ <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
12989
+ <!-- <xsl:if test="$namespace = 'rsd'">
12990
+ <xsl:variable name="level">
12991
+ <xsl:call-template name="getLevel">
12992
+ <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
12993
+ </xsl:call-template>
12994
+ </xsl:variable>
12995
+ <xsl:if test="$level &gt;= 4">
12996
+ <xsl:attribute name="margin-left">13mm</xsl:attribute>
12997
+ </xsl:if>
12998
+ </xsl:if> -->
12999
12999
  </xsl:template>
13000
13000
 
13001
13001
  <!-- main sections -->
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cc
3
- VERSION = "2.7.4".freeze
3
+ VERSION = "2.7.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.4
4
+ version: 2.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-15 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic