metanorma-standoc 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +3 -5
  3. data/lib/metanorma/standoc/biblio.rng +5 -0
  4. data/lib/metanorma/standoc/cleanup.rb +17 -17
  5. data/lib/metanorma/standoc/cleanup_amend.rb +2 -2
  6. data/lib/metanorma/standoc/cleanup_biblio.rb +2 -1
  7. data/lib/metanorma/standoc/cleanup_maths.rb +12 -4
  8. data/lib/metanorma/standoc/cleanup_section.rb +19 -9
  9. data/lib/metanorma/standoc/cleanup_symbols.rb +14 -7
  10. data/lib/metanorma/standoc/cleanup_text.rb +10 -4
  11. data/lib/metanorma/standoc/cleanup_toc.rb +1 -2
  12. data/lib/metanorma/standoc/cleanup_xref.rb +55 -14
  13. data/lib/metanorma/standoc/inline.rb +27 -12
  14. data/lib/metanorma/standoc/isodoc.rng +46 -12
  15. data/lib/metanorma/standoc/ref_utility.rb +1 -0
  16. data/lib/metanorma/standoc/render.rb +10 -1
  17. data/lib/metanorma/standoc/section.rb +10 -3
  18. data/lib/metanorma/standoc/utils.rb +6 -1
  19. data/lib/metanorma/standoc/validate.rb +1 -1
  20. data/lib/metanorma/standoc/version.rb +1 -1
  21. data/metanorma-standoc.gemspec +5 -2
  22. metadata +4 -128
  23. data/.github/workflows/automerge.yml +0 -31
  24. data/.github/workflows/rake.yml +0 -15
  25. data/.github/workflows/release.yml +0 -24
  26. data/Rakefile +0 -8
  27. data/bin/rspec +0 -18
  28. data/spec/assets/a1.adoc +0 -8
  29. data/spec/assets/a2.adoc +0 -10
  30. data/spec/assets/a3.adoc +0 -9
  31. data/spec/assets/a3a.adoc +0 -7
  32. data/spec/assets/a4.adoc +0 -4
  33. data/spec/assets/boilerplate.xml +0 -4
  34. data/spec/assets/codes.yml +0 -695
  35. data/spec/assets/correct.png +0 -0
  36. data/spec/assets/corrupt.png +0 -0
  37. data/spec/assets/header.html +0 -7
  38. data/spec/assets/html-override.css +0 -1
  39. data/spec/assets/html.scss +0 -13
  40. data/spec/assets/htmlcover.html +0 -4
  41. data/spec/assets/htmlintro.html +0 -5
  42. data/spec/assets/i18n.yaml +0 -17
  43. data/spec/assets/iso.adoc +0 -10
  44. data/spec/assets/iso.headless.html +0 -33
  45. data/spec/assets/iso.xml +0 -8
  46. data/spec/assets/iso123.rxl +0 -107
  47. data/spec/assets/rice_image1.png +0 -0
  48. data/spec/assets/scripts.html +0 -3
  49. data/spec/assets/std.css +0 -2
  50. data/spec/assets/word-override.css +0 -1
  51. data/spec/assets/word.scss +0 -13
  52. data/spec/assets/wordcover.html +0 -3
  53. data/spec/assets/wordintro.html +0 -4
  54. data/spec/assets/xref_error.adoc +0 -8
  55. data/spec/examples/103_01_02.html +0 -247
  56. data/spec/examples/codes_table.html +0 -3174
  57. data/spec/examples/datamodel/address_class_profile.adoc +0 -5
  58. data/spec/examples/datamodel/address_class_profile.presentation.xml +0 -14
  59. data/spec/examples/datamodel/address_component_profile.adoc +0 -5
  60. data/spec/examples/datamodel/blank_definition_profile.adoc +0 -5
  61. data/spec/examples/datamodel/common_models_diagram.adoc +0 -5
  62. data/spec/examples/datamodel/models/models/AddressClassProfile.yml +0 -90
  63. data/spec/examples/datamodel/models/models/AddressComponentProfile.yml +0 -63
  64. data/spec/examples/datamodel/models/models/AddressComponentSpecification.yml +0 -15
  65. data/spec/examples/datamodel/models/models/AddressProfile.yml +0 -36
  66. data/spec/examples/datamodel/models/models/AttributeProfile.yml +0 -32
  67. data/spec/examples/datamodel/models/models/InterchangeAddressClassProfile.yml +0 -79
  68. data/spec/examples/datamodel/models/models/Localization copy.yml +0 -23
  69. data/spec/examples/datamodel/models/models/Localization.yml +0 -23
  70. data/spec/examples/datamodel/models/models/ProfileCompliantAddress.yml +0 -36
  71. data/spec/examples/datamodel/models/models/ProfileCompliantAddressComponent.yml +0 -15
  72. data/spec/examples/datamodel/models/models/Signature.yml +0 -20
  73. data/spec/examples/datamodel/models/models/SignatureBlankDefinition.yml +0 -20
  74. data/spec/examples/datamodel/models/models/TextDirectionCode copy.yml +0 -16
  75. data/spec/examples/datamodel/models/models/TextDirectionCode.yml +0 -16
  76. data/spec/examples/datamodel/models/models/Validity.yml +0 -14
  77. data/spec/examples/datamodel/models/models/iso19160-1/Address.yml +0 -22
  78. data/spec/examples/datamodel/models/models/iso19160-1/AddressComponent.yml +0 -2
  79. data/spec/examples/datamodel/models/style.uml.inc +0 -37
  80. data/spec/examples/datamodel/models/views/CommonModels.yml +0 -9
  81. data/spec/examples/datamodel/models/views/TopDown.yml +0 -62
  82. data/spec/examples/datamodel/top_down_diagram.adoc +0 -5
  83. data/spec/examples/english.yaml +0 -69
  84. data/spec/examples/iso_123_.xml +0 -46
  85. data/spec/examples/iso_123_all_parts.xml +0 -46
  86. data/spec/examples/iso_123_no_year_note.xml +0 -47
  87. data/spec/examples/iso_124_.xml +0 -42
  88. data/spec/examples/iso_216_.xml +0 -48
  89. data/spec/examples/iso_iec_12382_.xml +0 -49
  90. data/spec/examples/rice.adoc +0 -715
  91. data/spec/examples/rice.preview.html +0 -1877
  92. data/spec/examples/rice.sh +0 -4
  93. data/spec/examples/rice_images/rice_image1.png +0 -0
  94. data/spec/examples/rice_images/rice_image2.png +0 -0
  95. data/spec/examples/rice_images/rice_image3_1.png +0 -0
  96. data/spec/examples/rice_images/rice_image3_2.png +0 -0
  97. data/spec/examples/rice_images/rice_image3_3.png +0 -0
  98. data/spec/fixtures/action_schemaexpg1.svg +0 -122
  99. data/spec/fixtures/datamodel_description_sections_tree.xml +0 -327
  100. data/spec/fixtures/diagram_definitions.lutaml +0 -22
  101. data/spec/fixtures/macros_datamodel/address_class_profile.xml +0 -149
  102. data/spec/fixtures/macros_datamodel/address_component_profile.xml +0 -71
  103. data/spec/fixtures/macros_datamodel/blank_definition_profile.xml +0 -51
  104. data/spec/fixtures/macros_datamodel/common_models_diagram.xml +0 -7
  105. data/spec/fixtures/macros_datamodel/top_down_diagram.xml +0 -7
  106. data/spec/fixtures/test.exp +0 -121
  107. data/spec/fixtures/test.xmi +0 -9250
  108. data/spec/metanorma/base_spec.rb +0 -1125
  109. data/spec/metanorma/biblio_spec.rb +0 -1012
  110. data/spec/metanorma/blank_spec.rb +0 -37
  111. data/spec/metanorma/blocks_spec.rb +0 -1784
  112. data/spec/metanorma/cleanup_blocks_spec.rb +0 -1099
  113. data/spec/metanorma/cleanup_sections_spec.rb +0 -1849
  114. data/spec/metanorma/cleanup_spec.rb +0 -1931
  115. data/spec/metanorma/cleanup_terms_spec.rb +0 -1543
  116. data/spec/metanorma/datamodel/attributes_table_preprocessor_spec.rb +0 -111
  117. data/spec/metanorma/datamodel/diagram_preprocessor_spec.rb +0 -72
  118. data/spec/metanorma/inline_spec.rb +0 -785
  119. data/spec/metanorma/isobib_cache_spec.rb +0 -742
  120. data/spec/metanorma/lists_spec.rb +0 -232
  121. data/spec/metanorma/macros_concept_spec.rb +0 -1052
  122. data/spec/metanorma/macros_json2text_spec.rb +0 -10
  123. data/spec/metanorma/macros_plantuml_spec.rb +0 -402
  124. data/spec/metanorma/macros_spec.rb +0 -1183
  125. data/spec/metanorma/macros_yaml2text_spec.rb +0 -10
  126. data/spec/metanorma/processor_spec.rb +0 -96
  127. data/spec/metanorma/refs_spec.rb +0 -2807
  128. data/spec/metanorma/reqt_spec.rb +0 -130
  129. data/spec/metanorma/section_spec.rb +0 -1325
  130. data/spec/metanorma/table_spec.rb +0 -474
  131. data/spec/metanorma/validate_spec.rb +0 -886
  132. data/spec/spec_helper.rb +0 -290
  133. data/spec/support/shared_examples/structured_data_2_text_preprocessor.rb +0 -781
  134. data/spec/vcr_cassettes/bsi16341.yml +0 -486
  135. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +0 -611
  136. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +0 -149
  137. data/spec/vcr_cassettes/hide_refs.yml +0 -587
  138. data/spec/vcr_cassettes/isobib_get_123.yml +0 -149
  139. data/spec/vcr_cassettes/isobib_get_123_1.yml +0 -295
  140. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +0 -385
  141. data/spec/vcr_cassettes/isobib_get_123_2.yml +0 -295
  142. data/spec/vcr_cassettes/isobib_get_123_2001.yml +0 -149
  143. data/spec/vcr_cassettes/isobib_get_124.yml +0 -149
  144. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +0 -367
  145. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +0 -560
  146. data/spec/vcr_cassettes/std-link.yml +0 -149
@@ -1,1012 +0,0 @@
1
- require "spec_helper"
2
- require "relaton_iso"
3
-
4
- RSpec.describe Metanorma::Standoc do
5
- it "processes simple dl reference" do
6
- input = <<~INPUT
7
- #{ASCIIDOC_BLANK_HDR}
8
- [bibliography]
9
- == Normative References
10
-
11
- [%bibitem]
12
- === Standard
13
- id:: iso123
14
- docid::
15
- type::: ISO
16
- id::: ISO 123
17
- type:: standard
18
- contributor::
19
- role::: publisher
20
- organization:::
21
- name:::: ISO
22
- contributor::
23
- role::: author
24
- person:::
25
- name::::
26
- +
27
- --
28
- completename::
29
- language::: en
30
- content::: Fred
31
- --
32
- contributor::
33
- role::: author
34
- person:::
35
- name::::
36
- completename::::: Jack
37
-
38
- INPUT
39
- output = <<~OUTPUT
40
- #{BLANK_HDR}
41
- <sections>
42
- </sections><bibliography><references id="_" obligation="informative" normative="true">
43
- <title>Normative references</title>
44
- #{NORM_REF_BOILERPLATE}
45
- <bibitem id="iso123" type="standard">
46
- <title type='title-main' format='text/plain'>Standard</title>
47
- <title type='main' format='text/plain'>Standard</title>
48
- <docidentifier type="ISO">ISO 123</docidentifier>
49
- <contributor>
50
- <role type="publisher"/>
51
- <organization>
52
- <name>ISO</name>
53
- </organization>
54
- </contributor>
55
- <contributor>
56
- <role type="author"/>
57
- <person>
58
- <name><completename language="en">Fred</completename></name>
59
- </person>
60
- </contributor>
61
- <contributor>
62
- <role type="author"/>
63
- <person>
64
- <name><completename>Jack</completename></name>
65
- </person>
66
- </contributor>
67
- </bibitem>
68
- </references>
69
- </bibliography>
70
- </standard-document>
71
- OUTPUT
72
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
73
- .to be_equivalent_to xmlpp(output)
74
- end
75
-
76
- it "processes complex dl reference" do
77
- input = <<~INPUT
78
- #{ASCIIDOC_BLANK_HDR}
79
-
80
- == Clause
81
-
82
- <<ISOTC211>>
83
-
84
- [bibliography]
85
- == Normative References
86
-
87
- [[ISOTC211]]
88
- [%bibitem]
89
- === Other Title
90
- fetched:: 2019-06-30
91
- title::
92
- type::: main
93
- content::: Geographic information
94
- title::
95
- type::: subtitle
96
- content::: Geographic information subtitle
97
- language::: en
98
- script::: Latn
99
- format::: text/plain
100
- type:: standard
101
- docid::
102
- type::: ISO
103
- id::: TC211
104
- primary::: true
105
- docnumber:: 211
106
- edition:: 1
107
- language::
108
- . en
109
- . fr
110
- script:: Latn
111
- version::
112
- revision_date::: 2019-04-01
113
- draft::: draft
114
- biblionote::
115
- type::: bibnote
116
- content:::
117
- +
118
- --
119
- Mark set a major league
120
- home run record in 1998.
121
- --
122
- docstatus::
123
- stage::: stage
124
- substage::: substage
125
- iteration::: iteration
126
- date::
127
- type::: issued
128
- value::: 2014
129
- date::
130
- type::: published
131
- from::: 2014-04
132
- to::: 2014-05
133
- date::
134
- type::: accessed
135
- value::: 2015-05-20
136
- abstract::
137
- content:::
138
- +
139
- --
140
- ISO 19115-1:2014 defines the schema required for ...
141
- --
142
- abstract::
143
- content::: L'ISO 19115-1:2014 définit le schéma requis pour ...
144
- language::: fr
145
- script::: Latn
146
- format::: text/plain
147
- copyright::
148
- owner:::
149
- name:::: International Organization for Standardization
150
- abbreviation:::: ISO
151
- url:::: www.iso.org
152
- from::: 2014
153
- to::: #{Time.now.year}
154
- link::
155
- type::: src
156
- content::: https://www.iso.org/standard/53798.html
157
- link::
158
- type::: obp
159
- content::: https://www.iso.org/obp/ui/#!iso:std:53798:en
160
- link::
161
- type::: rss
162
- content::: https://www.iso.org/contents/data/standard/05/37/53798.detail.rss
163
- medium::
164
- form::: medium form
165
- size::: medium size
166
- scale::: medium scale
167
- place:: bib place
168
- extent::
169
- locality:::
170
- type:::: section
171
- reference_from:::: 7
172
- accesslocation::
173
- . accesslocation1
174
- . accesslocation2
175
- classification::
176
- type::: type
177
- value::: value
178
- validity::
179
- begins::: 2010-10-10 12:21
180
- ends::: 2011-02-03 18:30
181
-
182
-
183
- ==== Contributor
184
- organization::
185
- name::: International Organization for Standardization
186
- url::: www.iso.org
187
- abbreviation::: ISO
188
- subdivision::: division
189
- role::
190
- type::: publisher
191
- description::: Publisher role
192
-
193
- ==== Contributor
194
- person::
195
- name:::
196
- completename::::
197
- +
198
- --
199
- content:: A. Bierman
200
- language:: en
201
- --
202
- affiliation:::
203
- organization::::
204
- +
205
- --
206
- name:: IETF
207
- abbreviation:: IETF
208
- identifier::
209
- type::: uri
210
- id::: www.ietf.org
211
- --
212
- description:::: Affiliation description
213
- contact:::
214
- street::::
215
- . 8 Street St
216
- city:::: City
217
- postcode:::: 123456
218
- country:::: Country
219
- state:::: State
220
- contact:::
221
- type:::: phone
222
- value:::: 223322
223
- role:: author
224
-
225
- ==== Contributor
226
- organization::
227
- name::: IETF
228
- abbreviation::: IETF
229
- identifier:::
230
- type:::: uri
231
- id:::: www.ietf.org
232
- role:: publisher
233
-
234
- ==== Contributor
235
- person::
236
- name:::
237
- language:::: en
238
- formatted_initials:::: A.
239
- surname:::: Bierman
240
- affiliation:::
241
- +
242
- --
243
- organization::
244
- name::: IETF
245
- abbreviation::: IETF
246
- description::
247
- content::: Affiliation description
248
- language::: en
249
- script::: Latn
250
- --
251
- identifier:::
252
- type:::: uri
253
- id:::: www.person.com
254
- role:: author
255
-
256
- ==== Relation
257
- type:: updates
258
- bibitem::
259
- title::: Geographic information
260
- formattedref::: ISO 19115:2003
261
- bib_locality:::
262
- type:::: page
263
- reference_from:::: 7
264
- reference_to:::: 10
265
-
266
- ==== Relation
267
- type:: updates
268
- bibitem::
269
- type::: standard
270
- formattedref::: ISO 19115:2003/Cor 1:2006
271
- title::: Geographic information
272
-
273
- ==== Series
274
- type:: main
275
- title::
276
- type::: original
277
- content::: ISO/IEC FDIS 10118-3
278
- language::: en
279
- script::: Latn
280
- format::: text/plain
281
- place:: Serie's place
282
- organization:: Serie's organization
283
- abbreviation::
284
- content::: ABVR
285
- language::: en
286
- script::: Latn
287
- from:: 2009-02-01
288
- to:: 2010-12-20
289
- number:: serie1234
290
- partnumber:: part5678
291
-
292
- ==== Series
293
- type:: alt
294
- title:: seriestitle
295
- formattedref::
296
- content::: serieref
297
- language::: en
298
- script::: Latn
299
-
300
- INPUT
301
- output = <<~OUTPUT
302
- #{BLANK_HDR}
303
- <sections>
304
- <clause id='_' inline-header='false' obligation='normative'>
305
- <title>Clause</title>
306
- <p id='_'>
307
- <eref type='inline' bibitemid='ISOTC211' citeas='TC211'/>
308
- </p>
309
- </clause>
310
- </sections>
311
- <bibliography><references id="_" obligation="informative" normative="true">
312
- <title>Normative references</title>
313
- #{NORM_REF_BOILERPLATE}
314
- <bibitem id="ISOTC211" type="standard">
315
- <fetched/>
316
- <title type="main" format="text/plain">Geographic information</title>
317
- <title type="subtitle" format="text/plain" language="en" script="Latn">Geographic information subtitle</title>
318
- <title type='title-main' format='text/plain'>Other Title</title>
319
- <title type='main' format='text/plain'>Other Title</title>
320
- <uri type="src">https://www.iso.org/standard/53798.html</uri>
321
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:53798:en</uri>
322
- <uri type="rss">https://www.iso.org/contents/data/standard/05/37/53798.detail.rss</uri>
323
- <docidentifier type='ISO' primary='true'>TC211</docidentifier>
324
- <docnumber>211</docnumber>
325
- <date type="issued">
326
- <on>2014</on>
327
- </date>
328
- <date type="published">
329
- <from>2014-04</from>
330
- <to>2014-05</to>
331
- </date>
332
- <date type="accessed">
333
- <on>2015-05-20</on>
334
- </date>
335
- <contributor>
336
- <role type="publisher"><description>Publisher role</description></role>
337
- <organization>
338
- <name>International Organization for Standardization</name>
339
- <subdivision>division</subdivision>
340
- <abbreviation>ISO</abbreviation>
341
- <uri>www.iso.org</uri>
342
- </organization>
343
- </contributor>
344
- <contributor>
345
- <role type="author"/>
346
- <person>
347
- <name>
348
- <completename language="en">A. Bierman</completename>
349
- </name>
350
- <affiliation>
351
- <description format="text/plain">Affiliation description</description>
352
- <organization>
353
- <name>IETF</name>
354
- <abbreviation>IETF</abbreviation>
355
- <identifier type="uri">www.ietf.org</identifier>
356
- </organization>
357
- </affiliation>
358
- <address>
359
- <street>8 Street St</street>
360
- <city>City</city>
361
- <state>State</state>
362
- <country>Country</country>
363
- <postcode>123456</postcode>
364
- </address>
365
- <phone>223322</phone>
366
- </person>
367
- </contributor>
368
- <contributor>
369
- <role type="publisher"/>
370
- <organization>
371
- <name>IETF</name>
372
- <abbreviation>IETF</abbreviation>
373
- <identifier type="uri">www.ietf.org</identifier>
374
- </organization>
375
- </contributor>
376
- <contributor>
377
- <role type="author"/>
378
- <person>
379
- <name>
380
- <formatted-initials>A.</formatted-initials>
381
- <surname>Bierman</surname>
382
- </name>
383
- <affiliation>
384
- <description language="en" script="Latn">Affiliation description</description>
385
- <organization>
386
- <name>IETF</name>
387
- <abbreviation>IETF</abbreviation>
388
- </organization>
389
- </affiliation>
390
- <identifier type="uri">www.person.com</identifier>
391
- </person>
392
- </contributor>
393
- <edition>1</edition>
394
- <version>
395
- <revision-date>2019-04-01</revision-date>
396
- <draft>draft</draft>
397
- </version>
398
- <note type="bibnote">Mark set a major league
399
- home run record in 1998.</note>
400
- <language>en</language>
401
- <language>fr</language>
402
- <script>Latn</script>
403
- <abstract format="text/plain">ISO 19115-1:2014 defines the schema required for …​</abstract>
404
- <abstract format="text/plain" language="fr" script="Latn">L’ISO 19115-1:2014 définit le schéma requis pour …​</abstract>
405
- <status>
406
- <stage>stage</stage>
407
- <substage>substage</substage>
408
- <iteration>iteration</iteration>
409
- </status>
410
- <copyright>
411
- <from>2014</from>
412
- <to>#{Time.now.year}</to>
413
- <owner>
414
- <organization>
415
- <name>International Organization for Standardization</name>
416
- <abbreviation>ISO</abbreviation>
417
- <uri>www.iso.org</uri>
418
- </organization>
419
- </owner>
420
- </copyright>
421
- <relation type="updates">
422
- <bibitem>
423
- <title type='title-main' format='text/plain'>Geographic information</title>
424
- <title type='main' format='text/plain'>Geographic information</title>
425
- </bibitem>
426
- </relation>
427
- <relation type="updates">
428
- <bibitem type="standard">
429
- <title type='title-main' format='text/plain'>Geographic information</title>
430
- <title type='main' format='text/plain'>Geographic information</title>
431
- </bibitem>
432
- </relation>
433
- <series type="main">
434
- <title type="original" format="text/plain" language="en" script="Latn">ISO/IEC FDIS 10118-3</title>
435
- <place>Serie’s place</place>
436
- <organization>Serie’s organization</organization>
437
- <abbreviation language="en" script="Latn">ABVR</abbreviation>
438
- <from>2009-02-01</from>
439
- <to>2010-12-20</to>
440
- <number>serie1234</number>
441
- <partnumber>part5678</partnumber>
442
- </series>
443
- <series type="alt">
444
- <formattedref format="text/plain" language="en" script="Latn">serieref</formattedref>
445
- <title format='text/plain'>seriestitle</title>
446
- </series>
447
- <medium>
448
- <form>medium form</form>
449
- <size>medium size</size>
450
- <scale>medium scale</scale>
451
- </medium>
452
- <place>bib place</place>
453
- <extent>
454
- <locality type="section">
455
- <referenceFrom>7</referenceFrom>
456
- </locality>
457
- </extent>
458
- <accesslocation>accesslocation1</accesslocation>
459
- <accesslocation>accesslocation2</accesslocation>
460
- <classification type="type">value</classification>
461
- <validity>
462
- <validityBegins>2010-10-10 12:21</validityBegins>
463
- <validityEnds>2011-02-03 18:30</validityEnds>
464
- </validity>
465
- </bibitem></references></bibliography>
466
- </standard-document>
467
- OUTPUT
468
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
469
- .to be_equivalent_to xmlpp(output)
470
- end
471
-
472
- it "processes complex dl reference with dot path keys" do
473
- input = <<~INPUT
474
- #{ASCIIDOC_BLANK_HDR}
475
- [bibliography]
476
- == Normative References
477
-
478
- [[ISOTC211]]
479
- [%bibitem]
480
- === {blank}
481
- fetched:: 2019-06-30
482
- title::
483
- title.type:: main
484
- title.content:: Geographic information
485
- title::
486
- title.type:: subtitle
487
- title.content:: Geographic information subtitle
488
- title.language:: en
489
- title.script:: Latn
490
- title.format:: text/plain
491
- type:: standard
492
- docid::
493
- docid.type:: ISO
494
- docid.id:: TC211
495
- docnumber:: 211
496
- edition:: 1
497
- language:: en
498
- language:: fr
499
- script:: Latn
500
- version.revision_date:: 2019-04-01
501
- version.draft:: draft
502
- biblionote.type:: bibnote
503
- biblionote.content::
504
- +
505
- --
506
- Mark set a major league
507
- home run record in 1998.
508
- --
509
- docstatus.stage:: stage
510
- docstatus.substage:: substage
511
- docstatus.iteration:: iteration
512
- date::
513
- date.type:: issued
514
- date.value:: 2014
515
- date::
516
- date.type:: published
517
- date.from:: 2014-04
518
- date.to:: 2014-05
519
- date::
520
- date.type:: accessed
521
- date.value:: 2015-05-20
522
- abstract::
523
- abstract.content::
524
- +
525
- --
526
- ISO 19115-1:2014 defines the schema required for ...
527
- --
528
- abstract::
529
- abstract.content:: L'ISO 19115-1:2014 définit le schéma requis pour ...
530
- abstract.language:: fr
531
- abstract.script:: Latn
532
- abstract.format:: text/plain
533
- copyright.owner.name:: International Organization for Standardization
534
- copyright.owner.abbreviation:: ISO
535
- copyright.owner.url:: www.iso.org
536
- copyright.from:: 2014
537
- copyright.to:: #{Time.now.year}
538
- link::
539
- link.type:: src
540
- link.content:: https://www.iso.org/standard/53798.html
541
- link::
542
- link.type:: obp
543
- link.content:: https://www.iso.org/obp/ui/#!iso:std:53798:en
544
- link::
545
- link.type:: rss
546
- link.content:: https://www.iso.org/contents/data/standard/05/37/53798.detail.rss
547
- medium::
548
- medium.form:: medium form
549
- medium.size:: medium size
550
- medium.scale:: medium scale
551
- place:: bib place
552
- extent.locality.type:: section
553
- extent.locality.reference_from:: 7
554
- accesslocation:: accesslocation1
555
- accesslocation:: accesslocation2
556
- classification.type:: type
557
- classification.value:: value
558
- validity.begins:: 2010-10-10 12:21
559
- validity.ends:: 2011-02-03 18:30
560
- contributor::
561
- contributor.organization.name:: International Organization for Standardization
562
- contributor.organization.url:: www.iso.org
563
- contributor.organization.abbreviation:: ISO
564
- contributor.organization.subdivision:: division
565
- contributor.role.type:: publisher
566
- contributor.role.description:: Publisher role
567
- contributor::
568
- contributor.person.name.completename.content:: A. Bierman
569
- contributor.person.name.completename.language:: en
570
- contributor.person.affiliation.organization.name:: IETF
571
- contributor.person.affiliation.organization.abbreviation:: IETF
572
- contributor.person.affiliation.organization.identifier.type:: uri
573
- contributor.person.affiliation.organization.identifier.id:: www.ietf.org
574
- contributor.person.affiliation.description:: Affiliation description
575
- contributor.person.contact::
576
- contributor.person.contact.street:: 8 Street St
577
- contributor.person.contact.city:: City
578
- contributor.person.contact.postcode:: 123456
579
- contributor.person.contact.country:: Country
580
- contributor.person.contact.state:: State
581
- contributor.person.contact::
582
- contributor.person.contact.type:: phone
583
- contributor.person.contact.value:: 223322
584
- contributor.role:: author
585
- contributor::
586
- contributor.organization.name:: IETF
587
- contributor.organization.abbreviation:: IETF
588
- contributor.organization.identifier.type:: uri
589
- contributor.organization.identifier.id:: www.ietf.org
590
- contributor.role:: publisher
591
- contributor::
592
- contributor.person.name.language:: en
593
- contributor.person.name.formatted_initials:: A.
594
- contributor.person.name.surname:: Bierman
595
- contributor.person.affiliation.organization.name:: IETF
596
- contributor.person.affiliation.organization.abbreviation:: IETF
597
- contributor.person.affiliation.description.content:: Affiliation description
598
- contributor.person.affiliation.description.language:: en
599
- contributor.person.affiliation.description.script:: Latn
600
- contributor.person.identifier.type:: uri
601
- contributor.person.identifier.id:: www.person.com
602
- contributor.role:: author
603
- relation::
604
- relation.type:: updates
605
- relation.bibitem.title:: Geographic information
606
- relation.bibitem.formattedref:: ISO 19115:2003
607
- relation.bibitem.bib_locality.type:: page
608
- relation.bibitem.bib_locality.reference_from:: 7
609
- relation.bibitem.bib_locality.reference_to:: 10
610
- relation::
611
- relation.type:: updates
612
- relation.bibitem.type:: standard
613
- relation.bibitem.title:: Geographic information
614
- relation.bibitem.formattedref:: ISO 19115:2003/Cor 1:2006
615
- series::
616
- series.type:: main
617
- series.title.type:: original
618
- series.title.content:: ISO/IEC FDIS 10118-3
619
- series.title.language:: en
620
- series.title.script:: Latn
621
- series.title.format:: text/plain
622
- series.place:: Serie's place
623
- series.organization:: Serie's organization
624
- series.abbreviation.content:: ABVR
625
- series.abbreviation.language:: en
626
- series.abbreviation.script:: Latn
627
- series.from:: 2009-02-01
628
- series.to:: 2010-12-20
629
- series.number:: serie1234
630
- series.partnumber:: part5678
631
- series::
632
- series.type:: alt
633
- series.title:: seriestitle
634
- series.formattedref.content:: serieref
635
- series.formattedref.language:: en
636
- series.formattedref.script:: Latn
637
-
638
- INPUT
639
- output = <<~OUTPUT
640
- #{BLANK_HDR}
641
- <sections>
642
- </sections><bibliography><references id="_" obligation="informative" normative="true">
643
- <title>Normative references</title>
644
- #{NORM_REF_BOILERPLATE}
645
- <bibitem id="ISOTC211" type="standard">
646
- <fetched/>
647
- <title type="main" format="text/plain">Geographic information</title>
648
- <title type="subtitle" format="text/plain" language="en" script="Latn">Geographic information subtitle</title>
649
- <uri type="src">https://www.iso.org/standard/53798.html</uri>
650
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:53798:en</uri>
651
- <uri type="rss">https://www.iso.org/contents/data/standard/05/37/53798.detail.rss</uri>
652
- <docidentifier type="ISO">TC211</docidentifier>
653
- <docnumber>211</docnumber>
654
- <date type="issued">
655
- <on>2014</on>
656
- </date>
657
- <date type="published">
658
- <from>2014-04</from>
659
- <to>2014-05</to>
660
- </date>
661
- <date type="accessed">
662
- <on>2015-05-20</on>
663
- </date>
664
- <contributor>
665
- <role type="publisher"><description>Publisher role</description></role>
666
- <organization>
667
- <name>International Organization for Standardization</name>
668
- <subdivision>division</subdivision>
669
- <abbreviation>ISO</abbreviation>
670
- <uri>www.iso.org</uri>
671
- </organization>
672
- </contributor>
673
- <contributor>
674
- <role type="author"/>
675
- <person>
676
- <name>
677
- <completename language="en">A. Bierman</completename>
678
- </name>
679
- <affiliation>
680
- <description format="text/plain">Affiliation description</description>
681
- <organization>
682
- <name>IETF</name>
683
- <abbreviation>IETF</abbreviation>
684
- <identifier type="uri">www.ietf.org</identifier>
685
- </organization>
686
- </affiliation>
687
- <address>
688
- <street>8 Street St</street>
689
- <city>City</city>
690
- <state>State</state>
691
- <country>Country</country>
692
- <postcode>123456</postcode>
693
- </address>
694
- <phone>223322</phone>
695
- </person>
696
- </contributor>
697
- <contributor>
698
- <role type="publisher"/>
699
- <organization>
700
- <name>IETF</name>
701
- <abbreviation>IETF</abbreviation>
702
- <identifier type="uri">www.ietf.org</identifier>
703
- </organization>
704
- </contributor>
705
- <contributor>
706
- <role type="author"/>
707
- <person>
708
- <name>
709
- <formatted-initials>A.</formatted-initials>
710
- <surname>Bierman</surname>
711
- </name>
712
- <affiliation>
713
- <description language="en" script="Latn">Affiliation description</description>
714
- <organization>
715
- <name>IETF</name>
716
- <abbreviation>IETF</abbreviation>
717
- </organization>
718
- </affiliation>
719
- <identifier type="uri">www.person.com</identifier>
720
- </person>
721
- </contributor>
722
- <edition>1</edition>
723
- <version>
724
- <revision-date>2019-04-01</revision-date>
725
- <draft>draft</draft>
726
- </version>
727
- <note type="bibnote">Mark set a major league
728
- home run record in 1998.</note>
729
- <language>en</language>
730
- <language>fr</language>
731
- <script>Latn</script>
732
- <abstract format="text/plain">ISO 19115-1:2014 defines the schema required for …​</abstract>
733
- <abstract format="text/plain" language="fr" script="Latn">L’ISO 19115-1:2014 définit le schéma requis pour …​</abstract>
734
- <status>
735
- <stage>stage</stage>
736
- <substage>substage</substage>
737
- <iteration>iteration</iteration>
738
- </status>
739
- <copyright>
740
- <from>2014</from>
741
- <to>#{Time.now.year}</to>
742
- <owner>
743
- <organization>
744
- <name>International Organization for Standardization</name>
745
- <abbreviation>ISO</abbreviation>
746
- <uri>www.iso.org</uri>
747
- </organization>
748
- </owner>
749
- </copyright>
750
- <relation type="updates">
751
- <bibitem>
752
- <title type='title-main' format='text/plain'>Geographic information</title>
753
- <title type='main' format='text/plain'>Geographic information</title>
754
- </bibitem>
755
- </relation>
756
- <relation type="updates">
757
- <bibitem type="standard">
758
- <title type='title-main' format='text/plain'>Geographic information</title>
759
- <title type='main' format='text/plain'>Geographic information</title>
760
- </bibitem>
761
- </relation>
762
- <series type="main">
763
- <title type="original" format="text/plain" language="en" script="Latn">ISO/IEC FDIS 10118-3</title>
764
- <place>Serie’s place</place>
765
- <organization>Serie’s organization</organization>
766
- <abbreviation language="en" script="Latn">ABVR</abbreviation>
767
- <from>2009-02-01</from>
768
- <to>2010-12-20</to>
769
- <number>serie1234</number>
770
- <partnumber>part5678</partnumber>
771
- </series>
772
- <series type="alt">
773
- <formattedref format="text/plain" language="en" script="Latn">serieref</formattedref>
774
- <title format='text/plain'>seriestitle</title>
775
- </series>
776
- <medium>
777
- <form>medium form</form>
778
- <size>medium size</size>
779
- <scale>medium scale</scale>
780
- </medium>
781
- <place>bib place</place>
782
- <extent>
783
- <locality type="section">
784
- <referenceFrom>7</referenceFrom>
785
- </locality>
786
- </extent>
787
- <accesslocation>accesslocation1</accesslocation>
788
- <accesslocation>accesslocation2</accesslocation>
789
- <classification type="type">value</classification>
790
- <validity>
791
- <validityBegins>2010-10-10 12:21</validityBegins>
792
- <validityEnds>2011-02-03 18:30</validityEnds>
793
- </validity>
794
- </bibitem></references></bibliography>
795
- </standard-document>
796
- OUTPUT
797
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
798
- .to be_equivalent_to xmlpp(output)
799
- end
800
-
801
- it "processes mix of dl and default references" do
802
- input = <<~INPUT
803
- #{ASCIIDOC_BLANK_HDR}
804
-
805
- == Section
806
-
807
- === Subsection
808
-
809
- [bibliography]
810
- === Normative References
811
-
812
- * [[[A, B]]], Title
813
-
814
- [%bibitem]
815
- ==== Standard
816
- id:: iso123
817
- docid::
818
- type::: ISO
819
- id::: ISO 123
820
- type:: standard
821
- contributor::
822
- role::: publisher
823
- organization:::
824
- name:::: ISO
825
- contributor::
826
- role::: author
827
- person:::
828
- name::::
829
- +
830
- --
831
- completename::
832
- language::: en
833
- content::: Fred
834
- --
835
- contributor::
836
- role::: author
837
- person:::
838
- name::::
839
- completename::::: Jack
840
-
841
- INPUT
842
- output = <<~OUTPUT
843
- #{BLANK_HDR}
844
- <sections>
845
- <clause id='_' inline-header='false' obligation='normative'>
846
- <title>Section</title>
847
- <clause id='_' inline-header='false' obligation='normative'>
848
- <title>Subsection</title>
849
- </clause>
850
- <references id='_' obligation='informative' normative="true">
851
- <title>Normative References</title>
852
- <bibitem id='A'>
853
- <formattedref format='application/x-isodoc+xml'>Title</formattedref>
854
- <docidentifier>B</docidentifier>
855
- </bibitem>
856
- <bibitem id='iso123' type='standard'>
857
- <title type='title-main' format='text/plain'>Standard</title>
858
- <title type='main' format='text/plain'>Standard</title>
859
- <docidentifier type='ISO'>ISO 123</docidentifier>
860
- <contributor>
861
- <role type='publisher'/>
862
- <organization>
863
- <name>ISO</name>
864
- </organization>
865
- </contributor>
866
- <contributor>
867
- <role type='author'/>
868
- <person>
869
- <name>
870
- <completename language='en'>Fred</completename>
871
- </name>
872
- </person>
873
- </contributor>
874
- <contributor>
875
- <role type='author'/>
876
- <person>
877
- <name>
878
- <completename>Jack</completename>
879
- </name>
880
- </person>
881
- </contributor>
882
- </bibitem>
883
- </references>
884
- </clause>
885
- </sections>
886
- </standard-document>
887
- OUTPUT
888
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
889
- .to be_equivalent_to xmlpp(output)
890
- end
891
-
892
- it "processes microformatting of formatted references" do
893
- input = <<~INPUT
894
- #{ASCIIDOC_BLANK_HDR}
895
-
896
- [bibliography]
897
- === Normative References
898
-
899
- * [[[A, B]]], span:surname[Wozniak], span:initials[S.] & span:givenname[Steve] span:surname[Jobs]. span:date.issued[1991]. span:date[1996]. span:title[_Work_]. span:in_surname.editor[Gates], span:in_initials.editor[W. H] & span:in_organization[UNICEF], span:in_title[Collected Essays]. _span:series[Bibliographers Anonymous]_. span:docid.ISO[ISO 1234]. span:pubplace[Geneva]: span:publisher[International Standardization Organization]. span:uri.citation[http://www.example.com]. span:volume[4] span:issue[2–3] span:pages[12-13] span:pages[19]. span:type[inbook]
900
- INPUT
901
- output = <<~OUTPUT
902
- #{BLANK_HDR}
903
- <sections> </sections>
904
- <bibliography>
905
- <references id='_' normative='true' obligation='informative'>
906
- <title>Normative references</title>
907
- <p id='_'>
908
- The following documents are referred to in the text in such a way that
909
- some or all of their content constitutes requirements of this document.
910
- For dated references, only the edition cited applies. For undated
911
- references, the latest edition of the referenced document (including any
912
- amendments) applies.
913
- </p>
914
- <bibitem id='A' type='inbook'>
915
- <formattedref format='application/x-isodoc+xml'>
916
- Wozniak, S. &amp; Steve Jobs. 1991. 1996.
917
- <em>Work</em>
918
- . Gates, W. H &amp; UNICEF, Collected Essays.
919
- <em>Bibliographers Anonymous</em>
920
- . ISO 1234. Geneva: International Standardization Organization.
921
- <link target='http://www.example.com'/>
922
- . 4 2–3 12-13 19.
923
- </formattedref>
924
- <title>
925
- <em>Work</em>
926
- </title>
927
- <uri type='citation'>
928
- <link target='http://www.example.com'/>
929
- </uri>
930
- <docidentifier>B</docidentifier>
931
- <docidentifier type='ISO'>ISO 1234</docidentifier>
932
- <date type='issued'>1991</date>
933
- <date type='published'>1996</date>
934
- <contributor>
935
- <role type='author'/>
936
- <person>
937
- <name>
938
- <formatted-initials>S.</formatted-initials>
939
- <surname>Wozniak</surname>
940
- </name>
941
- </person>
942
- </contributor>
943
- <contributor>
944
- <role type='author'/>
945
- <person>
946
- <name>
947
- <forename>Steve</forename>
948
- <surname>Jobs</surname>
949
- </name>
950
- </person>
951
- </contributor>
952
- <contributor>
953
- <role type='publisher'/>
954
- <organization>
955
- <name>International Standardization Organization</name>
956
- </organization>
957
- </contributor>
958
- <place>Geneva</place>
959
- <relation type='includedIn'>
960
- <bibitem type='book'>
961
- <title>Collected Essays</title>
962
- <contributor>
963
- <role type='editor'/>
964
- <person>
965
- <name>
966
- <formatted-initials>W. H</formatted-initials>
967
- <surname>Gates</surname>
968
- </name>
969
- </person>
970
- </contributor>
971
- <contributor>
972
- <role type='author'/>
973
- <organization>
974
- <name>UNICEF</name>
975
- </organization>
976
- </contributor>
977
- <series>
978
- <title>Bibliographers Anonymous</title>
979
- </series>
980
- </bibitem>
981
- </relation>
982
- <extent type='volume'>
983
- <locality>
984
- <referenceFrom>4</referenceFrom>
985
- </locality>
986
- </extent>
987
- <extent type='issue'>
988
- <locality>
989
- <referenceFrom>2</referenceFrom>
990
- <referenceTo>3</referenceTo>
991
- </locality>
992
- </extent>
993
- <extent type='page'>
994
- <locality>
995
- <referenceFrom>12</referenceFrom>
996
- <referenceTo>13</referenceTo>
997
- </locality>
998
- </extent>
999
- <extent type='page'>
1000
- <locality>
1001
- <referenceFrom>19</referenceFrom>
1002
- </locality>
1003
- </extent>
1004
- </bibitem>
1005
- </references>
1006
- </bibliography>
1007
- </standard-document>
1008
- OUTPUT
1009
- expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
1010
- .to be_equivalent_to xmlpp(output)
1011
- end
1012
- end