metanorma-standoc 1.4.2 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +0 -7
  3. data/.github/workflows/ubuntu.yml +6 -11
  4. data/.github/workflows/windows.yml +0 -8
  5. data/.rubocop.yml +1 -1
  6. data/Rakefile +2 -0
  7. data/lib/asciidoctor/standoc/base.rb +15 -21
  8. data/lib/asciidoctor/standoc/cleanup.rb +1 -0
  9. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +11 -24
  10. data/lib/asciidoctor/standoc/cleanup_inline.rb +57 -1
  11. data/lib/asciidoctor/standoc/cleanup_ref.rb +13 -8
  12. data/lib/asciidoctor/standoc/cleanup_section.rb +90 -6
  13. data/lib/asciidoctor/standoc/cleanup_terms.rb +12 -2
  14. data/lib/asciidoctor/standoc/converter.rb +16 -2
  15. data/lib/asciidoctor/standoc/front.rb +0 -12
  16. data/lib/asciidoctor/standoc/front_contributor.rb +28 -3
  17. data/lib/asciidoctor/standoc/inline.rb +1 -1
  18. data/lib/asciidoctor/standoc/isodoc.rng +16 -7
  19. data/lib/asciidoctor/standoc/log.rb +10 -1
  20. data/lib/asciidoctor/standoc/ref.rb +24 -25
  21. data/lib/asciidoctor/standoc/section.rb +31 -27
  22. data/lib/asciidoctor/standoc/utils.rb +18 -1
  23. data/lib/asciidoctor/standoc/validate.rb +30 -18
  24. data/lib/asciidoctor/standoc/validate_section.rb +1 -1
  25. data/lib/metanorma/standoc/processor.rb +0 -4
  26. data/lib/metanorma/standoc/version.rb +1 -1
  27. data/metanorma-standoc.gemspec +3 -2
  28. data/spec/asciidoctor-standoc/base_spec.rb +21 -6
  29. data/spec/asciidoctor-standoc/blocks_spec.rb +21 -7
  30. data/spec/asciidoctor-standoc/cleanup_spec.rb +1337 -23
  31. data/spec/asciidoctor-standoc/inline_spec.rb +7 -4
  32. data/spec/asciidoctor-standoc/macros_spec.rb +41 -23
  33. data/spec/asciidoctor-standoc/refs_dl_spec.rb +9 -7
  34. data/spec/asciidoctor-standoc/refs_spec.rb +16 -16
  35. data/spec/asciidoctor-standoc/section_spec.rb +42 -38
  36. data/spec/asciidoctor-standoc/table_spec.rb +7 -1
  37. data/spec/asciidoctor-standoc/validate_spec.rb +40 -0
  38. data/spec/assets/{html.css → html.scss} +0 -0
  39. data/spec/assets/i18n.yaml +17 -2
  40. data/spec/assets/{word.css → word.scss} +0 -0
  41. data/spec/metanorma/processor_spec.rb +1 -2
  42. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +66 -66
  43. data/spec/vcr_cassettes/isobib_get_123.yml +16 -16
  44. data/spec/vcr_cassettes/isobib_get_123_1.yml +33 -33
  45. data/spec/vcr_cassettes/isobib_get_123_2001.yml +19 -19
  46. data/spec/vcr_cassettes/isobib_get_124.yml +19 -19
  47. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +8 -8
  48. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +28 -28
  49. metadata +22 -12
  50. data/lib/asciidoctor-yaml/i18n-en.yaml +0 -20
  51. data/lib/asciidoctor-yaml/i18n-fr.yaml +0 -13
  52. data/lib/asciidoctor-yaml/i18n-zh-Hans.yaml +0 -15
  53. data/lib/asciidoctor/standoc/i18n.rb +0 -39
@@ -88,7 +88,7 @@ text, including <strong><em>nest</em></strong>ed markup.</p>
88
88
  <sections>
89
89
  <p id="_">
90
90
  <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>&lt;</mo><mn>1</mn></math></stem><br/>
