relaton-ietf 1.12.10 → 1.13.1

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: 891d0ed12d4b647657c35f6cd1e38aacfb9cf9546322117b49bd6a6844c08d78
4
- data.tar.gz: a291172eb2625ef08c709021424ce69c89ae3124e72a9445d1b56df6215ba22f
3
+ metadata.gz: e6fed6cd142a3168d65cfd06e4e1ff063dfd4e7bb2437ce7c1c332631307d369
4
+ data.tar.gz: 5af1d834979a4f2ae447865fa898da361b01019b37e113e087ce18402f9ba71b
5
5
  SHA512:
6
- metadata.gz: 16c489706d16e147853451e386704c2bc5e4970c30b88ed7f499aa5bea979c28c1d9629182190f687431154ed1914a374f4c06534d6f7610975838dd4ce93113
7
- data.tar.gz: 74dbea799c54201a3eb7e1b763274974ebcef370611b383f2b4e098edfd9a0434b68a4fd45e564a17a78475a9d7b421711fb550ee536be5bab8af2a7f8e1da6f
6
+ metadata.gz: 4051003063ece4084190e58e16b5b5e75cd9d8b38790bbf6d3844e1d57e7a5e6df2bfeba1d346cb777c442ce310dc10f296952099f239652c6d070e845992aef
7
+ data.tar.gz: 5e4fb7efd0c16218fc675c0a3b1bca4299606fa992608dc3a165108679abf391d24d5d7cdacd38d31752aa96019408ac7e9b4c39ec22244fe1914d4f3c4f50b1
data/grammars/biblio.rng CHANGED
@@ -225,9 +225,9 @@
225
225
  <zeroOrMore>
226
226
  <ref name="forename"/>
227
227
  </zeroOrMore>
228
- <zeroOrMore>
229
- <ref name="initial"/>
230
- </zeroOrMore>
228
+ <optional>
229
+ <ref name="formatted-initials"/>
230
+ </optional>
231
231
  <ref name="surname"/>
232
232
  <zeroOrMore>
233
233
  <ref name="addition"/>
@@ -247,8 +247,8 @@
247
247
  <ref name="LocalizedString"/>
248
248
  </element>
249
249
  </define>
250
- <define name="initial">
251
- <element name="initial">
250
+ <define name="formatted-initials">
251
+ <element name="formatted-initials">
252
252
  <ref name="LocalizedString"/>
253
253
  </element>
254
254
  </define>
@@ -264,6 +264,9 @@
264
264
  </define>
265
265
  <define name="forename">
266
266
  <element name="forename">
267
+ <optional>
268
+ <attribute name="initial"/>
269
+ </optional>
267
270
  <ref name="LocalizedString"/>
268
271
  </element>
269
272
  </define>
data/grammars/isodoc.rng CHANGED
@@ -69,6 +69,17 @@
69
69
  </zeroOrMore>
70
70
  </element>
71
71
  </define>
72
+ <define name="AdmonitionType">
73
+ <choice>
74
+ <value>warning</value>
75
+ <value>note</value>
76
+ <value>tip</value>
77
+ <value>important</value>
78
+ <value>caution</value>
79
+ <value>statement</value>
80
+ <value>editorial</value>
81
+ </choice>
82
+ </define>
72
83
  <define name="index">
73
84
  <element name="index">
74
85
  <optional>
@@ -1274,7 +1285,12 @@
1274
1285
  </define>
1275
1286
  <define name="span">
1276
1287
  <element name="span">
1277
- <attribute name="class"/>
1288
+ <optional>
1289
+ <attribute name="class"/>
1290
+ </optional>
1291
+ <optional>
1292
+ <attribute name="style"/>
1293
+ </optional>
1278
1294
  <oneOrMore>
1279
1295
  <ref name="TextElement"/>
1280
1296
  </oneOrMore>
@@ -2493,6 +2509,16 @@
2493
2509
  <text/>
2494
2510
  </element>
2495
2511
  </optional>
2512
+ <optional>
2513
+ <element name="amendment">
2514
+ <text/>
2515
+ </element>
2516
+ </optional>
2517
+ <optional>
2518
+ <element name="corrigendum">
2519
+ <text/>
2520
+ </element>
2521
+ </optional>
2496
2522
  <optional>
2497
2523
  <element name="language">
2498
2524
  <text/>
@@ -189,7 +189,9 @@ module RelatonIetf
189
189
  /^(?:(?<int>(?:\p{Lu}+(?:-\w|\(\w\))?\.{0,2}[-\s]?)+)\s)?(?<snm>[[:alnum:]\s'-.]+)$/ =~ n
190
190
  surname = RelatonBib::LocalizedString.new(snm, "en", "Latn")
191
191
  name = RelatonBib::LocalizedString.new(n, "en", "Latn")
192
- fname = RelatonBib::FullName.new(completename: name, initial: initials(int), surname: surname)
192
+ fname = RelatonBib::FullName.new(
193
+ completename: name, initials: int, forename: forename(int), surname: surname,
194
+ )
193
195
  entity = RelatonBib::Person.new(name: fname)
194
196
  end
195
197
  RelatonBib::ContributionInfo.new(entity: entity, role: parse_role(contrib))
@@ -213,12 +215,14 @@ module RelatonIetf
213
215
  #
214
216
  # @param [String] int
215
217
  #
216
- # @return [Array<RelatonBib::LocalizedString>]
218
+ # @return [Array<RelatonBib::Forename>]
217
219
  #
218
- def initials(int)
220
+ def forename(int)
219
221
  return [] unless int
220
222
 
221
- int.split(/(?<=\.)-?\s?|\s/).map { |i| RelatonBib::LocalizedString.new i, "en", "Latn" }
223
+ int.split(/\.-?\s?|\s/).map do |i|
224
+ RelatonBib::Forename.new initial: i, language: "en", script: "Latn"
225
+ end
222
226
  end
223
227
 
224
228
  #
@@ -76,7 +76,7 @@ module RelatonIetf
76
76
  def parse_docid
77
77
  [
78
78
  RelatonBib::DocumentIdentifier.new(type: "IETF", id: pub_id, primary: true),
79
- RelatonBib::DocumentIdentifier.new(type: "IETF", scope: "anchor", id: anchor),
79
+ # RelatonBib::DocumentIdentifier.new(type: "IETF", scope: "anchor", id: anchor),
80
80
  ]
81
81
  end
82
82
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.12.10".freeze
2
+ VERSION = "1.13.1".freeze
3
3
  end
data/relaton_ietf.gemspec CHANGED
@@ -38,5 +38,5 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency "vcr"
39
39
  spec.add_development_dependency "webmock"
40
40
 
41
- spec.add_dependency "relaton-bib", "~> 1.12.0"
41
+ spec.add_dependency "relaton-bib", "~> 1.13.0"
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.10
4
+ version: 1.13.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: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.12.0
131
+ version: 1.13.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.12.0
138
+ version: 1.13.0
139
139
  description: "RelatonIetf: retrieve IETF Standards for bibliographic use \nusing the
140
140
  BibliographicItem model.\n\nFormerly known as rfcbib.\n"
141
141
  email: