metanorma-un 0.7.3 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
File without changes
File without changes
File without changes
@@ -1,9 +1,9 @@
1
1
  require "asciidoctor"
2
- require "asciidoctor/standoc/converter"
2
+ require "metanorma/standoc/converter"
3
3
  require "fileutils"
4
4
  require_relative "validate"
5
5
 
6
- module Asciidoctor
6
+ module Metanorma
7
7
  module UN
8
8
  class Converter < Standoc::Converter
9
9
  XML_ROOT_TAG = "un-standard".freeze
@@ -169,7 +169,7 @@ module Asciidoctor
169
169
  def pdf_converter(node)
170
170
  return nil if node.attr("no-pdf")
171
171
 
172
- IsoDoc::UN::PdfConvert.new(doc_extract_attributes(node))
172
+ IsoDoc::UN::PdfConvert.new(pdf_extract_attributes(node))
173
173
  end
174
174
 
175
175
  def sections_cleanup(xmldoc)
@@ -1796,6 +1796,20 @@
1796
1796
  <data type="ID"/>
1797
1797
  </attribute>
1798
1798
  </optional>
1799
+ <optional>
1800
+ <attribute name="language"/>
1801
+ </optional>
1802
+ <optional>
1803
+ <attribute name="script"/>
1804
+ </optional>
1805
+ <optional>
1806
+ <attribute name="tag"/>
1807
+ </optional>
1808
+ <optional>
1809
+ <attribute name="multilingual-rendering">
1810
+ <ref name="MultilingualRenderingType"/>
1811
+ </attribute>
1812
+ </optional>
1799
1813
  <oneOrMore>
1800
1814
  <ref name="preferred"/>
1801
1815
  </oneOrMore>
@@ -1959,7 +1973,11 @@
1959
1973
  </optional>
1960
1974
  <element name="name">
1961
1975
  <zeroOrMore>
1962
- <ref name="PureTextElement"/>
1976
+ <choice>
1977
+ <ref name="PureTextElement"/>
1978
+ <ref name="stem"/>
1979
+ <ref name="index"/>
1980
+ </choice>
1963
1981
  </zeroOrMore>
1964
1982
  </element>
1965
1983
  <optional>
@@ -1973,7 +1991,7 @@
1973
1991
  </element>
1974
1992
  </optional>
1975
1993
  <optional>
1976
- <element name="grammar-info">
1994
+ <element name="grammar">
1977
1995
  <ref name="Grammar"/>
1978
1996
  </element>
1979
1997
  </optional>
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- module Asciidoctor
1
+ module Metanorma
2
2
  module UN
3
3
  class Converter < Standoc::Converter
4
4
  def content_validate(doc)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module UN
3
- VERSION = "0.7.3".freeze
3
+ VERSION = "0.8.1".freeze
4
4
  end
5
5
  end
data/lib/metanorma/un.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "metanorma/un/processor"
2
2
  require "metanorma/un/input"
3
3
  require "metanorma/un/version"
4
+ require "metanorma/un/converter"
4
5
 
5
6
  module Metanorma
6
7
  module UN
data/lib/metanorma-un.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "metanorma/un"
2
2
  require "asciidoctor"
3
- require "asciidoctor/un"
4
3
  require "isodoc/un"
5
4
 
6
5
  if defined? Metanorma
@@ -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", "~> 1.11.0"
33
+ spec.add_dependency "metanorma-standoc", "~> 2.0.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.7.3
4
+ version: 0.8.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: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2022-01-17 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: 1.11.0
61
+ version: 2.0.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: 1.11.0
68
+ version: 2.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: debug
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -228,15 +228,6 @@ files:
228
228
  - bin/console
229
229
  - bin/rspec
230
230
  - bin/setup
231
- - lib/asciidoctor/un.rb
232
- - lib/asciidoctor/un/basicdoc.rng
233
- - lib/asciidoctor/un/biblio.rng
234
- - lib/asciidoctor/un/boilerplate.xml
235
- - lib/asciidoctor/un/converter.rb
236
- - lib/asciidoctor/un/isodoc.rng
237
- - lib/asciidoctor/un/reqt.rng
238
- - lib/asciidoctor/un/un.rng
239
- - lib/asciidoctor/un/validate.rb
240
231
  - lib/isodoc/un.rb
241
232
  - lib/isodoc/un/base_convert.rb
242
233
  - lib/isodoc/un/html/header.html
@@ -269,8 +260,16 @@ files:
269
260
  - lib/metanorma-un.rb
270
261
  - lib/metanorma/un.rb
271
262
  - lib/metanorma/un/UN_emblem_blue.svg
263
+ - lib/metanorma/un/basicdoc.rng
264
+ - lib/metanorma/un/biblio.rng
265
+ - lib/metanorma/un/boilerplate.xml
266
+ - lib/metanorma/un/converter.rb
272
267
  - lib/metanorma/un/input.rb
268
+ - lib/metanorma/un/isodoc.rng
273
269
  - lib/metanorma/un/processor.rb
270
+ - lib/metanorma/un/reqt.rng
271
+ - lib/metanorma/un/un.rng
272
+ - lib/metanorma/un/validate.rb
274
273
  - lib/metanorma/un/version.rb
275
274
  - metanorma-unece.gemspec
276
275
  homepage: https://github.com/metanorma/metanorma-un
@@ -292,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
291
  - !ruby/object:Gem::Version
293
292
  version: '0'
294
293
  requirements: []
295
- rubygems_version: 3.2.22
294
+ rubygems_version: 3.2.32
296
295
  signing_key:
297
296
  specification_version: 4
298
297
  summary: Metanorma for UN.
@@ -1,7 +0,0 @@
1
- require "asciidoctor/un/converter"
2
-
3
- module Asciidoctor
4
- module UN
5
-
6
- end
7
- end