91
- <stem type="MathML"> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mrow> <mi>n</mi> <mo>&lt;</mo> <mn>1</mn> </mrow> </math></stem>
91
+ <stem type="MathML"> <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>n</mi> <mo>&lt;</mo> <mn>1</mn> </mrow> </math></stem>
92
92
  </p>
93
93
  </sections>
94
94
  </standard-document>
@@ -106,7 +106,7 @@ text, including <strong><em>nest</em></strong>ed markup.</p>
106
106
  <sections>
107
107
  <p id="_">
108
108
  <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>&lt;</mo><mn>1</mn></math></stem>
109
- <stem type="MathML"> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mrow> <mi>n</mi> <mo>&lt;</mo> <mn>1</mn> </mrow> </math></stem>
109
+ <stem type="MathML"> <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>n</mi> <mo>&lt;</mo> <mn>1</mn> </mrow> </math></stem>
110
110
  </p>
111
111
  </sections>
112
112
  </standard-document>
@@ -162,13 +162,16 @@ text, including <strong><em>nest</em></strong>ed markup.</p>
162
162
  http://example.com[]
163
163
  http://example.com[Link]
164
164
  http://example.com[Link,title="tip"]
165
+ link:++https://asciidoctor.org/now_this__link_works.html++[]
165
166
  INPUT
166
167
  #{BLANK_HDR}
167
168
  <sections>
168
169
  <p id="_">mailto:fred@example.com
169
170
  <link target="http://example.com"/>
170
171
  <link target="http://example.com">Link</link>
171
- <link target="http://example.com" alt="tip">Link</link></p>
172
+ <link target="http://example.com" alt="tip">Link</link>
173
+ <link target='https://asciidoctor.org/now_this__link_works.html'/>
174
+ </p>
172
175
  </sections>
173
176
  </standard-document>
174
177
  OUTPUT
@@ -232,7 +235,7 @@ text, including <strong><em>nest</em></strong>ed markup.</p>
232
235
  <sections>
233
236
 
234
237
  </sections><bibliography><references id="_" obligation="informative" normative="true">
235
- <title>Normative References</title>
238
+ <title>Normative references</title>
236
239
  <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
237
240
  <bibitem id="ISO712">
238
241
  <formattedref format="application/x-isodoc+xml">Reference</formattedref>
@@ -293,29 +293,47 @@ OUTPUT
293
293
  <formula id='_'>
294
294
  <stem type='MathML'>
295
295
  <math xmlns='http://www.w3.org/1998/Math/MathML'>
296
- <mover>
297
- <mi>X</mi>
298
- <mo>¯</mo>
299
- </mover>
300
- <mo>′</mo>
301
- <mo>=</mo>
302
- <mfrac>
303
- <mn>1</mn>
304
- <mi>v</mi>
305
- </mfrac>
306
- <munderover>
307
- <mo>∑</mo>
308
- <mrow>
309
- <mi>i</mi>
310
- <mo>=</mo>
311
- <mn>1</mn>
312
- </mrow>
313
- <mi>v</mi>
314
- </munderover>
315
- <msub>
316
- <mi>t</mi>
317
- <mi>i</mi>
318
- </msub>
296
+ <mover>
297
+ <mrow>
298
+ <mi>X</mi>
299
+ </mrow>
300
+ <mrow>
301
+ <mo>¯</mo>
302
+ </mrow>
303
+ </mover>
304
+ <mo>′</mo>
305
+ <mo>=</mo>
306
+ <mfrac>
307
+ <mrow>
308
+ <mn>1</mn>
309
+ </mrow>
310
+ <mrow>
311
+ <mi>v</mi>
312
+ </mrow>
313
+ </mfrac>
314
+ <munderover>
315
+ <mrow>
316
+ <mo>∑</mo>
317
+ </mrow>
318
+ <mrow>
319
+ <mrow>
320
+ <mi>i</mi>
321
+ <mo>=</mo>
322
+ <mn>1</mn>
323
+ </mrow>
324
+ </mrow>
325
+ <mrow>
326
+ <mi>v</mi>
327
+ </mrow>
328
+ </munderover>
329
+ <msub>
330
+ <mrow>
331
+ <mi>t</mi>
332
+ </mrow>
333
+ <mrow>
334
+ <mi>i</mi>
335
+ </mrow>
336
+ </msub>
319
337
  </math>
