metanorma-itu 2.6.4 → 2.6.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 +4 -4
- data/lib/isodoc/itu/itu.implementers-guide.xsl +178 -32
- data/lib/isodoc/itu/itu.in-force.xsl +178 -32
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +178 -32
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +178 -32
- data/lib/isodoc/itu/itu.recommendation.xsl +178 -32
- data/lib/isodoc/itu/itu.resolution.xsl +178 -32
- data/lib/isodoc/itu/itu.service-publication.xsl +178 -32
- data/lib/isodoc/itu/itu.technical-paper.xsl +178 -32
- data/lib/isodoc/itu/itu.technical-report.xsl +178 -32
- data/lib/metanorma/itu/boilerplate.adoc +9 -0
- data/lib/metanorma/itu/front_id.rb +1 -1
- data/lib/metanorma/itu/isodoc.rng +16 -1
- data/lib/metanorma/itu/itu.rng +0 -14
- data/lib/metanorma/itu/validate.rb +2 -3
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
@@ -35,6 +35,14 @@ Compliance with this Recommendation is voluntary. However, the Recommendation ma
|
|
35
35
|
|
36
36
|
{% endif %}
|
37
37
|
|
38
|
+
{% if doctype == "Contribution" %}
|
39
|
+
|
40
|
+
[[draft-warning]]
|
41
|
+
=== CAUTION! CONTRIBUTION
|
42
|
+
|
43
|
+
This is an ITU Contribution. It is an internal document to ITU,
|
44
|
+
and it is not to be used outside of ITU.
|
45
|
+
{% else %}
|
38
46
|
{% if unpublished and docnumber_provisional == nil %}
|
39
47
|
[[draft-warning]]
|
40
48
|
=== CAUTION! PREPUBLISHED {{ doctype | upcase }}
|
@@ -45,6 +53,7 @@ there will be differences between this prepublication and the published
|
|
45
53
|
version.
|
46
54
|
{% endif %}
|
47
55
|
{% endif %}
|
56
|
+
{% endif %}
|
48
57
|
|
49
58
|
|
50
59
|
|
@@ -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.0.4 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -1328,6 +1328,7 @@ numbers</a:documentation>
|
|
1328
1328
|
<ref name="foreword"/>
|
1329
1329
|
<ref name="introduction"/>
|
1330
1330
|
<ref name="acknowledgements"/>
|
1331
|
+
<ref name="executivesummary"/>
|
1331
1332
|
</choice>
|
1332
1333
|
</oneOrMore>
|
1333
1334
|
</element>
|
@@ -1351,6 +1352,11 @@ numbers</a:documentation>
|
|
1351
1352
|
<ref name="Content-Section"/>
|
1352
1353
|
</element>
|
1353
1354
|
</define>
|
1355
|
+
<define name="executivesummary">
|
1356
|
+
<element name="executivesummary">
|
1357
|
+
<ref name="Content-Section"/>
|
1358
|
+
</element>
|
1359
|
+
</define>
|
1354
1360
|
<define name="indexsect">
|
1355
1361
|
<element name="indexsect">
|
1356
1362
|
<ref name="Content-Section"/>
|
@@ -1576,6 +1582,15 @@ used in document amendments</a:documentation>
|
|
1576
1582
|
<define name="annex">
|
1577
1583
|
<element name="annex">
|
1578
1584
|
<ref name="Annex-Section"/>
|
1585
|
+
<zeroOrMore>
|
1586
|
+
<ref name="annex-appendix"/>
|
1587
|
+
</zeroOrMore>
|
1588
|
+
</element>
|
1589
|
+
</define>
|
1590
|
+
<define name="annex-appendix">
|
1591
|
+
<a:documentation>Appendix, distinct subclause type for annexes (annex to annex, rather than subclause to annex)</a:documentation>
|
1592
|
+
<element name="appendix">
|
1593
|
+
<ref name="Clause-Section"/>
|
1579
1594
|
</element>
|
1580
1595
|
</define>
|
1581
1596
|
<define name="terms">
|
data/lib/metanorma/itu/itu.rng
CHANGED
@@ -9,20 +9,6 @@
|
|
9
9
|
</attribute>
|
10
10
|
</optional>
|
11
11
|
</define>
|
12
|
-
<define name="preface">
|
13
|
-
<element name="preface">
|
14
|
-
<oneOrMore>
|
15
|
-
<choice>
|
16
|
-
<ref name="content"/>
|
17
|
-
<ref name="abstract"/>
|
18
|
-
<ref name="foreword"/>
|
19
|
-
<ref name="introduction"/>
|
20
|
-
<ref name="acknowledgements"/>
|
21
|
-
<ref name="clause"/>
|
22
|
-
</choice>
|
23
|
-
</oneOrMore>
|
24
|
-
</element>
|
25
|
-
</define>
|
26
12
|
<define name="Clause-Section">
|
27
13
|
<ref name="Section-Attributes"/>
|
28
14
|
<optional>
|
@@ -75,9 +75,8 @@ module Metanorma
|
|
75
75
|
text.nil? and return
|
76
76
|
arr = text.split(/\W+/)
|
77
77
|
arr.each_index do |i|
|
78
|
-
m = regex.match arr[i]
|
79
78
|
m_prev = i.zero? ? nil : regex_prev.match(arr[i - 1])
|
80
|
-
if !
|
79
|
+
if !regex.match?(arr[i]) && m_prev.nil?
|
81
80
|
@log.add("Style", node, "#{warning}: #{m[:num]}")
|
82
81
|
end
|
83
82
|
end
|
@@ -98,7 +97,7 @@ module Metanorma
|
|
98
97
|
def itu_identifier_validate(xmldoc)
|
99
98
|
xmldoc.xpath("//bibdata/docidentifier[@type = 'ITU']").each do |x|
|
100
99
|
/^SG \d+/.match?(x.text) ||
|
101
|
-
|
100
|
+
/^ITU-[RTD] [AD-VX-Z]\.\d+(\.\d+)?$/.match?(x.text) or
|
102
101
|
@log.add("Style", nil, "#{x.text} does not match ITU document " \
|
103
102
|
"identifier conventions")
|
104
103
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-itu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.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-04-
|
11
|
+
date: 2025-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|