metanorma-ieee 1.5.6 → 1.5.7

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: 1978dd40a0fd84dbdca8b9681aecc52f5a682fe3235db8b49a7bfe2dbe459e90
4
- data.tar.gz: aa1d951b979dccd60b7dde58f0769a43388684e59588edc3966726e8fffa0cdc
3
+ metadata.gz: e379aa61cba018f054ba9cd1eb8ee949ab6d88c122a17b7e4483d6af761fd0f3
4
+ data.tar.gz: 0bf4f1cd698d4383c45683777013f79ab77e6f9e4a1c0f03694b302e0b2f623a
5
5
  SHA512:
6
- metadata.gz: d1dd9cc71b8023edafe39862117230837127ff6a7b8a32415bc181fb0b4f896e54b515ba27a6aa3f58990f9f6eb4c9626e218d580dd42f7189ab64ec9b8d7022
7
- data.tar.gz: 5693d08c80ac46da9aa0ec5c6a87cd7ead29e5cfca63488e0a3be5791f8a194cd6f95abdb646474330e6b916eae56b6abb1750c0fa52696669a18c4469333e43
6
+ metadata.gz: c710afa873d7e07afe99c1356135079c10e1120600a3b7081907f10607aa3672b4e95c74df472394f0053a819d43127bde1094b0a1fafef6cd4569eb994e43dd
7
+ data.tar.gz: 249a8d028e85754966b74f02c3437a2ef87573d268229a41f9f0efa5b73d31df403e07a407731cc7611c66e236268d24e6557254a68b88287643a5c29ba808a4
@@ -952,6 +952,9 @@
952
952
  </xsl:variable>
953
953
 
954
954
  <xsl:choose>
955
+ <xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
956
+ <xsl:call-template name="insertCoverPageFullImage"/>
957
+ </xsl:when>
955
958
 
956
959
  <xsl:when test="$current_template = 'draft'">
957
960
 
@@ -2614,7 +2617,8 @@
2614
2617
  </xsl:template>
2615
2618
 
2616
2619
  <xsl:template match="mn:term/mn:fmt-definition" priority="2">
2617
- <fo:block xsl:use-attribute-sets="definition-style">
2620
+ <fo:block xsl:use-attribute-sets="term-definition-style">
2621
+ <xsl:call-template name="refine_term-definition-style"/>
2618
2622
  <xsl:apply-templates/>
2619
2623
  </fo:block>
2620
2624
  <!-- change termsource order - show after definition before termnote -->
@@ -2949,7 +2953,8 @@
2949
2953
  <xsl:value-of select="$localized.source"/>
2950
2954
  <xsl:text>: </xsl:text>
2951
2955
  </fo:inline> -->
2952
- <fo:inline xsl:use-attribute-sets="origin-style">
2956
+ <fo:inline xsl:use-attribute-sets="term-origin-style">
2957
+ <xsl:call-template name="refine_term-origin-style"/>
2953
2958
  <xsl:apply-templates/>
2954
2959
  </fo:inline>
2955
2960
  </fo:basic-link>
@@ -7282,83 +7287,77 @@
7282
7287
  <xsl:template name="refine_term-style">
7283
7288
  </xsl:template>
7284
7289
 
7285
- <xsl:attribute-set name="term-name-style">
7290
+ <xsl:attribute-set name="term-number-style">
7286
7291
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
7287
7292
  <xsl:attribute name="font-weight">bold</xsl:attribute>
7288
7293
  </xsl:attribute-set> <!-- term-name-style -->
7289
7294
 
7290
- <xsl:template name="refine_term-name-style">
7295
+ <xsl:template name="refine_term-number-style">
7291
7296
  </xsl:template>
7292
7297
 
7293
- <xsl:attribute-set name="preferred-style">
7294
- </xsl:attribute-set> <!-- preferred-style -->
7295
-
7296
- <xsl:template name="refine_preferred-style">
7297
- </xsl:template>
7298
-
7299
- <xsl:attribute-set name="preferred-block-style">
7298
+ <xsl:attribute-set name="term-preferred-block-style">
7300
7299
  </xsl:attribute-set> <!-- preferred-block-style -->
7301
7300
 
7302
- <xsl:template name="refine_preferred-block-style">
7301
+ <xsl:template name="refine_term-preferred-block-style">
7303
7302
  </xsl:template>
7304
7303
 
7305
- <xsl:attribute-set name="preferred-term-style">
7304
+ <xsl:attribute-set name="term-preferred-style">
7306
7305
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
7307
7306
  <xsl:attribute name="font-weight">bold</xsl:attribute>
7308
7307
  </xsl:attribute-set> <!-- preferred-term-style -->
7309
7308
 
7310
- <xsl:template name="refine_preferred-term-style">
7309
+ <xsl:template name="refine_term-preferred-style">
7311
7310
  <xsl:if test="mn:strong">
7312
7311
  <xsl:attribute name="font-weight">normal</xsl:attribute>
7313
7312
  </xsl:if>
7314
7313
  </xsl:template>
7315
7314
 
7316
- <xsl:attribute-set name="domain-style">
7317
- </xsl:attribute-set> <!-- domain-style -->
7315
+ <xsl:attribute-set name="term-domain-style">
7316
+ </xsl:attribute-set> <!-- term-domain-style -->
7318
7317
 
7319
- <xsl:template name="refine_domain-style">
7318
+ <xsl:template name="refine_term-domain-style">
7320
7319
  </xsl:template>
7321
7320
 
7322
- <xsl:attribute-set name="admitted-style">
7323
- </xsl:attribute-set> <!-- admitted-style -->
7321
+ <xsl:attribute-set name="term-admitted-style">
7322
+ </xsl:attribute-set> <!-- term-admitted-style -->
7324
7323
 
7325
- <xsl:template name="refine_admitted-style">
7324
+ <xsl:template name="refine_term-admitted-style">
7326
7325
  </xsl:template>
7327
7326
 
7328
- <xsl:attribute-set name="deprecates-style">
7329
- </xsl:attribute-set> <!-- deprecates-style -->
7327
+ <xsl:attribute-set name="term-deprecates-style">
7328
+ </xsl:attribute-set> <!-- term-deprecates-style -->
7330
7329
 
7331
- <xsl:template name="refine_deprecates-style">
7330
+ <xsl:template name="refine_term-deprecates-style">
7332
7331
  </xsl:template>
7333
7332
 
7334
- <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
7333
+ <xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
7335
7334
  </xsl:attribute-set>
7336
7335
 
7337
- <xsl:template name="refine_related-block-style">
7336
+ <xsl:template name="refine_term-related-block-style">
7338
7337
  </xsl:template>
7339
7338
 
7340
- <xsl:attribute-set name="definition-style">
7341
- </xsl:attribute-set> <!-- definition-style -->
7339
+ <xsl:attribute-set name="term-definition-style">
7340
+ </xsl:attribute-set> <!-- term-definition-style -->
7342
7341
 
7343
- <xsl:template name="refine_definition-style">
7342
+ <xsl:template name="refine_term-definition-style">
7344
7343
  </xsl:template>
7345
7344
 
7346
- <xsl:attribute-set name="termsource-style">
7347
- </xsl:attribute-set> <!-- termsource-style -->
7345
+ <xsl:attribute-set name="term-termsource-style">
7346
+ </xsl:attribute-set> <!-- term-termsource-style -->
7348
7347
 
7349
- <xsl:template name="refine_termsource-style">
7350
- </xsl:template> <!-- refine_termsource-style -->
7348
+ <xsl:template name="refine_term-termsource-style">
7349
+ </xsl:template> <!-- refine_term-termsource-style -->
7351
7350
 
7352
- <xsl:attribute-set name="termsource-text-style">
7353
- </xsl:attribute-set> <!-- termsource-text-style -->
7351
+ <xsl:attribute-set name="term-termsource-text-style">
7352
+ </xsl:attribute-set> <!-- term-termsource-text-style -->
7354
7353
 
7355
- <xsl:template name="refine_termsource-text-style">
7354
+ <xsl:template name="refine_term-termsource-text-style">
7356
7355
  </xsl:template>
7357
7356
 
7358
- <xsl:attribute-set name="origin-style">
7359
- </xsl:attribute-set> <!-- origin-style -->
7357
+ <xsl:attribute-set name="term-origin-style">
7358
+ </xsl:attribute-set> <!-- term-origin-style -->
7360
7359
 
7361
- <xsl:template name="refine_origin-style">
7360
+ <xsl:template name="refine_term-origin-style">
7362
7361
  </xsl:template>
