metanorma-iec 1.3.3 → 1.3.4
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/.github/workflows/rake.yml +12 -11
- data/.hound.yml +3 -1
- data/.rubocop.yml +3 -5
- data/lib/asciidoctor/iec/iec.rng +4 -0
- data/lib/asciidoctor/iec/isodoc.rng +16 -0
- data/lib/asciidoctor/iec/isostandard.rng +11 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +44 -9
- data/lib/metanorma/iec/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: c6f864a1028a766280c059aa02ec5e56a78806b0e2f2c4ae61efce3f0d254053
|
4
|
+
data.tar.gz: 6e7c6439b85da10d02dc1b9aaf518338e1dfe4cbb3e5b754a4d4c4ccfb3e222a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98311ebb5879d224265d355f83ea6f0d64044b3de4d185c6eda67a85705a40a1646e1ec0c6493f7dbf27269768dd6402e21da60639cb7bf880e1902bc463cca3
|
7
|
+
data.tar.gz: 3dcb74e07eaf077c4a6cacec0e60133ab8f53d8d2a4baa8f97d6becd0e20392b8b72ca20a3f73cb7262ded33e3a15d2388657aca308ce03917b80aa715382d4a
|
data/.github/workflows/rake.yml
CHANGED
@@ -16,19 +16,9 @@ jobs:
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: false
|
18
18
|
matrix:
|
19
|
-
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
|
19
|
+
ruby: [ '3.0', '2.7', '2.6', '2.5', '2.4' ]
|
20
20
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
21
|
experimental: [ false ]
|
22
|
-
include:
|
23
|
-
- ruby: '3.0'
|
24
|
-
os: 'ubuntu-latest'
|
25
|
-
experimental: true
|
26
|
-
- ruby: '3.0'
|
27
|
-
os: 'windows-latest'
|
28
|
-
experimental: true
|
29
|
-
- ruby: '3.0'
|
30
|
-
os: 'macos-latest'
|
31
|
-
experimental: true
|
32
22
|
steps:
|
33
23
|
- uses: actions/checkout@v2
|
34
24
|
with:
|
@@ -40,3 +30,14 @@ jobs:
|
|
40
30
|
bundler-cache: true
|
41
31
|
|
42
32
|
- run: bundle exec rake
|
33
|
+
|
34
|
+
tests-passed:
|
35
|
+
needs: rake
|
36
|
+
runs-on: ubuntu-latest
|
37
|
+
steps:
|
38
|
+
- uses: peter-evans/repository-dispatch@v1
|
39
|
+
with:
|
40
|
+
token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
|
41
|
+
repository: ${{ github.repository }}
|
42
|
+
event-type: tests-passed
|
43
|
+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
data/.hound.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#
|
2
|
-
# https://github.com/
|
3
|
-
# All project-specific additions and overrides should be specified in this file.
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
4
3
|
inherit_from:
|
5
4
|
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
|
6
5
|
|
7
6
|
# local repo-specific modifications
|
7
|
+
# ...
|
8
8
|
|
9
9
|
AllCops:
|
10
|
-
DisplayCopNames: false
|
11
|
-
StyleGuideCopsOnly: false
|
12
10
|
TargetRubyVersion: 2.4
|
data/lib/asciidoctor/iec/iec.rng
CHANGED
@@ -13,10 +13,14 @@
|
|
13
13
|
<value>publicly-available-specification</value>
|
14
14
|
<value>international-workshop-agreement</value>
|
15
15
|
<value>guide</value>
|
16
|
+
<value>industry-technical-agreement</value>
|
16
17
|
</choice>
|
17
18
|
</define>
|
18
19
|
<define name="BibDataExtensionType">
|
19
20
|
<ref name="doctype"/>
|
21
|
+
<optional>
|
22
|
+
<ref name="docsubtype"/>
|
23
|
+
</optional>
|
20
24
|
<optional>
|
21
25
|
<ref name="horizontal"/>
|
22
26
|
</optional>
|
@@ -45,6 +45,11 @@
|
|
45
45
|
<optional>
|
46
46
|
<attribute name="alt"/>
|
47
47
|
</optional>
|
48
|
+
<optional>
|
49
|
+
<attribute name="updatetype">
|
50
|
+
<data type="boolean"/>
|
51
|
+
</attribute>
|
52
|
+
</optional>
|
48
53
|
<text/>
|
49
54
|
</element>
|
50
55
|
</define>
|
@@ -543,6 +548,9 @@
|
|
543
548
|
</define>
|
544
549
|
<define name="BibDataExtensionType">
|
545
550
|
<ref name="doctype"/>
|
551
|
+
<optional>
|
552
|
+
<ref name="docsubtype"/>
|
553
|
+
</optional>
|
546
554
|
<optional>
|
547
555
|
<ref name="editorialgroup"/>
|
548
556
|
</optional>
|
@@ -890,6 +898,14 @@
|
|
890
898
|
</define>
|
891
899
|
</include>
|
892
900
|
<!-- end overrides -->
|
901
|
+
<define name="docsubtype">
|
902
|
+
<element name="docsubtype">
|
903
|
+
<ref name="DocumentSubtype"/>
|
904
|
+
</element>
|
905
|
+
</define>
|
906
|
+
<define name="DocumentSubtype">
|
907
|
+
<text/>
|
908
|
+
</define>
|
893
909
|
<define name="colgroup">
|
894
910
|
<element name="colgroup">
|
895
911
|
<oneOrMore>
|
@@ -38,6 +38,9 @@
|
|
38
38
|
</define>
|
39
39
|
<define name="BibDataExtensionType">
|
40
40
|
<ref name="doctype"/>
|
41
|
+
<optional>
|
42
|
+
<ref name="docsubtype"/>
|
43
|
+
</optional>
|
41
44
|
<optional>
|
42
45
|
<ref name="horizontal"/>
|
43
46
|
</optional>
|
@@ -259,6 +262,14 @@
|
|
259
262
|
<value>directive</value>
|
260
263
|
</choice>
|
261
264
|
</define>
|
265
|
+
<define name="DocumentSubtype">
|
266
|
+
<choice>
|
267
|
+
<value>specification</value>
|
268
|
+
<value>method-of-test</value>
|
269
|
+
<value>vocabulary</value>
|
270
|
+
<value>code-of-practice</value>
|
271
|
+
</choice>
|
272
|
+
</define>
|
262
273
|
<define name="structuredidentifier">
|
263
274
|
<element name="structuredidentifier">
|
264
275
|
<optional>
|
@@ -2645,6 +2645,7 @@
|
|
2645
2645
|
|
2646
2646
|
|
2647
2647
|
|
2648
|
+
|
2648
2649
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
|
2649
2650
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
2650
2651
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -2706,6 +2707,7 @@
|
|
2706
2707
|
|
2707
2708
|
|
2708
2709
|
|
2710
|
+
|
2709
2711
|
</xsl:attribute-set><xsl:attribute-set name="example-body-style">
|
2710
2712
|
|
2711
2713
|
|
@@ -2724,9 +2726,7 @@
|
|
2724
2726
|
|
2725
2727
|
|
2726
2728
|
|
2727
|
-
|
2728
|
-
|
2729
|
-
|
2729
|
+
|
2730
2730
|
|
2731
2731
|
|
2732
2732
|
|
@@ -2773,6 +2773,7 @@
|
|
2773
2773
|
|
2774
2774
|
|
2775
2775
|
|
2776
|
+
|
2776
2777
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
2777
2778
|
|
2778
2779
|
|
@@ -2793,11 +2794,13 @@
|
|
2793
2794
|
|
2794
2795
|
|
2795
2796
|
|
2797
|
+
|
2796
2798
|
</xsl:attribute-set><xsl:attribute-set name="eref-style">
|
2797
2799
|
|
2798
2800
|
|
2799
2801
|
|
2800
2802
|
|
2803
|
+
|
2801
2804
|
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
2802
2805
|
|
2803
2806
|
|
@@ -2897,10 +2900,12 @@
|
|
2897
2900
|
|
2898
2901
|
|
2899
2902
|
|
2903
|
+
|
2900
2904
|
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
2901
2905
|
|
2902
2906
|
|
2903
2907
|
|
2908
|
+
|
2904
2909
|
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
2905
2910
|
|
2906
2911
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
@@ -2970,12 +2975,14 @@
|
|
2970
2975
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2971
2976
|
|
2972
2977
|
|
2978
|
+
|
2973
2979
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2974
2980
|
|
2975
2981
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
2976
2982
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
2977
2983
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
2978
2984
|
|
2985
|
+
|
2979
2986
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2980
2987
|
|
2981
2988
|
|
@@ -3767,6 +3774,7 @@
|
|
3767
3774
|
|
3768
3775
|
|
3769
3776
|
|
3777
|
+
|
3770
3778
|
<xsl:if test="$lang = 'ar'">
|
3771
3779
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3772
3780
|
</xsl:if>
|
@@ -4177,6 +4185,7 @@
|
|
4177
4185
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
4178
4186
|
|
4179
4187
|
|
4188
|
+
|
4180
4189
|
<xsl:variable name="title-key">
|
4181
4190
|
|
4182
4191
|
|
@@ -4464,6 +4473,8 @@
|
|
4464
4473
|
|
4465
4474
|
<xsl:apply-templates/>
|
4466
4475
|
</fo:inline>
|
4476
|
+
</xsl:template><xsl:template match="*[local-name()='padding']">
|
4477
|
+
<fo:inline padding-right="{@value}"> </fo:inline>
|
4467
4478
|
</xsl:template><xsl:template match="*[local-name()='sup']">
|
4468
4479
|
<fo:inline font-size="80%" vertical-align="super">
|
4469
4480
|
<xsl:apply-templates/>
|
@@ -4956,6 +4967,16 @@
|
|
4956
4967
|
<mathml:mspace width="0.5ex"/>
|
4957
4968
|
</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">
|
4958
4969
|
<xsl:variable name="target">
|
4970
|
+
<xsl:choose>
|
4971
|
+
<xsl:when test="@updatetype = 'true'">
|
4972
|
+
<xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
|
4973
|
+
</xsl:when>
|
4974
|
+
<xsl:otherwise>
|
4975
|
+
<xsl:value-of select="normalize-space(@target)"/>
|
4976
|
+
</xsl:otherwise>
|
4977
|
+
</xsl:choose>
|
4978
|
+
</xsl:variable>
|
4979
|
+
<xsl:variable name="target_text">
|
4959
4980
|
<xsl:choose>
|
4960
4981
|
<xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
|
4961
4982
|
<xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
|
@@ -4972,19 +4993,19 @@
|
|
4972
4993
|
</xsl:if>
|
4973
4994
|
|
4974
4995
|
<xsl:choose>
|
4975
|
-
<xsl:when test="$
|
4996
|
+
<xsl:when test="$target_text = ''">
|
4976
4997
|
<xsl:apply-templates/>
|
4977
4998
|
</xsl:when>
|
4978
4999
|
<xsl:otherwise>
|
4979
|
-
<fo:basic-link external-destination="{
|
5000
|
+
<fo:basic-link external-destination="{$target}" fox:alt-text="{$target}">
|
4980
5001
|
<xsl:choose>
|
4981
5002
|
<xsl:when test="normalize-space(.) = ''">
|
4982
|
-
<!-- <xsl:value-of select="$target"/> -->
|
4983
5003
|
<xsl:call-template name="add-zero-spaces-link-java">
|
4984
|
-
<xsl:with-param name="text" select="$
|
5004
|
+
<xsl:with-param name="text" select="$target_text"/>
|
4985
5005
|
</xsl:call-template>
|
4986
5006
|
</xsl:when>
|
4987
5007
|
<xsl:otherwise>
|
5008
|
+
<!-- output text from <link>text</link> -->
|
4988
5009
|
<xsl:apply-templates/>
|
4989
5010
|
</xsl:otherwise>
|
4990
5011
|
</xsl:choose>
|
@@ -5560,6 +5581,7 @@
|
|
5560
5581
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
5561
5582
|
|
5562
5583
|
<fo:block-container margin-left="0mm">
|
5584
|
+
<xsl:copy-of select="@id"/>
|
5563
5585
|
<xsl:if test="parent::*[local-name() = 'note']">
|
5564
5586
|
<xsl:attribute name="margin-left">
|
5565
5587
|
<xsl:choose>
|
@@ -5837,6 +5859,7 @@
|
|
5837
5859
|
</xsl:template><xsl:template match="*[local-name() = 'example']">
|
5838
5860
|
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
5839
5861
|
|
5862
|
+
|
5840
5863
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
5841
5864
|
|
5842
5865
|
<xsl:variable name="element">
|
@@ -5946,12 +5969,13 @@
|
|
5946
5969
|
|
5947
5970
|
|
5948
5971
|
|
5972
|
+
|
5949
5973
|
<xsl:call-template name="getTitle">
|
5950
5974
|
<xsl:with-param name="name" select="'title-source'"/>
|
5951
5975
|
</xsl:call-template>
|
5976
|
+
<xsl:text>: </xsl:text>
|
5952
5977
|
|
5953
5978
|
|
5954
|
-
<xsl:text>: </xsl:text>
|
5955
5979
|
</fo:inline>
|
5956
5980
|
|
5957
5981
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
@@ -6076,6 +6100,7 @@
|
|
6076
6100
|
|
6077
6101
|
|
6078
6102
|
|
6103
|
+
|
6079
6104
|
</xsl:variable>
|
6080
6105
|
|
6081
6106
|
<xsl:variable name="padding-right">
|
@@ -6741,6 +6766,9 @@
|
|
6741
6766
|
<xsl:when test="parent::*[local-name() = 'preface']">
|
6742
6767
|
<xsl:value-of select="$level_total - 1"/>
|
6743
6768
|
</xsl:when>
|
6769
|
+
<xsl:when test="ancestor::*[local-name() = 'preface'] and not(ancestor::*[local-name() = 'foreword']) and not(ancestor::*[local-name() = 'introduction'])"> <!-- for preface/clause -->
|
6770
|
+
<xsl:value-of select="$level_total - 1"/>
|
6771
|
+
</xsl:when>
|
6744
6772
|
<xsl:when test="ancestor::*[local-name() = 'preface']">
|
6745
6773
|
<xsl:value-of select="$level_total - 2"/>
|
6746
6774
|
</xsl:when>
|
@@ -6881,7 +6909,14 @@
|
|
6881
6909
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
6882
6910
|
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
6883
6911
|
</xsl:when>
|
6884
|
-
<xsl:otherwise
|
6912
|
+
<xsl:otherwise>
|
6913
|
+
<xsl:variable name="key_">
|
6914
|
+
<xsl:call-template name="capitalize">
|
6915
|
+
<xsl:with-param name="str" select="translate($key, '_', ' ')"/>
|
6916
|
+
</xsl:call-template>
|
6917
|
+
</xsl:variable>
|
6918
|
+
<xsl:value-of select="$key_"/>
|
6919
|
+
</xsl:otherwise>
|
6885
6920
|
</xsl:choose>
|
6886
6921
|
|
6887
6922
|
</xsl:template><xsl:template name="setTrackChangesStyles">
|
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.
|
4
|
+
version: 1.3.4
|
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-
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|