320
338
  </stem>
321
339
  </formula>
@@ -39,7 +39,7 @@ RSpec.describe Asciidoctor::Standoc do
39
39
  #{BLANK_HDR}
40
40
  <sections>
41
41
  </sections><bibliography><references id="_" obligation="informative" normative="true">
42
- <title>Normative References</title>
42
+ <title>Normative references</title>
43
43
  #{NORM_REF_BOILERPLATE}
44
44
  <bibitem id="iso123" type="standard">
45
45
  <fetched>#{Date.today}</fetched>
@@ -77,9 +77,9 @@ it "processes complex dl reference" do
77
77
  [bibliography]
78
78
  == Normative References
79
79
 
80
- [[ISO/TC211]]
80
+ [[ISOTC211]]
81
81
  [%bibitem]
82
- === {blank}
82
+ === Other Title
83
83
  fetched:: 2019-06-30
84
84
  title::
85
85
  type::: main
@@ -289,12 +289,14 @@ formattedref::
289
289
  #{BLANK_HDR}
290
290
  <sections>
291
291
  </sections><bibliography><references id="_" obligation="informative" normative="true">
292
- <title>Normative References</title>
292
+ <title>Normative references</title>
293
293
  #{NORM_REF_BOILERPLATE}
294
294
  <bibitem id="TC211" type="standard">
295
295
  <fetched>2019-06-30</fetched>
296
296
  <title type="main" format="text/plain">Geographic information</title>
297
297
  <title type="subtitle" format="text/plain" language="en" script="Latn">Geographic information subtitle</title>
298
+ <title type='title-main' format='text/plain'>Other Title</title>
299
+ <title type='main' format='text/plain'>Other Title</title>
298
300
  <uri type="src">https://www.iso.org/standard/53798.html</uri>
299
301
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:53798:en</uri>
300
302
  <uri type="rss">https://www.iso.org/contents/data/standard/05/37/53798.detail.rss</uri>
@@ -446,7 +448,7 @@ OUTPUT
446
448
  [bibliography]
447
449
  == Normative References
448
450
 
449
- [[ISO/TC211]]
451
+ [[ISOTC211]]
450
452
  [%bibitem]
451
453
  === {blank}
452
454
  fetched:: 2019-06-30
@@ -607,7 +609,7 @@ series.formattedref.script:: Latn
607
609
  #{BLANK_HDR}
608
610
  <sections>
609
611
  </sections><bibliography><references id="_" obligation="informative" normative="true">
610
- <title>Normative References</title>
612
+ <title>Normative references</title>
611
613
  #{NORM_REF_BOILERPLATE}
612
614
  <bibitem id="TC211" type="standard">
613
615
  <fetched>2019-06-30</fetched>
@@ -807,7 +809,7 @@ OUTPUT
807
809
  <title>Subsection</title>
808
810
  </clause>
809
811
  <references id='_' obligation='informative' normative="true">
810
- <title>Normative References</title>
812
+ <title>Normative references</title>
811
813
  <bibitem id='A'>
812
814
  <formattedref format='application/x-isodoc+xml'>Title</formattedref>
813
815
  <docidentifier>B</docidentifier>
@@ -15,7 +15,7 @@ RSpec.describe Asciidoctor::Standoc do
15
15
  #{BLANK_HDR}
16
16
  <sections>
17
17
  </sections><bibliography><references id="_" obligation="informative" normative="true">
18
- <title>Normative References</title>
18
+ <title>Normative references</title>
19
19
  #{NORM_REF_BOILERPLATE}
20
20
  <bibitem id="iso123" type="standard">
21
21
  <title format="text/plain">Standard</title>
@@ -58,7 +58,7 @@ RSpec.describe Asciidoctor::Standoc do
58
58
  #{BLANK_HDR}
59
59
  <sections>
60
60
  </sections><bibliography><references id="_" obligation="informative" normative="true">
61
- <title>Normative References</title>
61
+ <title>Normative references</title>
62
62
  #{NORM_REF_BOILERPLATE}
63
63
  <bibitem id="iso123" type="standard">