7363
7362
 
7364
7363
  <!-- ====== -->
@@ -7402,9 +7401,9 @@
7402
7401
  <!-- modification -->
7403
7402
  <!-- ====== -->
7404
7403
  <xsl:template match="mn:fmt-termsource" name="termsource">
7405
- <fo:block xsl:use-attribute-sets="termsource-style">
7404
+ <fo:block xsl:use-attribute-sets="term-termsource-style">
7406
7405
 
7407
- <xsl:call-template name="refine_termsource-style"/>
7406
+ <xsl:call-template name="refine_term-termsource-style"/>
7408
7407
 
7409
7408
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
7410
7409
  <xsl:variable name="termsource_text">
@@ -7452,8 +7451,8 @@
7452
7451
 
7453
7452
  <!-- text SOURCE: -->
7454
7453
  <xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
7455
- <fo:inline xsl:use-attribute-sets="termsource-text-style">
7456
- <xsl:call-template name="refine_termsource-text-style"/>
7454
+ <fo:inline xsl:use-attribute-sets="term-termsource-text-style">
7455
+ <xsl:call-template name="refine_term-termsource-text-style"/>
7457
7456
  <xsl:value-of select="."/>
7458
7457
  </fo:inline>
7459
7458
  </xsl:template>
@@ -7465,8 +7464,8 @@
7465
7464
  <xsl:if test="normalize-space(@citeas) = ''">
7466
7465
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
7467
7466
  </xsl:if>
7468
- <fo:inline xsl:use-attribute-sets="origin-style">
7469
- <xsl:call-template name="refine_origin-style"/>
7467
+ <fo:inline xsl:use-attribute-sets="term-origin-style">
7468
+ <xsl:call-template name="refine_term-origin-style"/>
7470
7469
  <xsl:apply-templates/>
7471
7470
  </fo:inline>
7472
7471
  </fo:basic-link>
@@ -7514,14 +7513,14 @@
7514
7513
  <xsl:variable name="levelTerm">
7515
7514
  <xsl:call-template name="getLevelTermName"/>
7516
7515
  </xsl:variable>
7517
- <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
7516
+ <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
7518
7517
 
7519
- <xsl:call-template name="refine_preferred-block-style"/>
7518
+ <xsl:call-template name="refine_term-preferred-block-style"/>
7520
7519
 
7521
7520
  <xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
7522
7521
 
7523
- <fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
7524
- <xsl:call-template name="refine_term-name-style"/>
7522
+ <fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
7523
+ <xsl:call-template name="refine_term-number-style"/>
7525
7524
 
7526
7525
  <xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
7527
7526
  <xsl:call-template name="setIDforNamedDestination"/>
@@ -7531,8 +7530,8 @@
7531
7530
  </fo:block>
7532
7531
  </xsl:if>
7533
7532
 
7534
- <fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
7535
- <xsl:call-template name="refine_preferred-term-style"/>
7533
+ <fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
7534
+ <xsl:call-template name="refine_term-preferred-style"/>
7536
7535
 
7537
7536
  <xsl:apply-templates/>
7538
7537
  </fo:block>
@@ -7552,15 +7551,15 @@
7552
7551
  <xsl:template match="mn:domain"/>
7553
7552
 
7554
7553
  <xsl:template match="mn:fmt-admitted">
7555
- <fo:block xsl:use-attribute-sets="admitted-style">
7556
- <xsl:call-template name="refine_admitted-style"/>
7554
+ <fo:block xsl:use-attribute-sets="term-admitted-style">
7555
+ <xsl:call-template name="refine_term-admitted-style"/>
7557
7556
  <xsl:apply-templates/>
7558
7557
  </fo:block>
7559
7558
  </xsl:template>
7560
7559
 
7561
7560
  <xsl:template match="mn:fmt-deprecates">
7562
- <fo:block xsl:use-attribute-sets="deprecates-style">
7563
- <xsl:call-template name="refine_deprecates-style"/>
7561
+ <fo:block xsl:use-attribute-sets="term-deprecates-style">
7562
+ <xsl:call-template name="refine_term-deprecates-style"/>
7564
7563
  <xsl:apply-templates/>
7565
7564
  </fo:block>
7566
7565
  </xsl:template>
