metanorma-standoc 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +15 -15
- data/docs/quickstart.adoc +21 -21
- data/lib/asciidoctor/standoc/basicdoc.rng +12 -1
- data/lib/asciidoctor/standoc/biblio.rng +1 -0
- data/lib/asciidoctor/standoc/blocks.rb +1 -0
- data/lib/asciidoctor/standoc/cleanup_ref.rb +1 -1
- data/lib/asciidoctor/standoc/i18n.rb +1 -0
- data/lib/asciidoctor/standoc/isodoc.rng +5 -1
- data/lib/asciidoctor/standoc/utils.rb +3 -3
- data/lib/metanorma/standoc/version.rb +1 -1
- data/spec/asciidoctor-standoc/blocks_spec.rb +4 -3
- data/spec/asciidoctor-standoc/cleanup_spec.rb +5 -3
- data/spec/asciidoctor-standoc/inline_spec.rb +18 -0
- data/spec/asciidoctor-standoc/isobib_cache_spec.rb +3 -3
- data/spec/asciidoctor-standoc/refs_spec.rb +1 -1
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +61 -53
- data/spec/vcr_cassettes/isobib_get_123.yml +36 -32
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +36 -32
- data/spec/vcr_cassettes/isobib_get_124.yml +36 -32
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +4 -4
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +36 -36
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79db51fbd661a4c2ed28f283a6a14c7360c533ea6e27acde67e46d6f08fc6c82
|
4
|
+
data.tar.gz: 801c1134d49a110307984e6fa13377d0120514f2e62e1a9a37597037a722ddf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1358896f65017f63484f11f07747f13df81265143f52da50046d3cc0477f18b488db49457c903773824a68b650ff021571ff98c86fba95373236de88da687a9e
|
7
|
+
data.tar.gz: befa8dd7f5c9cafb8bb573b4f25c92dde9a6f0e9a8107b3e29c5d15d8aa88e427f159a3f9460fe2065d4f25d2df015dce12b402ff1e858062938ccedbf39118c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
metanorma-standoc (1.3.
|
4
|
+
metanorma-standoc (1.3.5)
|
5
5
|
asciidoctor (~> 1.5.7)
|
6
6
|
concurrent-ruby
|
7
7
|
html2doc (~> 0.8.11)
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
asciimath (1.0.8)
|
24
24
|
ast (2.4.0)
|
25
25
|
byebug (11.0.1)
|
26
|
-
cnccs (0.1.
|
26
|
+
cnccs (0.1.5)
|
27
27
|
coderay (1.1.2)
|
28
28
|
concurrent-ruby (1.1.5)
|
29
29
|
crack (0.4.3)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
guard-compat (~> 1.1)
|
53
53
|
rspec (>= 2.99.0, < 4.0)
|
54
54
|
hashdiff (1.0.0)
|
55
|
-
html2doc (0.8.
|
55
|
+
html2doc (0.8.14)
|
56
56
|
asciimath (~> 1.0.7)
|
57
57
|
htmlentities (~> 4.3.4)
|
58
58
|
image_size
|
@@ -64,7 +64,7 @@ GEM
|
|
64
64
|
iev (0.2.3)
|
65
65
|
nokogiri (>= 1.10.4)
|
66
66
|
image_size (2.0.2)
|
67
|
-
isodoc (1.0.
|
67
|
+
isodoc (1.0.5)
|
68
68
|
asciimath
|
69
69
|
html2doc (~> 0.8.11)
|
70
70
|
htmlentities (~> 4.3.4)
|
@@ -73,7 +73,7 @@ GEM
|
|
73
73
|
nokogiri (>= 1.10.4)
|
74
74
|
rake (~> 12.0)
|
75
75
|
roman-numerals
|
76
|
-
sassc (~> 2)
|
76
|
+
sassc (~> 2.2.1)
|
77
77
|
thread_safe
|
78
78
|
uuidtools
|
79
79
|
isoics (0.1.8)
|
@@ -113,7 +113,7 @@ GEM
|
|
113
113
|
rb-fsevent (0.10.3)
|
114
114
|
rb-inotify (0.10.0)
|
115
115
|
ffi (~> 1.0)
|
116
|
-
relaton (0.5.
|
116
|
+
relaton (0.5.6)
|
117
117
|
relaton-gb (~> 0.6.0)
|
118
118
|
relaton-iec (~> 0.4.0)
|
119
119
|
relaton-ietf (~> 0.6.0)
|
@@ -121,33 +121,33 @@ GEM
|
|
121
121
|
relaton-itu (~> 0.3.0)
|
122
122
|
relaton-nist (~> 0.3.0)
|
123
123
|
relaton-ogc (~> 0.1.0)
|
124
|
-
relaton-bib (0.3.
|
124
|
+
relaton-bib (0.3.9)
|
125
125
|
addressable
|
126
126
|
nokogiri
|
127
|
-
relaton-gb (0.6.
|
127
|
+
relaton-gb (0.6.5)
|
128
128
|
cnccs (~> 0.1.1)
|
129
129
|
gb-agencies (~> 0.0.1)
|
130
130
|
relaton-iso-bib (~> 0.3.0)
|
131
|
-
relaton-iec (0.4.
|
131
|
+
relaton-iec (0.4.8)
|
132
132
|
addressable
|
133
133
|
relaton-iso-bib (~> 0.3.0)
|
134
|
-
relaton-ietf (0.6.
|
134
|
+
relaton-ietf (0.6.6)
|
135
135
|
relaton-bib (~> 0.3.0)
|
136
136
|
relaton-iev (0.1.1)
|
137
137
|
relaton (~> 0.5.0)
|
138
|
-
relaton-iso (0.6.
|
138
|
+
relaton-iso (0.6.7)
|
139
139
|
relaton-iec (~> 0.4.0)
|
140
140
|
relaton-iso-bib (~> 0.3.0)
|
141
|
-
relaton-iso-bib (0.3.
|
141
|
+
relaton-iso-bib (0.3.9)
|
142
142
|
isoics (~> 0.1.6)
|
143
143
|
relaton-bib (~> 0.3.0)
|
144
144
|
ruby_deep_clone (~> 0.8.0)
|
145
|
-
relaton-itu (0.3.
|
145
|
+
relaton-itu (0.3.5)
|
146
146
|
relaton-iso-bib (~> 0.3.0)
|
147
|
-
relaton-nist (0.3.
|
147
|
+
relaton-nist (0.3.6)
|
148
148
|
relaton-bib (~> 0.3.0)
|
149
149
|
rubyzip
|
150
|
-
relaton-ogc (0.1.
|
150
|
+
relaton-ogc (0.1.2)
|
151
151
|
faraday
|
152
152
|
relaton-iso-bib (~> 0.3.0)
|
153
153
|
roman-numerals (0.3.0)
|
data/docs/quickstart.adoc
CHANGED
@@ -88,7 +88,7 @@ Syntax includes the following; the links are to the Asciidoctor User Manual. All
|
|
88
88
|
|
89
89
|
Attributes of the document, which typically appear in the coverpage (if at all), rather than in the document proper. The permitted attributes for Asciidoctor-ISO, and their expected values, are documented in the https://github.com/metanorma/metanorma-iso#document-attributes[Asciidoctor-ISO Readme]. Note that the author line expected in Asciidoctor is not used; the title line is likewise ignored, in favour of attributes describing the three-part bilingual title.
|
90
90
|
|
91
|
-
[source,
|
91
|
+
[source,asciidoc]
|
92
92
|
--
|
93
93
|
= Rice model
|
94
94
|
:docnumber: 17301
|
@@ -101,7 +101,7 @@ Attributes of the document, which typically appear in the coverpage (if at all),
|
|
101
101
|
|
102
102
|
* https://asciidoctor.org/docs/user-manual/#text-formatting[Formatting marks]: bold, italic, monospace, subscript, superscript
|
103
103
|
|
104
|
-
[source,
|
104
|
+
[source,asciidoc]
|
105
105
|
--
|
106
106
|
This document specifies minimum requirements and test methods for rice (_Oryza sativa L._).
|
107
107
|
--
|
@@ -109,7 +109,7 @@ This document specifies minimum requirements and test methods for rice (_Oryza s
|
|
109
109
|
* https://asciidoctor.org/docs/user-manual/#anchordef[Anchors] (for internal cross-references): these can be defined for any section or subsection, and any block (e.g. images, lists, examples, formulas, and so forth). The numbering of all blocks and clauses is automated, and does not need to be provided in the text.
|
110
110
|
* https://asciidoctor.org/docs/user-manual/#internal-cross-references[Internal Cross-references] reference anchors within the document. By default, the text for these is also automated, to follow ISO/IEC DIR 2, including naming the container of a block where required (e.g. `B.6, Formula (B.1)` for a formula in an annex). However, cross-references can supply their own text as an override, following a comma (e.g. `<``<AnnexB,the following annex>``>`).
|
111
111
|
|
112
|
-
[source,
|
112
|
+
[source,asciidoc]
|
113
113
|
--
|
114
114
|
The International Organization for Standardization (ISO) draws attention to the fact that it is claimed that compliance with this document may involve the use of a patent concerning sample dividers given in <<AnnexA>> and shown in <<figureA-1>>.
|
115
115
|
|
@@ -121,14 +121,14 @@ image::images/rice_image1.png[]
|
|
121
121
|
|
122
122
|
* https://asciidoctor.org/docs/user-manual/#url[URLs]
|
123
123
|
|
124
|
-
[source,
|
124
|
+
[source,asciidoc]
|
125
125
|
--
|
126
126
|
http://www.iso.org/obp[OBP]
|
127
127
|
--
|
128
128
|
|
129
129
|
* https://asciidoctor.org/docs/user-manual/#activating-stem-support[STEM support] (mathematical expressions), as both inline and block formatting. (ISO Formulae are expressed as stem blocks.) Asciidoctor natively uses http://asciimath.org[AsciiMath] for its mathematical expressions; the `:stem:` document attribute must be present for AsciiMath to be recognised. The gem will ensure that any AsciiMath is rendered in the HTML output, and converted to Microsoft Office's OOXML (via MathML) in the Word output. Asciidoctor also supports LaTeX, but the gem does not cater for converting LaTeX to a Word-compatible output.
|
130
130
|
|
131
|
-
[source,
|
131
|
+
[source,asciidoc]
|
132
132
|
--
|
133
133
|
[[formulaA-1,A.1]]
|
134
134
|
[stem]
|
@@ -143,7 +143,7 @@ stem:[w]:: is the mass fraction of grains with a particular defect in the test s
|
|
143
143
|
|
144
144
|
* https://asciidoctor.org/docs/user-manual/#user-footnotes[Footnotes]. Note that footnotes are treated as inline formatting, so they cannot straightforwardly span more than a single paragraph in Asciidoctor. Footnotes within figures and tables are rendered within their blocks, as required by ISO/IEC DIR 2.
|
145
145
|
|
146
|
-
[source,
|
146
|
+
[source,asciidoc]
|
147
147
|
--
|
148
148
|
containing a mass fraction of 4,1 % iodine and 6,3 % potassium iodide in deionized water such as Lugols.footnote:[Lugols is an example of a suitable product available commercially. This information is given for the convenience of users of this document and does not constitute an endorsement by ISO of this product.]
|
149
149
|
--
|
@@ -154,7 +154,7 @@ Blocks are groupings of paragraphs and text into larger units, commonly https://
|
|
154
154
|
|
155
155
|
* https://asciidoctor.org/docs/user-manual/#unordered-lists[Unordered lists]
|
156
156
|
|
157
|
-
[source,
|
157
|
+
[source,asciidoc]
|
158
158
|
--
|
159
159
|
The main changes compared to the previous edition are:
|
160
160
|
|
@@ -164,7 +164,7 @@ The main changes compared to the previous edition are:
|
|
164
164
|
|
165
165
|
* https://asciidoctor.org/docs/user-manual/#ordered-lists[Ordered lists]. Note that ISO/IEC presupposes that the first level of an ordered list is indexed with a lowercase letter. The gem automatically creates labels for the nested levels of ordered lists, and ignores any https://asciidoctor.org/docs/user-manual/#numbering-styles[numbering styles] indicated by the user.
|
166
166
|
|
167
|
-
[source,
|
167
|
+
[source,asciidoc]
|
168
168
|
--
|
169
169
|
. the sampling method used;
|
170
170
|
. the test method used;
|
@@ -173,7 +173,7 @@ The main changes compared to the previous edition are:
|
|
173
173
|
|
174
174
|
* https://asciidoctor.org/docs/user-manual/#labeled-list[Definition lists]. These are used for all keys of figures and formulae, and as the content of Symbols and Abbreviations clauses and subclauses:
|
175
175
|
|
176
|
-
[source,
|
176
|
+
[source,asciidoc]
|
177
177
|
--
|
178
178
|
stem:[w]:: is the mass fraction of grains with a particular defect in the test sample;
|
179
179
|
stem:[m_D]:: is the mass, in grams, of grains with that defect;
|
@@ -184,7 +184,7 @@ Note that the key to a figure must be preceded by the paragraph `*Key*`, and the
|
|
184
184
|
|
185
185
|
* https://asciidoctor.org/docs/user-manual/#tables[Tables]. Asciidoctor supports a rich range of table formatting (which the Asciidoctor-ISO gem extends further).
|
186
186
|
|
187
|
-
[source,
|
187
|
+
[source,asciidoc]
|
188
188
|
--
|
189
189
|
[[tableD-1]]
|
190
190
|
[cols="<,^,^,^,^",headerrows=2]
|
@@ -200,7 +200,7 @@ Note that the key to a figure must be preceded by the paragraph `*Key*`, and the
|
|
200
200
|
|
201
201
|
* https://asciidoctor.org/docs/user-manual/#images[Images], which are mapped to ISO figures, with accompanying titles:
|
202
202
|
|
203
|
-
[source,
|
203
|
+
[source,asciidoc]
|
204
204
|
--
|
205
205
|
[[figureC-1]]
|
206
206
|
.Typical gelatinization curve
|
@@ -210,14 +210,14 @@ footnote:[The time stem:[t_90] was estimated to be 18,2 min for this example.]
|
|
210
210
|
|
211
211
|
* https://asciidoctor.org/docs/user-manual/#admonition[Admonitions], which express Notes, Warnings, Cautions, etc.
|
212
212
|
|
213
|
-
[source,
|
213
|
+
[source,asciidoc]
|
214
214
|
--
|
215
215
|
CAUTION: Only use paddy or parboiled rice for the determination of husked rice yield.
|
216
216
|
--
|
217
217
|
|
218
218
|
* https://asciidoctor.org/docs/user-manual/#prose-excerpts-quotes-and-verses[Block quotes]
|
219
219
|
|
220
|
-
[source,
|
220
|
+
[source,asciidoc]
|
221
221
|
--
|
222
222
|
[quote, ISO, "ISO7301,clause 1"]
|
223
223
|
_____
|
@@ -229,7 +229,7 @@ _____
|
|
229
229
|
* https://asciidoctor.org/docs/user-manual/#example[Examples]
|
230
230
|
* https://asciidoctor.org/docs/user-manual/#listing-blocks[Listing blocks] (source code), including https://asciidoctor.org/docs/user-manual/#callouts[source code callouts]
|
231
231
|
|
232
|
-
[source,
|
232
|
+
[source,asciidoc]
|
233
233
|
----
|
234
234
|
.Sample Code
|
235
235
|
====
|
@@ -256,7 +256,7 @@ end
|
|
256
256
|
|
257
257
|
* The Asciidoctor https://asciidoctor.org/docs/user-manual/#doc-preamble[Document preamble] is treated as the document Foreword: it is the text appearing between the document header and the first section header. (Note that the foreword is here given a https://asciidoctor.org/docs/user-manual/#title[block title], but that will be provided automatically anyway.)
|
258
258
|
|
259
|
-
[source,
|
259
|
+
[source,asciidoc]
|
260
260
|
--
|
261
261
|
[[foreword]]
|
262
262
|
.Foreword
|
@@ -265,7 +265,7 @@ ISO (the International Organization for Standardization)
|
|
265
265
|
|
266
266
|
* The Asciidoctor https://asciidoctor.org/docs/user-manual/#sections[Sections] correspond to ISO clauses, starting with the Introduction (if present). Each section and subsection is delimited with a header; the number of equal signs before the header indicate the level of nesting of the section, starting with two equal signs. No numbering should be given for any header: numbering is done automatically by the gem.
|
267
267
|
|
268
|
-
[source,
|
268
|
+
[source,asciidoc]
|
269
269
|
--
|
270
270
|
== Sampling
|
271
271
|
Sampling shall be carried out in accordance with <<ISO24333,clause 5>>
|
@@ -286,7 +286,7 @@ Full details of Asciidoctor-ISO–specific markup and conventions is given in th
|
|
286
286
|
|
287
287
|
https://asciidoctor.org/docs/user-manual/#section-styles[Section styles] are used to indicate specific types of section: `[bibliography]` for Normative References and Bibliography, `[appendix]` for Annexes, and `[%appendix]` for Appendixes (annexes of annexes). These styles must be provided for the sections to be processed correctly: bibliographic references will not be recognised as such, for example, without the `[bibliography]` style applied:
|
288
288
|
|
289
|
-
[source,
|
289
|
+
[source,asciidoc]
|
290
290
|
--
|
291
291
|
[bibliography]
|
292
292
|
== Bibliography
|
@@ -300,7 +300,7 @@ The sections that have a fixed position according to ISO/IEC DIR 2 (Introduction
|
|
300
300
|
|
301
301
|
Terms and Definitions sections follow a strict grammar in their Asciidoctor-ISO markup, as ISO/IEC DIR 2 prescribes their structure so strictly. The following illustrates the complete structure of a term entry; the Rice document splits up these features among several terms.
|
302
302
|
|
303
|
-
[source,
|
303
|
+
[source,asciidoc]
|
304
304
|
--
|
305
305
|
[[paddy]]
|
306
306
|
=== paddy
|
@@ -329,7 +329,7 @@ All bibliographic entries must be given as unordered lists. Normative references
|
|
329
329
|
|
330
330
|
For ISO and related standards, the reference is given as a bibliographic anchor (in triple brackets), consisting of an internal identifier followed by the ISO identifier. The internal identifier can be used in cross-references (citations). The date may be added to the ISO identifier, as required by ISO/IEC DIR 2; standards under preparation have their date given as `--`, and should be accompanied by a footnote detailing the status of the standard.
|
331
331
|
|
332
|
-
[source,
|
332
|
+
[source,asciidoc]
|
333
333
|
--
|
334
334
|
Grade 3 quality as specified in <<ISO3696>>.
|
335
335
|
|
@@ -342,7 +342,7 @@ Grade 3 quality as specified in <<ISO3696>>.
|
|
342
342
|
|
343
343
|
Non-ISO references under normative references are still cited by document identifier. Under informative references, non-ISO documents are both displayed and cited with reference numbers in brackets. In Asciidoctor-ISO, the cross-reference is a normal anchor identifier; the bracket numbering for informative references is automatic.
|
344
344
|
|
345
|
-
[source,
|
345
|
+
[source,asciidoc]
|
346
346
|
--
|
347
347
|
For details concerning the use of the Dumas method, see References <<ref10>> and <<ref16>>.
|
348
348
|
|
@@ -355,7 +355,7 @@ For details concerning the use of the Dumas method, see References <<ref10>> and
|
|
355
355
|
|
356
356
|
In cross-references, bibliographic localities (e.g. page numbers, clause numbers) can be added directly after the comma, as part of the cross-reference text. Bibliographic localities are expressed as a sequence of lowercase locality type, then an equal sign, then by the locality number or range:
|
357
357
|
|
358
|
-
[source,
|
358
|
+
[source,asciidoc]
|
359
359
|
--
|
360
360
|
<<ISO7301,clause=3.1>>
|
361
361
|
|
@@ -336,7 +336,9 @@
|
|
336
336
|
</define>
|
337
337
|
<define name="tname">
|
338
338
|
<element name="name">
|
339
|
-
<
|
339
|
+
<oneOrMore>
|
340
|
+
<ref name="PureTextElement"/>
|
341
|
+
</oneOrMore>
|
340
342
|
</element>
|
341
343
|
</define>
|
342
344
|
<define name="tclass">
|
@@ -812,6 +814,9 @@
|
|
812
814
|
<optional>
|
813
815
|
<attribute name="alt"/>
|
814
816
|
</optional>
|
817
|
+
<optional>
|
818
|
+
<attribute name="title"/>
|
819
|
+
</optional>
|
815
820
|
<optional>
|
816
821
|
<attribute name="longdesc">
|
817
822
|
<data type="anyURI"/>
|
@@ -850,6 +855,9 @@
|
|
850
855
|
<optional>
|
851
856
|
<attribute name="alt"/>
|
852
857
|
</optional>
|
858
|
+
<optional>
|
859
|
+
<attribute name="title"/>
|
860
|
+
</optional>
|
853
861
|
<optional>
|
854
862
|
<attribute name="longdesc">
|
855
863
|
<data type="anyURI"/>
|
@@ -875,6 +883,9 @@
|
|
875
883
|
<optional>
|
876
884
|
<attribute name="alt"/>
|
877
885
|
</optional>
|
886
|
+
<optional>
|
887
|
+
<attribute name="title"/>
|
888
|
+
</optional>
|
878
889
|
<optional>
|
879
890
|
<attribute name="longdesc">
|
880
891
|
<data type="anyURI"/>
|
@@ -252,7 +252,11 @@
|
|
252
252
|
</zeroOrMore>
|
253
253
|
</group>
|
254
254
|
<oneOrMore>
|
255
|
-
<
|
255
|
+
<choice>
|
256
|
+
<ref name="clause-subsection"/>
|
257
|
+
<ref name="terms"/>
|
258
|
+
<ref name="definitions"/>
|
259
|
+
</choice>
|
256
260
|
</oneOrMore>
|
257
261
|
</choice>
|
258
262
|
</define>
|
@@ -159,14 +159,14 @@ module Asciidoctor
|
|
159
159
|
|
160
160
|
# block for processing XML document fragments as XHTML,
|
161
161
|
# to allow for HTMLentities
|
162
|
+
# Unescape special chars used in Asciidoctor substitution processing
|
162
163
|
def noko(&block)
|
163
164
|
doc = ::Nokogiri::XML.parse(NOKOHEAD)
|
164
165
|
fragment = doc.fragment("")
|
165
166
|
::Nokogiri::XML::Builder.with fragment, &block
|
166
167
|
fragment.to_xml(encoding: "US-ASCII").lines.map do |l|
|
167
|
-
|
168
|
-
|
169
|
-
l.sub(/\s*\n$/, " ")
|
168
|
+
l.gsub(/\s*\n$/m, " ").gsub("–", "\u0096").
|
169
|
+
gsub("—", "\u0097")
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
@@ -750,14 +750,15 @@ RSpec.describe Asciidoctor::Standoc do
|
|
750
750
|
it "accepts attributes on images" do
|
751
751
|
expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
|
752
752
|
#{ASCIIDOC_BLANK_HDR}
|
753
|
-
[height=4,width=3,alt="IMAGE",filename="riceimg1.png"]
|
753
|
+
[height=4,width=3,alt="IMAGE",filename="riceimg1.png",titleattr="TITLE"]
|
754
|
+
.Caption
|
754
755
|
image::spec/examples/rice_images/rice_image1.png[]
|
755
756
|
|
756
757
|
INPUT
|
757
758
|
#{BLANK_HDR}
|
758
759
|
<sections>
|
759
|
-
<figure id="_">
|
760
|
-
<image src="spec/examples/rice_images/rice_image1.png" id="_" mimetype="image/png" height="4" width="3" alt="IMAGE" filename="riceimg1.png"/>
|
760
|
+
<figure id="_"><name>Caption</name>
|
761
|
+
<image src="spec/examples/rice_images/rice_image1.png" id="_" mimetype="image/png" height="4" width="3" title="TITLE" alt="IMAGE" filename="riceimg1.png"/>
|
761
762
|
</figure>
|
762
763
|
</sections>
|
763
764
|
</standard-document>
|
@@ -987,6 +987,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
987
987
|
<title>Normative References</title>
|
988
988
|
#{NORM_REF_BOILERPLATE}
|
989
989
|
<bibitem type="standard" id="IEC60050-102">
|
990
|
+
<fetched>#{Date.today}</fetched>
|
990
991
|
<title type="title-main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV)</title>
|
991
992
|
<title type="title-part" format="text/plain" language="en" script="Latn">Part 102: Mathematics – General concepts and linear algebra</title>
|
992
993
|
<title type="main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV) – Part 102: Mathematics – General concepts and linear algebra</title>
|
@@ -1023,6 +1024,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
1023
1024
|
</owner>
|
1024
1025
|
</copyright>
|
1025
1026
|
</bibitem><bibitem type="standard" id="IEC60050-103">
|
1027
|
+
<fetched>#{Date.today}</fetched>
|
1026
1028
|
<title type="title-main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV)</title>
|
1027
1029
|
<title type="title-part" format="text/plain" language="en" script="Latn">Part 103: Mathematics – Functions</title>
|
1028
1030
|
<title type="main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV) – Part 103: Mathematics – Functions</title>
|
@@ -1359,7 +1361,7 @@ it "inserts boilerplate before empty Normative References in French" do
|
|
1359
1361
|
def mock_iecbib_get_iec60050_103_01
|
1360
1362
|
expect(Iecbib::IecBibliography).to receive(:get).with("IEC 60050-103", nil, {keep_year: true}) do
|
1361
1363
|
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
1362
|
-
<bibitem type="
|
1364
|
+
<bibitem type="standard" id="IEC60050-103">
|
1363
1365
|
<title format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary</title>
|
1364
1366
|
<docidentifier>IEC 60050-103:2009</docidentifier>
|
1365
1367
|
<date type="published">
|
@@ -1397,7 +1399,7 @@ end
|
|
1397
1399
|
def mock_iecbib_get_iec60050_102_01
|
1398
1400
|
expect(Iecbib::IecBibliography).to receive(:get).with("IEC 60050-102", nil, {keep_year: true}) do
|
1399
1401
|
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
1400
|
-
<bibitem type="
|
1402
|
+
<bibitem type="standard" id="IEC60050-102">
|
1401
1403
|
<title format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary</title>
|
1402
1404
|
<docidentifier>IEC 60050-102:2007</docidentifier>
|
1403
1405
|
<date type="published">
|
@@ -1435,7 +1437,7 @@ end
|
|
1435
1437
|
def mock_iev
|
1436
1438
|
expect(Iecbib::IecBibliography).to receive(:get).with("IEV", nil, {}) do
|
1437
1439
|
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
1438
|
-
<bibitem type="
|
1440
|
+
<bibitem type="standard" id="IEC60050:2001">
|
1439
1441
|
<title format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary</title>
|
1440
1442
|
<docidentifier>IEC 60050:2011</docidentifier>
|
1441
1443
|
<date type="published">
|