64
64
  <title format="text/plain">Standard</title>
@@ -125,7 +125,7 @@ RSpec.describe Asciidoctor::Standoc do
125
125
  </foreword>
126
126
  </preface>
127
127
  <sections>
128
- </sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative References</title>
128
+ </sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative references</title>
129
129
  #{NORM_REF_BOILERPLATE}
130
130
  <bibitem type="standard" id="iso123">
131
131
  <uri type="src">https://www.iso.org/standard/23281.html</uri>
@@ -236,7 +236,7 @@ RSpec.describe Asciidoctor::Standoc do
236
236
  #{BLANK_HDR}
237
237
  <sections>
238
238
 
239
- </sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative References</title>
239
+ </sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative references</title>
240
240
  #{NORM_REF_BOILERPLATE}
241
241
  <bibitem id='iso123' type='standard'>
242
242
  <fetched>#{Date.today}</fetched>
@@ -470,7 +470,7 @@ RSpec.describe Asciidoctor::Standoc do
470
470
  #{BLANK_HDR}
471
471
  <sections>
472
472
  </sections><bibliography><references id="_" obligation="informative" normative="true">
473
- <title>Normative References</title>
473
+ <title>Normative references</title>
474
474
  #{NORM_REF_BOILERPLATE}
475
475
  <bibitem id="iso123" type="standard">
476
476
  <title format="text/plain">Standard</title>
@@ -519,7 +519,7 @@ RSpec.describe Asciidoctor::Standoc do
519
519
  <sections>
520
520
 
521
521
  </sections><bibliography><references id="_" obligation="informative" normative="true">
522
- <title>Normative References</title>
522
+ <title>Normative references</title>
523
523
  #{NORM_REF_BOILERPLATE}
524
524
  <bibitem type="standard" id="iso123">
525
525
  <fetched>#{Date.today}</fetched>
@@ -742,7 +742,7 @@ RSpec.describe Asciidoctor::Standoc do
742
742
  <sections>
743
743
 
744
744
  </sections><bibliography><references id="_" obligation="informative" normative="true">
745
- <title>Normative References</title>
745
+ <title>Normative references</title>
746
746
  #{NORM_REF_BOILERPLATE}
747
747
  <bibitem id='iso123'>
748
748
  <formattedref format='application/x-isodoc+xml'>
@@ -821,7 +821,7 @@ OUTPUT
821
821
  #{BLANK_HDR}
822
822
  <sections>
823
823
  </sections><bibliography><references id="_" obligation="informative" normative="true">
824
- <title>Normative References</title>
824
+ <title>Normative references</title>
825
825
  #{NORM_REF_BOILERPLATE}
826
826
  <bibitem id="iso123" type="standard">
827
827
  <title format="text/plain">Standard</title>
@@ -902,7 +902,7 @@ OUTPUT
902
902
  #{BLANK_HDR}
903
903
  <sections>
904
904
  </sections><bibliography><references id="_" obligation="informative" normative="true">
905
- <title>Normative References</title>
905
+ <title>Normative references</title>
906
906
  #{NORM_REF_BOILERPLATE}
907
907
  <bibitem id="iso123" type="standard">
908
908
  <title format="text/plain">Standard</title>
@@ -969,7 +969,7 @@ OUTPUT
969
969
  </p>
970
970
  </clause>
971
971
  </sections><bibliography><references id="_" obligation="informative" normative="true">
972
- <title>Normative References</title>
972
+ <title>Normative references</title>
973
973
  #{NORM_REF_BOILERPLATE}
974
974
  <bibitem id="iso123" type="standard">
975
975
  <fetched>#{Date.today}</fetched>
@@ -1110,7 +1110,7 @@ OUTPUT
1110
1110
  <sections>
1111
1111
 
1112
1112
  </sections><bibliography><references id="_" obligation="informative" normative="true">
1113
- <title>Normative References</title>
1113
+ <title>Normative references</title>
1114
1114
  #{NORM_REF_BOILERPLATE}
1115
1115
  <bibitem id="iso123">
1116
1116
  <formattedref format="application/x-isodoc+xml">
@@ -1214,7 +1214,7 @@ OUTPUT
1214
1214
  <sections>
