metanorma-standoc 1.11.3 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -31
- data/.gitignore +23 -0
- data/Gemfile +0 -1
- data/lib/asciidoctor/standoc/base.rb +2 -145
- data/lib/asciidoctor/standoc/blocks.rb +2 -238
- data/lib/asciidoctor/standoc/blocks_notes.rb +2 -100
- data/lib/asciidoctor/standoc/cleanup.rb +2 -208
- data/lib/asciidoctor/standoc/cleanup_amend.rb +2 -53
- data/lib/asciidoctor/standoc/cleanup_block.rb +2 -172
- data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +2 -212
- data/lib/asciidoctor/standoc/cleanup_footnotes.rb +2 -108
- data/lib/asciidoctor/standoc/cleanup_image.rb +2 -69
- data/lib/asciidoctor/standoc/cleanup_inline.rb +2 -189
- data/lib/asciidoctor/standoc/cleanup_maths.rb +2 -221
- data/lib/asciidoctor/standoc/cleanup_ref.rb +2 -169
- data/lib/asciidoctor/standoc/cleanup_ref_dl.rb +2 -103
- data/lib/asciidoctor/standoc/cleanup_reqt.rb +2 -110
- data/lib/asciidoctor/standoc/cleanup_section.rb +2 -184
- data/lib/asciidoctor/standoc/cleanup_section_names.rb +2 -91
- data/lib/asciidoctor/standoc/cleanup_symbols.rb +2 -47
- data/lib/asciidoctor/standoc/cleanup_table.rb +2 -67
- data/lib/asciidoctor/standoc/cleanup_terms.rb +2 -139
- data/lib/asciidoctor/standoc/cleanup_terms_designations.rb +2 -192
- data/lib/asciidoctor/standoc/cleanup_text.rb +2 -95
- data/lib/asciidoctor/standoc/cleanup_toc.rb +3 -0
- data/lib/asciidoctor/standoc/cleanup_xref.rb +2 -106
- data/lib/asciidoctor/standoc/converter.rb +2 -123
- data/lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb +2 -56
- data/lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb +2 -102
- data/lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb +3 -404
- data/lib/asciidoctor/standoc/deprecated.rb +5 -0
- data/lib/asciidoctor/standoc/front.rb +2 -219
- data/lib/asciidoctor/standoc/front_contributor.rb +2 -191
- data/lib/asciidoctor/standoc/inline.rb +2 -231
- data/lib/asciidoctor/standoc/lists.rb +2 -119
- data/lib/asciidoctor/standoc/macros.rb +2 -203
- data/lib/asciidoctor/standoc/macros_form.rb +2 -62
- data/lib/asciidoctor/standoc/macros_note.rb +2 -44
- data/lib/asciidoctor/standoc/macros_plantuml.rb +2 -112
- data/lib/asciidoctor/standoc/macros_terms.rb +2 -180
- data/lib/asciidoctor/standoc/ref.rb +2 -251
- data/lib/asciidoctor/standoc/ref_sect.rb +2 -153
- data/lib/asciidoctor/standoc/ref_utility.rb +2 -0
- data/lib/asciidoctor/standoc/render.rb +2 -116
- data/lib/asciidoctor/standoc/reqt.rb +2 -89
- data/lib/asciidoctor/standoc/section.rb +2 -194
- data/lib/asciidoctor/standoc/table.rb +2 -84
- data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +2 -178
- data/lib/asciidoctor/standoc/terms.rb +2 -153
- data/lib/asciidoctor/standoc/utils.rb +2 -100
- data/lib/asciidoctor/standoc/validate.rb +2 -157
- data/lib/asciidoctor/standoc/validate_section.rb +2 -54
- data/lib/isodoc/html/htmlstyle.css +44 -29
- data/lib/isodoc/html/htmlstyle.scss +17 -12
- data/lib/metanorma/standoc/base.rb +163 -0
- data/lib/{asciidoctor → metanorma}/standoc/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/standoc/biblio.rng +2 -2
- data/lib/metanorma/standoc/blocks.rb +239 -0
- data/lib/metanorma/standoc/blocks_notes.rb +101 -0
- data/lib/metanorma/standoc/cleanup.rb +157 -0
- data/lib/metanorma/standoc/cleanup_amend.rb +54 -0
- data/lib/metanorma/standoc/cleanup_block.rb +173 -0
- data/lib/metanorma/standoc/cleanup_boilerplate.rb +213 -0
- data/lib/metanorma/standoc/cleanup_footnotes.rb +109 -0
- data/lib/metanorma/standoc/cleanup_image.rb +70 -0
- data/lib/metanorma/standoc/cleanup_inline.rb +190 -0
- data/lib/metanorma/standoc/cleanup_maths.rb +222 -0
- data/lib/metanorma/standoc/cleanup_ref.rb +170 -0
- data/lib/metanorma/standoc/cleanup_ref_dl.rb +104 -0
- data/lib/metanorma/standoc/cleanup_reqt.rb +111 -0
- data/lib/metanorma/standoc/cleanup_section.rb +212 -0
- data/lib/metanorma/standoc/cleanup_section_names.rb +92 -0
- data/lib/metanorma/standoc/cleanup_symbols.rb +48 -0
- data/lib/metanorma/standoc/cleanup_table.rb +68 -0
- data/lib/metanorma/standoc/cleanup_terms.rb +140 -0
- data/lib/metanorma/standoc/cleanup_terms_designations.rb +199 -0
- data/lib/metanorma/standoc/cleanup_text.rb +74 -0
- data/lib/metanorma/standoc/cleanup_toc.rb +98 -0
- data/lib/metanorma/standoc/cleanup_xref.rb +107 -0
- data/lib/metanorma/standoc/converter.rb +126 -0
- data/lib/metanorma/standoc/datamodel/attributes_table_preprocessor.rb +57 -0
- data/lib/metanorma/standoc/datamodel/diagram_preprocessor.rb +103 -0
- data/lib/metanorma/standoc/datamodel/plantuml_renderer.rb +409 -0
- data/lib/metanorma/standoc/front.rb +224 -0
- data/lib/metanorma/standoc/front_contributor.rb +192 -0
- data/lib/metanorma/standoc/inline.rb +232 -0
- data/lib/{asciidoctor → metanorma}/standoc/isodoc.rng +104 -3
- data/lib/metanorma/standoc/lists.rb +120 -0
- data/lib/metanorma/standoc/macros.rb +205 -0
- data/lib/metanorma/standoc/macros_embed.rb +72 -0
- data/lib/metanorma/standoc/macros_form.rb +63 -0
- data/lib/metanorma/standoc/macros_note.rb +45 -0
- data/lib/metanorma/standoc/macros_plantuml.rb +113 -0
- data/lib/metanorma/standoc/macros_terms.rb +194 -0
- data/lib/metanorma/standoc/ref.rb +243 -0
- data/lib/metanorma/standoc/ref_sect.rb +153 -0
- data/lib/{asciidoctor/standoc/ref_date_id.rb → metanorma/standoc/ref_utility.rb} +43 -5
- data/lib/metanorma/standoc/render.rb +115 -0
- data/lib/metanorma/standoc/reqt.rb +90 -0
- data/lib/{asciidoctor → metanorma}/standoc/reqt.rng +0 -0
- data/lib/metanorma/standoc/section.rb +209 -0
- data/lib/metanorma/standoc/table.rb +85 -0
- data/lib/metanorma/standoc/term_lookup_cleanup.rb +179 -0
- data/lib/metanorma/standoc/terms.rb +160 -0
- data/lib/metanorma/standoc/utils.rb +101 -0
- data/lib/metanorma/standoc/validate.rb +158 -0
- data/lib/metanorma/standoc/validate_section.rb +55 -0
- data/lib/metanorma/standoc/version.rb +1 -1
- data/lib/{asciidoctor → metanorma}/standoc/views/datamodel/model_representation.adoc.erb +0 -0
- data/lib/{asciidoctor → metanorma}/standoc/views/datamodel/plantuml_representation.adoc.erb +0 -0
- data/lib/metanorma-standoc.rb +1 -1
- data/metanorma-standoc.gemspec +1 -1
- data/spec/assets/a1.adoc +8 -0
- data/spec/assets/a2.adoc +8 -0
- data/spec/assets/a3.adoc +9 -0
- data/spec/assets/a4.adoc +4 -0
- data/spec/{asciidoctor → metanorma}/base_spec.rb +499 -407
- data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_sections_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +5 -5
- data/spec/{asciidoctor → metanorma}/cleanup_terms_spec.rb +227 -119
- data/spec/{asciidoctor → metanorma}/datamodel/attributes_table_preprocessor_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/datamodel/diagram_preprocessor_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/inline_spec.rb +170 -1
- data/spec/{asciidoctor → metanorma}/isobib_cache_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/macros_json2text_spec.rb +0 -0
- data/spec/{asciidoctor → metanorma}/macros_plantuml_spec.rb +3 -3
- data/spec/{asciidoctor → metanorma}/macros_spec.rb +97 -6
- data/spec/{asciidoctor → metanorma}/macros_yaml2text_spec.rb +0 -0
- data/spec/metanorma/refs_dl_spec.rb +863 -0
- data/spec/{asciidoctor → metanorma}/refs_spec.rb +522 -15
- data/spec/{asciidoctor → metanorma}/section_spec.rb +59 -1
- data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/validate_spec.rb +2 -2
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +46 -46
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +12 -12
- data/spec/vcr_cassettes/hide_refs.yml +599 -0
- data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
- data/spec/vcr_cassettes/isobib_get_123_1.yml +24 -24
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +35 -35
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +13 -13
- data/spec/vcr_cassettes/isobib_get_124.yml +10 -10
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +18 -18
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +46 -46
- metadata +88 -32
- data/spec/asciidoctor/refs_dl_spec.rb +0 -864
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
require "relaton_iec"
|
3
3
|
require "fileutils"
|
4
4
|
|
5
|
-
RSpec.describe
|
5
|
+
RSpec.describe Metanorma::Standoc do
|
6
6
|
it "appends any initial user-supplied text to boilerplate in terms and definitions" do
|
7
7
|
input = <<~INPUT
|
8
8
|
#{ASCIIDOC_BLANK_HDR}
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
require "relaton_iec"
|
3
3
|
require "fileutils"
|
4
4
|
|
5
|
-
RSpec.describe
|
5
|
+
RSpec.describe Metanorma::Standoc do
|
6
6
|
it "applies smartquotes by default" do
|
7
7
|
input = <<~INPUT
|
8
8
|
#{ASCIIDOC_BLANK_HDR}
|
@@ -778,7 +778,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
778
778
|
</sections>
|
779
779
|
</standard-document>
|
780
780
|
OUTPUT
|
781
|
-
expect(
|
781
|
+
expect(Metanorma::Standoc::Converter.new(nil, *OPTIONS)
|
782
782
|
.cleanup(Nokogiri::XML(input)).to_xml)
|
783
783
|
.to be_equivalent_to xmlpp(output)
|
784
784
|
end
|
@@ -836,7 +836,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
836
836
|
</bibliography>
|
837
837
|
</standard-document>
|
838
838
|
OUTPUT
|
839
|
-
expect(
|
839
|
+
expect(Metanorma::Standoc::Converter.new(nil, *OPTIONS)
|
840
840
|
.cleanup(Nokogiri::XML(input)).to_xml)
|
841
841
|
.to be_equivalent_to xmlpp(output)
|
842
842
|
end
|
@@ -1822,7 +1822,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
1822
1822
|
<stage>published</stage>
|
1823
1823
|
</status>
|
1824
1824
|
<copyright>
|
1825
|
-
<from
|
1825
|
+
<from>#{Time.now.year}</from>
|
1826
1826
|
</copyright>
|
1827
1827
|
<ext>
|
1828
1828
|
<doctype>article</doctype>
|
@@ -1865,7 +1865,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
1865
1865
|
private
|
1866
1866
|
|
1867
1867
|
def mock_mathml_italicise(string)
|
1868
|
-
allow_any_instance_of(::
|
1868
|
+
allow_any_instance_of(::Metanorma::Standoc::Cleanup)
|
1869
1869
|
.to receive(:mathml_mi_italics).and_return(string)
|
1870
1870
|
end
|
1871
1871
|
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
require "relaton_iec"
|
3
3
|
require "fileutils"
|
4
4
|
|
5
|
-
RSpec.describe
|
5
|
+
RSpec.describe Metanorma::Standoc do
|
6
6
|
it "processes term and designation metadata and term sources" do
|
7
7
|
input = <<~INPUT
|
8
8
|
#{ASCIIDOC_BLANK_HDR}
|
@@ -705,6 +705,114 @@ RSpec.describe Asciidoctor::Standoc do
|
|
705
705
|
.to be_equivalent_to xmlpp(output)
|
706
706
|
end
|
707
707
|
|
708
|
+
it "differentiates stem-only and mixed terms" do
|
709
|
+
input = <<~INPUT
|
710
|
+
#{ASCIIDOC_BLANK_HDR}
|
711
|
+
== Terms and Definitions
|
712
|
+
|
713
|
+
=== stem:[t_90]
|
714
|
+
|
715
|
+
Time
|
716
|
+
|
717
|
+
=== stem:[t_90]-sensitivity
|
718
|
+
|
719
|
+
Sensitivity
|
720
|
+
|
721
|
+
=== sensitivity to stem:[t_90]
|
722
|
+
|
723
|
+
Sensitivity #2
|
724
|
+
INPUT
|
725
|
+
output = <<~OUTPUT
|
726
|
+
#{BLANK_HDR}
|
727
|
+
<sections>
|
728
|
+
<terms id='_' obligation='normative'>
|
729
|
+
<title>Terms and definitions</title>
|
730
|
+
<p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
|
731
|
+
<term id='term-_-t90-'>
|
732
|
+
<preferred>
|
733
|
+
<letter-symbol>
|
734
|
+
<name>
|
735
|
+
<stem type='MathML'>
|
736
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
737
|
+
<msub>
|
738
|
+
<mrow>
|
739
|
+
<mi>t</mi>
|
740
|
+
</mrow>
|
741
|
+
<mrow>
|
742
|
+
<mn>90</mn>
|
743
|
+
</mrow>
|
744
|
+
</msub>
|
745
|
+
</math>
|
746
|
+
</stem>
|
747
|
+
</name>
|
748
|
+
</letter-symbol>
|
749
|
+
</preferred>
|
750
|
+
<definition>
|
751
|
+
<verbal-definition>
|
752
|
+
<p id='_'>Time</p>
|
753
|
+
</verbal-definition>
|
754
|
+
</definition>
|
755
|
+
</term>
|
756
|
+
<term id='term-t90-sensitivity'>
|
757
|
+
<preferred>
|
758
|
+
<expression>
|
759
|
+
<name>
|
760
|
+
<stem type='MathML'>
|
761
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
762
|
+
<msub>
|
763
|
+
<mrow>
|
764
|
+
<mi>t</mi>
|
765
|
+
</mrow>
|
766
|
+
<mrow>
|
767
|
+
<mn>90</mn>
|
768
|
+
</mrow>
|
769
|
+
</msub>
|
770
|
+
</math>
|
771
|
+
</stem>
|
772
|
+
-sensitivity
|
773
|
+
</name>
|
774
|
+
</expression>
|
775
|
+
</preferred>
|
776
|
+
<definition>
|
777
|
+
<verbal-definition>
|
778
|
+
<p id='_'>Sensitivity</p>
|
779
|
+
</verbal-definition>
|
780
|
+
</definition>
|
781
|
+
</term>
|
782
|
+
<term id='term-sensitivity-to-t90'>
|
783
|
+
<preferred>
|
784
|
+
<expression>
|
785
|
+
<name>
|
786
|
+
sensitivity to#{' '}
|
787
|
+
<stem type='MathML'>
|
788
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
789
|
+
<msub>
|
790
|
+
<mrow>
|
791
|
+
<mi>t</mi>
|
792
|
+
</mrow>
|
793
|
+
<mrow>
|
794
|
+
<mn>90</mn>
|
795
|
+
</mrow>
|
796
|
+
</msub>
|
797
|
+
</math>
|
798
|
+
</stem>
|
799
|
+
</name>
|
800
|
+
</expression>
|
801
|
+
</preferred>
|
802
|
+
<definition>
|
803
|
+
<verbal-definition>
|
804
|
+
<p id='_'>Sensitivity #2</p>
|
805
|
+
</verbal-definition>
|
806
|
+
</definition>
|
807
|
+
</term>
|
808
|
+
</terms>
|
809
|
+
</sections>
|
810
|
+
</standard-document>
|
811
|
+
OUTPUT
|
812
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
813
|
+
.to be_equivalent_to xmlpp(output)
|
814
|
+
end
|
815
|
+
|
708
816
|
it "moves term domains out of the term definition paragraph" do
|
709
817
|
input = <<~INPUT
|
710
818
|
#{ASCIIDOC_BLANK_HDR}
|
@@ -1224,124 +1332,124 @@ RSpec.describe Asciidoctor::Standoc do
|
|
1224
1332
|
x^2^:: Definition
|
1225
1333
|
INPUT
|
1226
1334
|
output = <<~OUTPUT
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1335
|
+
<standard-document xmlns='https://www.metanorma.org/ns/standoc' type='semantic' version='#{Metanorma::Standoc::VERSION}'>
|
1336
|
+
<bibdata type='standard'>
|
1337
|
+
<title language='en' format='text/plain'>Document title</title>
|
1338
|
+
<language>en</language>
|
1339
|
+
<script>Latn</script>
|
1340
|
+
<status>
|
1341
|
+
<stage>published</stage>
|
1342
|
+
</status>
|
1343
|
+
<copyright>
|
1344
|
+
<from>#{Time.now.year}</from>
|
1345
|
+
</copyright>
|
1346
|
+
<ext>
|
1347
|
+
<doctype>article</doctype>
|
1348
|
+
</ext>
|
1349
|
+
</bibdata>
|
1350
|
+
<sections>
|
1351
|
+
<terms id='_' obligation='normative'>
|
1352
|
+
<title>Terms and definitions</title>
|
1353
|
+
<p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
|
1354
|
+
<term id='term-term'>
|
1355
|
+
<preferred>
|
1356
|
+
<expression>
|
1357
|
+
<name>
|
1358
|
+
Term
|
1359
|
+
<index>
|
1360
|
+
<primary>Term</primary>
|
1361
|
+
</index>
|
1362
|
+
</name>
|
1363
|
+
</expression>
|
1364
|
+
</preferred>
|
1365
|
+
<admitted>
|
1366
|
+
<expression>
|
1367
|
+
<name>x</name>
|
1368
|
+
</expression>
|
1369
|
+
</admitted>
|
1370
|
+
<admitted>
|
1371
|
+
<letter-symbol>
|
1372
|
+
<name>
|
1373
|
+
<stem type='MathML'>
|
1374
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
1375
|
+
<mi>λ</mi>
|
1376
|
+
</math>
|
1377
|
+
</stem>
|
1378
|
+
</name>
|
1379
|
+
</letter-symbol>
|
1380
|
+
</admitted>
|
1381
|
+
</term>
|
1382
|
+
<term id='term-term2'>
|
1383
|
+
<preferred>
|
1384
|
+
<expression>
|
1385
|
+
<name>
|
1386
|
+
Term2
|
1387
|
+
<index>
|
1388
|
+
<primary>Term2</primary>
|
1389
|
+
</index>
|
1390
|
+
</name>
|
1391
|
+
</expression>
|
1392
|
+
</preferred>
|
1393
|
+
<preferred>
|
1394
|
+
<letter-symbol>
|
1395
|
+
<name>
|
1396
|
+
<stem type='MathML'>
|
1397
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
1398
|
+
<msub>
|
1399
|
+
<mrow>
|
1400
|
+
<mi>μ</mi>
|
1401
|
+
</mrow>
|
1402
|
+
<mrow>
|
1403
|
+
<mn>0</mn>
|
1404
|
+
</mrow>
|
1405
|
+
</msub>
|
1406
|
+
<mo>/</mo>
|
1407
|
+
<mn>2</mn>
|
1408
|
+
</math>
|
1409
|
+
</stem>
|
1410
|
+
<index>
|
1411
|
+
<primary>
|
1412
|
+
<stem type='MathML'>
|
1413
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
1414
|
+
<msub>
|
1415
|
+
<mrow>
|
1416
|
+
<mi>μ</mi>
|
1417
|
+
</mrow>
|
1418
|
+
<mrow>
|
1419
|
+
<mn>0</mn>
|
1420
|
+
</mrow>
|
1421
|
+
</msub>
|
1422
|
+
<mo>/</mo>
|
1423
|
+
<mn>2</mn>
|
1424
|
+
</math>
|
1425
|
+
</stem>
|
1426
|
+
</primary>
|
1427
|
+
</index>
|
1428
|
+
</name>
|
1429
|
+
</letter-symbol>
|
1430
|
+
</preferred>
|
1431
|
+
</term>
|
1432
|
+
</terms>
|
1433
|
+
<definitions id='_' obligation='normative'>
|
1434
|
+
<title>Symbols and abbreviated terms</title>
|
1435
|
+
<dl id='_'>
|
1436
|
+
<dt id='symbol-x2'>
|
1437
|
+
x
|
1438
|
+
<sup>2</sup>
|
1439
|
+
<index>
|
1440
|
+
<primary>
|
1441
|
+
x
|
1442
|
+
<sup>2</sup>
|
1443
|
+
</primary>
|
1444
|
+
</index>
|
1445
|
+
</dt>
|
1446
|
+
<dd>
|
1447
|
+
<p id='_'>Definition</p>
|
1448
|
+
</dd>
|
1449
|
+
</dl>
|
1450
|
+
</definitions>
|
1451
|
+
</sections>
|
1452
|
+
</standard-document>
|
1345
1453
|
OUTPUT
|
1346
1454
|
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
1347
1455
|
.to be_equivalent_to xmlpp(output)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require "spec_helper"
|
4
4
|
|
5
|
-
RSpec.describe
|
5
|
+
RSpec.describe Metanorma::Standoc::Datamodel::AttributesTablePreprocessor do
|
6
6
|
describe "#process" do
|
7
7
|
context "when simple models without relations" do
|
8
8
|
let(:datamodel_file) do
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require "spec_helper"
|
4
4
|
|
5
|
-
RSpec.describe
|
5
|
+
RSpec.describe Metanorma::Standoc::Datamodel::DiagramPreprocessor do
|
6
6
|
describe "#process" do
|
7
7
|
context "when simple models without relations" do
|
8
8
|
let(:datamodel_file) do
|