metanorma-iec 1.3.8 → 1.3.9

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: a58308f35d7e4b796b1366d05f48f1d3227e343f52f08a9a756da7567259cb7f
4
- data.tar.gz: 4e5c5fb98a4178e2d03f6ea74e2b14c5cfd93bf8648496f8c6ad559d6d4b2bfc
3
+ metadata.gz: d358626bded62b0caaab1e332d70df6345990e79bf8f7501f6b48125e8b65e6b
4
+ data.tar.gz: 208f83d9d0386b6899b9b0e68f3ab285ec942c92950063190f38b39f2433711d
5
5
  SHA512:
6
- metadata.gz: d7798dd9aa810e75f931a7bbf408a216107a461d00709c6072b159479a5b7f82eab70bd06d6502e773c1ceb5887f845b29fd70e484c75375ff2526603c1917c0
7
- data.tar.gz: fb83d221f49cb8ac9b20832dd1bdffa4f7e6d0cd00affde41b18fc99f247e5db46ff0ee3adc8ec3c0d3164060165d916c09afd77fd28802e212385c4f20c270c
6
+ metadata.gz: bde2cf9571931d12d41b2c41a44ae5fbad6d23c043f89421e41b59ad6a198780460024c00fb6ebcec3580efee065a12fd6a5263bf89e3b9a4a6168ef79ffd965
7
+ data.tar.gz: d1d58bd85400d59d5a247b49fe3974de54839d336576ebd0ec7a42ed150d38b3062543403a4b18189581bbb5ea7a396f56bc34854ff173e8ef591d0ffc9c194a
@@ -64,9 +64,9 @@
64
64
  <optional>
65
65
  <ref name="label"/>
66
66
  </optional>
67
- <optional>
67
+ <zeroOrMore>
68
68
  <ref name="subject"/>
69
- </optional>
69
+ </zeroOrMore>
70
70
  <zeroOrMore>
71
71
  <ref name="reqinherit"/>
72
72
  </zeroOrMore>
@@ -80,6 +80,7 @@
80
80
  <ref name="verification"/>
81
81
  <ref name="import"/>
82
82
  <ref name="description"/>
83
+ <ref name="component"/>
83
84
  </choice>
84
85
  </zeroOrMore>
85
86
  <optional>
@@ -105,12 +106,16 @@
105
106
  </define>
106
107
  <define name="subject">
107
108
  <element name="subject">
108
- <text/>
109
+ <oneOrMore>
110
+ <ref name="TextElement"/>
111
+ </oneOrMore>
109
112
  </element>
110
113
  </define>
111
114
  <define name="reqinherit">
112
115
  <element name="inherit">
113
- <text/>
116
+ <oneOrMore>
117
+ <ref name="TextElement"/>
118
+ </oneOrMore>
114
119
  </element>
115
120
  </define>
116
121
  <define name="measurementtarget">
@@ -138,6 +143,12 @@
138
143
  <ref name="RequirementSubpart"/>
139
144
  </element>
140
145
  </define>
146
+ <define name="component">
147
+ <element name="component">
148
+ <attribute name="class"/>
149
+ <ref name="RequirementSubpart"/>
150
+ </element>
151
+ </define>
141
152
  <define name="reqt_references">
142
153
  <element name="references">
143
154
  <oneOrMore>
@@ -2657,7 +2657,7 @@
2657
2657
 
2658
2658
 
2659
2659
 
2660
- <xsl:attribute name="font-family">Courier</xsl:attribute>
2660
+ <xsl:attribute name="font-family">Courier New</xsl:attribute>
2661
2661
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
2662
2662
  <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
2663
2663
 
@@ -2750,6 +2750,7 @@
2750
2750
 
2751
2751
 
2752
2752
 
2753
+
2753
2754
  </xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
2754
2755
 
2755
2756
  <xsl:attribute name="padding-right">10mm</xsl:attribute>
@@ -2974,7 +2975,7 @@
2974
2975
  </xsl:attribute-set><xsl:attribute-set name="tt-style">
2975
2976
 
2976
2977
 
2977
- <xsl:attribute name="font-family">Courier</xsl:attribute>
2978
+ <xsl:attribute name="font-family">Courier New</xsl:attribute>
2978
2979
 
2979
2980
 
2980
2981
  </xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
@@ -3217,6 +3218,8 @@
3217
3218
  <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
3218
3219
  </xsl:if>
3219
3220
 
3221
+
3222
+
3220
3223
  <xsl:choose>
3221
3224
  <xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
3222
3225
  <xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
@@ -3504,9 +3507,9 @@
3504
3507
  <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
3505
3508
  <xsl:with-param name="continued">true</xsl:with-param>
3506
3509
  </xsl:apply-templates>
3507
- <xsl:for-each select="ancestor::*[local-name()='table'][1]">
3508
- <xsl:call-template name="fn_name_display"/>
3509
- </xsl:for-each>
3510
+
3511
+
3512
+
3510
3513
 
3511
3514
  </fo:table-cell>
3512
3515
  </fo:table-row>
@@ -3600,7 +3603,11 @@
3600
3603
 
3601
3604
  <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
3602
3605
 
3603
- <xsl:if test="$isNoteOrFnExist = 'true'">
3606
+ <xsl:variable name="isNoteOrFnExistShowAfterTable">
3607
+
3608
+ </xsl:variable>
3609
+
3610
+ <xsl:if test="$isNoteOrFnExist = 'true' or normalize-space($isNoteOrFnExistShowAfterTable) = 'true'">
3604
3611
 