1215
1215
 
1216
1216
  </sections><bibliography><references id="_" obligation="informative" normative="true">
1217
- <title>Normative References</title>
1217
+ <title>Normative references</title>
1218
1218
  #{NORM_REF_BOILERPLATE}
1219
1219
  <bibitem id="iso123" type="standard">
1220
1220
  <title format="text/plain">Standard</title>
@@ -1260,7 +1260,7 @@ OUTPUT
1260
1260
  INPUT
1261
1261
  #{BLANK_HDR}
1262
1262
  <sections>
1263
- <clause id='_' inline-header='false' obligation='normative'>
1263
+ <clause id='_' inline-header='false' obligation='normative' type="scope">
1264
1264
  <title>Scope</title>
1265
1265
  <p id='_'>
1266
1266
  <eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
@@ -1278,7 +1278,7 @@ OUTPUT
1278
1278
  </sections>
1279
1279
  <bibliography>
1280
1280
  <references id='_' normative='true' obligation='informative'>
1281
- <title>Normative References</title>
1281
+ <title>Normative references</title>
1282
1282
  <p id='_'>
1283
1283
  The following documents are referred to in the text in such a way that
1284
1284
  some or all of their content constitutes requirements of this document.
@@ -1321,7 +1321,7 @@ OUTPUT
1321
1321
  INPUT
1322
1322
  #{BLANK_HDR}
1323
1323
  <sections>
1324
- <clause id='_' inline-header='false' obligation='normative'>
1324
+ <clause id='_' inline-header='false' obligation='normative' type="scope">
1325
1325
  <title>Scope</title>
1326
1326
  <p id='_'>
1327
1327
  <eref type='inline' bibitemid='iso123' citeas='ISO 123 (all parts)'/>
@@ -1360,7 +1360,7 @@ OUTPUT
1360
1360
  </sections>
1361
1361
  <bibliography>
1362
1362
  <references id='_' normative='true' obligation='informative'>
1363
- <title>Normative References</title>
1363
+ <title>Normative references</title>
1364
1364
  <p id='_'>
1365
1365
  The following documents are referred to in the text in such a way that
1366
1366
  some or all of their content constitutes requirements of this document.
@@ -59,7 +59,7 @@ RSpec.describe Asciidoctor::Standoc do
59
59
  [.nonterm]
60
60
  ==== General
61
61
 
62
- ==== Symbols 1
62
+ ==== Symbols
63
63
 
64
64
  == Abbreviated Terms
65
65
 
@@ -82,6 +82,7 @@ RSpec.describe Asciidoctor::Standoc do
82
82
  INPUT
83
83
  #{BLANK_HDR.sub(/<status>/, "<abstract> <p>Text</p> </abstract><status>")}
84
84
  <preface><abstract id="_">
85
+ <title>Abstract</title>
85
86
  <p id="_">Text</p>
86
87
  </abstract><foreword id='_' obligation="informative">
87
88
  <title>Foreword</title>
@@ -101,7 +102,7 @@ RSpec.describe Asciidoctor::Standoc do
101
102
  </preface><sections>
102
103
 
103
104
 
104
- <clause id="_" inline-header="false" obligation="normative">
105
+ <clause id="_" inline-header="false" obligation="normative" type="scope">
105
106
  <title>Scope</title>
106
107
  <p id="_">Text</p>
107
108
  </clause>
@@ -143,14 +144,14 @@ RSpec.describe Asciidoctor::Standoc do
143
144
  <preferred>Term2</preferred>
144
145
  </term>
145
146
  </terms>
146
- <definitions id="_"><title>Symbols and Abbreviated Terms</title><clause id="_" inline-header="false" obligation="normative">
147
+ <definitions id="_" obligation="normative"><title>Symbols and abbreviated terms</title><clause id="_" inline-header="false" obligation="normative">
147
148
  <title>General</title>
148
149
  </clause>
149
- <definitions id="_">
150
- <title>Symbols 1</title>
150
+ <definitions id="_" obligation="normative" type="symbols">
151
+ <title>Symbols</title>
151
152
  </definitions></definitions></clause>
