metanorma-ietf 3.4.4 → 3.5.0

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: b1ba51cb30f9a763118cd067b90a81ae8425ad6943c9c270daf87ba3d043de92
4
- data.tar.gz: a54742db1f6423d43d44dfc4388539ffb9da6e709c5d8b7f16954d2a0536eba8
3
+ metadata.gz: 390603e9e2284f8f9d4a296e2b2477145d68db6860bf89518bf12a38eaec4de6
4
+ data.tar.gz: ecb70e48ac54f68e4b486aafdc0af99792834dcedc781e94da78b88a75ddb0cd
5
5
  SHA512:
6
- metadata.gz: c2a0a4d158e1c8cf8ecacc4eec7f27e17033f14782c6ba5c8aac1be90da247d475ebce115499957ae8641546af02cc76e27cc2b3b4bc5a9c06de9782a68e385f
7
- data.tar.gz: 3f2a5457aba6280d50be9f63d5555b33d04da66f098edb7af4dd150e345df380de7c16de43252c4180c65637ebe7d3da42f1f9ae427a698da43df3ae3cefc232
6
+ metadata.gz: 90f627b63a727c2a022db91718237058c8309b892bd39cbc5991685a8daa6362639503caf8cc06fd60eabcb0bb3b36a671fbd9d018e00e7fe41f11261b4f4fea
7
+ data.tar.gz: e6178e44010dbbddf74aa1b4120a3be44e1c24dc076577a70751a58e88cb7ebfa0b0cc9bf3a1b666776c7afb2b883516e00edc93099a14f7ac966039cfc0698e
@@ -37,6 +37,10 @@ module IsoDoc
37
37
  end
38
38
  end
39
39
 
40
+ def display_text_parse(node, out)
41
+ node.children.each { |n| parse(n, out) }
42
+ end
43
+
40
44
  def strike_parse(node, out)
41
45
  node.children.each { |n| parse(n, out) }
42
46
  end
@@ -56,7 +60,7 @@ module IsoDoc
56
60
  out << text
57
61
  end
58
62
 
59
- def stem_parse(node, out)
63
+ def semx_stem_parse(node, out)
60
64
  stem = case node["type"]
61
65
  when "MathML"
62
66
  a = node.at(ns("./asciimath"))&.remove
@@ -78,7 +82,7 @@ module IsoDoc
78
82
 
79
83
  def hr_parse(node, out); end
80
84
 
81
- def link_parse(node, out)
85
+ def semx_link_parse(node, out)
82
86
  out.eref **attr_code(target: node["target"],
83
87
  brackets: node["style"]) do |l|
84
88
  node.children.each { |n| parse(n, l) }
@@ -115,7 +119,7 @@ module IsoDoc
115
119
  end
116
120
  end
117
121
 
118
- def xref_parse(node, out)
122
+ def semx_xref_parse(node, out)
119
123
  out.xref **attr_code(target: node["target"], format: node["format"],
120
124
  relative: node["relative"]) do |l|
121
125
  l << get_linkend(node)
@@ -127,12 +131,13 @@ module IsoDoc
127
131
  %w{locality localityStack location}.include? c.name
128
132
  end
129
133
  contents = no_loc_contents.select { |c| !c.text? || /\S/.match(c) }
134
+ .map { |x| x.name == "display-text" ? x.children : x }.flatten
130
135
  !contents.empty? and
131
136
  return to_xml(Nokogiri::XML::NodeSet.new(node.document, contents))
132
137
  ""
133
138
  end
134
139
 
135
- def eref_parse(node, out)
140
+ def semx_eref_parse(node, out)
136
141
  linkend = node.children.reject do |c|
137
142
  %w{locality localityStack}.include? c.name
138
143
  end
@@ -159,11 +164,11 @@ module IsoDoc
159
164
  .sub(/^\s*(Sections?|Clauses?)/, "").strip.sub(/,$/, "")
160
165
  end
161
166
 
162
- def origin_parse(node, out)
167
+ def semx_origin_parse(node, out)
163
168
  if t = node.at(ns("./termref"))
164
169
  termrefelem_parse(t, out)
165
170
  else
166
- eref_parse(node, out)
171
+ semx_eref_parse(node, out)
167
172
  end
168
173
  end
169
174
 
@@ -14,7 +14,7 @@ module IsoDoc
14
14
  def recommendation_parse1(node, out)
15
15
  recommendation_name(node.at(ns("./fmt-name")), out)
16
16
  node.children.each do |n|
17
- parse(n, out) unless n.name == "fmt-name"
17
+ parse(n, out) if %w(name fmt-provision).include?(n.name)
18
18
  end
19
19
  end
20
20
 
@@ -66,7 +66,8 @@ module IsoDoc
66
66
  case node.name
