metanorma-iso 1.4.3.pre.alpha → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ubuntu.yml +1 -1
  3. data/lib/asciidoctor/iso/base.rb +8 -19
  4. data/lib/asciidoctor/iso/cleanup.rb +2 -3
  5. data/lib/asciidoctor/iso/front.rb +4 -5
  6. data/lib/asciidoctor/iso/front_id.rb +1 -1
  7. data/lib/asciidoctor/iso/isodoc.rng +12 -6
  8. data/lib/asciidoctor/iso/section.rb +5 -11
  9. data/lib/asciidoctor/iso/term_lookup_cleanup.rb +0 -1
  10. data/lib/asciidoctor/iso/validate_section.rb +40 -44
  11. data/lib/isodoc/iso/base_convert.rb +3 -64
  12. data/lib/isodoc/iso/html_convert.rb +2 -1
  13. data/lib/{asciidoctor → isodoc}/iso/i18n-en.yaml +0 -1
  14. data/lib/{asciidoctor → isodoc}/iso/i18n-fr.yaml +0 -0
  15. data/lib/{asciidoctor → isodoc}/iso/i18n-zh-Hans.yaml +0 -0
  16. data/lib/isodoc/iso/i18n.rb +19 -0
  17. data/lib/isodoc/iso/init.rb +33 -0
  18. data/lib/isodoc/iso/iso.amendment.xsl +1403 -1719
  19. data/lib/isodoc/iso/iso.international-standard.xsl +1403 -1719
  20. data/lib/isodoc/iso/metadata.rb +1 -1
  21. data/lib/isodoc/iso/presentation_xml_convert.rb +99 -1
  22. data/lib/isodoc/iso/sections.rb +3 -8
  23. data/lib/isodoc/iso/word_convert.rb +2 -1
  24. data/lib/isodoc/iso/xref.rb +2 -0
  25. data/lib/metanorma/iso/version.rb +1 -1
  26. data/metanorma-iso.gemspec +2 -2
  27. data/spec/asciidoctor-iso/base_spec.rb +3 -11
  28. data/spec/asciidoctor-iso/cleanup_spec.rb +4 -4
  29. data/spec/asciidoctor-iso/inline_spec.rb +1 -1
  30. data/spec/asciidoctor-iso/refs_spec.rb +3 -3
  31. data/spec/asciidoctor-iso/section_spec.rb +9 -6
  32. data/spec/asciidoctor-iso/validate_spec.rb +100 -21
  33. data/spec/isodoc/amd_spec.rb +309 -153
  34. data/spec/isodoc/blocks_spec.rb +362 -28
  35. data/spec/isodoc/i18n_spec.rb +468 -108
  36. data/spec/isodoc/inline_spec.rb +99 -31
  37. data/spec/isodoc/iso_spec.rb +95 -29
  38. data/spec/isodoc/postproc_spec.rb +114 -149
  39. data/spec/isodoc/ref_spec.rb +175 -3
  40. data/spec/isodoc/section_spec.rb +148 -82
  41. data/spec/isodoc/table_spec.rb +142 -5
  42. data/spec/isodoc/terms_spec.rb +78 -53
  43. data/spec/isodoc/xref_spec.rb +831 -658
  44. data/spec/metanorma/processor_spec.rb +2 -1
  45. metadata +13 -11
@@ -38,8 +38,9 @@ RSpec.describe Metanorma::Iso::Processor do
38
38
  processor.output(<<~"INPUT", "test.xml", "test.html", :html)
39
39
  <iso-standard xmlns="http://riboseinc.com/isoxml">
40
40
  <sections>
41
- <terms id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title>
41
+ <terms id="H" obligation="normative"><title>1&#xA0; Terms, Definitions, Symbols and Abbreviated Terms</title>
42
42
  <term id="J">
43
+ <name>1.1</name>
43
44
  <preferred>Term2</preferred>
44
45
  </term>
45
46
  </terms>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3.pre.alpha
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-26 00:00:00.000000000 Z
11
+ date: 2020-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-jing
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.3.pre.alpha3
33
+ version: 1.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.3.pre.alpha3
40
+ version: 1.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: metanorma-standoc
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.4.0
47
+ version: 1.5.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.4.0
54
+ version: 1.5.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: tokenizer
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -289,9 +289,6 @@ files:
289
289
  - lib/asciidoctor/iso/converter.rb
290
290
  - lib/asciidoctor/iso/front.rb
291
291
  - lib/asciidoctor/iso/front_id.rb
292
- - lib/asciidoctor/iso/i18n-en.yaml
293
- - lib/asciidoctor/iso/i18n-fr.yaml
294
- - lib/asciidoctor/iso/i18n-zh-Hans.yaml
295
292
  - lib/asciidoctor/iso/isodoc.rng
296
293
  - lib/asciidoctor/iso/isostandard-amd.rng
297
294
  - lib/asciidoctor/iso/isostandard.rnc
@@ -323,6 +320,11 @@ files:
323
320
  - lib/isodoc/iso/html/wordstyle.css
324
321
  - lib/isodoc/iso/html/wordstyle.scss
325
322
  - lib/isodoc/iso/html_convert.rb
323
+ - lib/isodoc/iso/i18n-en.yaml
324
+ - lib/isodoc/iso/i18n-fr.yaml
325
+ - lib/isodoc/iso/i18n-zh-Hans.yaml
326
+ - lib/isodoc/iso/i18n.rb
327
+ - lib/isodoc/iso/init.rb
326
328
  - lib/isodoc/iso/iso.amendment.xsl
327
329
  - lib/isodoc/iso/iso.international-standard.xsl
328
330
  - lib/isodoc/iso/metadata.rb
@@ -406,9 +408,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
406
408
  version: 2.4.0
407
409
  required_rubygems_version: !ruby/object:Gem::Requirement
408
410
  requirements:
409
- - - ">"
411
+ - - ">="
410
412
  - !ruby/object:Gem::Version
411
- version: 1.3.1
413
+ version: '0'
412
414
  requirements: []
413
415
  rubygems_version: 3.0.3
414
416
  signing_key: