metanorma-ieee 1.5.0 → 1.5.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 +4 -4
- data/lib/isodoc/ieee/base_convert.rb +1 -24
- data/lib/isodoc/ieee/html/ieee.css +12 -6
- data/lib/isodoc/ieee/html/ieee.scss +12 -6
- data/lib/isodoc/ieee/ieee.amendment.xsl +90 -9
- data/lib/isodoc/ieee/ieee.standard.xsl +90 -9
- data/lib/isodoc/ieee/presentation_concepts.rb +9 -8
- data/lib/metanorma/ieee/basicdoc.rng +5 -5
- data/lib/metanorma/ieee/isodoc.rng +7 -1
- data/lib/metanorma/ieee/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: 82137fa7e1e6eb0c4f40b23a8e0c62a597e8943cebb27665598dfaded221ab30
|
4
|
+
data.tar.gz: 94d546f26e65755a9f9d3cf70ecbc1feb97a5fad68f1ada22184e2edd4f6c1a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa81b9d4e96409b12e3a8079dd5e342ddf1b933a3b8544a10c9d8b536c2521623abc1504ee290061e30bec1838180828fea94c72a1872009993f47238ab7b116
|
7
|
+
data.tar.gz: 900bc942fa1bbbbba7113eb4f97385d325ae835dfbf7d5179ea8d6a37ca7f8542237beb528b2751f7313d61ee6026bbb92b89d598d23666e830e02a0f9c89ca8
|
@@ -34,29 +34,6 @@ module IsoDoc
|
|
34
34
|
super.merge(type: node["type"])
|
35
35
|
end
|
36
36
|
|
37
|
-
#TODO kill
|
38
|
-
def note_p_parsex(node, div)
|
39
|
-
name = node&.at(ns("./fmt-name"))&.remove
|
40
|
-
div.p do |p|
|
41
|
-
name and p.span class: "note_label" do |s|
|
42
|
-
name.children.each { |n| parse(n, s) }
|
43
|
-
end
|
44
|
-
node.first_element_child.children.each { |n| parse(n, p) }
|
45
|
-
end
|
46
|
-
node.element_children[1..-1].each { |n| parse(n, div) }
|
47
|
-
end
|
48
|
-
|
49
|
-
#TODO kill
|
50
|
-
def note_parse1x(node, div)
|
51
|
-
name = node&.at(ns("./name"))&.remove
|
52
|
-
name and div.p do |p|
|
53
|
-
p.span class: "note_label" do |s|
|
54
|
-
name.children.each { |n| parse(n, s) }
|
55
|
-
end
|
56
|
-
end
|
57
|
-
node.children.each { |n| parse(n, div) }
|
58
|
-
end
|
59
|
-
|
60
37
|
def example_label(_node, div, name)
|
61
38
|
return if name.nil?
|
62
39
|
|
@@ -65,7 +42,7 @@ module IsoDoc
|
|
65
42
|
end
|
66
43
|
end
|
67
44
|
|
68
|
-
|
45
|
+
def span_parse(node, out)
|
69
46
|
node["class"] == "fmt-obligation" and
|
70
47
|
node["class"] = "obligation"
|
71
48
|
super
|
@@ -2773,7 +2773,8 @@ div.WordSection1 {
|
|
2773
2773
|
mso-footer-margin: 36pt;
|
2774
2774
|
mso-line-numbers-count-by: 1;
|
2775
2775
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2776
|
-
mso-even-footer:
|
2776
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2777
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2777
2778
|
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2778
2779
|
mso-paper-source: 0;
|
2779
2780
|
}
|
@@ -2784,7 +2785,8 @@ div.WordSection1 {
|
|
2784
2785
|
mso-footer-margin: 36pt;
|
2785
2786
|
mso-line-numbers-count-by: 1;
|
2786
2787
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1l;
|
2787
|
-
mso-even-footer:
|
2788
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1l;*/
|
2789
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2788
2790
|
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh1l;
|
2789
2791
|
mso-paper-source: 0;
|
2790
2792
|
}
|
@@ -2795,7 +2797,8 @@ div.WordSection1 {
|
|
2795
2797
|
mso-footer-margin: 36pt;
|
2796
2798
|
mso-line-numbers-count-by: 1;
|
2797
2799
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2798
|
-
mso-even-footer:
|
2800
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2801
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2799
2802
|
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2800
2803
|
mso-paper-source: 0;
|
2801
2804
|
}
|
@@ -2811,7 +2814,8 @@ div.WordSection2 {
|
|
2811
2814
|
mso-footer-margin: 36pt;
|
2812
2815
|
mso-line-numbers-count-by: 1;
|
2813
2816
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2814
|
-
mso-even-footer:
|
2817
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2818
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2815
2819
|
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2816
2820
|
mso-paper-source: 0;
|
2817
2821
|
}
|
@@ -2822,7 +2826,8 @@ div.WordSection2 {
|
|
2822
2826
|
mso-footer-margin: 36pt;
|
2823
2827
|
mso-line-numbers-count-by: 1;
|
2824
2828
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2825
|
-
mso-even-footer:
|
2829
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2830
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2826
2831
|
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2827
2832
|
mso-paper-source: 0;
|
2828
2833
|
}
|
@@ -2833,7 +2838,8 @@ div.WordSection2 {
|
|
2833
2838
|
mso-footer-margin: 36pt;
|
2834
2839
|
mso-line-numbers-count-by: 1;
|
2835
2840
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1l;
|
2836
|
-
mso-even-footer:
|
2841
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1l;*/
|
2842
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2837
2843
|
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh1l;
|
2838
2844
|
mso-paper-source: 0;
|
2839
2845
|
}
|
@@ -2512,7 +2512,8 @@ div.WordSection1
|
|
2512
2512
|
mso-footer-margin:36.0pt;
|
2513
2513
|
mso-line-numbers-count-by:1;
|
2514
2514
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2515
|
-
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1
|
2515
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2516
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2516
2517
|
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2517
2518
|
mso-paper-source:0;}
|
2518
2519
|
@page WordSection2L
|
@@ -2522,7 +2523,8 @@ div.WordSection1
|
|
2522
2523
|
mso-footer-margin:36.0pt;
|
2523
2524
|
mso-line-numbers-count-by:1;
|
2524
2525
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1l;
|
2525
|
-
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1l
|
2526
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1l;*/
|
2527
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2526
2528
|
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh1l;
|
2527
2529
|
mso-paper-source:0;}
|
2528
2530
|
@page WordSection2P
|
@@ -2532,7 +2534,8 @@ div.WordSection1
|
|
2532
2534
|
mso-footer-margin:36.0pt;
|
2533
2535
|
mso-line-numbers-count-by:1;
|
2534
2536
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2535
|
-
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1
|
2537
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2538
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2536
2539
|
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2537
2540
|
mso-paper-source:0;}
|
2538
2541
|
div.WordSection2
|
@@ -2545,7 +2548,8 @@ div.WordSection2
|
|
2545
2548
|
mso-footer-margin:36.0pt;
|
2546
2549
|
mso-line-numbers-count-by:1;
|
2547
2550
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2548
|
-
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1
|
2551
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2552
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2549
2553
|
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2550
2554
|
mso-paper-source:0;}
|
2551
2555
|
@page WordSection3P
|
@@ -2555,7 +2559,8 @@ div.WordSection2
|
|
2555
2559
|
mso-footer-margin:36.0pt;
|
2556
2560
|
mso-line-numbers-count-by:1;
|
2557
2561
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2558
|
-
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1
|
2562
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;*/
|
2563
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2559
2564
|
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh1;
|
2560
2565
|
mso-paper-source:0;}
|
2561
2566
|
@page WordSection3L
|
@@ -2565,7 +2570,8 @@ div.WordSection2
|
|
2565
2570
|
mso-footer-margin:36.0pt;
|
2566
2571
|
mso-line-numbers-count-by:1;
|
2567
2572
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1l;
|
2568
|
-
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1l
|
2573
|
+
/*mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1l;*/
|
2574
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2569
2575
|
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh1l;
|
2570
2576
|
mso-paper-source:0;}
|
2571
2577
|
div.WordSection3
|
@@ -127,7 +127,15 @@
|
|
127
127
|
<!-- IEEE cover page -->
|
128
128
|
|
129
129
|
<!-- IEEE standard cover page -->
|
130
|
-
<fo:simple-page-master master-name="cover-
|
130
|
+
<fo:simple-page-master master-name="cover-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
131
|
+
<fo:region-body margin-top="62mm" margin-bottom="25mm" margin-left="21.2mm" margin-right="25mm"/>
|
132
|
+
<fo:region-before region-name="header" extent="62mm" precedence="true"/>
|
133
|
+
<fo:region-after region-name="footer" extent="25mm"/>
|
134
|
+
<fo:region-start region-name="left-region" extent="21.2mm"/>
|
135
|
+
<fo:region-end region-name="right-region" extent="25mm"/>
|
136
|
+
</fo:simple-page-master>
|
137
|
+
<!-- IEEE standard back page -->
|
138
|
+
<fo:simple-page-master master-name="back-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
131
139
|
<fo:region-body margin-top="62mm" margin-bottom="25mm" margin-left="21.2mm" margin-right="25mm"/>
|
132
140
|
<fo:region-before region-name="header" extent="62mm" precedence="true"/>
|
133
141
|
<fo:region-after region-name="footer" extent="25mm"/>
|
@@ -256,7 +264,7 @@
|
|
256
264
|
<!-- ======================= -->
|
257
265
|
|
258
266
|
<!-- Index pages -->
|
259
|
-
<fo:simple-page-master master-name="
|
267
|
+
<fo:simple-page-master master-name="index" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
260
268
|
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm" column-count="2" column-gap="10mm"/>
|
261
269
|
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
262
270
|
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
@@ -903,7 +911,7 @@
|
|
903
911
|
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
904
912
|
</xsl:if> -->
|
905
913
|
<xsl:if test=".//mn:indexsect">
|
906
|
-
<xsl:attribute name="master-reference">
|
914
|
+
<xsl:attribute name="master-reference">index</xsl:attribute>
|
907
915
|
</xsl:if>
|
908
916
|
|
909
917
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
@@ -3339,7 +3347,7 @@
|
|
3339
3347
|
<xsl:param name="cutoff_date"/>
|
3340
3348
|
<xsl:param name="expiration_date"/>
|
3341
3349
|
|
3342
|
-
<fo:page-sequence master-reference="cover-
|
3350
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
3343
3351
|
|
3344
3352
|
<fo:static-content flow-name="header" role="artifact">
|
3345
3353
|
<fo:block-container position="absolute" left="14mm" top="17.8mm">
|
@@ -3666,7 +3674,7 @@
|
|
3666
3674
|
</xsl:template> <!-- END: back-page -->
|
3667
3675
|
|
3668
3676
|
<xsl:template name="insertBackPage_Standard">
|
3669
|
-
<fo:page-sequence master-reference="
|
3677
|
+
<fo:page-sequence master-reference="back-page" force-page-count="no-force">
|
3670
3678
|
|
3671
3679
|
<fo:static-content flow-name="header" role="artifact">
|
3672
3680
|
<fo:block-container position="absolute" left="14mm" top="17.8mm">
|
@@ -8963,6 +8971,16 @@
|
|
8963
8971
|
</xsl:variable>
|
8964
8972
|
<xsl:variable name="quot">"</xsl:variable>
|
8965
8973
|
<xsl:variable name="styles_">
|
8974
|
+
<!-- PDF: Borderless tables https://github.com/metanorma/metanorma-jis/issues/344 -->
|
8975
|
+
<xsl:if test="@plain = 'true' or ancestor::mn:table/@plain = 'true'">
|
8976
|
+
<style name="border-top">none</style>
|
8977
|
+
<style name="border-right">none</style>
|
8978
|
+
<style name="border-left">none</style>
|
8979
|
+
<style name="border-bottom">none</style>
|
8980
|
+
<style name="color">inherit</style>
|
8981
|
+
<style name="background-color">transparent</style>
|
8982
|
+
</xsl:if>
|
8983
|
+
|
8966
8984
|
<xsl:for-each select="xalan:nodeset($styles__)/mnx:item">
|
8967
8985
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
8968
8986
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
@@ -10960,7 +10978,10 @@
|
|
10960
10978
|
|
10961
10979
|
<xsl:call-template name="setNamedDestination"/>
|
10962
10980
|
|
10963
|
-
<fo:block-container
|
10981
|
+
<fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
|
10982
|
+
<xsl:if test="not(parent::mn:references)">
|
10983
|
+
<xsl:copy-of select="@id"/>
|
10984
|
+
</xsl:if>
|
10964
10985
|
|
10965
10986
|
<xsl:call-template name="setBlockSpanAll"/>
|
10966
10987
|
|
@@ -13697,8 +13718,8 @@
|
|
13697
13718
|
</xsl:template> <!-- bibitem -->
|
13698
13719
|
|
13699
13720
|
<!-- Bibliography (non-normative references) -->
|
13700
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
13701
|
-
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
13721
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem | mn:references[not(@normative='true')]/mn:note" name="bibitem_non_normative" priority="2">
|
13722
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[not(self::mn:note)][1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
13702
13723
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
13703
13724
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
13704
13725
|
<xsl:call-template name="setNamedDestination"/>
|
@@ -13761,7 +13782,7 @@
|
|
13761
13782
|
</fo:list-item>
|
13762
13783
|
</xsl:otherwise>
|
13763
13784
|
</xsl:choose>
|
13764
|
-
<xsl:apply-templates select="following-sibling::*[1][self::mn:bibitem]
|
13785
|
+
<xsl:apply-templates select="following-sibling::*[1]"> <!-- [self::mn:bibitem] -->
|
13765
13786
|
<xsl:with-param name="skip">false</xsl:with-param>
|
13766
13787
|
</xsl:apply-templates>
|
13767
13788
|
</xsl:template>
|
@@ -13778,8 +13799,26 @@
|
|
13778
13799
|
</xsl:apply-templates>
|
13779
13800
|
<xsl:apply-templates select="mn:formattedref"/>
|
13780
13801
|
<!-- end bibitem processing -->
|
13802
|
+
|
13803
|
+
<xsl:call-template name="processBibliographyNote"/>
|
13781
13804
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
13782
13805
|
|
13806
|
+
<xsl:template name="processBibliographyNote">
|
13807
|
+
<xsl:if test="self::mn:note">
|
13808
|
+
<xsl:variable name="note_node">
|
13809
|
+
<xsl:element name="{local-name(..)}" namespace="{$namespace_full}"> <!-- save parent context node for determining styles -->
|
13810
|
+
<xsl:copy> <!-- skip @id -->
|
13811
|
+
<xsl:copy-of select="node()"/>
|
13812
|
+
</xsl:copy>
|
13813
|
+
</xsl:element>
|
13814
|
+
</xsl:variable>
|
13815
|
+
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
13816
|
+
<xsl:call-template name="note"/>
|
13817
|
+
</xsl:for-each> -->
|
13818
|
+
<xsl:call-template name="note"/>
|
13819
|
+
</xsl:if>
|
13820
|
+
</xsl:template>
|
13821
|
+
|
13783
13822
|
<xsl:template match="mn:title" mode="title">
|
13784
13823
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
13785
13824
|
</xsl:template>
|
@@ -14325,6 +14364,48 @@
|
|
14325
14364
|
<!-- End Form's elements processing -->
|
14326
14365
|
<!-- =================== -->
|
14327
14366
|
|
14367
|
+
<xsl:attribute-set name="toc-style">
|
14368
|
+
</xsl:attribute-set>
|
14369
|
+
|
14370
|
+
<xsl:template name="refine_toc-style">
|
14371
|
+
</xsl:template>
|
14372
|
+
|
14373
|
+
<xsl:attribute-set name="toc-title-style">
|
14374
|
+
</xsl:attribute-set>
|
14375
|
+
|
14376
|
+
<xsl:attribute-set name="toc-title-page-style">
|
14377
|
+
</xsl:attribute-set> <!-- toc-title-page-style -->
|
14378
|
+
|
14379
|
+
<xsl:attribute-set name="toc-item-block-style">
|
14380
|
+
</xsl:attribute-set>
|
14381
|
+
|
14382
|
+
<xsl:template name="refine_toc-item-block-style">
|
14383
|
+
</xsl:template>
|
14384
|
+
|
14385
|
+
<xsl:attribute-set name="toc-item-style">
|
14386
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
14387
|
+
</xsl:attribute-set> <!-- END: toc-item-style -->
|
14388
|
+
|
14389
|
+
<xsl:template name="refine_toc-item-style">
|
14390
|
+
</xsl:template> <!-- END: refine_toc-item-style -->
|
14391
|
+
|
14392
|
+
<xsl:attribute-set name="toc-leader-style">
|
14393
|
+
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
14394
|
+
|
14395
|
+
<xsl:attribute-set name="toc-pagenumber-style">
|
14396
|
+
</xsl:attribute-set>
|
14397
|
+
|
14398
|
+
<!-- List of Figures, Tables -->
|
14399
|
+
<xsl:attribute-set name="toc-listof-title-style">
|
14400
|
+
</xsl:attribute-set>
|
14401
|
+
|
14402
|
+
<xsl:attribute-set name="toc-listof-item-block-style">
|
14403
|
+
</xsl:attribute-set>
|
14404
|
+
|
14405
|
+
<xsl:attribute-set name="toc-listof-item-style">
|
14406
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
14407
|
+
</xsl:attribute-set>
|
14408
|
+
|
14328
14409
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
14329
14410
|
<xsl:variable name="nodes_preface_">
|
14330
14411
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -127,7 +127,15 @@
|
|
127
127
|
<!-- IEEE cover page -->
|
128
128
|
|
129
129
|
<!-- IEEE standard cover page -->
|
130
|
-
<fo:simple-page-master master-name="cover-
|
130
|
+
<fo:simple-page-master master-name="cover-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
131
|
+
<fo:region-body margin-top="62mm" margin-bottom="25mm" margin-left="21.2mm" margin-right="25mm"/>
|
132
|
+
<fo:region-before region-name="header" extent="62mm" precedence="true"/>
|
133
|
+
<fo:region-after region-name="footer" extent="25mm"/>
|
134
|
+
<fo:region-start region-name="left-region" extent="21.2mm"/>
|
135
|
+
<fo:region-end region-name="right-region" extent="25mm"/>
|
136
|
+
</fo:simple-page-master>
|
137
|
+
<!-- IEEE standard back page -->
|
138
|
+
<fo:simple-page-master master-name="back-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
131
139
|
<fo:region-body margin-top="62mm" margin-bottom="25mm" margin-left="21.2mm" margin-right="25mm"/>
|
132
140
|
<fo:region-before region-name="header" extent="62mm" precedence="true"/>
|
133
141
|
<fo:region-after region-name="footer" extent="25mm"/>
|
@@ -256,7 +264,7 @@
|
|
256
264
|
<!-- ======================= -->
|
257
265
|
|
258
266
|
<!-- Index pages -->
|
259
|
-
<fo:simple-page-master master-name="
|
267
|
+
<fo:simple-page-master master-name="index" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
260
268
|
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm" column-count="2" column-gap="10mm"/>
|
261
269
|
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
262
270
|
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
@@ -903,7 +911,7 @@
|
|
903
911
|
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
904
912
|
</xsl:if> -->
|
905
913
|
<xsl:if test=".//mn:indexsect">
|
906
|
-
<xsl:attribute name="master-reference">
|
914
|
+
<xsl:attribute name="master-reference">index</xsl:attribute>
|
907
915
|
</xsl:if>
|
908
916
|
|
909
917
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
@@ -3339,7 +3347,7 @@
|
|
3339
3347
|
<xsl:param name="cutoff_date"/>
|
3340
3348
|
<xsl:param name="expiration_date"/>
|
3341
3349
|
|
3342
|
-
<fo:page-sequence master-reference="cover-
|
3350
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
3343
3351
|
|
3344
3352
|
<fo:static-content flow-name="header" role="artifact">
|
3345
3353
|
<fo:block-container position="absolute" left="14mm" top="17.8mm">
|
@@ -3666,7 +3674,7 @@
|
|
3666
3674
|
</xsl:template> <!-- END: back-page -->
|
3667
3675
|
|
3668
3676
|
<xsl:template name="insertBackPage_Standard">
|
3669
|
-
<fo:page-sequence master-reference="
|
3677
|
+
<fo:page-sequence master-reference="back-page" force-page-count="no-force">
|
3670
3678
|
|
3671
3679
|
<fo:static-content flow-name="header" role="artifact">
|
3672
3680
|
<fo:block-container position="absolute" left="14mm" top="17.8mm">
|
@@ -8963,6 +8971,16 @@
|
|
8963
8971
|
</xsl:variable>
|
8964
8972
|
<xsl:variable name="quot">"</xsl:variable>
|
8965
8973
|
<xsl:variable name="styles_">
|
8974
|
+
<!-- PDF: Borderless tables https://github.com/metanorma/metanorma-jis/issues/344 -->
|
8975
|
+
<xsl:if test="@plain = 'true' or ancestor::mn:table/@plain = 'true'">
|
8976
|
+
<style name="border-top">none</style>
|
8977
|
+
<style name="border-right">none</style>
|
8978
|
+
<style name="border-left">none</style>
|
8979
|
+
<style name="border-bottom">none</style>
|
8980
|
+
<style name="color">inherit</style>
|
8981
|
+
<style name="background-color">transparent</style>
|
8982
|
+
</xsl:if>
|
8983
|
+
|
8966
8984
|
<xsl:for-each select="xalan:nodeset($styles__)/mnx:item">
|
8967
8985
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
8968
8986
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
@@ -10960,7 +10978,10 @@
|
|
10960
10978
|
|
10961
10979
|
<xsl:call-template name="setNamedDestination"/>
|
10962
10980
|
|
10963
|
-
<fo:block-container
|
10981
|
+
<fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
|
10982
|
+
<xsl:if test="not(parent::mn:references)">
|
10983
|
+
<xsl:copy-of select="@id"/>
|
10984
|
+
</xsl:if>
|
10964
10985
|
|
10965
10986
|
<xsl:call-template name="setBlockSpanAll"/>
|
10966
10987
|
|
@@ -13697,8 +13718,8 @@
|
|
13697
13718
|
</xsl:template> <!-- bibitem -->
|
13698
13719
|
|
13699
13720
|
<!-- Bibliography (non-normative references) -->
|
13700
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
13701
|
-
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
13721
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem | mn:references[not(@normative='true')]/mn:note" name="bibitem_non_normative" priority="2">
|
13722
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[not(self::mn:note)][1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
13702
13723
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
13703
13724
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
13704
13725
|
<xsl:call-template name="setNamedDestination"/>
|
@@ -13761,7 +13782,7 @@
|
|
13761
13782
|
</fo:list-item>
|
13762
13783
|
</xsl:otherwise>
|
13763
13784
|
</xsl:choose>
|
13764
|
-
<xsl:apply-templates select="following-sibling::*[1][self::mn:bibitem]
|
13785
|
+
<xsl:apply-templates select="following-sibling::*[1]"> <!-- [self::mn:bibitem] -->
|
13765
13786
|
<xsl:with-param name="skip">false</xsl:with-param>
|
13766
13787
|
</xsl:apply-templates>
|
13767
13788
|
</xsl:template>
|
@@ -13778,8 +13799,26 @@
|
|
13778
13799
|
</xsl:apply-templates>
|
13779
13800
|
<xsl:apply-templates select="mn:formattedref"/>
|
13780
13801
|
<!-- end bibitem processing -->
|
13802
|
+
|
13803
|
+
<xsl:call-template name="processBibliographyNote"/>
|
13781
13804
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
13782
13805
|
|
13806
|
+
<xsl:template name="processBibliographyNote">
|
13807
|
+
<xsl:if test="self::mn:note">
|
13808
|
+
<xsl:variable name="note_node">
|
13809
|
+
<xsl:element name="{local-name(..)}" namespace="{$namespace_full}"> <!-- save parent context node for determining styles -->
|
13810
|
+
<xsl:copy> <!-- skip @id -->
|
13811
|
+
<xsl:copy-of select="node()"/>
|
13812
|
+
</xsl:copy>
|
13813
|
+
</xsl:element>
|
13814
|
+
</xsl:variable>
|
13815
|
+
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
13816
|
+
<xsl:call-template name="note"/>
|
13817
|
+
</xsl:for-each> -->
|
13818
|
+
<xsl:call-template name="note"/>
|
13819
|
+
</xsl:if>
|
13820
|
+
</xsl:template>
|
13821
|
+
|
13783
13822
|
<xsl:template match="mn:title" mode="title">
|
13784
13823
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
13785
13824
|
</xsl:template>
|
@@ -14325,6 +14364,48 @@
|
|
14325
14364
|
<!-- End Form's elements processing -->
|
14326
14365
|
<!-- =================== -->
|
14327
14366
|
|
14367
|
+
<xsl:attribute-set name="toc-style">
|
14368
|
+
</xsl:attribute-set>
|
14369
|
+
|
14370
|
+
<xsl:template name="refine_toc-style">
|
14371
|
+
</xsl:template>
|
14372
|
+
|
14373
|
+
<xsl:attribute-set name="toc-title-style">
|
14374
|
+
</xsl:attribute-set>
|
14375
|
+
|
14376
|
+
<xsl:attribute-set name="toc-title-page-style">
|
14377
|
+
</xsl:attribute-set> <!-- toc-title-page-style -->
|
14378
|
+
|
14379
|
+
<xsl:attribute-set name="toc-item-block-style">
|
14380
|
+
</xsl:attribute-set>
|
14381
|
+
|
14382
|
+
<xsl:template name="refine_toc-item-block-style">
|
14383
|
+
</xsl:template>
|
14384
|
+
|
14385
|
+
<xsl:attribute-set name="toc-item-style">
|
14386
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
14387
|
+
</xsl:attribute-set> <!-- END: toc-item-style -->
|
14388
|
+
|
14389
|
+
<xsl:template name="refine_toc-item-style">
|
14390
|
+
</xsl:template> <!-- END: refine_toc-item-style -->
|
14391
|
+
|
14392
|
+
<xsl:attribute-set name="toc-leader-style">
|
14393
|
+
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
14394
|
+
|
14395
|
+
<xsl:attribute-set name="toc-pagenumber-style">
|
14396
|
+
</xsl:attribute-set>
|
14397
|
+
|
14398
|
+
<!-- List of Figures, Tables -->
|
14399
|
+
<xsl:attribute-set name="toc-listof-title-style">
|
14400
|
+
</xsl:attribute-set>
|
14401
|
+
|
14402
|
+
<xsl:attribute-set name="toc-listof-item-block-style">
|
14403
|
+
</xsl:attribute-set>
|
14404
|
+
|
14405
|
+
<xsl:attribute-set name="toc-listof-item-style">
|
14406
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
14407
|
+
</xsl:attribute-set>
|
14408
|
+
|
14328
14409
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
14329
14410
|
<xsl:variable name="nodes_preface_">
|
14330
14411
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -38,15 +38,13 @@ module IsoDoc
|
|
38
38
|
ret = [[coll[0]]]
|
39
39
|
coll[1..-1].each do |r|
|
40
40
|
if ret[-1][0]["type"] != r["type"]
|
41
|
-
ret << [r]
|
42
|
-
next
|
41
|
+
ret << [r] and next
|
43
42
|
end
|
43
|
+
|
44
44
|
ret[-1] << r
|
45
45
|
end
|
46
46
|
ret.map do |x|
|
47
|
-
x.map
|
48
|
-
to_xml(y)
|
49
|
-
end.join("; ")
|
47
|
+
x.map { |y| to_xml(y) }.join("; ")
|
50
48
|
end.map { |x| "<p>#{x}</p>" }.join("\n")
|
51
49
|
end
|
52
50
|
|
@@ -86,11 +84,13 @@ module IsoDoc
|
|
86
84
|
|
87
85
|
def admitted_to_related(docxml)
|
88
86
|
docxml.xpath(ns("//term")).each do |t|
|
89
|
-
t.xpath(ns("./fmt-admitted/semx | ./fmt-preferred/semx"))
|
87
|
+
t.xpath(ns("./fmt-admitted/semx | ./fmt-preferred/semx"))
|
88
|
+
.each_with_index do |a, i|
|
90
89
|
orig = semx_orig(a)
|
91
90
|
(i.zero? ||
|
92
91
|
orig.at(ns("./abbreviation-type | ./graphical-symbol"))) and next
|
93
|
-
out = t.at(ns("./fmt-related")) || t.at(ns("./definition"))
|
92
|
+
out = t.at(ns("./fmt-related")) || t.at(ns("./definition"))
|
93
|
+
.before("<fmt-related/>").previous
|
94
94
|
admitted_to_related1(a, t.at(ns("./fmt-preferred/semx")), out)
|
95
95
|
a.parent.name == "fmt-preferred" and a.remove
|
96
96
|
end
|
@@ -133,7 +133,8 @@ module IsoDoc
|
|
133
133
|
if desgn["element"] == "preferred"
|
134
134
|
f = orig.parent.xpath(ns("./domain | ./subject"))
|
135
135
|
.map { |u| to_xml(semx_fmt_dup(u)) }.join(", ")
|
136
|
-
|
136
|
+
f.empty? or
|
137
|
+
name << "<span class='fmt-designation-field'>, <#{f}></span>"
|
137
138
|
end
|
138
139
|
super
|
139
140
|
end
|
@@ -198,14 +198,14 @@ Applicable to modify and delete</a:documentation>
|
|
198
198
|
</zeroOrMore>
|
199
199
|
</element>
|
200
200
|
</optional>
|
201
|
-
<
|
201
|
+
<zeroOrMore>
|
202
202
|
<element name="description">
|
203
|
-
<a:documentation>Description of the change described in this block</a:documentation>
|
204
|
-
<
|
203
|
+
<a:documentation>Description(s) of the change described in this block</a:documentation>
|
204
|
+
<oneOrMore>
|
205
205
|
<ref name="BasicBlock"/>
|
206
|
-
</
|
206
|
+
</oneOrMore>
|
207
207
|
</element>
|
208
|
-
</
|
208
|
+
</zeroOrMore>
|
209
209
|
<optional>
|
210
210
|
<element name="newcontent">
|
211
211
|
<a:documentation>New content to be added to the document; applicable to add and modify</a:documentation>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.0
|
3
|
+
<!-- VERSION v2.1.0 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -735,6 +735,12 @@ titlecase, or lowercase</a:documentation>
|
|
735
735
|
<ref name="BlockAttributes"/>
|
736
736
|
</define>
|
737
737
|
<define name="TableAttributes" combine="interleave">
|
738
|
+
<optional>
|
739
|
+
<attribute name="plain">
|
740
|
+
<a:documentation>Render as a plain attribute, with no shading or borders</a:documentation>
|
741
|
+
<data type="boolean"/>
|
742
|
+
</attribute>
|
743
|
+
</optional>
|
738
744
|
<optional>
|
739
745
|
<attribute name="width">
|
740
746
|
<a:documentation>Width of the table block in rendering</a:documentation>
|
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.
|
4
|
+
version: 1.5.1
|
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-07-
|
11
|
+
date: 2025-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|