3605
3612
  <xsl:variable name="cols-count">
3606
3613
  <xsl:choose>
@@ -3753,6 +3760,19 @@
3753
3760
 
3754
3761
  </fo:table-body>
3755
3762
 
3763
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/text()[1]" priority="2" mode="presentation_name">
3764
+ <xsl:choose>
3765
+ <xsl:when test="substring-after(., '—') != ''">
3766
+ <xsl:text>—</xsl:text><xsl:value-of select="substring-after(., '—')"/>
3767
+ </xsl:when>
3768
+ <xsl:otherwise>
3769
+ <xsl:value-of select="."/>
3770
+ </xsl:otherwise>
3771
+ </xsl:choose>
3772
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']" mode="presentation_name">
3773
+ <xsl:apply-templates mode="presentation_name"/>
3774
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/node()" mode="presentation_name">
3775
+ <xsl:apply-templates select="."/>
3756
3776
  </xsl:template><xsl:template match="*[local-name()='tr']">
3757
3777
  <xsl:variable name="parent-name" select="local-name(..)"/>
3758
3778
  <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
@@ -3953,14 +3973,12 @@
3953
3973
  <xsl:apply-templates/>
3954
3974
  </xsl:template><xsl:template name="fn_display">
3955
3975
  <xsl:variable name="references">
3976
+
3956
3977
  <xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
3957
- <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
3958
-
3959
-
3960
- <xsl:apply-templates/>
3961
- </fn>
3978
+ <xsl:call-template name="create_fn"/>
3962
3979
  </xsl:for-each>
3963
3980
  </xsl:variable>
3981
+
3964
3982
  <xsl:for-each select="xalan:nodeset($references)//fn">
3965
3983
  <xsl:variable name="reference" select="@reference"/>
3966
3984
  <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
@@ -4002,6 +4020,12 @@
4002
4020
  </fo:block>
4003
4021
  </xsl:if>
4004
4022
  </xsl:for-each>
4023
+ </xsl:template><xsl:template name="create_fn">
4024
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
4025
+
4026
+
4027
+ <xsl:apply-templates/>
4028
+ </fn>
4005
4029
  </xsl:template><xsl:template name="fn_name_display">
4006
4030
  <!-- <xsl:variable name="references">
4007
4031
  <xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
@@ -4139,7 +4163,7 @@
4139
4163
 
4140
4164
 
4141
4165
 
4142
- <xsl:if test="ancestor::*[local-name()='td']">
4166
+ <xsl:if test="ancestor::*[local-name()='table']">
4143
4167
  <xsl:attribute name="font-weight">normal</xsl:attribute>
4144
4168
  <!-- <xsl:attribute name="alignment-baseline">hanging</xsl:attribute> -->
4145
4169
  <xsl:attribute name="baseline-shift">15%</xsl:attribute>
@@ -5035,19 +5059,6 @@
5035
5059
  <!-- replace start and end spaces to non-break space -->
5036
5060
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
5037
5061
  </xsl:copy>
5038
- </xsl:template><xsl:template match="mathml:mi[. = ',' and not(following-sibling::*[1][local-name() = 'mtext' and text() = ' '])]" mode="mathml">
5039
- <xsl:copy>
5040
- <xsl:apply-templates select="@*|node()" mode="mathml"/>
5041
- </xsl:copy>
5042
- <xsl:choose>
5043
- <!-- if in msub, then don't add space -->
5044
- <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
5045
- <!-- if next char in digit, don't add space -->
5046
- <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
5047
- <xsl:otherwise>
5048
- <mathml:mspace width="0.5ex"/>
5049
- </xsl:otherwise>
5050
- </xsl:choose>
5051
5062
  </xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
5052
5063
  <xsl:variable name="target">
5053
5064
  <xsl:choose>
@@ -6233,7 +6244,19 @@
6233
6244
  </fo:inline>
6234
6245
  </xsl:if>
6235
6246
  </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
6236
- <fo:inline><xsl:apply-templates/></fo:inline>
6247
+ <xsl:variable name="element">inline
6248
+
6249
+ </xsl:variable>
6250
+ <xsl:choose>
6251
+ <xsl:when test="contains($element, 'block')">
6252
+ <fo:block xsl:use-attribute-sets="example-p-style">
6253
+ <xsl:apply-templates/>
6254
+ </fo:block>
6255
+ </xsl:when>
6256
+ <xsl:otherwise>
6257
+ <fo:inline><xsl:apply-templates/></fo:inline>
6258
+ </xsl:otherwise>
6259
+ </xsl:choose>
6237
6260
  </xsl:template><xsl:template match="*[local-name() = 'example']">
6238
6261
  <fo:block id="{@id}" xsl:use-attribute-sets="example-style">
6239
6262
 
@@ -6813,7 +6836,6 @@
6813
6836
  </xsl:template><xsl:template name="processBibitem">
6814
6837
 
6815
6838
 
6816
- <!-- end BIPM bibitem processing-->
6817
6839
 
6818
6840
 
6819
6841
 
@@ -24,7 +24,7 @@ module Metanorma
24
24
  "Times New Roman" => nil,
25
25
  "STIX Two Math" => nil,
26
26
  "Source Han Sans" => nil,
27
- "Courier" => nil,
27
+ "Source Han Sans Normal" => nil,
28
28
  "Courier New" => nil,
29
29
  }
30
30
  end
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.3.8".freeze
3
+ VERSION = "1.3.9".freeze
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso