metanorma-ietf 3.6.6 → 3.6.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edd5d53757c7142ccf379c7ffb83ecc79874c544593de69a9b1421a00e90cc3f
4
- data.tar.gz: ce343131a888ca5c1b617abfea081e2bee46c2f6c2162bd99331e0ce05add13e
3
+ metadata.gz: 17bcabceaa3266e27009fca291f497dbda0bac6f31d48e9cb4aeb51653721682
4
+ data.tar.gz: 29a033f30aebf8a6c9b5127178617e2049696067746014d482145190309ff3ee
5
5
  SHA512:
6
- metadata.gz: 3440d8db12dda0936d60ded38bbe47c72fb76ffbbc5aac8ee914b0bb03f3808f93078bba4aeb69edf4133d7b4d6e2561419b9b1e8eaedeb2ce803f0817db1c73
7
- data.tar.gz: 74564e708027fd31b303cf215d6a5a98c25e4e8ed40bf58e207805d9a7a49ac6a882f483fbae3db4fdc92c973c5db22deb133b3ecfb0380d471b9d32954d1485
6
+ metadata.gz: f897268efa4c788332b8cd18f4d63c67094263bf1030028f01124209ddbf21778ffc1a3cb8bf82a70e550cd5ddbab216ff10a64316385c6eee7771185a986472
7
+ data.tar.gz: 4babd7a444518b0a712d06265c23040da702ff4d707d2f1dea4d2af90913e61bdff952d44405e0761dc0c9b2b263c8336d467b093b053a1e8850a07992a2db89
@@ -19,8 +19,9 @@ module IsoDoc
19
19
  i.children = docid_prefix(i["type"], i.text)
20
20
  end
21
21
  @bibrenderer =
22
- ::Relaton::Render::Ietf::General.new(language: @lang,
23
- i18nhash: @i18n.get)
22
+ ::Relaton::Render::Ietf::General
23
+ .new(language: @lang, i18nhash: @i18n.get,
24
+ config: @relatonrenderconfig)
24
25
  end
25
26
 
26
27
  def implicit_reference(bib)
@@ -138,8 +138,7 @@ module IsoDoc
138
138
  end
139
139
 
140
140
  def clause_parse_title(_node, div, clause, _out, _heading_attrs = {})
141
- return unless clause
142
-
141
+ clause or return
143
142
  div.name do |n|
144
143
  clause&.children&.each { |c2| parse(c2, n) }
145
144
  end
@@ -466,11 +466,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
466
466
  <a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
467
467
  </ref>
468
468
  </optional>
469
- <optional>
469
+ <zeroOrMore>
470
470
  <ref name="logo">
471
471
  <a:documentation>A logo for the organization</a:documentation>
472
472
  </ref>
473
- </optional>
473
+ </zeroOrMore>
474
474
  </define>
475
475
  <define name="orgname">
476
476
  <element name="name">
@@ -502,6 +502,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
502
502
  </define>
503
503
  <define name="logo">
504
504
  <element name="logo">
505
+ <optional>
506
+ <attribute name="type">
507
+ <a:documentation>The type of logo</a:documentation>
508
+ </attribute>
509
+ </optional>
505
510
  <ref name="image-no-id"/>
506
511
  </element>
507
512
  </define>
@@ -513,6 +518,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
513
518
  <a:documentation>Description of what is being depicted</a:documentation>
514
519
  </attribute>
515
520
  </optional>
521
+ <optional>
522
+ <attribute name="type">
523
+ <a:documentation>Description of what kind of depiction this</a:documentation>
524
+ </attribute>
525
+ </optional>
516
526
  <zeroOrMore>
517
527
  <ref name="image-no-id">
518
528
  <a:documentation>A visual depiction of the bibliographic item</a:documentation>
@@ -690,7 +700,7 @@ Examples include GRID, LEI, CrossRef, and Ringgold</a:documentation>
690
700
  <define name="CitationType">
691
701
  <attribute name="bibitemid">
692
702
  <a:documentation>Bibliographic item that the citation applies to, referenced as the anchor of a bibliographic description</a:documentation>
693
- <data type="IDREF"/>
703
+ <ref name="IdRefType"/>
694
704
  </attribute>
695
705
  <choice>
696
706
  <zeroOrMore>
@@ -1236,9 +1246,9 @@ Refer to `BibliographicItem` for definitions</a:documentation>
1236
1246
  <optional>
1237
1247
  <ref name="validity"/>
1238
1248
  </optional>
1239
- <optional>
1249
+ <zeroOrMore>
1240
1250
  <ref name="depiction"/>
1241
- </optional>
1251
+ </zeroOrMore>
1242
1252
  </define>
1243
1253
  <define name="btitle">
1244
1254
  <a:documentation>A title of a bibliographic item, associated with a type of title</a:documentation>
@@ -1296,17 +1306,17 @@ for which this claim of validity is made, if applicable</a:documentation>
1296
1306
  </define>
1297
1307
  <define name="validityBegins">
1298
1308
  <element name="validityBegins">
1299
- <ref name="ISO8601Date"/>
1309
+ <ref name="ISO8601DateTime"/>
1300
1310
  </element>
1301
1311
  </define>
1302
1312
  <define name="validityEnds">
1303
1313
  <element name="validityEnds">
1304
- <ref name="ISO8601Date"/>
1314
+ <ref name="ISO8601DateTime"/>
1305
1315
  </element>
1306
1316
  </define>
1307
1317
  <define name="validityRevision">
1308
1318
  <element name="revision">
1309
- <ref name="ISO8601Date"/>
1319
+ <ref name="ISO8601DateTime"/>
1310
1320
  </element>