@@ -7573,8 +7572,8 @@
7573
7572
  <!-- End Preferred, admitted, deprecated -->
7574
7573
 
7575
7574
  <xsl:template match="mn:fmt-related">
7576
- <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
7577
- <xsl:call-template name="refine_related-block-style"/>
7575
+ <fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
7576
+ <xsl:call-template name="refine_term-related-block-style"/>
7578
7577
  <xsl:apply-templates/>
7579
7578
  </fo:block>
7580
7579
  </xsl:template>
@@ -7588,8 +7587,8 @@
7588
7587
  <!-- definition -->
7589
7588
  <!-- ========== -->
7590
7589
  <xsl:template match="mn:fmt-definition">
7591
- <fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
7592
- <xsl:call-template name="refine_definition-style"/>
7590
+ <fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
7591
+ <xsl:call-template name="refine_term-definition-style"/>
7593
7592
  <xsl:apply-templates/>
7594
7593
  </fo:block>
7595
7594
  </xsl:template>
@@ -17585,6 +17584,20 @@
17585
17584
  </fo:block-container>
17586
17585
  </xsl:template>
17587
17586
 
17587
+ <!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
17588
+ <xsl:template name="insertCoverPageFullImage">
17589
+ <xsl:param name="name">coverpage-image</xsl:param>
17590
+ <xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
17591
+ <fo:page-sequence master-reference="cover-page" force-page-count="no-force">
17592
+ <fo:flow flow-name="xsl-region-body">
17593
+ <xsl:call-template name="insertBackgroundPageImage">
17594
+ <xsl:with-param name="number" select="position()"/>
17595
+ </xsl:call-template>
17596
+ </fo:flow>
17597
+ </fo:page-sequence>
17598
+ </xsl:for-each>
17599
+ </xsl:template>
17600
+
17588
17601
  <xsl:template name="insertPageImage">
17589
17602
  <xsl:param name="svg_content_height" select="$pageHeight"/>
17590
17603
  <xsl:param name="bitmap_width" select="$pageWidth"/>
@@ -952,6 +952,9 @@
952
952
  </xsl:variable>
953
953
 
954
954
  <xsl:choose>
955
+ <xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
956
+ <xsl:call-template name="insertCoverPageFullImage"/>
957
+ </xsl:when>
955
958
 
956
959
  <xsl:when test="$current_template = 'draft'">
957
960
 
@@ -2614,7 +2617,8 @@
2614
2617
  </xsl:template>
2615
2618
 
2616
2619
  <xsl:template match="mn:term/mn:fmt-definition" priority="2">
2617
- <fo:block xsl:use-attribute-sets="definition-style">
2620
+ <fo:block xsl:use-attribute-sets="term-definition-style">
2621
+ <xsl:call-template name="refine_term-definition-style"/>
2618
2622
  <xsl:apply-templates/>
2619
2623
  </fo:block>
2620
2624
  <!-- change termsource order - show after definition before termnote -->
@@ -2949,7 +2953,8 @@
2949
2953
  <xsl:value-of select="$localized.source"/>
2950
2954
  <xsl:text>: </xsl:text>
2951
2955
  </fo:inline> -->
2952
- <fo:inline xsl:use-attribute-sets="origin-style">
2956
+ <fo:inline xsl:use-attribute-sets="term-origin-style">
2957
+ <xsl:call-template name="refine_term-origin-style"/>
2953
2958
  <xsl:apply-templates/>
2954
2959
  </fo:inline>
2955
2960
  </fo:basic-link>
@@ -7282,83 +7287,77 @@
7282
7287
  <xsl:template name="refine_term-style">
7283
7288
  </xsl:template>
7284
7289
 
7285
- <xsl:attribute-set name="term-name-style">
7290
+ <xsl:attribute-set name="term-number-style">
7286
7291
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
7287
7292
  <xsl:attribute name="font-weight">bold</xsl:attribute>
7288
7293
  </xsl:attribute-set> <!-- term-name-style -->
7289
7294
 
7290
- <xsl:template name="refine_term-name-style">
7295
+ <xsl:template name="refine_term-number-style">
7291
7296
  </xsl:template>
7292
7297
 
