metanorma-iso 1.4.2 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ubuntu.yml +1 -1
- data/lib/asciidoctor/iso/base.rb +8 -19
- data/lib/asciidoctor/iso/cleanup.rb +2 -3
- data/lib/asciidoctor/iso/front.rb +4 -5
- data/lib/asciidoctor/iso/front_id.rb +1 -1
- data/lib/asciidoctor/iso/isodoc.rng +12 -6
- data/lib/asciidoctor/iso/section.rb +5 -11
- data/lib/asciidoctor/iso/term_lookup_cleanup.rb +0 -1
- data/lib/asciidoctor/iso/validate_section.rb +40 -44
- data/lib/isodoc/iso/base_convert.rb +3 -64
- data/lib/isodoc/iso/html/htmlstyle.css +47 -0
- data/lib/isodoc/iso/html/isodoc.css +862 -0
- data/lib/isodoc/iso/html/style-human.css +968 -0
- data/lib/isodoc/iso/html/style-iso.css +996 -0
- data/lib/isodoc/iso/html/wordstyle.css +1515 -0
- data/lib/isodoc/iso/html_convert.rb +2 -1
- data/lib/{asciidoctor → isodoc}/iso/i18n-en.yaml +0 -1
- data/lib/{asciidoctor → isodoc}/iso/i18n-fr.yaml +0 -0
- data/lib/{asciidoctor → isodoc}/iso/i18n-zh-Hans.yaml +0 -0
- data/lib/isodoc/iso/i18n.rb +19 -0
- data/lib/isodoc/iso/init.rb +33 -0
- data/lib/isodoc/iso/iso.amendment.xsl +1226 -1702
- data/lib/isodoc/iso/iso.international-standard.xsl +1226 -1702
- data/lib/isodoc/iso/metadata.rb +1 -1
- data/lib/isodoc/iso/presentation_xml_convert.rb +99 -1
- data/lib/isodoc/iso/sections.rb +3 -8
- data/lib/isodoc/iso/word_convert.rb +2 -1
- data/lib/isodoc/iso/xref.rb +2 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +3 -3
- data/spec/asciidoctor-iso/base_spec.rb +3 -11
- data/spec/asciidoctor-iso/cleanup_spec.rb +4 -4
- data/spec/asciidoctor-iso/inline_spec.rb +1 -1
- data/spec/asciidoctor-iso/refs_spec.rb +3 -3
- data/spec/asciidoctor-iso/section_spec.rb +9 -6
- data/spec/asciidoctor-iso/validate_spec.rb +100 -21
- data/spec/isodoc/amd_spec.rb +309 -153
- data/spec/isodoc/blocks_spec.rb +362 -28
- data/spec/isodoc/i18n_spec.rb +468 -108
- data/spec/isodoc/inline_spec.rb +99 -31
- data/spec/isodoc/iso_spec.rb +95 -29
- data/spec/isodoc/postproc_spec.rb +114 -149
- data/spec/isodoc/ref_spec.rb +175 -3
- data/spec/isodoc/section_spec.rb +148 -82
- data/spec/isodoc/table_spec.rb +142 -5
- data/spec/isodoc/terms_spec.rb +78 -53
- data/spec/isodoc/xref_spec.rb +831 -658
- data/spec/metanorma/processor_spec.rb +2 -1
- metadata +20 -13
@@ -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  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
|
+
version: 1.5.2
|
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-
|
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.
|
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.
|
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.
|
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.
|
54
|
+
version: 1.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tokenizer
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,16 +168,16 @@ dependencies:
|
|
168
168
|
name: rake
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rspec
|
183
183
|
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
|
@@ -309,15 +306,25 @@ files:
|
|
309
306
|
- lib/isodoc/iso/html/header.html
|
310
307
|
- lib/isodoc/iso/html/html_iso_intro.html
|
311
308
|
- lib/isodoc/iso/html/html_iso_titlepage.html
|
309
|
+
- lib/isodoc/iso/html/htmlstyle.css
|
312
310
|
- lib/isodoc/iso/html/htmlstyle.scss
|
311
|
+
- lib/isodoc/iso/html/isodoc.css
|
313
312
|
- lib/isodoc/iso/html/isodoc.scss
|
314
313
|
- lib/isodoc/iso/html/scripts.html
|
314
|
+
- lib/isodoc/iso/html/style-human.css
|
315
315
|
- lib/isodoc/iso/html/style-human.scss
|
316
|
+
- lib/isodoc/iso/html/style-iso.css
|
316
317
|
- lib/isodoc/iso/html/style-iso.scss
|
317
318
|
- lib/isodoc/iso/html/word_iso_intro.html
|
318
319
|
- lib/isodoc/iso/html/word_iso_titlepage.html
|
320
|
+
- lib/isodoc/iso/html/wordstyle.css
|
319
321
|
- lib/isodoc/iso/html/wordstyle.scss
|
320
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
|
321
328
|
- lib/isodoc/iso/iso.amendment.xsl
|
322
329
|
- lib/isodoc/iso/iso.international-standard.xsl
|
323
330
|
- lib/isodoc/iso/metadata.rb
|