metanorma-itu 2.3.3 → 2.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89153ccca8d96bb635d80f3c5cdf1cd624a830eb7cf438e40ad3fb79d345e833
4
- data.tar.gz: 0ac5aa2db96f8d8195c8c376b247b231c918b5f2f48d901e0d7cea48fdf53eb3
3
+ metadata.gz: 4acc57d157430e9c4a9e37bd8f8aa0da066a3c4afb8ba55a13b3ecf43f9bf286
4
+ data.tar.gz: 16e233430fd7a3b309d9df84618e34b2fa1f518481d5ed626f5bf77724ea962a
5
5
  SHA512:
6
- metadata.gz: 56384d0dd8b0bb6311a28576cdcb77ff9af449921b8603e55a353ba570a6c874fa9da03fe16c8b1e7b294c165fa766ab542657a76bc0578955471e76d0461cf7
7
- data.tar.gz: 4a4c3c5d75c9cbebba0ccf314ad045f048cc0a3e3e8d53b707b948f4b13fd923fe028aaae441d2136b732690818ee342f565440617a7fbbe03d311197cbec727
6
+ metadata.gz: e332ff239cac846ceaad36f20bb88641e8893821485fa73b148b7d82d635d0435caf541356fedbf782e51600a29f2a84c81e61f21eefa4151873635b8f395179
7
+ data.tar.gz: 35015e7389c327bff50c85b0a9f9e1a1f3ceeedfbf73edc3d77ade41ac56c91cefeab0d7eeb1dba9511eaea81f4b2540fe148f7ce4412d02b26b4e977a16fa2e
data/Gemfile CHANGED
@@ -4,8 +4,12 @@ Encoding.default_internal = Encoding::UTF_8
4
4
  source "https://rubygems.org"
5
5
  git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
- gemspec
7
+ group :development, :test do
8
+ gem "rspec"
9
+ end
8
10
 
9
11
  if File.exist? "Gemfile.devel"
10
12
  eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
11
13
  end
14
+
15
+ gemspec
@@ -52,6 +52,7 @@ annex_to_itu_ob: Anhang zum ITU Operational Bulletin
52
52
  number_abbrev: Nr.
53
53
  annex_to_itu_ob_abbrev: Anhang zum ITU OB %
54
54
  international_telecommunication_union: Internationale Fernmeldeunion
55
+ ITU: ITU
55
56
  position_on: (Position auf %)
56
57
  revision_abbreviation: Rev.
57
58
  tsb: TSB
@@ -53,6 +53,7 @@ annex_to_itu_ob: Annex to ITU Operational Bulletin
53
53
  number_abbrev: No.
54
54
  annex_to_itu_ob_abbrev: Annex to ITU OB %
55
55
  international_telecommunication_union: International Telecommunication Union
56
+ ITU: ITU
56
57
  position_on: (Position on %)
57
58
  revision_abbreviation: Rev.
58
59
  tsb: TSB
@@ -53,6 +53,7 @@ annex_to_itu_ob: Anexo al Boletín de Explotación de la UIT
53
53
  number_abbrev: N.°
54
54
  annex_to_itu_ob_abbrev: Anexo al BE de la UIT %
55
55
  international_telecommunication_union: Unión Internacional de Telecomunicaciones
56
+ ITU: UIT
56
57
  position_on: (Posición en %)
57
58
  revision_abbreviation: Rev.
58
59
  tsb: TSB
@@ -53,6 +53,7 @@ annex_to_itu_ob: Annexe au Bulletin d’exploitation de l’UIT
53
53
  number_abbrev: Nº
54
54
  annex_to_itu_ob_abbrev: Annexe au BE de l’UIT %
55
55
  international_telecommunication_union: Union internationale des télécommunications
56
+ ITU: UIT
56
57
  position_on: (Position sur %)
57
58
  revision_abbreviation: Rev.
58
59
  tsb: TSB
@@ -53,6 +53,7 @@ annex_to_itu_ob: Приложение к Оперативному бюллете
53
53
  number_abbrev: №.
54
54
  annex_to_itu_ob_abbrev: Приложение к ОБ МСЭ %
55
55
  international_telecommunication_union: Международный Союз Электросвязи
56
+ ITU: МСЭ
56
57
  position_on: (Позиция по %)
57
58
  revision_abbreviation: Ред.
58
59
  tsb: БСЭ
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -6503,8 +6503,17 @@
6503
6503
  <xsl:variable name="styles_">
6504
6504
  <xsl:for-each select="xalan:nodeset($styles__)/item">
6505
6505
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
6506
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
- <xsl:if test="$key = 'font-family' or $key = 'color'">
6506
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
6507
+ <xsl:variable name="value">
6508
+ <xsl:choose>
6509
+ <!-- if font-size is digits only -->
6510
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
6511
+ <xsl:otherwise>
6512
+ <xsl:value-of select="$value_"/>
6513
+ </xsl:otherwise>
6514
+ </xsl:choose>
6515
+ </xsl:variable>
6516
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
6508
6517
  <style name="{$key}"><xsl:value-of select="$value"/></style>
6509
6518
  </xsl:if>
6510
6519
  </xsl:for-each>
@@ -64,11 +64,10 @@ module IsoDoc
64
64
  { label: num, elem: @labels["annex_subclause"],
65
65
  xref: @doctype == "resolution" ? num : l10n("#{@labels['annex_subclause']} #{num}"),
66
66
  level: level, type: "clause" }
67
- i = Counter.new
67
+ i = Counter.new(0, prefix: "#{num}.")
68
68
  clause.xpath(ns("./clause | ./references | ./terms | ./definitions"))
69
69
  .each do |c|
70
- i.increment(c)
71
- annex_names1(c, "#{num}.#{i.print}", level + 1)
70
+ annex_names1(c, i.increment(c).print, level + 1)
72
71
  end
73
72
  end
74
73
 
@@ -93,10 +92,9 @@ module IsoDoc
93
92
  @anchors[clause["id"]] =
94
93
  { label: num.print, xref: l10n("#{lbl} #{num.print}"),
95
94
  level: lvl, type: "clause", elem: lbl }
96
- i = Counter.new
95
+ i = Counter.new(0, prefix: "#{num.print}.")
97
96
  clause.xpath(ns(SUBCLAUSES)).each do |c|
98
- i.increment(c)
99
- section_names1(c, "#{num.print}.#{i.print}", lvl + 1)
97
+ section_names1(c, i.increment(c).print, lvl + 1)
100
98
  end
101
99
  num
102
100
  end
@@ -107,16 +105,15 @@ module IsoDoc
107
105
  { label: num, level: level,
108
106
  elem: @doctype == "resolution" ? "" : @labels["clause"],
109
107
  xref: x }
110
- i = Counter.new
108
+ i = Counter.new(0, prefix: "#{num}.")
111
109
  clause.xpath(ns(SUBCLAUSES)).each do |c|
112
- i.increment(c)
113
- section_names1(c, "#{num}.#{i.print}", level + 1)
110
+ section_names1(c, i.increment(c).print, level + 1)
114
111
  end
115
112
  end
116
113
 
117
114
  def unnumbered_section_names(clause, lvl)
118
115
  clause.nil? and return
119
- lbl = clause&.at(ns("./title"))&.text || "[#{clause['id']}]"
116
+ lbl = clause.at(ns("./title"))&.text || "[#{clause['id']}]"
120
117
  @anchors[clause["id"]] =
121
118
  { label: lbl, xref: l10n(%{"#{lbl}"}), level: lvl,
122
119
  type: "clause" }
@@ -914,44 +914,47 @@
914
914
  -->
915
915
  <define name="image">
916
916
  <element name="image">
917
- <attribute name="id">
918
- <data type="ID"/>
917
+ <ref name="Image"/>
918
+ </element>
919
+ </define>
920
+ <define name="Image">
921
+ <attribute name="id">
922
+ <data type="ID"/>
923
+ </attribute>
924
+ <attribute name="src">
925
+ <data type="anyURI"/>
926
+ </attribute>
927
+ <attribute name="mimetype"/>
928
+ <optional>
929
+ <attribute name="filename"/>
930
+ </optional>
931
+ <optional>
932
+ <attribute name="width">
933
+ <choice>
934
+ <data type="int"/>
935
+ <value>auto</value>
936
+ </choice>
919
937
  </attribute>
920
- <attribute name="src">
938
+ </optional>
939
+ <optional>
940
+ <attribute name="height">
941
+ <choice>
942
+ <data type="int"/>
943
+ <value>auto</value>
944
+ </choice>
945
+ </attribute>
946
+ </optional>
947
+ <optional>
948
+ <attribute name="alt"/>
949
+ </optional>
950
+ <optional>
951
+ <attribute name="title"/>
952
+ </optional>
953
+ <optional>
954
+ <attribute name="longdesc">
921
955
  <data type="anyURI"/>
922
956
  </attribute>
923
- <attribute name="mimetype"/>
924
- <optional>
925
- <attribute name="filename"/>
926
- </optional>
927
- <optional>
928
- <attribute name="width">
929
- <choice>
930
- <data type="int"/>
931
- <value>auto</value>
932
- </choice>
933
- </attribute>
934
- </optional>
935
- <optional>
936
- <attribute name="height">
937
- <choice>
938
- <data type="int"/>
939
- <value>auto</value>
940
- </choice>
941
- </attribute>
942
- </optional>
943
- <optional>
944
- <attribute name="alt"/>
945
- </optional>
946
- <optional>
947
- <attribute name="title"/>
948
- </optional>
949
- <optional>
950
- <attribute name="longdesc">
951
- <data type="anyURI"/>
952
- </attribute>
953
- </optional>
954
- </element>
957
+ </optional>
955
958
  </define>
956
959
  <define name="video">
957
960
  <element name="video">
@@ -348,6 +348,9 @@
348
348
  <zeroOrMore>
349
349
  <ref name="contact"/>
350
350
  </zeroOrMore>
351
+ <optional>
352
+ <ref name="logo"/>
353
+ </optional>
351
354
  </element>
352
355
  </define>
353
356
  <define name="orgname">
@@ -366,6 +369,11 @@
366
369
  </choice>
367
370
  </element>
368
371
  </define>
372
+ <define name="logo">
373
+ <element name="logo">
374
+ <ref name="image"/>
375
+ </element>
376
+ </define>
369
377
  <define name="NameWithVariants">
370
378
  <element name="primary">
371
379
  <ref name="LocalizedString"/>
@@ -942,6 +950,7 @@
942
950
  <value>obsoleted</value>
943
951
  <value>confirmed</value>
944
952
  <value>updated</value>
953
+ <value>corrected</value>
945
954
  <value>issued</value>
946
955
  <value>transmitted</value>
947
956
  <value>copied</value>
@@ -35,7 +35,7 @@ Compliance with this Recommendation is voluntary. However, the Recommendation ma
35
35
 
36
36
  {% endif %}
37
37
 
38
- {% if unpublished %}
38
+ {% if unpublished and docnumber_provisional == nil %}
39
39
  [[draft-warning]]
40
40
  === CAUTION! PREPUBLISHED {{ doctype | upcase }}
41
41
 
@@ -75,7 +75,15 @@ module Metanorma
75
75
  end
76
76
 
77
77
  def default_publisher
78
- "International Telecommunication Union"
78
+ @i18n.get["ITU"] || @i18n.international_telecommunication_union
79
+ end
80
+
81
+ def org_abbrev
82
+ if @i18n.get["ITU"]
83
+ { @i18n.international_telecommunication_union => @i18n.get["ITU"] }
84
+ else
85
+ {}
86
+ end
79
87
  end