152
- <definitions id="_">
153
- <title>Abbreviated Terms</title>
153
+ <definitions id="_" obligation="normative" type="abbreviated_terms">
154
+ <title>Abbreviated terms</title>
154
155
  </definitions>
155
156
  <clause id="_" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="_" inline-header="false" obligation="normative">
156
157
  <title>Introduction</title>
@@ -168,7 +169,7 @@ RSpec.describe Asciidoctor::Standoc do
168
169
  <title>Annex A.1</title>
169
170
  </clause>
170
171
  </annex><bibliography><references id="_" obligation="informative" normative="true">
171
- <title>Normative References</title>
172
+ <title>Normative references</title>
172
173
  <p id="_">There are no normative references in this document.</p>
173
174
  </references><clause id="_" obligation="informative">
174
175
  <title>Bibliography</title>
@@ -256,7 +257,7 @@ RSpec.describe Asciidoctor::Standoc do
256
257
  [language=en,script=Latn]
257
258
  ==== General
258
259
 
259
- ==== Symbols 1
260
+ ==== Symbols
260
261
 
261
262
  [language=en,script=Latn]
262
263
  == Abbreviated Terms
@@ -287,6 +288,7 @@ RSpec.describe Asciidoctor::Standoc do
287
288
  INPUT
288
289
  #{BLANK_HDR.sub(/<status>/, "<abstract> <p>Text</p> </abstract><status>")}
289
290
  <preface><abstract id="_" language="en" script="Latn">
291
+ <title>Abstract</title>
290
292
  <p id="_">Text</p>
291
293
  </abstract><foreword id='_' language='en' script='Latn' obligation='informative'>
292
294
  <title>Foreword</title>
@@ -306,7 +308,7 @@ RSpec.describe Asciidoctor::Standoc do
306
308
  </preface><sections>
307
309
 
308
310
 
309
- <clause id="_" language="en" script="Latn" inline-header="false" obligation="normative">
311
+ <clause id="_" language="en" script="Latn" inline-header="false" obligation="normative" type="scope">
310
312
  <title>Scope</title>
311
313
  <p id="_">Text</p>
312
314
  </clause>
@@ -348,14 +350,14 @@ RSpec.describe Asciidoctor::Standoc do
348
350
  <preferred>Term2</preferred>
349
351
  </term>
350
352
  </terms>
351
- <definitions id="_" language="en" script="Latn"><title>Symbols and Abbreviated Terms</title><clause id="_" language="en" script="Latn" inline-header="false" obligation="normative">
353
+ <definitions id="_" language="en" script="Latn" obligation="normative"><title>Symbols and abbreviated terms</title><clause id="_" language="en" script="Latn" inline-header="false" obligation="normative">
352
354
  <title>General</title>
353
355
  </clause>
354
- <definitions id="_">
355
- <title>Symbols 1</title>
356
+ <definitions id="_" obligation="normative" type="symbols">
357
+ <title>Symbols</title>
356
358
  </definitions></definitions></clause>
357
- <definitions id="_" language="en" script="Latn">
358
- <title>Abbreviated Terms</title>
359
+ <definitions id="_" language="en" script="Latn" obligation="normative" type="abbreviated_terms">
360
+ <title>Abbreviated terms</title>
359
361
  </definitions>
360
362
  <clause id="_" language="en" script="Latn" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="_" language="en" script="Latn" inline-header="false" obligation="normative">
361
363
  <title>Introduction</title>
@@ -373,7 +375,7 @@ RSpec.describe Asciidoctor::Standoc do
373
375
  <title>Annex A.1</title>
374
376
  </clause>
375
377
  </annex><bibliography><references id="_" language="en" script="Latn" obligation="informative" normative="true">
376
- <title>Normative References</title>
378
+ <title>Normative references</title>
377
379
  <p id="_">There are no normative references in this document.</p>
378
380
  </references><clause id="_" language="en" script="Latn" obligation="informative">
379
381
  <title>Bibliography</title>
@@ -420,10 +422,10 @@ RSpec.describe Asciidoctor::Standoc do
420
422
 
421
423
  ==== Term2
422
424
 
