metanorma-un 0.9.5 → 0.9.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.
@@ -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>
@@ -212,6 +212,9 @@ module Metanorma
212
212
  subsequence: node.attr("subsequence")))
213
213
  end
214
214
 
215
+ PREFACE_CLAUSE_NAMES = %w(donotrecognise-foreword
216
+ acknowledgements).freeze
217
+
215
218
  def sectiontype_streamline(ret)
216
219
  case ret
217
220
  when "foreword", "introduction" then "donotrecognise-foreword"
@@ -1285,7 +1285,12 @@
1285
1285
  </define>
1286
1286
  <define name="span">
1287
1287
  <element name="span">
1288
- <attribute name="class"/>
1288
+ <optional>
1289
+ <attribute name="class"/>
1290
+ </optional>
1291
+ <optional>
1292
+ <attribute name="style"/>
1293
+ </optional>
1289
1294
  <oneOrMore>
1290
1295
  <ref name="TextElement"/>
1291
1296
  </oneOrMore>
@@ -108,7 +108,7 @@
108
108
  </element>
109
109
  </define>
110
110
  <define name="label">
111
- <element name="label">
111
+ <element name="identifier">
112
112
  <oneOrMore>
113
113
  <ref name="TextElement"/>
114
114
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module UN
3
- VERSION = "0.9.5".freeze
3
+ VERSION = "0.9.8".freeze
4
4
  end
5
5
  end
data/lib/metanorma-un.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  require "metanorma/un"
2
2
  require "asciidoctor"
3
3
  require "isodoc/un"
4
+ require "metanorma"
4
5
 
5
- if defined? Metanorma
6
+ if defined? Metanorma::Registry
6
7
  Metanorma::Registry.instance.register(Metanorma::UN::Processor)
7
8
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "roman-numerals"
31
31
  spec.add_dependency "twitter_cldr"
32
32
 
33
- spec.add_dependency "metanorma-standoc", "~> 2.1.0"
33
+ spec.add_dependency "metanorma-standoc", "~> 2.2.0"
34
34
 
35
35
  spec.add_development_dependency "debug"
36
36
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-un
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-18 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.1.0
61
+ version: 2.2.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.1.0
68
+ version: 2.2.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: debug
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -217,6 +217,7 @@ extensions: []
217
217
  extra_rdoc_files: []
218
218
  files:
219
219
  - ".github/workflows/rake.yml"
220
+ - ".github/workflows/release.yml"
220
221
  - ".gitignore"
221
222
  - ".hound.yml"
222
223
  - ".rubocop.yml"
@@ -234,16 +235,13 @@ files:
234
235
  - lib/isodoc/un/html/html_unece_intro.html
235
236
  - lib/isodoc/un/html/html_unece_plenary_titlepage.html
236
237
  - lib/isodoc/un/html/html_unece_titlepage.html
237
- - lib/isodoc/un/html/htmlstyle.css
238
238
  - lib/isodoc/un/html/htmlstyle.scss
239
239
  - lib/isodoc/un/html/logo.jpg
240
240
  - lib/isodoc/un/html/scripts.html
241
- - lib/isodoc/un/html/unece.css
242
241
  - lib/isodoc/un/html/unece.scss
243
242
  - lib/isodoc/un/html/word_unece_intro.html
244
243
  - lib/isodoc/un/html/word_unece_plenary_titlepage.html
245
244
  - lib/isodoc/un/html/word_unece_titlepage.html
246
- - lib/isodoc/un/html/wordstyle.css
247
245
  - lib/isodoc/un/html/wordstyle.scss
248
246
  - lib/isodoc/un/html_convert.rb
249
247
  - lib/isodoc/un/i18n-en.yaml
@@ -276,7 +274,7 @@ homepage: https://github.com/metanorma/metanorma-un
276
274
  licenses:
277
275
  - BSD-2-Clause
278
276
  metadata: {}
279
- post_install_message:
277
+ post_install_message:
280
278
  rdoc_options: []
281
279
  require_paths:
282
280
  - lib
@@ -291,8 +289,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
289
  - !ruby/object:Gem::Version
292
290
  version: '0'
293
291
  requirements: []
294
- rubygems_version: 3.3.16
295
- signing_key:
292
+ rubygems_version: 3.1.6
293
+ signing_key:
296
294
  specification_version: 4
297
295
  summary: Metanorma for UN.
298
296
  test_files: []