isodoc 1.5.1 → 1.6.0
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 +1 -1
- data/.rubocop.yml +6 -2
- data/Gemfile +2 -2
- data/isodoc.gemspec +11 -11
- data/lib/isodoc/base_style/all.css +7 -0
- data/lib/isodoc/base_style/metanorma_word.css +7 -0
- data/lib/isodoc/base_style/metanorma_word.scss +8 -0
- data/lib/isodoc/base_style/reset.css +7 -0
- data/lib/isodoc/base_style/reset.scss +9 -0
- data/lib/isodoc/base_style/scripts.html +187 -0
- data/lib/isodoc/class_utils.rb +6 -5
- data/lib/isodoc/convert.rb +28 -15
- data/lib/isodoc/css.rb +14 -4
- data/lib/isodoc/function/blocks.rb +4 -0
- data/lib/isodoc/function/inline.rb +31 -10
- data/lib/isodoc/function/references.rb +1 -1
- data/lib/isodoc/function/to_word_html.rb +19 -8
- data/lib/isodoc/function/utils.rb +1 -0
- data/lib/isodoc/html_function/postprocess.rb +8 -5
- data/lib/isodoc/pdf_convert.rb +1 -3
- data/lib/isodoc/presentation_function/block.rb +11 -5
- data/lib/isodoc/presentation_function/inline.rb +42 -38
- data/lib/isodoc/presentation_function/section.rb +1 -1
- data/lib/isodoc/presentation_xml_convert.rb +1 -1
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/inline.rb +6 -0
- data/lib/isodoc/word_function/postprocess.rb +16 -6
- data/lib/isodoc/xref.rb +1 -1
- data/lib/isodoc/xref/xref_gen.rb +16 -15
- data/lib/isodoc/xslfo_convert.rb +36 -25
- data/spec/assets/html_override.css +1 -0
- data/spec/assets/word_override.css +1 -0
- data/spec/isodoc/blocks_spec.rb +87 -0
- data/spec/isodoc/footnotes_spec.rb +1 -16
- data/spec/isodoc/inline_spec.rb +38 -1
- data/spec/isodoc/postproc_spec.rb +42 -14
- data/spec/isodoc/presentation_xml_spec.rb +345 -338
- data/spec/isodoc/section_spec.rb +910 -902
- data/spec/isodoc/table_spec.rb +566 -556
- data/spec/isodoc/terms_spec.rb +252 -256
- data/spec/isodoc/xref_spec.rb +2990 -2987
- data/spec/isodoc/xslfo_convert_spec.rb +39 -0
- data/spec/spec_helper.rb +30 -29
- metadata +71 -69
- data/.rubocop.ribose.yml +0 -65
- data/.rubocop.tb.yml +0 -650
@@ -1,132 +1,137 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
RSpec.describe IsoDoc do
|
4
|
-
it "generates file based on string input" do
|
5
|
-
|
6
|
-
IsoDoc::PresentationXMLConvert.new({filename: "test"})
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
4
|
+
it "generates file based on string input" do
|
5
|
+
FileUtils.rm_f "test.presentation.xml"
|
6
|
+
IsoDoc::PresentationXMLConvert.new({ filename: "test" })
|
7
|
+
.convert("test", <<~"INPUT", false)
|
8
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
9
|
+
<bibdata>
|
10
|
+
<title language="en">test</title>
|
11
|
+
</bibdata>
|
12
|
+
<preface><foreword>
|
13
|
+
<note>
|
14
|
+
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
15
|
+
</note>
|
16
|
+
</foreword></preface>
|
17
|
+
</iso-standard>
|
17
18
|
INPUT
|
18
19
|
expect(File.exist?("test.presentation.xml")).to be true
|
19
20
|
end
|
20
21
|
|
21
|
-
it "localises numbers in MathML" do
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
</
|
126
|
-
|
127
|
-
|
22
|
+
it "localises numbers in MathML" do
|
23
|
+
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
24
|
+
.convert("test", <<~INPUT, true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(<<~OUTPUT)
|
25
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
26
|
+
<bibdata>
|
27
|
+
<title language="en">test</title>
|
28
|
+
</bibdata>
|
29
|
+
<preface>
|
30
|
+
<p>
|
31
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>64212149677264515</mn></math></stem>
|
32
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>642121496772645.15</mn></math></stem>
|
33
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>30000</mn></math></stem>
|
34
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>P</mi><mfenced open="(" close=")"><mrow><mi>X</mi><mo>≥</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mfenced><mo>=</mo><munderover><mrow><mo>∑</mo></mrow><mrow><mrow><mi>j</mi><mo>=</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mrow><mrow><mn>1000</mn></mrow></munderover><mfenced open="(" close=")"><mtable><mtr><mtd><mn>1000</mn></mtd></mtr><mtr><mtd><mi>j</mi></mtd></mtr></mtable></mfenced><msup><mrow><mi>p</mi></mrow><mrow><mi>j</mi></mrow></msup><msup><mrow><mfenced open="(" close=")"><mrow><mn>1</mn><mo>−</mo><mi>p</mi></mrow></mfenced></mrow><mrow><mrow><mn>1.003</mn><mo>−</mo><mi>j</mi></mrow></mrow></msup></math></stem></p>
|
35
|
+
</preface>
|
36
|
+
</iso-standard>
|
37
|
+
INPUT
|
38
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
|
39
|
+
<bibdata>
|
40
|
+
<title language='en'>test</title>
|
41
|
+
</bibdata>
|
42
|
+
<preface>
|
43
|
+
<p>
|
44
|
+
64,212,149,677,264,515
|
45
|
+
642,121,496,772,645.15 30,000
|
46
|
+
<stem type='MathML'>
|
47
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
48
|
+
<mi>P</mi>
|
49
|
+
<mfenced open='(' close=')'>
|
50
|
+
<mrow>
|
51
|
+
<mi>X</mi>
|
52
|
+
<mo>≥</mo>
|
53
|
+
<msub>
|
54
|
+
<mrow>
|
55
|
+
<mi>X</mi>
|
56
|
+
</mrow>
|
57
|
+
<mrow>
|
58
|
+
<mo>max</mo>
|
59
|
+
</mrow>
|
60
|
+
</msub>
|
61
|
+
</mrow>
|
62
|
+
</mfenced>
|
63
|
+
<mo>=</mo>
|
64
|
+
<munderover>
|
65
|
+
<mrow>
|
66
|
+
<mo>∑</mo>
|
67
|
+
</mrow>
|
68
|
+
<mrow>
|
69
|
+
<mrow>
|
70
|
+
<mi>j</mi>
|
71
|
+
<mo>=</mo>
|
72
|
+
<msub>
|
73
|
+
<mrow>
|
74
|
+
<mi>X</mi>
|
75
|
+
</mrow>
|
76
|
+
<mrow>
|
77
|
+
<mo>max</mo>
|
78
|
+
</mrow>
|
79
|
+
</msub>
|
80
|
+
</mrow>
|
81
|
+
</mrow>
|
82
|
+
<mrow>
|
83
|
+
<mn>1,000</mn>
|
84
|
+
</mrow>
|
85
|
+
</munderover>
|
86
|
+
<mfenced open='(' close=')'>
|
87
|
+
<mtable>
|
88
|
+
<mtr>
|
89
|
+
<mtd>
|
90
|
+
<mn>1,000</mn>
|
91
|
+
</mtd>
|
92
|
+
</mtr>
|
93
|
+
<mtr>
|
94
|
+
<mtd>
|
95
|
+
<mi>j</mi>
|
96
|
+
</mtd>
|
97
|
+
</mtr>
|
98
|
+
</mtable>
|
99
|
+
</mfenced>
|
100
|
+
<msup>
|
101
|
+
<mrow>
|
102
|
+
<mi>p</mi>
|
103
|
+
</mrow>
|
104
|
+
<mrow>
|
105
|
+
<mi>j</mi>
|
106
|
+
</mrow>
|
107
|
+
</msup>
|
108
|
+
<msup>
|
109
|
+
<mrow>
|
110
|
+
<mfenced open='(' close=')'>
|
111
|
+
<mrow>
|
112
|
+
<mn>1</mn>
|
113
|
+
<mo>−</mo>
|
114
|
+
<mi>p</mi>
|
115
|
+
</mrow>
|
116
|
+
</mfenced>
|
117
|
+
</mrow>
|
118
|
+
<mrow>
|
119
|
+
<mrow>
|
120
|
+
<mn>1.003</mn>
|
121
|
+
<mo>−</mo>
|
122
|
+
<mi>j</mi>
|
123
|
+
</mrow>
|
124
|
+
</mrow>
|
125
|
+
</msup>
|
126
|
+
</math>
|
127
|
+
</stem>
|
128
|
+
</p>
|
129
|
+
</preface>
|
130
|
+
</iso-standard>
|
131
|
+
OUTPUT
|
132
|
+
end
|
128
133
|
|
129
|
-
context
|
134
|
+
context "when twitter_cldr_localiser_symbols has additional options" do
|
130
135
|
let(:input) do
|
131
136
|
<<~INPUT
|
132
137
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
@@ -358,7 +363,7 @@ end
|
|
358
363
|
{
|
359
364
|
fraction_group_digits: 2,
|
360
365
|
fraction_group: "'",
|
361
|
-
precision: 5
|
366
|
+
precision: 5,
|
362
367
|
}
|
363
368
|
end
|
364
369
|
|
@@ -368,234 +373,236 @@ end
|
|
368
373
|
end
|
369
374
|
|
370
375
|
it "Supports twitter_cldr_localiser_symbols fraction options" do
|
371
|
-
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
372
|
-
|
376
|
+
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
377
|
+
.convert("test", input, true))
|
378
|
+
.sub(%r{<localized-strings>.*</localized-strings>}m, ""))
|
373
379
|
.to(be_equivalent_to(xmlpp(output)))
|
374
380
|
end
|
375
381
|
end
|
376
382
|
|
377
|
-
it "localises numbers in MathML in French" do
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
<
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
</iso-standard>
|
484
|
-
|
485
|
-
end
|
383
|
+
it "localises numbers in MathML in French" do
|
384
|
+
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
385
|
+
.convert("test", <<~INPUT, true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(<<~OUTPUT)
|
386
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
387
|
+
<bibdata>
|
388
|
+
<title language="en">test</title>
|
389
|
+
<language>fr</language>
|
390
|
+
</bibdata>
|
391
|
+
<preface>
|
392
|
+
<p><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>30000</mn></math>
|
393
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>P</mi><mfenced open="(" close=")"><mrow><mi>X</mi><mo>≥</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mfenced><mo>=</mo><munderover><mrow><mo>∑</mo></mrow><mrow><mrow><mi>j</mi><mo>=</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mrow><mrow><mn>1000</mn></mrow></munderover><mfenced open="(" close=")"><mtable><mtr><mtd><mn>1000</mn></mtd></mtr><mtr><mtd><mi>j</mi></mtd></mtr></mtable></mfenced><msup><mrow><mi>p</mi></mrow><mrow><mi>j</mi></mrow></msup><msup><mrow><mfenced open="(" close=")"><mrow><mn>1</mn><mo>−</mo><mi>p</mi></mrow></mfenced></mrow><mrow><mrow><mn>1.003</mn><mo>−</mo><mi>j</mi></mrow></mrow></msup></math></stem></p>
|
394
|
+
</preface>
|
395
|
+
</iso-standard>
|
396
|
+
INPUT
|
397
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
|
398
|
+
<bibdata>
|
399
|
+
<title language='en'>test</title>
|
400
|
+
<language current='true'>fr</language>
|
401
|
+
</bibdata>
|
402
|
+
<preface>
|
403
|
+
<p>
|
404
|
+
30 000
|
405
|
+
<stem type='MathML'>
|
406
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
407
|
+
<mi>P</mi>
|
408
|
+
<mfenced open='(' close=')'>
|
409
|
+
<mrow>
|
410
|
+
<mi>X</mi>
|
411
|
+
<mo>≥</mo>
|
412
|
+
<msub>
|
413
|
+
<mrow>
|
414
|
+
<mi>X</mi>
|
415
|
+
</mrow>
|
416
|
+
<mrow>
|
417
|
+
<mo>max</mo>
|
418
|
+
</mrow>
|
419
|
+
</msub>
|
420
|
+
</mrow>
|
421
|
+
</mfenced>
|
422
|
+
<mo>=</mo>
|
423
|
+
<munderover>
|
424
|
+
<mrow>
|
425
|
+
<mo>∑</mo>
|
426
|
+
</mrow>
|
427
|
+
<mrow>
|
428
|
+
<mrow>
|
429
|
+
<mi>j</mi>
|
430
|
+
<mo>=</mo>
|
431
|
+
<msub>
|
432
|
+
<mrow>
|
433
|
+
<mi>X</mi>
|
434
|
+
</mrow>
|
435
|
+
<mrow>
|
436
|
+
<mo>max</mo>
|
437
|
+
</mrow>
|
438
|
+
</msub>
|
439
|
+
</mrow>
|
440
|
+
</mrow>
|
441
|
+
<mrow>
|
442
|
+
<mn>1 000</mn>
|
443
|
+
</mrow>
|
444
|
+
</munderover>
|
445
|
+
<mfenced open='(' close=')'>
|
446
|
+
<mtable>
|
447
|
+
<mtr>
|
448
|
+
<mtd>
|
449
|
+
<mn>1 000</mn>
|
450
|
+
</mtd>
|
451
|
+
</mtr>
|
452
|
+
<mtr>
|
453
|
+
<mtd>
|
454
|
+
<mi>j</mi>
|
455
|
+
</mtd>
|
456
|
+
</mtr>
|
457
|
+
</mtable>
|
458
|
+
</mfenced>
|
459
|
+
<msup>
|
460
|
+
<mrow>
|
461
|
+
<mi>p</mi>
|
462
|
+
</mrow>
|
463
|
+
<mrow>
|
464
|
+
<mi>j</mi>
|
465
|
+
</mrow>
|
466
|
+
</msup>
|
467
|
+
<msup>
|
468
|
+
<mrow>
|
469
|
+
<mfenced open='(' close=')'>
|
470
|
+
<mrow>
|
471
|
+
<mn>1</mn>
|
472
|
+
<mo>−</mo>
|
473
|
+
<mi>p</mi>
|
474
|
+
</mrow>
|
475
|
+
</mfenced>
|
476
|
+
</mrow>
|
477
|
+
<mrow>
|
478
|
+
<mrow>
|
479
|
+
<mn>1,003</mn>
|
480
|
+
<mo>−</mo>
|
481
|
+
<mi>j</mi>
|
482
|
+
</mrow>
|
483
|
+
</mrow>
|
484
|
+
</msup>
|
485
|
+
</math>
|
486
|
+
</stem>
|
487
|
+
</p>
|
488
|
+
</preface>
|
489
|
+
</iso-standard>
|
490
|
+
OUTPUT
|
491
|
+
end
|
486
492
|
|
487
|
-
it "customises localisation of numbers" do
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
<
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
493
|
+
it "customises localisation of numbers" do
|
494
|
+
mock_symbols
|
495
|
+
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
496
|
+
.convert("test", <<~INPUT, true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(<<~OUTPUT)
|
497
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
498
|
+
<bibdata>
|
499
|
+
<title language="en">test</title>
|
500
|
+
<language>fr</language>
|
501
|
+
</bibdata>
|
502
|
+
<preface>
|
503
|
+
<p><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>30000</mn></math></stem>
|
504
|
+
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>P</mi><mfenced open="(" close=")"><mrow><mi>X</mi><mo>≥</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mfenced><mo>=</mo><munderover><mrow><mo>∑</mo></mrow><mrow><mrow><mi>j</mi><mo>=</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mrow><mrow><mn>1000</mn></mrow></munderover><mfenced open="(" close=")"><mtable><mtr><mtd><mn>1000</mn></mtd></mtr><mtr><mtd><mi>j</mi></mtd></mtr></mtable></mfenced><msup><mrow><mi>p</mi></mrow><mrow><mi>j</mi></mrow></msup><msup><mrow><mfenced open="(" close=")"><mrow><mn>0.0000032</mn><mo>−</mo><mi>p</mi></mrow></mfenced></mrow><mrow><mrow><mn>1.003</mn><mo>−</mo><mi>j</mi></mrow></mrow></msup></math></stem></p>
|
505
|
+
</preface>
|
506
|
+
</iso-standard>
|
507
|
+
INPUT
|
508
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
|
509
|
+
<bibdata>
|
510
|
+
<title language='en'>test</title>
|
511
|
+
<language current='true'>fr</language>
|
512
|
+
</bibdata>
|
506
513
|
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
<mrow>
|
515
|
-
<mi>X</mi>
|
516
|
-
<mo>≥</mo>
|
517
|
-
<msub>
|
518
|
-
<mrow>
|
519
|
-
<mi>X</mi>
|
520
|
-
</mrow>
|
521
|
-
<mrow>
|
522
|
-
<mo>max</mo>
|
523
|
-
</mrow>
|
524
|
-
</msub>
|
525
|
-
</mrow>
|
526
|
-
</mfenced>
|
527
|
-
<mo>=</mo>
|
528
|
-
<munderover>
|
529
|
-
<mrow>
|
530
|
-
<mo>∑</mo>
|
531
|
-
</mrow>
|
532
|
-
<mrow>
|
533
|
-
<mrow>
|
534
|
-
<mi>j</mi>
|
535
|
-
<mo>=</mo>
|
536
|
-
<msub>
|
514
|
+
<preface>
|
515
|
+
<p>
|
516
|
+
30'000
|
517
|
+
<stem type='MathML'>
|
518
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
519
|
+
<mi>P</mi>
|
520
|
+
<mfenced open='(' close=')'>
|
537
521
|
<mrow>
|
538
522
|
<mi>X</mi>
|
523
|
+
<mo>≥</mo>
|
524
|
+
<msub>
|
525
|
+
<mrow>
|
526
|
+
<mi>X</mi>
|
527
|
+
</mrow>
|
528
|
+
<mrow>
|
529
|
+
<mo>max</mo>
|
530
|
+
</mrow>
|
531
|
+
</msub>
|
532
|
+
</mrow>
|
533
|
+
</mfenced>
|
534
|
+
<mo>=</mo>
|
535
|
+
<munderover>
|
536
|
+
<mrow>
|
537
|
+
<mo>∑</mo>
|
539
538
|
</mrow>
|
540
539
|
<mrow>
|
541
|
-
<
|
540
|
+
<mrow>
|
541
|
+
<mi>j</mi>
|
542
|
+
<mo>=</mo>
|
543
|
+
<msub>
|
544
|
+
<mrow>
|
545
|
+
<mi>X</mi>
|
546
|
+
</mrow>
|
547
|
+
<mrow>
|
548
|
+
<mo>max</mo>
|
549
|
+
</mrow>
|
550
|
+
</msub>
|
551
|
+
</mrow>
|
542
552
|
</mrow>
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
</
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
</
|
588
|
-
</
|
589
|
-
</
|
590
|
-
</
|
591
|
-
</
|
592
|
-
|
593
|
-
|
594
|
-
</iso-standard>
|
595
|
-
OUTPUT
|
596
|
-
end
|
553
|
+
<mrow>
|
554
|
+
<mn>1'000</mn>
|
555
|
+
</mrow>
|
556
|
+
</munderover>
|
557
|
+
<mfenced open='(' close=')'>
|
558
|
+
<mtable>
|
559
|
+
<mtr>
|
560
|
+
<mtd>
|
561
|
+
<mn>1'000</mn>
|
562
|
+
</mtd>
|
563
|
+
</mtr>
|
564
|
+
<mtr>
|
565
|
+
<mtd>
|
566
|
+
<mi>j</mi>
|
567
|
+
</mtd>
|
568
|
+
</mtr>
|
569
|
+
</mtable>
|
570
|
+
</mfenced>
|
571
|
+
<msup>
|
572
|
+
<mrow>
|
573
|
+
<mi>p</mi>
|
574
|
+
</mrow>
|
575
|
+
<mrow>
|
576
|
+
<mi>j</mi>
|
577
|
+
</mrow>
|
578
|
+
</msup>
|
579
|
+
<msup>
|
580
|
+
<mrow>
|
581
|
+
<mfenced open='(' close=')'>
|
582
|
+
<mrow>
|
583
|
+
<mn>0,0000032</mn>
|
584
|
+
<mo>−</mo>
|
585
|
+
<mi>p</mi>
|
586
|
+
</mrow>
|
587
|
+
</mfenced>
|
588
|
+
</mrow>
|
589
|
+
<mrow>
|
590
|
+
<mrow>
|
591
|
+
<mn>1,003</mn>
|
592
|
+
<mo>−</mo>
|
593
|
+
<mi>j</mi>
|
594
|
+
</mrow>
|
595
|
+
</mrow>
|
596
|
+
</msup>
|
597
|
+
</math>
|
598
|
+
</stem>
|
599
|
+
</p>
|
600
|
+
</preface>
|
601
|
+
</iso-standard>
|
602
|
+
OUTPUT
|
603
|
+
end
|
597
604
|
|
598
|
-
private
|
605
|
+
private
|
599
606
|
|
600
607
|
def mock_symbols
|
601
608
|
allow_any_instance_of(::IsoDoc::PresentationXMLConvert).to receive(:twitter_cldr_localiser_symbols).and_return(group: "'")
|