423
- [heading=symbols and abbreviated terms]
425
+ [heading=symbols]
424
426
  === Σύμβολα και Συντομογραφίες
425
427
 
426
- [heading=symbols and abbreviated terms]
428
+ [heading=abbreviated terms]
427
429
  == Σύμβολα και Συντομογραφίες
428
430
 
429
431
  == Clause 4
@@ -445,6 +447,7 @@ RSpec.describe Asciidoctor::Standoc do
445
447
  #{BLANK_HDR.sub(/<status>/, "<abstract> <p>Text</p> </abstract><status>")}
446
448
  <preface>
447
449
  <abstract id='_'>
450
+ <title>Abstract</title>
448
451
  <p id='_'>Text</p>
449
452
  </abstract>
450
453
  <foreword id='_' obligation='informative'>
@@ -458,7 +461,7 @@ RSpec.describe Asciidoctor::Standoc do
458
461
  </clause>
459
462
  </introduction>
460
463
  <acknowledgements id='_' obligation='informative'>
461
- <title>Ευχαριστίες</title>
464
+ <title>Acknowledgements</title>
462
465
  </acknowledgements>
463
466
  </preface>
464
467
  <sections>
@@ -470,7 +473,7 @@ RSpec.describe Asciidoctor::Standoc do
470
473
  </term>
471
474
  </terms>
472
475
  <clause id='_' obligation='normative'>
473
- <title>Terms and definitions</title>
476
+ <title>Terms, definitions and symbols</title>
474
477
  <p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
475
478
  <terms id='_' obligation='normative'>
476
479
  <title>Normal Terms</title>
@@ -478,12 +481,12 @@ RSpec.describe Asciidoctor::Standoc do
478
481
  <preferred>Term2</preferred>
479
482
  </term>
480
483
  </terms>
481
- <definitions id='_'>
482
- <title>Σύμβολα και Συντομογραφίες</title>
484
+ <definitions id='_' obligation="normative" type="symbols">
485
+ <title>Symbols</title>
483
486
  </definitions>
484
487
  </clause>
485
- <definitions id='_'>
486
- <title>Σύμβολα και Συντομογραφίες</title>
488
+ <definitions id='_' obligation="normative" type="abbreviated_terms">
489
+ <title>Abbreviated terms</title>
487
490
  </definitions>
488
491
  <clause id='_' inline-header='false' obligation='normative'>
489
492
  <title>Clause 4</title>
@@ -503,7 +506,7 @@ RSpec.describe Asciidoctor::Standoc do
503
506
  </annex>
504
507
  <bibliography>
505
508
  <references id='_' obligation='informative' normative="true">
506
- <title>Normative References</title>
509
+ <title>Normative references</title>
507
510
  <p id="_">There are no normative references in this document.</p>
508
511
  </references>
509
512
  <clause id='_' obligation='informative'>
@@ -537,7 +540,7 @@ RSpec.describe Asciidoctor::Standoc do
537
540
  <term id='_'>
538
541
  <preferred>Term</preferred>
539
542
  </term>
540
- <definitions id='_'>
543
+ <definitions id='_' obligation="normative" type="symbols">
541
544
  <title>Symbols</title>
542
545
  </definitions>
543
546
  </terms>
@@ -554,6 +557,7 @@ RSpec.describe Asciidoctor::Standoc do
554
557
 
555
558
  === Term
556
559
 
560
+ [heading="abbreviated terms"]
557
561
  === Symbols
558
562
 
559
563
  INPUT
@@ -565,8 +569,8 @@ RSpec.describe Asciidoctor::Standoc do
565
569
  <term id='_'>
566
570
  <preferred>Term</preferred>
567
571
  </term>
568
- <definitions id='_'>
569
- <title>Symbols</title>
572
+ <definitions id='_' obligation="normative" type="abbreviated_terms">
573
+ <title>Abbreviated terms</title>
570
574
  </definitions>
571
575
  </terms>
572
576
  </sections>
@@ -671,12 +675,12 @@ RSpec.describe Asciidoctor::Standoc do
671
675
  #{BLANK_HDR}
672
676
  <sections>
673
677
  <terms id='_' obligation='normative'>