80
88
 
81
89
  def metadata_committee(node, xml)
@@ -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.2.6 -->
20
+ <!-- VERSION v1.2.8 -->
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">
@@ -1054,6 +1054,17 @@
1054
1054
  <ref name="date_inline"/>
1055
1055
  </choice>
1056
1056
  </define>
1057
+ <define name="PureTextElement" combine="choice">
1058
+ <ref name="passthrough_inline"/>
1059
+ </define>
1060
+ <define name="passthrough_inline">
1061
+ <element name="passthrough">
1062
+ <optional>
1063
+ <attribute name="formats"/>
1064
+ </optional>
1065
+ <text/>
1066
+ </element>
1067
+ </define>
1057
1068
  <define name="add">
1058
1069
  <element name="add">
1059
1070
  <choice>
@@ -1092,6 +1103,9 @@
1092
1103
  <optional>
1093
1104
  <attribute name="style"/>
1094
1105
  </optional>
1106
+ <optional>
1107
+ <attribute name="custom-charset"/>
1108
+ </optional>
1095
1109
  <oneOrMore>
1096
1110
  <ref name="TextElement"/>
1097
1111
  </oneOrMore>
@@ -1394,6 +1408,9 @@
1394
1408
  <optional>
1395
1409
  <attribute name="number"/>
1396
1410
  </optional>
1411
+ <optional>
1412
+ <attribute name="branch-number"/>
1413
+ </optional>
1397
1414
  <optional>
1398
1415
  <attribute name="obligation">
1399
1416
  <choice>
@@ -1617,6 +1634,9 @@
1617
1634
  <optional>
1618
1635
  <attribute name="number"/>
1619
1636
  </optional>
1637
+ <optional>
1638
+ <attribute name="branch-number"/>
1639
+ </optional>
1620
1640
  <optional>
1621
1641
  <attribute name="type"/>
1622
1642
  </optional>
@@ -1668,6 +1688,9 @@
1668
1688
  <optional>
1669
1689
  <attribute name="number"/>
1670
1690
  </optional>
1691
+ <optional>
1692
+ <attribute name="branch-number"/>
1693
+ </optional>
1671
1694
  <optional>
1672
1695
  <ref name="section-title"/>
1673
1696
  </optional>
@@ -1765,6 +1788,9 @@
1765
1788
  <optional>
1766
1789
  <attribute name="number"/>
1767
1790
  </optional>
1791
+ <optional>
1792
+ <attribute name="branch-number"/>
1793
+ </optional>
1768
1794
  <optional>
1769
1795
  <attribute name="obligation">
1770
1796
  <choice>
@@ -122,7 +122,7 @@ module Metanorma
122
122
  def section_check(xmldoc)
123
123
  xmldoc.at("//bibdata/abstract") or
124
124
  @log.add("Style", nil, "No Summary has been provided")
125
- xmldoc.at("//bibdata/keywords") or
125
+ xmldoc.at("//bibdata/keyword") or
126
126
  @log.add("Style", nil, "No Keywords have been provided")
127
127
  end
128
128
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "2.3.3".freeze
3
+ VERSION = "2.3.5".freeze
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ["lib"]
26
26
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
27
27
 
28
- spec.add_dependency "metanorma-standoc", "~> 2.6.0"
28
+ spec.add_dependency "metanorma-standoc", "~> 2.7.0"
29
29
  spec.add_dependency "ruby-jing"
30
30
  spec.add_dependency "twitter_cldr", ">= 3.0.0"
31
31
  spec.add_dependency "tzinfo-data" # we need this for windows only
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.3.3
4
+ version: 2.3.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: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2023-11-27 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: 2.6.0
19
+ version: 2.7.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: 2.6.0
26
+ version: 2.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-jing
29
29
  requirement: !ruby/object:Gem::Requirement