metanorma-iso 1.9.3 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iso/basicdoc.rng +21 -4
- data/lib/asciidoctor/iso/front.rb +9 -1
- data/lib/asciidoctor/iso/isodoc.rng +435 -78
- data/lib/asciidoctor/iso/isostandard.rng +7 -23
- data/lib/asciidoctor/iso/reqt.rng +23 -2
- data/lib/asciidoctor/iso/validate.rb +7 -7
- data/lib/asciidoctor/iso/validate_section.rb +1 -1
- data/lib/isodoc/iso/html/isodoc.css +1 -2
- data/lib/isodoc/iso/html/isodoc.scss +1 -1
- data/lib/isodoc/iso/html/wordstyle.css +16 -4
- data/lib/isodoc/iso/html/wordstyle.scss +16 -4
- data/lib/isodoc/iso/iso.amendment.xsl +174 -11
- data/lib/isodoc/iso/iso.international-standard.xsl +174 -11
- data/lib/isodoc/iso/presentation_xml_convert.rb +30 -22
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +4 -3
- data/spec/asciidoctor/base_spec.rb +351 -178
- data/spec/asciidoctor/blank_spec.rb +38 -0
- data/spec/asciidoctor/blocks_spec.rb +28 -14
- data/spec/asciidoctor/cleanup_spec.rb +34 -20
- data/spec/asciidoctor/inline_spec.rb +10 -2
- data/spec/asciidoctor/section_spec.rb +3 -3
- data/spec/isodoc/i18n_spec.rb +4 -4
- data/spec/isodoc/inline_spec.rb +306 -245
- data/spec/isodoc/section_spec.rb +1 -1
- data/spec/isodoc/terms_spec.rb +11 -11
- data/spec/isodoc/xref_spec.rb +1397 -1376
- data/spec/metanorma/processor_spec.rb +4 -1
- data/spec/spec_helper.rb +14 -1
- metadata +34 -19
data/spec/isodoc/section_spec.rb
CHANGED
@@ -27,7 +27,7 @@ RSpec.describe IsoDoc do
|
|
27
27
|
<terms id="I" obligation="normative">
|
28
28
|
<title>Normal Terms</title>
|
29
29
|
<term id="J">
|
30
|
-
<preferred>Term2</preferred>
|
30
|
+
<preferred><expression><name>Term2</name></expression></preferred>
|
31
31
|
</term>
|
32
32
|
</terms>
|
33
33
|
<definitions id="K">
|
data/spec/isodoc/terms_spec.rb
CHANGED
@@ -7,9 +7,9 @@ RSpec.describe IsoDoc do
|
|
7
7
|
<sections>
|
8
8
|
<terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
|
9
9
|
<term id="paddy1">
|
10
|
-
<preferred>paddy</preferred>
|
10
|
+
<preferred><expression><name>paddy</name></expression></preferred>
|
11
11
|
<domain>rice</domain>
|
12
|
-
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
12
|
+
<definition><verbaldefinition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbaldefinition></definition>
|
13
13
|
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
|
14
14
|
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
15
15
|
<ul>
|
@@ -31,11 +31,11 @@ RSpec.describe IsoDoc do
|
|
31
31
|
</term>
|
32
32
|
|
33
33
|
<term id="paddy">
|
34
|
-
<preferred>paddy</preferred>
|
35
|
-
<admitted>paddy rice</admitted>
|
36
|
-
<admitted>rough rice</admitted>
|
37
|
-
<deprecates>cargo rice</deprecates>
|
38
|
-
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
34
|
+
<preferred><expression><name>paddy</name></expression></preferred>
|
35
|
+
<admitted><expression><name>paddy rice</name></expression></admitted>
|
36
|
+
<admitted><expression><name>rough rice</name></expression></admitted>
|
37
|
+
<deprecates><expression><name>cargo rice</name></expression></deprecates>
|
38
|
+
<definition><verbaldefinition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbaldefinition></definition>
|
39
39
|
<termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
|
40
40
|
<p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
|
41
41
|
</termnote>
|
@@ -53,11 +53,11 @@ RSpec.describe IsoDoc do
|
|
53
53
|
</termsource>
|
54
54
|
</term>
|
55
55
|
<term id="A">
|
56
|
-
<preferred>term1</preferred>
|
57
|
-
<definition>term1 definition</definition>
|
56
|
+
<preferred><expression><name>term1</name></expression></preferred>
|
57
|
+
<definition><verbaldefinition>term1 definition</verbaldefinition></definition>
|
58
58
|
<term id="B">
|
59
|
-
<preferred>term2</preferred>
|
60
|
-
<definition>term2 definition</definition>
|
59
|
+
<preferred><expression><name>term2</name></expression></preferred>
|
60
|
+
<definition><verbaldefinition>term2 definition</verbaldefinition></definition>
|
61
61
|
</term>
|
62
62
|
</term>
|
63
63
|
</terms>
|