1311
1321
  </define>
1312
1322
  <define name="TypedTitleString">
@@ -137,7 +137,11 @@ module Metanorma
137
137
  super
138
138
  end
139
139
 
140
- def introduction_parse(attrs, xml, node)
140
+ #def introduction_parse(attrs, xml, node)
141
+ #clause_parse(attrs, xml, node)
142
+ #end
143
+
144
+ def acknowledgements_parse(attrs, xml, node)
141
145
  clause_parse(attrs, xml, node)
142
146
  end
143
147
 
@@ -161,6 +165,10 @@ module Metanorma
161
165
  end
162
166
  end
163
167
 
168
+ def default_svg_conform_profile
169
+ :svg_1_2_rfc
170
+ end
171
+
164
172
  def html_extract_attributes(node)
165
173
  super.merge(usexinclude: node.attr("use-xinclude"))
166
174
  end
@@ -26,16 +26,23 @@ module Metanorma
26
26
 
27
27
  def metadata_series(node, xml)
28
28
  xml.series **{ type: "stream" } do |s|
29
- s.title (node.attr("submission-type") || "IETF")
29
+ add_noko_elem(s, "title", node.attr("submission-type") || "IETF")
30
+ # s.title (node.attr("submission-type") || "IETF")
30
31
  end
31
32
  a = node.attr("intended-series") and
32
33
  xml.series **{ type: "intended" } do |s|
33
34
  parts = a.split(/ /)
34
- s.title parts[0]
35
- s.number parts[1..-1].join(" ") if parts.size > 1
35
+ add_noko_elem(s, "title", parts[0])
36
+ add_noko_elem(s, "number", parts[1..-1].join(" ")) if parts.size > 1
36
37
  end
37
38
  end
38
39
 
40
+ def title_fallback(node, xml)
41
+ xml.parent.at("./title[not(normalize-space(.)='')]" \
42
+ "[not(@type = 'abbrev' or @type = 'ascii')]") and return
43
+ add_title_xml(xml, node.attr("doctitle"), @lang, "main")
44
+ end
45
+
39
46
  def title_other(node, xml)
40
47
  a = node.attr("abbrev") and
41
48
  add_title_xml(xml, a, "en", "abbrev")
@@ -53,16 +60,20 @@ module Metanorma
53
60
  def metadata_ext(node, xml)
54
61
  super
55
62
  x = node.attr("area") and x.split(/,\s*/).each do |a|
56
- xml.area a
63
+ add_noko_elem(xml, "area", a)
64
+ # xml.area a
57
65
  end
58
- xml.ipr (node.attr("ipr") || "trust200902")
66
+ add_noko_elem(xml, "ipr", node.attr("ipr") || "trust200902")
67
+ # xml.ipr (node.attr("ipr") || "trust200902")
59
68
  x = node.attr("consensus") and xml.consensus (x != "false")
60
69
  x = node.attr("index-include") and xml.indexInclude (x != "false")
61
- x = node.attr("ipr-extract") and xml.iprExtract x
70
+ add_noko_elem(xml, "iprExtract", node.attr("ipr-extract"))
71
+ # x = node.attr("ipr-extract") and xml.iprExtract x
62
72
  x = node.attr("sort-refs") and xml.sortRefs (x != "false")
63
73
  x = node.attr("sym-refs") and xml.symRefs (x != "false")
64
74
  x = node.attr("toc-include") and xml.tocInclude (x != "false")
65
- x = node.attr("toc-depth") and xml.tocDepth x
75
+ add_noko_elem(xml, "tocDepth", node.attr("toc-depth"))
76
+ # x = node.attr("toc-depth") and xml.tocDepth x
66
77
  x = node.attr("show-on-front-page") and xml.showOnFrontPage (x != "false")
67
78
  xml.pi { |pi| set_pi(node, pi) }
68
79
  end
@@ -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.1.3 -->
3
+ <!-- VERSION v2.1.5 -->
4
4
 
5
5
  <!--
6
6
  ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
@@ -905,15 +905,32 @@ titlecase, or lowercase</a:documentation>
905
905
  </element>
906
906
  </define>
907
907
  <define name="image" combine="choice">
908
- <element name="svg">
909
- <a:documentation>Add svg mark up to image</a:documentation>
910
- <oneOrMore>
911
- <choice>
912
- <text/>
913
- <ref name="AnyElement"/>
914
- </choice>
915
- </oneOrMore>
916
- </element>
908
+ <choice>
909
+ <element name="image">
910
+ <ref name="RequiredId"/>
911
+ <ref name="ImageAttributes"/>
912
+ <optional>
913
+ <element name="svg">
914
+ <a:documentation>Allow svg in image/svg, for consistency</a:documentation>
915
+ <oneOrMore>
916
+ <choice>
917
+ <text/>
918
+ <ref name="AnyElement"/>
919
+ </choice>
920
+ </oneOrMore>
921
+ </element>
922
+ </optional>
923
+ </element>
924
+ <element name="svg">
925
+ <a:documentation>Add svg mark up to image</a:documentation>
926
+ <oneOrMore>
927
+ <choice>
928
+ <text/>
929
+ <ref name="AnyElement"/>
930
+ </choice>
931
+ </oneOrMore>
932
+ </element>
933
+ </choice>
917
934
  </define>
918
935
  <define name="ParagraphFnBody" combine="interleave">
919
936
  <ref name="BlockSource">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ietf
3
- VERSION = "3.6.6".freeze
3
+ VERSION = "3.6.8".freeze
4
4
  end
5
5
  end
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.6.6
4
+ version: 3.6.8
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-03 00:00:00.000000000 Z
11
+ date: 2025-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-ietf-data