674
- <title>Terms, definitions, symbols and abbreviated terms</title>
678
+ <title>Terms, definitions and symbols</title>
675
679
  <p id='_'>No terms and definitions are listed in this document.</p>
676
680
  <clause id='_' inline-header='false' obligation='normative'>
677
681
  <title>Terms and definitions</title>
678
682
  </clause>
679
- <definitions id='_'>
683
+ <definitions id='_' obligation="normative" type="symbols">
680
684
  <title>Symbols</title>
681
685
  </definitions>
682
686
  </terms>
@@ -787,11 +791,11 @@ RSpec.describe Asciidoctor::Standoc do
787
791
  #{BLANK_HDR.sub(%r{<language>en</language>}, "<language>fr</language>")}
788
792
  <termdocsource bibitemid="iso1234"/><termdocsource bibitemid="iso5678"/>
789
793
  <preface><foreword id='_' obligation="informative">
790
- <title>Foreword</title>
794
+ <title>Avant-propos</title>
791
795
  <p id="_">Foreword</p>
792
796
  </foreword></preface><sections>
793
797
  <terms id="_" obligation="normative">
794
- <title>Terms and definitions</title>
798
+ <title>Terms et définitions</title>
795
799
  <p id="_">Pour les besoins du présent document, les termes et définitions de <eref bibitemid="iso1234"/> et <eref bibitemid="iso5678"/> s’appliquent.</p>
796
800
 
797
801
 
@@ -820,11 +824,11 @@ RSpec.describe Asciidoctor::Standoc do
820
824
  INPUT
821
825
  #{BLANK_HDR.sub(%r{<language>en</language>}, "<language>zh</language>").sub(%r{<script>Latn</script>}, "<script>Hans</script>")}
822
826
  <termdocsource bibitemid="iso1234"/><termdocsource bibitemid="iso5678"/><preface><foreword id='_' obligation="informative">
823
- <title>Foreword</title>
827
+ <title>前言</title>
824
828
  <p id="_">Foreword</p>
825
829
  </foreword></preface><sections>
826
830
  <terms id="_" obligation="normative">
827
- <title>Terms and definitions</title><p id="_"><eref bibitemid="iso1234"/>和<eref bibitemid="iso5678"/>界定的术语和定义适用于本文件。</p>
831
+ <title>术语和定义</title><p id="_"><eref bibitemid="iso1234"/>和<eref bibitemid="iso5678"/>界定的术语和定义适用于本文件。</p>
828
832
 
829
833
 
830
834
 
@@ -858,12 +862,12 @@ INPUT
858
862
  #{BLANK_HDR}
859
863
  <sections>
860
864
  <terms id='tda' obligation='normative'>
861
- <title>Terms, definitions, symbols and abbreviated terms</title>
865
+ <title>Terms, definitions and symbols</title>
862
866
  <p id='_'>No terms and definitions are listed in this document.</p>
863
867
  <clause id='terms' inline-header='false' obligation='normative'>
864
868
  <title>Terms and definitions</title>
865
869
  </clause>
866
- <definitions id='_'>
870
+ <definitions id='_' obligation="normative" type="symbols">
867
871
  <title>Symbols</title>
868
872
  </definitions>
869
873
  </terms>
@@ -895,7 +899,7 @@ _time_ (<<term-time>>) on the _calendar_ (<<term-calendar>>) _time scale_ (<<ter
895
899
  INPUT
896
900
  #{BLANK_HDR}
897
901
  <sections>
898
- <clause id='_' inline-header='false' obligation='normative'>
902
+ <clause id='_' inline-header='false' obligation='normative' type="scope">
899
903
  <title>Scope</title>
900
904
  </clause>
901
905
  <clause id='tda' obligation='normative'>
@@ -963,7 +967,7 @@ INPUT
963
967
  </preface>
964
968
  <sections> </sections>
965
969
  <annex id='_' obligation='' language='fr' script=''>
966
- <definitions id='sym' language='fr'>
970
+ <definitions id='sym' language='fr' obligation="normative">
967
971
  <title>Symbols and abbreviated terms</title>
968
972
  </definitions>
969
973
  </annex>