metanorma-iec 1.3.10 → 1.4.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/iec/basicdoc.rng +21 -4
- data/lib/asciidoctor/iec/front.rb +0 -4
- data/lib/asciidoctor/iec/isodoc.rng +435 -78
- data/lib/asciidoctor/iec/isostandard.rng +7 -23
- data/lib/asciidoctor/iec/reqt.rng +23 -2
- data/lib/isodoc/iec/base_convert.rb +2 -2
- data/lib/isodoc/iec/html/isodoc.css +5 -3
- data/lib/isodoc/iec/html/isodoc.scss +5 -3
- data/lib/isodoc/iec/html/wordstyle.css +24 -0
- data/lib/isodoc/iec/html/wordstyle.scss +24 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +174 -11
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +1 -1
- data/spec/asciidoctor/base_spec.rb +0 -2
- data/spec/asciidoctor/blocks_spec.rb +2 -75
- data/spec/asciidoctor/cleanup_spec.rb +2 -122
- data/spec/asciidoctor/iev_spec.rb +4 -4
- data/spec/asciidoctor/inline_spec.rb +0 -45
- data/spec/asciidoctor/section_spec.rb +4 -4
- data/spec/isodoc/iev_spec.rb +3 -3
- data/spec/isodoc/terms_spec.rb +2 -2
- metadata +5 -5
@@ -5,51 +5,6 @@ RSpec.describe Asciidoctor::Iec do
|
|
5
5
|
@blank_hdr = blank_hdr_gen
|
6
6
|
end
|
7
7
|
|
8
|
-
it "processes inline_quoted formatting" do
|
9
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
10
|
-
#{ASCIIDOC_BLANK_HDR}
|
11
|
-
_emphasis_
|
12
|
-
*strong*
|
13
|
-
`monospace`
|
14
|
-
"double quote"
|
15
|
-
'single quote'
|
16
|
-
super^script^
|
17
|
-
sub~script~
|
18
|
-
stem:[a_90]
|
19
|
-
stem:[<mml:math><mml:msub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"> <mml:mrow> <mml:mrow> <mml:mi mathvariant="bold-italic">F</mml:mi> </mml:mrow> </mml:mrow> <mml:mrow> <mml:mrow> <mml:mi mathvariant="bold-italic">Α</mml:mi> </mml:mrow> </mml:mrow> </mml:msub> </mml:math>]
|
20
|
-
[alt]#alt#
|
21
|
-
[deprecated]#deprecated#
|
22
|
-
[domain]#domain#
|
23
|
-
[strike]#strike#
|
24
|
-
[smallcap]#smallcap#
|
25
|
-
INPUT
|
26
|
-
#{@blank_hdr}
|
27
|
-
<sections>
|
28
|
-
<em>emphasis</em>
|
29
|
-
<strong>strong</strong>
|
30
|
-
<tt>monospace</tt>
|
31
|
-
“double quote”
|
32
|
-
‘single quote’
|
33
|
-
super<sup>script</sup>
|
34
|
-
sub<sub>script</sub>
|
35
|
-
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow>
|
36
|
-
<mi>a</mi>
|
37
|
-
</mrow>
|
38
|
-
<mrow>
|
39
|
-
<mn>90</mn>
|
40
|
-
</mrow>
|
41
|
-
</msub></math></stem>
|
42
|
-
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub> <mrow> <mrow> <mi mathvariant="bold-italic">F</mi> </mrow> </mrow> <mrow> <mrow> <mi mathvariant="bold-italic">Α</mi> </mrow> </mrow> </msub> </math></stem>
|
43
|
-
<admitted>alt</admitted>
|
44
|
-
<deprecates>deprecated</deprecates>
|
45
|
-
<domain>domain</domain>
|
46
|
-
<strike>strike</strike>
|
47
|
-
<smallcap>smallcap</smallcap>
|
48
|
-
</sections>
|
49
|
-
</iec-standard>
|
50
|
-
OUTPUT
|
51
|
-
end
|
52
|
-
|
53
8
|
it "processes breaks" do
|
54
9
|
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
55
10
|
#{ASCIIDOC_BLANK_HDR}
|
@@ -75,13 +75,13 @@ end
|
|
75
75
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
76
76
|
#{TERMS_BOILERPLATE}
|
77
77
|
<term id="term-term1">
|
78
|
-
<preferred>Term1</preferred>
|
78
|
+
<preferred><expression><name>Term1</name></expression></preferred>
|
79
79
|
</term>
|
80
80
|
</terms>
|
81
81
|
<clause id="_" obligation="normative"><title>Terms, definitions, symbols and abbreviated terms</title><terms id="_" obligation="normative">
|
82
82
|
<title>Normal Terms</title>
|
83
83
|
<term id="term-term2">
|
84
|
-
<preferred>Term2</preferred>
|
84
|
+
<preferred><expression><name>Term2</name></expression></preferred>
|
85
85
|
</term>
|
86
86
|
</terms>
|
87
87
|
<definitions id="_" obligation="normative"><title>Symbols and abbreviated terms</title></definitions></clause>
|
@@ -197,7 +197,7 @@ end
|
|
197
197
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
198
198
|
#{TERMS_BOILERPLATE}
|
199
199
|
<term id="term-term1">
|
200
|
-
<preferred>Term1</preferred>
|
200
|
+
<preferred><expression><name>Term1</name></expression></preferred>
|
201
201
|
</term>
|
202
202
|
</terms>
|
203
203
|
<clause id='_' obligation='normative'>
|
@@ -205,7 +205,7 @@ end
|
|
205
205
|
<terms id='_' obligation='normative'>
|
206
206
|
<title>Normal Terms</title>
|
207
207
|
<term id='term-term2'>
|
208
|
-
<preferred>Term2</preferred>
|
208
|
+
<preferred><expression><name>Term2</name></expression></preferred>
|
209
209
|
</term>
|
210
210
|
</terms>
|
211
211
|
<definitions id='_' obligation="normative">
|
data/spec/isodoc/iev_spec.rb
CHANGED
@@ -242,7 +242,7 @@ RSpec.describe IsoDoc do
|
|
242
242
|
<clause id="_terms_and_definitions" obligation="normative"><title>Terms and definitions</title>
|
243
243
|
<terms id="_general" obligation="normative"><title>General</title>
|
244
244
|
<term id="paddy1"><preferred>paddy</preferred>
|
245
|
-
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
245
|
+
<definition><verbaldefinition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbaldefinition></definition>
|
246
246
|
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
|
247
247
|
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
248
248
|
<ul>
|
@@ -264,7 +264,7 @@ RSpec.describe IsoDoc do
|
|
264
264
|
<admitted>rough rice</admitted>
|
265
265
|
<deprecates>cargo rice</deprecates>
|
266
266
|
<domain>rice</domain>
|
267
|
-
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
267
|
+
<definition><verbaldefinition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbaldefinition></definition>
|
268
268
|
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
|
269
269
|
<ul>
|
270
270
|
<li>A</li>
|
@@ -452,7 +452,7 @@ RSpec.describe IsoDoc do
|
|
452
452
|
<clause id="_terms_and_definitions" obligation="normative" displayorder="1"><title>Terms and definitions</title>
|
453
453
|
<terms id="_general" obligation="normative"><title>General</title>
|
454
454
|
<term id="paddy1"><preferred>paddy</preferred>
|
455
|
-
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
455
|
+
<definition><verbaldefinition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbaldefinition></definition>
|
456
456
|
<termsource status="modified">
|
457
457
|
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
|
458
458
|
<modification>
|
data/spec/isodoc/terms_spec.rb
CHANGED
@@ -9,7 +9,7 @@ RSpec.describe IsoDoc do
|
|
9
9
|
|
10
10
|
<term id="paddy1"><preferred>paddy</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>
|
@@ -33,7 +33,7 @@ RSpec.describe IsoDoc do
|
|
33
33
|
<preferred>paddy</preferred><admitted>paddy rice</admitted>
|
34
34
|
<admitted>rough rice</admitted>
|
35
35
|
<deprecates>cargo rice</deprecates>
|
36
|
-
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
36
|
+
<definition><verbaldefinition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbaldefinition></definition>
|
37
37
|
<termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
|
38
38
|
<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>
|
39
39
|
</termnote>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.10.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.10.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-jing
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
rubygems_version: 3.
|
301
|
+
rubygems_version: 3.2.22
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: metanorma-iec lets you write IEC standards in AsciiDoc.
|