67
67
  when "bcp14" then bcp14_parse(node, out)
68
68
  when "concept" then concept_parse(node, out)
69
- when "verbal-definition", "non-verbal-representation"
69
+ when "display-text" then display_text_parse(node, out)
70
+ when "verbal-definition", "non-verbal-representation", "fmt-provision"
70
71
  node.elements.each { |n| parse(n, out) }
71
72
  else
72
73
  text = node.to_xml.gsub(/</, "&lt;").gsub(/>/, "&gt;")
@@ -947,6 +947,8 @@ May be electronic (e.g. Twitter direct message, email) or voice (e.g. a remark m
947
947
  typically cited as "personal communication")</a:documentation>
948
948
  <value>conversation</value>
949
949
  <a:documentation>An exchange of messages between two or more persons. May be electronic (e.g. web chat) or voice (e.g. phone call)</a:documentation>
950
+ <value>collection</value>
951
+ <a:documentation>A compound resource consisting of other resources, which are themselves presupposed to have their type specified..</a:documentation>
950
952
  <value>misc</value>
951
953
  <a:documentation>Bibliographic type not adequately described in the foregoing</a:documentation>
952
954
  </choice>
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar ns='https://www.metanorma.org/ns/ietf' xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
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-ietf.rng"/>
10
10
  <include href="isodoc.rng">
11
- <start>
12
- <ref name="ietf-standard"/>
13
- </start>
14
11
  <define name="ParagraphAttrs">
15
12
  <optional>
16
13
  <attribute name="align">
@@ -382,7 +379,34 @@
382
379
  </optional>
383
380
  </element>
384
381
  </define>
382
+ <define name="standard-document">
383
+ <element name="metanorma">
384
+ <ref name="Root-Attributes"/>
385
+ <ref name="bibdata"/>
386
+ <zeroOrMore>
387
+ <ref name="termdocsource"/>
388
+ </zeroOrMore>
389
+ <optional>
390
+ <ref name="misccontainer"/>
391
+ </optional>
392
+ <optional>
393
+ <ref name="boilerplate"/>
394
+ </optional>
395
+ <ref name="preface"/>
396
+ <oneOrMore>
397
+ <ref name="sections"/>
398
+ </oneOrMore>
399
+ <zeroOrMore>
400
+ <ref name="annex"/>
401
+ </zeroOrMore>
402
+ <ref name="bibliography"/>
403
+ <zeroOrMore>
404
+ <ref name="indexsect"/>
405
+ </zeroOrMore>
406
+ </element>
407
+ </define>
385
408
  </include>
409
+ <!-- end overrides -->
386
410
  <define name="TextElement" combine="choice">
387
411
  <choice>
388
412
  <ref name="bcp14"/>
@@ -438,30 +462,4 @@
438
462
  </optional>
439
463
  <text/>
440
464
  </define>
441
- <define name="ietf-standard">
442
- <element name="ietf-standard">
443
- <ref name="Root-Attributes"/>
444
- <ref name="bibdata"/>
445
- <zeroOrMore>
446
- <ref name="termdocsource"/>
447
- </zeroOrMore>
448
- <optional>
449
- <ref name="misccontainer"/>
450
- </optional>
451
- <optional>
452
- <ref name="boilerplate"/>
453
- </optional>
454
- <ref name="preface"/>
455
- <oneOrMore>
456
- <ref name="sections"/>
457
- </oneOrMore>
458
- <zeroOrMore>
459
- <ref name="annex"/>
460
- </zeroOrMore>
461
- <ref name="bibliography"/>
462
- <zeroOrMore>
463
- <ref name="indexsect"/>
464
- </zeroOrMore>
465
- </element>
466
- </define>
467
465
  </grammar>
@@ -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 v1.4.1 -->
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
- <zeroOrMore>
463
- <ref name="PureTextElement">
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 `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
465
- </ref>
466
- </zeroOrMore>
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="standard-document">
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>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ietf
3
- VERSION = "3.4.4".freeze
3
+ VERSION = "3.5.0".freeze
4
4
  end
5
5
  end
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
  spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
38
38
 
39
39
  spec.add_dependency "metanorma-ietf-data"
40
- spec.add_dependency "metanorma-standoc", "~> 2.10.2"
40
+ spec.add_dependency "metanorma-standoc", "~> 3.0.0"
41
41
  spec.add_dependency "relaton-render"
42
42
 
43
43
  spec.add_development_dependency "debug"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.4
4
+ version: 3.5.0
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-01-20 00:00:00.000000000 Z
11
+ date: 2025-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-ietf-data
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.10.2
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.10.2
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: relaton-render
43
43
  requirement: !ruby/object:Gem::Requirement