metanorma-itu 2.5.14 → 2.6.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/itu/html/_coverpage.css +256 -138
- data/lib/isodoc/itu/html/_coverpage.scss +2 -1
- data/lib/isodoc/itu/html/htmlstyle.css +768 -887
- data/lib/isodoc/itu/html/htmlstyle.scss +2 -2
- data/lib/isodoc/itu/html/itu.css +326 -247
- data/lib/isodoc/itu/html/wordstyle.css +516 -439
- data/lib/isodoc/itu/itu.implementers-guide.xsl +470 -202
- data/lib/isodoc/itu/itu.in-force.xsl +470 -202
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +470 -202
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +470 -202
- data/lib/isodoc/itu/itu.recommendation.xsl +470 -202
- data/lib/isodoc/itu/itu.resolution.xsl +470 -202
- data/lib/isodoc/itu/itu.service-publication.xsl +470 -202
- data/lib/isodoc/itu/itu.technical-paper.xsl +470 -202
- data/lib/isodoc/itu/itu.technical-report.xsl +470 -202
- data/lib/isodoc/itu/presentation_xml_convert.rb +4 -3
- data/lib/isodoc/itu/terms.rb +1 -1
- data/lib/isodoc/itu/word_convert.rb +1 -1
- data/lib/isodoc/itu/xref_section.rb +1 -1
- data/lib/metanorma/itu/isodoc.rng +12 -6
- data/lib/metanorma/itu/itu.rng +27 -30
- data/lib/metanorma/itu/validate.rb +3 -1
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +4 -3
- metadata +26 -12
@@ -17,17 +17,18 @@ module IsoDoc
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def eref(docxml)
|
20
|
-
docxml.xpath(ns("//eref")).each { |f| eref1(f) }
|
20
|
+
docxml.xpath(ns("//fmt-eref")).each { |f| eref1(f) }
|
21
21
|
end
|
22
22
|
|
23
23
|
def origin(docxml)
|
24
|
-
docxml.xpath(ns("//origin[not(termref)]")).each do |f|
|
24
|
+
docxml.xpath(ns("//fmt-origin[not(termref)]")).each do |f|
|
25
25
|
f["citeas"] = bracket_opt(f["citeas"])
|
26
26
|
eref1(f)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
|
30
|
+
# KILL
|
31
|
+
def quotesourcex(docxml)
|
31
32
|
docxml.xpath(ns("//quote//source")).each { |f| eref1(f) }
|
32
33
|
end
|
33
34
|
|
data/lib/isodoc/itu/terms.rb
CHANGED
@@ -15,7 +15,7 @@ module IsoDoc
|
|
15
15
|
|
16
16
|
def termdef_parse(node, out)
|
17
17
|
defn = node.at(ns("./fmt-definition"))
|
18
|
-
source = node.at(ns("./fmt-termsource//origin/@citeas"))
|
18
|
+
source = node.at(ns("./fmt-termsource//fmt-origin/@citeas"))
|
19
19
|
out.div **attr_code(id: node["id"]) do |div|
|
20
20
|
termdef_parse1(node, div, defn, source)
|
21
21
|
node.children.each do |n|
|
@@ -47,7 +47,7 @@ module IsoDoc
|
|
47
47
|
out.div **attr_code(class: "formula") do |div|
|
48
48
|
div.p **attr_code(class: "formula") do |_p|
|
49
49
|
insert_tab(div, 1)
|
50
|
-
parse(node.at(ns("./stem")), div)
|
50
|
+
parse(node.at(ns("./fmt-stem")), div)
|
51
51
|
if lbl = node&.at(ns("./fmt-name"))&.text
|
52
52
|
insert_tab(div, 1)
|
53
53
|
div << lbl
|
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION
|
20
|
+
<!-- VERSION v2.0.0 -->
|
21
21
|
<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">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -459,11 +459,14 @@ gives an explicit page orientation</a:documentation>
|
|
459
459
|
<a:documentation>Description of location in a reference, which can be combined with other locations in a single citation</a:documentation>
|
460
460
|
</ref>
|
461
461
|
</zeroOrMore>
|
462
|
-
<
|
463
|
-
<
|
462
|
+
<optional>
|
463
|
+
<element name="display-text">
|
464
464
|
<a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `<xx>my link text</xx>`)</a:documentation>
|
465
|
-
|
466
|
-
|
465
|
+
<oneOrMore>
|
466
|
+
<ref name="PureTextElement"/>
|
467
|
+
</oneOrMore>
|
468
|
+
</element>
|
469
|
+
</optional>
|
467
470
|
</define>
|
468
471
|
</include>
|
469
472
|
<!-- end overrides -->
|
@@ -1205,10 +1208,13 @@ numbers</a:documentation>
|
|
1205
1208
|
<value>presentation</value>
|
1206
1209
|
</choice>
|
1207
1210
|
</attribute>
|
1211
|
+
<attribute name="flavor">
|
1212
|
+
<a:documentation>Metanorma flavor, indicating SDO whose requiremnts the realisation aligns to</a:documentation>
|
1213
|
+
</attribute>
|
1208
1214
|
</define>
|
1209
1215
|
<define name="standard-document">
|
1210
1216
|
<a:documentation>Representation of a standardisation document</a:documentation>
|
1211
|
-
<element name="
|
1217
|
+
<element name="metanorma">
|
1212
1218
|
<ref name="Root-Attributes"/>
|
1213
1219
|
<ref name="bibdata">
|
1214
1220
|
<a:documentation>Bibliographic description of the document itself, expressed in the Relaton model</a:documentation>
|
data/lib/metanorma/itu/itu.rng
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<grammar ns='https://www.metanorma.org/ns/
|
2
|
+
<grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
3
|
<!--
|
4
4
|
VERSION v1.2.1
|
5
5
|
Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
|
@@ -8,9 +8,6 @@
|
|
8
8
|
-->
|
9
9
|
<include href="relaton-itu.rng"/>
|
10
10
|
<include href="isodoc.rng">
|
11
|
-
<start>
|
12
|
-
<ref name="itu"/>
|
13
|
-
</start>
|
14
11
|
<define name="OlAttr" combine="interleave">
|
15
12
|
<optional>
|
16
13
|
<attribute name="class">
|
@@ -85,31 +82,31 @@
|
|
85
82
|
</zeroOrMore>
|
86
83
|
</group>
|
87
84
|
</define>
|
85
|
+
<define name="standard-document">
|
86
|
+
<element name="metanorma">
|
87
|
+
<ref name="Root-Attributes"/>
|
88
|
+
<ref name="bibdata"/>
|
89
|
+
<zeroOrMore>
|
90
|
+
<ref name="termdocsource"/>
|
91
|
+
</zeroOrMore>
|
92
|
+
<optional>
|
93
|
+
<ref name="misccontainer"/>
|
94
|
+
</optional>
|
95
|
+
<optional>
|
96
|
+
<ref name="boilerplate"/>
|
97
|
+
</optional>
|
98
|
+
<ref name="preface"/>
|
99
|
+
<oneOrMore>
|
100
|
+
<ref name="sections"/>
|
101
|
+
</oneOrMore>
|
102
|
+
<zeroOrMore>
|
103
|
+
<ref name="annex"/>
|
104
|
+
</zeroOrMore>
|
105
|
+
<ref name="bibliography"/>
|
106
|
+
<zeroOrMore>
|
107
|
+
<ref name="indexsect"/>
|
108
|
+
</zeroOrMore>
|
109
|
+
</element>
|
110
|
+
</define>
|
88
111
|
</include>
|
89
|
-
<define name="itu">
|
90
|
-
<element name="itu-standard">
|
91
|
-
<ref name="Root-Attributes"/>
|
92
|
-
<ref name="bibdata"/>
|
93
|
-
<zeroOrMore>
|
94
|
-
<ref name="termdocsource"/>
|
95
|
-
</zeroOrMore>
|
96
|
-
<optional>
|
97
|
-
<ref name="misccontainer"/>
|
98
|
-
</optional>
|
99
|
-
<optional>
|
100
|
-
<ref name="boilerplate"/>
|
101
|
-
</optional>
|
102
|
-
<ref name="preface"/>
|
103
|
-
<oneOrMore>
|
104
|
-
<ref name="sections"/>
|
105
|
-
</oneOrMore>
|
106
|
-
<zeroOrMore>
|
107
|
-
<ref name="annex"/>
|
108
|
-
</zeroOrMore>
|
109
|
-
<ref name="bibliography"/>
|
110
|
-
<zeroOrMore>
|
111
|
-
<ref name="indexsect"/>
|
112
|
-
</zeroOrMore>
|
113
|
-
</element>
|
114
|
-
</define>
|
115
112
|
</grammar>
|
@@ -97,7 +97,9 @@ module Metanorma
|
|
97
97
|
|
98
98
|
def itu_identifier_validate(xmldoc)
|
99
99
|
xmldoc.xpath("//bibdata/docidentifier[@type = 'ITU']").each do |x|
|
100
|
-
|
100
|
+
warn x.text
|
101
|
+
/^SG \d+/.match?(x.text) ||
|
102
|
+
/^ITU-[RTD] [AD-VX-Z]\.\d+(\.\d+)?$/.match?(x.text) or
|
101
103
|
@log.add("Style", nil, "#{x.text} does not match ITU document " \
|
102
104
|
"identifier conventions")
|
103
105
|
end
|
data/metanorma-itu.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
|
27
27
|
|
28
|
-
spec.add_dependency "metanorma-standoc", "~>
|
28
|
+
spec.add_dependency "metanorma-standoc", "~> 3.0.0"
|
29
29
|
spec.add_dependency "pubid"
|
30
30
|
spec.add_dependency "twitter_cldr", ">= 3.0.0"
|
31
31
|
spec.add_dependency "tzinfo-data" # we need this for windows only
|
@@ -36,8 +36,9 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
37
37
|
spec.add_development_dependency "rake", "~> 13.0"
|
38
38
|
spec.add_development_dependency "rspec", "~> 3.6"
|
39
|
-
spec.add_development_dependency "rubocop", "~> 1
|
40
|
-
|
39
|
+
spec.add_development_dependency "rubocop", "~> 1"
|
40
|
+
spec.add_development_dependency "rubocop-performance"
|
41
|
+
spec.add_development_dependency "sassc-embedded", "~> 1"
|
41
42
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
42
43
|
spec.add_development_dependency "timecop", "~> 0.9"
|
43
44
|
spec.add_development_dependency "vcr", "~> 6.1.0"
|
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.
|
4
|
+
version: 2.6.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-
|
11
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pubid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,28 +156,42 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1
|
159
|
+
version: '1'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1
|
166
|
+
version: '1'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: rubocop-performance
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: sassc-embedded
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
179
193
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
194
|
+
version: '1'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: simplecov
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -363,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
363
377
|
- !ruby/object:Gem::Version
|
364
378
|
version: '0'
|
365
379
|
requirements: []
|
366
|
-
rubygems_version: 3.
|
380
|
+
rubygems_version: 3.5.22
|
367
381
|
signing_key:
|
368
382
|
specification_version: 4
|
369
383
|
summary: Metanorma for the ITU
|