7293
- <xsl:attribute-set name="preferred-style">
7294
- </xsl:attribute-set> <!-- preferred-style -->
7295
-
7296
- <xsl:template name="refine_preferred-style">
7297
- </xsl:template>
7298
-
7299
- <xsl:attribute-set name="preferred-block-style">
7298
+ <xsl:attribute-set name="term-preferred-block-style">
7300
7299
  </xsl:attribute-set> <!-- preferred-block-style -->
7301
7300
 
7302
- <xsl:template name="refine_preferred-block-style">
7301
+ <xsl:template name="refine_term-preferred-block-style">
7303
7302
  </xsl:template>
7304
7303
 
7305
- <xsl:attribute-set name="preferred-term-style">
7304
+ <xsl:attribute-set name="term-preferred-style">
7306
7305
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
7307
7306
  <xsl:attribute name="font-weight">bold</xsl:attribute>
7308
7307
  </xsl:attribute-set> <!-- preferred-term-style -->
7309
7308
 
7310
- <xsl:template name="refine_preferred-term-style">
7309
+ <xsl:template name="refine_term-preferred-style">
7311
7310
  <xsl:if test="mn:strong">
7312
7311
  <xsl:attribute name="font-weight">normal</xsl:attribute>
7313
7312
  </xsl:if>
7314
7313
  </xsl:template>
7315
7314
 
7316
- <xsl:attribute-set name="domain-style">
7317
- </xsl:attribute-set> <!-- domain-style -->
7315
+ <xsl:attribute-set name="term-domain-style">
7316
+ </xsl:attribute-set> <!-- term-domain-style -->
7318
7317
 
7319
- <xsl:template name="refine_domain-style">
7318
+ <xsl:template name="refine_term-domain-style">
7320
7319
  </xsl:template>
7321
7320
 
7322
- <xsl:attribute-set name="admitted-style">
7323
- </xsl:attribute-set> <!-- admitted-style -->
7321
+ <xsl:attribute-set name="term-admitted-style">
7322
+ </xsl:attribute-set> <!-- term-admitted-style -->
7324
7323
 
7325
- <xsl:template name="refine_admitted-style">
7324
+ <xsl:template name="refine_term-admitted-style">
7326
7325
  </xsl:template>
7327
7326
 
7328
- <xsl:attribute-set name="deprecates-style">
7329
- </xsl:attribute-set> <!-- deprecates-style -->
7327
+ <xsl:attribute-set name="term-deprecates-style">
7328
+ </xsl:attribute-set> <!-- term-deprecates-style -->
7330
7329
 
7331
- <xsl:template name="refine_deprecates-style">
7330
+ <xsl:template name="refine_term-deprecates-style">
7332
7331
  </xsl:template>
7333
7332
 
7334
- <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
7333
+ <xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
7335
7334
  </xsl:attribute-set>
7336
7335
 
7337
- <xsl:template name="refine_related-block-style">
7336
+ <xsl:template name="refine_term-related-block-style">
7338
7337
  </xsl:template>
7339
7338
 
7340
- <xsl:attribute-set name="definition-style">
7341
- </xsl:attribute-set> <!-- definition-style -->
7339
+ <xsl:attribute-set name="term-definition-style">
7340
+ </xsl:attribute-set> <!-- term-definition-style -->
7342
7341
 
7343
- <xsl:template name="refine_definition-style">
7342
+ <xsl:template name="refine_term-definition-style">
7344
7343
  </xsl:template>
7345
7344
 
7346
- <xsl:attribute-set name="termsource-style">
7347
- </xsl:attribute-set> <!-- termsource-style -->
7345
+ <xsl:attribute-set name="term-termsource-style">
7346
+ </xsl:attribute-set> <!-- term-termsource-style -->
7348
7347
 
7349
- <xsl:template name="refine_termsource-style">
7350
- </xsl:template> <!-- refine_termsource-style -->
7348
+ <xsl:template name="refine_term-termsource-style">
7349
+ </xsl:template> <!-- refine_term-termsource-style -->
7351
7350
 
7352
- <xsl:attribute-set name="termsource-text-style">
7353
- </xsl:attribute-set> <!-- termsource-text-style -->
7351
+ <xsl:attribute-set name="term-termsource-text-style">
7352
+ </xsl:attribute-set> <!-- term-termsource-text-style -->
7354
7353
 
7355
- <xsl:template name="refine_termsource-text-style">
7354
+ <xsl:template name="refine_term-termsource-text-style">
7356
7355
  </xsl:template>
7357
7356
 
7358
- <xsl:attribute-set name="origin-style">
7359
- </xsl:attribute-set> <!-- origin-style -->
7357
+ <xsl:attribute-set name="term-origin-style">
7358
+ </xsl:attribute-set> <!-- term-origin-style -->
7360
7359
 
7361
- <xsl:template name="refine_origin-style">
7360
+ <xsl:template name="refine_term-origin-style">
7362
7361
  </xsl:template>
7363
7362
 
7364
7363
  <!-- ====== -->
@@ -7402,9 +7401,9 @@
7402
7401
  <!-- modification -->
7403
7402
  <!-- ====== -->
7404
7403
  <xsl:template match="mn:fmt-termsource" name="termsource">
7405
- <fo:block xsl:use-attribute-sets="termsource-style">
7404
+ <fo:block xsl:use-attribute-sets="term-termsource-style">
7406
7405
 
7407
- <xsl:call-template name="refine_termsource-style"/>
7406
+ <xsl:call-template name="refine_term-termsource-style"/>
7408
7407
 
7409
7408
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
7410
7409
  <xsl:variable name="termsource_text">
@@ -7452,8 +7451,8 @@
7452
7451
 
7453
7452
  <!-- text SOURCE: -->
7454
7453
  <xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
7455
- <fo:inline xsl:use-attribute-sets="termsource-text-style">
7456
- <xsl:call-template name="refine_termsource-text-style"/>
7454
+ <fo:inline xsl:use-attribute-sets="term-termsource-text-style">
7455
+ <xsl:call-template name="refine_term-termsource-text-style"/>
7457
7456
  <xsl:value-of select="."/>
7458
7457
  </fo:inline>
7459
7458
  </xsl:template>
@@ -7465,8 +7464,8 @@
7465
7464
  <xsl:if test="normalize-space(@citeas) = ''">
7466
7465
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
7467
7466
  </xsl:if>
7468
- <fo:inline xsl:use-attribute-sets="origin-style">
7469
- <xsl:call-template name="refine_origin-style"/>
7467
+ <fo:inline xsl:use-attribute-sets="term-origin-style">
7468
+ <xsl:call-template name="refine_term-origin-style"/>
7470
7469
  <xsl:apply-templates/>
7471
7470
  </fo:inline>
7472
7471
  </fo:basic-link>
@@ -7514,14 +7513,14 @@
7514
7513
  <xsl:variable name="levelTerm">
7515
7514
  <xsl:call-template name="getLevelTermName"/>
7516
7515
  </xsl:variable>
7517
- <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
7516
+ <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
7518
7517
 
7519
- <xsl:call-template name="refine_preferred-block-style"/>
7518
+ <xsl:call-template name="refine_term-preferred-block-style"/>
7520
7519
 
7521
7520
  <xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
7522
7521
 
7523
- <fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
7524
- <xsl:call-template name="refine_term-name-style"/>
7522
+ <fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
7523
+ <xsl:call-template name="refine_term-number-style"/>
7525
7524
 
7526
7525
  <xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
7527
7526
  <xsl:call-template name="setIDforNamedDestination"/>
@@ -7531,8 +7530,8 @@
7531
7530
  </fo:block>
7532
7531
  </xsl:if>
7533
7532
 
7534
- <fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
7535
- <xsl:call-template name="refine_preferred-term-style"/>
7533
+ <fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
7534
+ <xsl:call-template name="refine_term-preferred-style"/>
7536
7535
 
7537
7536
  <xsl:apply-templates/>
7538
7537
  </fo:block>
@@ -7552,15 +7551,15 @@
7552
7551
  <xsl:template match="mn:domain"/>
7553
7552
 
7554
7553
  <xsl:template match="mn:fmt-admitted">
7555
- <fo:block xsl:use-attribute-sets="admitted-style">
7556
- <xsl:call-template name="refine_admitted-style"/>
7554
+ <fo:block xsl:use-attribute-sets="term-admitted-style">
7555
+ <xsl:call-template name="refine_term-admitted-style"/>
7557
7556
  <xsl:apply-templates/>
7558
7557
  </fo:block>
7559
7558
  </xsl:template>
7560
7559
 
7561
7560
  <xsl:template match="mn:fmt-deprecates">
7562
- <fo:block xsl:use-attribute-sets="deprecates-style">
7563
- <xsl:call-template name="refine_deprecates-style"/>
7561
+ <fo:block xsl:use-attribute-sets="term-deprecates-style">
7562
+ <xsl:call-template name="refine_term-deprecates-style"/>
7564
7563
  <xsl:apply-templates/>
7565
7564
  </fo:block>
7566
7565
  </xsl:template>
@@ -7573,8 +7572,8 @@
7573
7572
  <!-- End Preferred, admitted, deprecated -->
7574
7573
 
7575
7574
  <xsl:template match="mn:fmt-related">
7576
- <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
7577
- <xsl:call-template name="refine_related-block-style"/>
7575
+ <fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
7576
+ <xsl:call-template name="refine_term-related-block-style"/>
7578
7577
  <xsl:apply-templates/>
7579
7578
  </fo:block>
7580
7579
  </xsl:template>
@@ -7588,8 +7587,8 @@
7588
7587
  <!-- definition -->
7589
7588
  <!-- ========== -->
7590
7589
  <xsl:template match="mn:fmt-definition">
7591
- <fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
7592
- <xsl:call-template name="refine_definition-style"/>
7590
+ <fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
7591
+ <xsl:call-template name="refine_term-definition-style"/>
7593
7592
  <xsl:apply-templates/>
7594
7593
  </fo:block>
7595
7594
  </xsl:template>
@@ -17585,6 +17584,20 @@
17585
17584
  </fo:block-container>
17586
17585
  </xsl:template>
17587
17586
 
17587
+ <!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
17588
+ <xsl:template name="insertCoverPageFullImage">
17589
+ <xsl:param name="name">coverpage-image</xsl:param>
17590
+ <xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
17591
+ <fo:page-sequence master-reference="cover-page" force-page-count="no-force">
17592
+ <fo:flow flow-name="xsl-region-body">
17593
+ <xsl:call-template name="insertBackgroundPageImage">
17594
+ <xsl:with-param name="number" select="position()"/>
17595
+ </xsl:call-template>
17596
+ </fo:flow>
17597
+ </fo:page-sequence>
17598
+ </xsl:for-each>
17599
+ </xsl:template>
17600
+
17588
17601
  <xsl:template name="insertPageImage">
17589
17602
  <xsl:param name="svg_content_height" select="$pageHeight"/>
17590
17603
  <xsl:param name="bitmap_width" select="$pageWidth"/>
@@ -81,11 +81,10 @@ module IsoDoc
81
81
  warn "Failure to convert MathML to LaTeX\n#{node.parent.to_xml}\n#{e}"
82
82
  end
83
83
 
84
- def ol(docxml)
85
- ol_numbering(docxml)
86
- @xrefs.list_anchor_names(docxml.xpath(ns(@xrefs.sections_xpath)))
87
- docxml.xpath(ns("//ol/li")).each { |f| ol_label(f) }
88
- end
84
+ #def ol(docxml)
85
+ #ol_prep(docxml)
86
+ # docxml.xpath(ns("//ol/li")).each { |f| ol_label(f) }
87
+ #end
89
88
 
90
89
  def ol_numbering_containers
91
90
  "//clause | //annex | //foreword | //acknowledgements | " \
@@ -173,6 +173,7 @@ module IsoDoc
173
173
  end
174
174
 
175
175
  def abstract_header(dest)
176
+ dest.elements.empty? and return
176
177
  dest.elements.first.add_first_child <<~XML
177
178
  <span class='IEEEStdsAbstractHeader'><span lang='EN-US'>Abstract:</span></span>
178
179
  XML
@@ -869,7 +869,7 @@ depending on whether the items exist as independent documents, or are parts of a
869
869
  </zeroOrMore>
870
870
  </element>
871
871
  </define>
872
- <define name="BibItemType" combine="choice">
872
+ <define name="BibItemType">
873
873
  <a:documentation>Type of bibliographic item.
874
874
  The value list complies with the types provided in ISO 690:2021.
875
875
  NOTE: These values represent a strict superset to BibTeX
@@ -311,17 +311,28 @@ and is intended to be referenced by a callout within the source code</a:document
311
311
  </ref>
312
312
  </optional>
313
313
  <choice>
314
- <a:documentation>Content of the figure</a:documentation>
315
- <ref name="image"/>
314
+ <a:documentation>Content of the figure </a:documentation>
315
+ <ref name="image">
316
+ <a:documentation>by default the content of a figure is a media file</a:documentation>
317
+ </ref>
316
318
  <ref name="video"/>
317
319
  <ref name="audio"/>
318
- <ref name="pre"/>
320
+ <ref name="pre">
321
+ <a:documentation>figures can contain ASCII art</a:documentation>
322
+ </ref>
319
323
  <oneOrMore>
320
- <ref name="paragraph-with-footnote"/>
324
+ <ref name="paragraph-with-footnote">
325
+ <a:documentation>figures can contain discursive art</a:documentation>
326
+ </ref>
321
327
  </oneOrMore>
322
328
  <zeroOrMore>
323
- <ref name="figure"/>
329
+ <ref name="figure">
330
+ <a:documentation>subfigures, nested directly within a figure</a:documentation>
331
+ </ref>
324
332
  </zeroOrMore>
333
+ <ref name="table">
334
+ <a:documentation>Table is understood in this context to be a tabular arrangement of subfigures</a:documentation>
335
+ </ref>
325
336
  </choice>
326
337
  <zeroOrMore>
327
338
  <ref name="fn">
@@ -354,17 +365,28 @@ and is intended to be referenced by a callout within the source code</a:document
354
365
  </ref>
355
366
  </optional>
356
367
  <choice>
357
- <a:documentation>Content of the figure</a:documentation>
358
- <ref name="image-no-id"/>
368
+ <a:documentation>Content of the figure </a:documentation>
369
+ <ref name="image-no-id">
370
+ <a:documentation>by default the content of a figure is a media file</a:documentation>
371
+ </ref>
359
372
  <ref name="video-no-id"/>
360
373
  <ref name="audio-no-id"/>
361
- <ref name="pre-no-id"/>
374
+ <ref name="pre-no-id">
375
+ <a:documentation>figures can contain ASCII art</a:documentation>
376
+ </ref>
362
377
  <oneOrMore>
363
- <ref name="paragraph-with-footnote-no-id"/>
378
+ <ref name="paragraph-with-footnote-no-id">
379
+ <a:documentation>figures can contain discursive art</a:documentation>
380
+ </ref>
364
381
  </oneOrMore>
365
382
  <zeroOrMore>
366
- <ref name="figure-no-id"/>
383
+ <ref name="figure-no-id">
384
+ <a:documentation>subfigures, nested directly within a figure</a:documentation>
385
+ </ref>
367
386
  </zeroOrMore>
387
+ <ref name="table-no-id">
388
+ <a:documentation>Table is understood in this context to be a tabular arrangement of subfigures</a:documentation>
389
+ </ref>
368
390
  </choice>
369
391
  <zeroOrMore>
370
392
  <ref name="fn">
@@ -876,6 +898,9 @@ titlecase, or lowercase</a:documentation>
876
898
  <data type="boolean"/>
877
899
  </attribute>
878
900
  </optional>
901
+ <ref name="LocalizedStringAttributes">
902
+ <a:documentation>Specify language of bibitem, can be used to render it with language-specific bibliographic style</a:documentation>
903
+ </ref>
879
904
  <ref name="ReducedBibliographicItem"/>
880
905
  </element>
881
906
  </define>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ieee
3
- VERSION = "1.5.6".freeze
3
+ VERSION = "1.5.7".freeze
4
4
  end
5
5
  end
@@ -41,5 +41,5 @@ spec.add_development_dependency "rubocop-performance"
41
41
  spec.add_development_dependency "simplecov", "~> 0.15"
42
42
  spec.add_development_dependency "timecop", "~> 0.9"
43
43
  spec.add_development_dependency "webmock"
44
- spec.add_development_dependency "canon"
44
+ spec.add_development_dependency "canon", "= 0.1.3"
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
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-29 00:00:00.000000000 Z
11
+ date: 2025-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -224,16 +224,16 @@ dependencies:
224
224
  name: canon
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ">="
227
+ - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
229
+ version: 0.1.3
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ">="
234
+ - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: '0'
236
+ version: 0.1.3
237
237
  description: 'Metanorma for the ITU.
238
238
 
239
239
  '