-
Notifications
You must be signed in to change notification settings - Fork 8
/
test1.html
4331 lines (3184 loc) · 187 KB
/
test1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
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
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
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
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- This file is part of the SPFE Open Toolkit. See the accompanying license.txt file --><!-- for applicable licenses. --><!-- (c) Copyright Analecta Communications Inc. 2015 All Rights Reserved. --><!-- Need test for unicode characters and numbers in names. --><!DOCTYPE html><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
</head>
<body>
<a name="top"></a><h1>SAM Parser Tests</h1>
<p>This document is the output of the test document processed by test.xslt. That stylesheet attempt to validate the outcome of tests by generating a string version of the markup under the <code language="sam">markup:</code> heading and comparing it to the text of the expected result as shown under the <code>result:</code> heading in the test file. This is not a perfect test. Two issues are known:</p>
<ol>
<li>
<p>Test are done on whitespace normalized versions of the XML markup strings. As such, they do not validly test situations where whitespace should be retained, such as in codeblocks and at the beginning of lines.</p>
</li>
<li>
<p>The SAM parser outputs attributes in alphabetical order. (From an XML point of view, the order of attributes does not matter.) Test should be written such that the attributes in the <code>result:</code> section are in alphabetical order. If not, the test will fail even though the XML is semantically identical.</p>
</li>
</ol>
<p>When running this test you should receive one SAM Parser Warning:</p>
<pre>
SAM parser warning: Unannotated phrase found: {should be reported} If you are trying to insert curly braces into the document, use \{should be reported}.
</pre>
<p>This is a test to make sure unannotated phrases are being reported correctly.</p>
<p>The following lines exist to anchor ids used for idref examples in the tests:</p>
Cit<br>
Moby Dick<br>
bing<br>
my-table<br>
<h2>Contents</h2>
<ul>
<li>
<a href="#idp493525764">Includes</a><ul>
<li><a href="#idp493521284">Simple include</a></li>
<li><a href="#idp493533828">Nested includes</a></li>
</ul>
</li>
<li>
<a href="#idp493537028">Blocks</a><ul>
<li><a href="#idp493540356">Language metadata</a></li>
<li><a href="#idp493544836">Citations</a></li>
<li><a href="#idp493548932">Escaping block syntax</a></li>
<li><a href="#idp493558276">Complex block structure</a></li>
<li><a href="#idp493570564">Paragraph with colon in first word</a></li>
</ul>
</li>
<li>
<a href="#idp493574020">Remarks</a><ul>
<li><a href="#idp493579524">Simple remark</a></li>
<li><a href="#idp493582724">Complex remark</a></li>
</ul>
</li>
<li>
<a href="#idp493591812">Fields</a><ul><li><a href="#idp493587716">Nested fields</a></li></ul>
</li>
<li>
<a href="#idp493595780">Paragraphs</a><ul>
<li><a href="#idp493593860">Paragraph</a></li>
<li><a href="#idp493597956">With annotated phrase</a></li>
</ul>
</li>
<li>
<a href="#idp493606532">Ordered lists</a><ul>
<li><a href="#idp493605636">Ordered list with spaces</a></li>
<li><a href="#idp493612036">Ordered list no spaces</a></li>
<li><a href="#idp493619332">Ordered list mixed spacing</a></li>
<li><a href="#idp493617412">Nested ordered list with spaces</a></li>
<li><a href="#idp493635460">Nested ordered lists with no spaces</a></li>
<li><a href="#idp493644036">Nested ordered list with mixed spacing</a></li>
</ul>
</li>
<li>
<a href="#idp493655684">Unordered lists</a><ul>
<li><a href="#idp493657220">Unordered list with spaces</a></li>
<li><a href="#idp493662980">Unordered list no spaces</a></li>
<li><a href="#idp493666948">Unordered list mixed spacing</a></li>
<li><a href="#idp493681924">Nested list with spaces</a></li>
<li><a href="#idp495256484">Nested unordered list with no spaces</a></li>
<li><a href="#idp495260196">Nested unordered list with mixed spacing</a></li>
</ul>
</li>
<li>
<a href="#idp495287844">Mixed lists</a><ul>
<li><a href="#idp495292964">Nested mixed lists with spaces</a></li>
<li><a href="#idp495312932">Nested mixed lists with no spaces</a></li>
<li><a href="#idp495337892">Nested numbered lists with mixed spacing</a></li>
<li><a href="#idp495347492">Space between lists</a></li>
<li><a href="#idp495356708">No space between lists</a></li>
</ul>
</li>
<li>
<a href="#idp495365924">Literal lists</a><ul>
<li><a href="#idp495370788">Literal numbered list using \ to escape .</a></li>
<li><a href="#idp495374244">Literal unordered list using \ to escape *</a></li>
</ul>
</li>
<li>
<a href="#idp495379236">Labeled lists</a><ul>
<li><a href="#idp495219380">Simple labeled list</a></li>
<li><a href="#idp495227700">XML markup characters in list labels</a></li>
</ul>
</li>
<li>
<a href="#idp495233972">Record sets</a><ul>
<li><a href="#idp495238964">Recordset</a></li>
<li><a href="#idp496003380">Recordset with only one field name</a></li>
</ul>
</li>
<li>
<a href="#idp496005556">Grids</a><ul>
<li><a href="#idp496001076">Grid with heads</a></li>
<li><a href="#idp496021044">Grid with management domain attributes</a></li>
<li><a href="#idp496032692">Grid with bold row</a></li>
<li><a href="#idp496033716">Grid with side heads</a></li>
</ul>
</li>
<li>
<a href="#idp496056756">Blockquotes</a><ul>
<li><a href="#idp496049588">Blockquote</a></li>
<li><a href="#idp496059316">Alternate block quote</a></li>
</ul>
</li>
<li>
<a href="#idp495796020">Codeblocks</a><ul>
<li><a href="#idp495800500">Simple codeblock</a></li>
<li><a href="#idp495811508">Blank lines in codeblock</a></li>
<li><a href="#idp495805236">Codeblock with citation</a></li>
<li><a href="#idp495812276">Invalid blockstart in codeblock</a></li>
</ul>
</li>
<li>
<a href="#idp495825588">Embedblock</a><ul>
<li><a href="#idp495822772">Simple embed</a></li>
<li><a href="#idp495824692">Embedded XML</a></li>
</ul>
</li>
<li>
<a href="#idp495833268">Lines</a><ul>
<li><a href="#idp495831732">Lines</a></li>
<li><a href="#idp495840948">Lines inside a blockquote</a></li>
</ul>
</li>
<li>
<a href="#idp495846964">Attributes</a><ul>
<li><a href="#idp495859380">Attributes on block</a></li>
<li><a href="#idp495858740">Attributes on field</a></li>
<li><a href="#idp495862964">Attributes on fragment</a></li>
<li><a href="#idp495868852">attributes on grid</a></li>
<li><a href="#idp495875380">attributes on record set</a></li>
<li><a href="#idp495883060">Attributes on unordered list</a></li>
<li><a href="#idp495888308">Attributes on ordered list</a></li>
<li><a href="#idp495897396">Attributes on labeled list</a></li>
<li><a href="#idp495907764">Attributes on lines</a></li>
<li><a href="#idp495916084">Attributes on blockquote</a></li>
<li><a href="#idp495922612">Attributes on a phrase</a></li>
<li><a href="#idp495923508">Attributes on a codeblock</a></li>
<li><a href="#idp495929396">Attributes on an embed</a></li>
<li><a href="#idp495938868">Attributes on inserts</a></li>
<li><a href="#idp495938612">Attributes on inserts</a></li>
</ul>
</li>
<li>
<a href="#idp495950388">Annotations</a><ul>
<li><a href="#idp495950260">Multiple annotations</a></li>
<li><a href="#idp495956532">Consecutive Annotations</a></li>
<li><a href="#idp495956276">Consecutive annotations</a></li>
<li><a href="#idp495966388">Annotation followed by citation</a></li>
<li><a href="#idp495973172">Annotation with language metadata</a></li>
<li><a href="#idp495969204">Annotation with a condition</a></li>
<li><a href="#idp495978292">Prior annotation lookup</a></li>
<li><a href="#idp495990196">Case insensitive lookup</a></li>
<li><a href="#idp495983796">Case insensitive lookup with multiple annotations</a></li>
<li><a href="#idp495993396">Prior annotation lookup in included file</a></li>
<li><a href="#idp497274580">Earlier para</a></li>
<li><a href="#idp497273684">Failure</a></li>
<li><a href="#idp497278036">Local only annotations</a></li>
<li><a href="#idp497289556">Cancel annotations</a></li>
<li><a href="#idp497295572">Cancel and replace</a></li>
<li><a href="#idp497307348">Define, cancel, and replace</a></li>
<li><a href="#idp497302228">Attribute annotations</a></li>
<li><a href="#idp497314260">Mix of local and global</a></li>
<li><a href="#idp497325140">Multiple local</a></li>
</ul>
</li>
<li>
<a href="#idp497329748">Decorations</a><ul>
<li><a href="#idp497326420">Bold, italic, and code</a></li>
<li><a href="#idp497334484">Unbalanced decorations and escapes</a></li>
</ul>
</li>
<li>
<a href="#idp497337428">Inline code</a><ul>
<li><a href="#idp497346900">Inline latexmath</a></li>
<li><a href="#idp497342420">Embedded latexmath</a></li>
</ul>
</li>
<li>
<a href="#idp497358164">Links</a><ul>
<li><a href="#idp497354324">Parens not escaped</a></li>
<li><a href="#idp497365588">Parens escaped with backslashes</a></li>
<li><a href="#idp497363156">Using explicit link annotation instead of shortcut</a></li>
</ul>
</li>
<li>
<a href="#idp497371732">Citations</a><ul>
<li><a href="#idp497375060">Citation on phrase</a></li>
<li><a href="#idp497377108">Citation and annotation on one phrase</a></li>
<li><a href="#idp497378772">Citations with compound identifiers</a></li>
<li><a href="#idp497124308">Literal square brackets</a></li>
<li><a href="#idp497122516">Multiple citations is a paragraph</a></li>
</ul>
</li>
<li>
<a href="#idp497133908">Characters</a><ul>
<li><a href="#idp497136852">HTML named entities</a></li>
<li><a href="#idp497140436">Numeric entities</a></li>
<li><a href="#idp497141076">Hexadecimal entity</a></li>
<li><a href="#idp497149652">Character entities inside phrases and decorations</a></li>
<li><a href="#idp497152724">In code annotation shortcut:</a></li>
<li><a href="#idp497154004">In bold decoration escaped:</a></li>
<li><a href="#idp497160660">Ampersand in a sentence, escaped with \ and not escaped.</a></li>
</ul>
</li>
<li>
<a href="#idp497162836">Character escapes</a><ul>
<li><a href="#idp497170260">Escapes in explicit annotations</a></li>
<li><a href="#idp497174996">Escapes in code decorations</a></li>
<li><a href="#idp497172180">Escapes in decorations</a></li>
<li><a href="#idp497183444">XML reserved characters in citation specifically attribute</a></li>
</ul>
</li>
<li>
<a href="#idp497188052">Conditions</a><ul>
<li><a href="#idp497193684">Conditions on unordered list shortcut</a></li>
<li><a href="#idp497201236">Conditions on ordered list shortcut</a></li>
</ul>
</li>
<li>
<a href="#idp497205716">Block inserts</a><ul>
<li><a href="#idp497205844">Image insert</a></li>
<li><a href="#idp497210452">Insert by ID</a></li>
<li><a href="#idp497219284">Key insert</a></li>
</ul>
</li>
<li>
<a href="#idp497221332">Inline inserts</a><ul>
<li><a href="#idp497221972">Inline inserts</a></li>
<li><a href="#idp497232340">Inline insert by ID</a></li>
<li><a href="#idp497232852">Paragraph that is just an inline insert</a></li>
</ul>
</li>
<li>
<a href="#idp497243348">Strings</a><ul>
<li><a href="#idp497241300">String definition</a></li>
<li><a href="#idp497241172">String references</a></li>
<li><a href="#idp497244756">String lookup</a></li>
</ul>
</li>
<li>
<a href="#idp497255892">Fragments</a><ul>
<li><a href="#idp497266004">Fragment</a></li>
<li><a href="#idp497263956">Insert a fragment</a></li>
</ul>
</li>
<li>
<a href="#idp497493556">Smart quotes</a><ul>
<li><a href="#idp497497780">Smart quotes</a></li>
<li><a href="#idp497504564">Following an annotation</a></li>
<li><a href="#idp497513012">Smart quotes with annotations</a></li>
<li><a href="#idp497510964">Adjacent to parentheses</a></li>
<li><a href="#idp497516468">Close quote followed by citation.</a></li>
<li><a href="#idp497514420">Miscellaneous cases</a></li>
<li><a href="#idp497524404">Escaped dumb quotes</a></li>
<li><a href="#idp497535156">Em and en dashes</a></li>
</ul>
</li>
</ul>
<h2 id="idp493525764">Test: Includes</h2>
<p>Include content from another SAM file.</p>
<h3 id="idp493521284">Case: Simple include</h3>
<p>An include statement.</p>
<h4>Source</h4>
<pre>
<<<(includeme.sam)
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<message>
<title>Hello World.</title>
<p>This is the "include" test -- file.</p>
<table border="1">
<tr>
<td>foo</td>
<td>bar</td>
</tr>
<tr>
<td>baz</td>
<td>bat</td>
</tr>
</table>
<p>Annotation lookup test: <span style="color: green"><span style="color: red">test phrase</span></span>.</p>
</message>
<h4>Intended output (space normalized)</h4>
<pre><message> <title>Hello World.</title> <p>This is the "include" test -- file.</p> <grid> <row> <cell>foo</cell> <cell>bar</cell> </row> <row> <cell>baz</cell> <cell>bat</cell> </row> </grid> <p>Annotation lookup test: <phrase><annotation type="test">test phrase</annotation></phrase>.</p> </message></pre>
<h4>Actual output (space normalized)</h4>
<pre><message> <title>Hello World.</title> <p>This is the "include" test -- file.</p> <grid> <row> <cell>foo</cell> <cell>bar</cell> </row> <row> <cell>baz</cell> <cell>bat</cell> </row> </grid> <p>Annotation lookup test: <phrase><annotation type="test">test phrase</annotation></phrase>.</p> </message></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493533828">Case: Nested includes</h3>
<p>Including a file that itself includes a file.</p>
<h4>Source</h4>
<pre>
<<<(includeme1.sam)
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<message>
<p>This file includes another file.</p>
<p>Nested includes work! Yipee!</p>
</message>
<h4>Intended output (space normalized)</h4>
<pre><message> <p>This file includes another file.</p> <p>Nested includes work! Yipee!</p> </message></pre>
<h4>Actual output (space normalized)</h4>
<pre><message> <p>This file includes another file.</p> <p>Nested includes work! Yipee!</p> </message></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<a href="#top">^top</a>
<h2 id="idp493537028">Test: Blocks</h2>
<p>Blocks are the basic building block of a SAM file. This whole document is a test case for blocks.</p>
<h3 id="idp493540356">Case: Language metadata</h3>
<p>A block with language metadata.</p>
<h4>Source</h4>
<pre>
section:(!es)
Feliz Navidad
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<section xml:lang="es">
<p>Feliz Navidad</p>
</section>
<h4>Intended output (space normalized)</h4>
<pre><section xml:lang="es"> <p>Feliz Navidad</p> </section></pre>
<h4>Actual output (space normalized)</h4>
<pre><section xml:lang="es"> <p>Feliz Navidad</p> </section></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493544836">Case: Citations</h3>
<p>A citation on the block.</p>
<h4>Source</h4>
<pre>
section:(!es)[Mother McCree] Greeting
Feliz Navidad
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<section xml:lang="es">
Mother McCree<span style="color: brown">[]</span>
<title>Greeting</title>
<p>Feliz Navidad</p>
</section>
<h4>Intended output (space normalized)</h4>
<pre><section xml:lang="es"> <citation>Mother McCree</citation> <title>Greeting</title> <p>Feliz Navidad</p> </section></pre>
<h4>Actual output (space normalized)</h4>
<pre><section xml:lang="es"> <citation>Mother McCree</citation> <title>Greeting</title> <p>Feliz Navidad</p> </section></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493548932">Case: Escaping block syntax</h3>
<p>Escape colon to prevent single word followed by colon being recognized as a block.</p>
<h4>Source</h4>
<pre>
and\:
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<p>and:</p>
<h4>Intended output (space normalized)</h4>
<pre><p>and:</p></pre>
<h4>Actual output (space normalized)</h4>
<pre><p>and:</p></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493558276">Case: Complex block structure</h3>
<p>A complex block with various structures inside.</p>
<h4>Source</h4>
<pre>
document:
head:(#foo)
foo: barney {and}(conjunction) betty
baz: bat
$name=fred {and}(conjunction) wilma
history:: date, author, comment, status
2014-06-23, mbaker, New\, Topic, In progress
2016-07-01, mbaker, Revision, In progress
index:: type, term
feature, fragment
feature, fragments
body: How Fragments Work
Stuff on how fragments work.
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<document>
<head name="foo">
<foo>barney <span style="color: green"><span style="color: red">and</span></span> betty</foo>
<baz>bat</baz>
<variable name="name">fred <span style="color: green"><span style="color: red">and</span></span> wilma</variable>
<history>
<record>
<date>2014-06-23</date>
<author>mbaker</author>
<comment>New, Topic</comment>
<status>In progress</status>
</record>
<record>
<date>2016-07-01</date>
<author>mbaker</author>
<comment>Revision</comment>
<status>In progress</status>
</record>
</history>
<index>
<record>
<type>feature</type>
<term>fragment</term>
</record>
<record>
<type>feature</type>
<term>fragments</term>
</record>
</index>
</head>
<body>
<title>How Fragments Work</title>
<p>Stuff on how fragments work.</p>
</body>
</document>
<h4>Intended output (space normalized)</h4>
<pre><document> <head name="foo"> <foo>barney <phrase><annotation type="conjunction">and</annotation></phrase> betty</foo> <baz>bat</baz> <variable name="name">fred <phrase><annotation type="conjunction">and</annotation></phrase> wilma</variable> <history> <record> <date>2014-06-23</date> <author>mbaker</author> <comment>New, Topic</comment> <status>In progress</status> </record> <record> <date>2016-07-01</date> <author>mbaker</author> <comment>Revision</comment> <status>In progress</status> </record> </history> <index> <record> <type>feature</type> <term>fragment</term> </record> <record> <type>feature</type> <term>fragments</term> </record> </index> </head> <body> <title>How Fragments Work</title> <p>Stuff on how fragments work.</p> </body> </document></pre>
<h4>Actual output (space normalized)</h4>
<pre><document> <head name="foo"> <foo>barney <phrase><annotation type="conjunction">and</annotation></phrase> betty</foo> <baz>bat</baz> <variable name="name">fred <phrase><annotation type="conjunction">and</annotation></phrase> wilma</variable> <history> <record> <date>2014-06-23</date> <author>mbaker</author> <comment>New, Topic</comment> <status>In progress</status> </record> <record> <date>2016-07-01</date> <author>mbaker</author> <comment>Revision</comment> <status>In progress</status> </record> </history> <index> <record> <type>feature</type> <term>fragment</term> </record> <record> <type>feature</type> <term>fragments</term> </record> </index> </head> <body> <title>How Fragments Work</title> <p>Stuff on how fragments work.</p> </body> </document></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493570564">Case: Paragraph with colon in first word</h3>
<p>Case related to issue #94.</p>
<h4>Source</h4>
<pre>
article: Foo
foo{bar}(http://www.example.com/).
`foo::bar` baz.
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<article>
<title>Foo</title>
<p>foo<span style="color: green"><a href="http://www.example.com/">bar</a></span>.</p>
<p><code>foo::bar</code> baz.</p>
</article>
<h4>Intended output (space normalized)</h4>
<pre><article> <title>Foo</title> <p>foo<phrase><annotation type="link" specifically="http://www.example.com/">bar</annotation></phrase>.</p> <p><code>foo::bar</code> baz.</p> </article></pre>
<h4>Actual output (space normalized)</h4>
<pre><article> <title>Foo</title> <p>foo<phrase><annotation type="link" specifically="http://www.example.com/">bar</annotation></phrase>.</p> <p><code>foo::bar</code> baz.</p> </article></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<a href="#top">^top</a>
<h2 id="idp493574020">Test: Remarks</h2>
<p>Remarks are a type of comment that is attributed to an author and is used for commenting editorially on the document.</p>
<h3 id="idp493579524">Case: Simple remark</h3>
<p>Just a simple remark. Nothing fancy.</p>
<h4>Source</h4>
<pre>
!!!(mbaker)
This is a remark.
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<remark attribution="mbaker">
<p>This is a remark.</p>
</remark>
<h4>Intended output (space normalized)</h4>
<pre><remark attribution="mbaker"> <p>This is a remark.</p> </remark></pre>
<h4>Actual output (space normalized)</h4>
<pre><remark attribution="mbaker"> <p>This is a remark.</p> </remark></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493582724">Case: Complex remark</h3>
<p>A little bit more complex.</p>
<h4>Source</h4>
<pre>
!!!(Charles André Joseph Marie de Gaulle !@#$%^&*(((({}":<>)(*cdg1)(!fr)
This is a remark.
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<remark attribution='Charles André Joseph Marie de Gaulle !@#$%^&*(((({}":<>' id="cdg1" xml:lang="fr">
<p>This is a remark.</p>
</remark>
<h4>Intended output (space normalized)</h4>
<pre><remark attribution="Charles André Joseph Marie de Gaulle !@#$%^&amp;*(((({}&quot;:&lt;&gt;" id="cdg1" xml:lang="fr"> <p>This is a remark.</p> </remark></pre>
<h4>Actual output (space normalized)</h4>
<pre><remark attribution="Charles André Joseph Marie de Gaulle !@#$%^&amp;*(((({}&quot;:&lt;&gt;" id="cdg1" xml:lang="fr"> <p>This is a remark.</p> </remark></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<a href="#top">^top</a>
<h2 id="idp493591812">Test: Fields</h2>
<p>A field is a block without children. A field value does not get wrapped in a title element. It is simple the value of the field.</p>
<h3 id="idp493587716">Case: Nested fields</h3>
<p>Nested fields. Anything with a child, of course, is a block, not a field.</p>
<h4>Source</h4>
<pre>
address:
name: Fred Flintstone
address: Bedrock
era: Stone Age
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<address>
<name>Fred Flintstone</name>
<address>Bedrock</address>
<era>Stone Age</era>
</address>
<h4>Intended output (space normalized)</h4>
<pre><address> <name>Fred Flintstone</name> <address>Bedrock</address> <era>Stone Age</era> </address></pre>
<h4>Actual output (space normalized)</h4>
<pre><address> <name>Fred Flintstone</name> <address>Bedrock</address> <era>Stone Age</era> </address></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<a href="#top">^top</a>
<h2 id="idp493595780">Test: Paragraphs</h2>
<p>A paragraph is a block of text over consecutive lines.</p>
<h3 id="idp493593860">Case: Paragraph</h3>
<p>A simple multi-line paragraph ending with a blank space.</p>
<h4>Source</h4>
<pre>
Wafting zephyrs
quickly vexed
Jumbo.
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<p>Wafting zephyrs quickly vexed Jumbo.</p>
<h4>Intended output (space normalized)</h4>
<pre><p>Wafting zephyrs quickly vexed Jumbo.</p></pre>
<h4>Actual output (space normalized)</h4>
<pre><p>Wafting zephyrs quickly vexed Jumbo.</p></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493597956">Case: With annotated phrase</h3>
<p>A paragraph over multiple lines with an annotated phrase.</p>
<h4>Source</h4>
<pre>
This is a {paragraph}(foo)
that wraps across
multiple lines.
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<p>This is a <span style="color: green"><span style="color: red">paragraph</span></span> that wraps across multiple lines.</p>
<h4>Intended output (space normalized)</h4>
<pre><p>This is a <phrase><annotation type="foo">paragraph</annotation></phrase> that wraps across multiple lines.</p></pre>
<h4>Actual output (space normalized)</h4>
<pre><p>This is a <phrase><annotation type="foo">paragraph</annotation></phrase> that wraps across multiple lines.</p></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<a href="#top">^top</a>
<h2 id="idp493606532">Test: Ordered lists</h2>
<p>Ordered lists are created by starting a line with a number followed by a period. Exact numbers are not retained.</p>
<h3 id="idp493605636">Case: Ordered list with spaces</h3>
<p>Ordered lists can have blank lines between the items.</p>
<h4>Source</h4>
<pre>
0. One
0. Two
99999. Three
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ol>
<li>
<p>One</p>
</li>
<li>
<p>Two</p>
</li>
<li>
<p>Three</p>
</li>
</ol>
<h4>Intended output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two</p> </li> <li> <p>Three</p> </li> </ol></pre>
<h4>Actual output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two</p> </li> <li> <p>Three</p> </li> </ol></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493612036">Case: Ordered list no spaces</h3>
<p>List are also recognized without space between items. List items can wrap to another line if more indented than the number. Additional paragraphs can be included if more indented than the number.</p>
<h4>Source</h4>
<pre>
0. One
0. Two this
paragraph wraps.
This is another para in the list item.
99999. Three
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ol>
<li>
<p>One</p>
</li>
<li>
<p>Two this paragraph wraps.</p>
<p>This is another para in the list item.</p>
</li>
<li>
<p>Three</p>
</li>
</ol>
<h4>Intended output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two this paragraph wraps.</p> <p>This is another para in the list item.</p> </li> <li> <p>Three</p> </li> </ol></pre>
<h4>Actual output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two this paragraph wraps.</p> <p>This is another para in the list item.</p> </li> <li> <p>Three</p> </li> </ol></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493619332">Case: Ordered list mixed spacing</h3>
<p>Ordered list with inconsistent spacing.</p>
<h4>Source</h4>
<pre>
0. One
0. Two
99999. Three
7. Four
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ol>
<li>
<p>One</p>
</li>
<li>
<p>Two</p>
</li>
<li>
<p>Three</p>
</li>
<li>
<p>Four</p>
</li>
</ol>
<h4>Intended output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two</p> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Actual output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two</p> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493617412">Case: Nested ordered list with spaces</h3>
<p>Ordered lists at different indents, with spaces between lines.</p>
<h4>Source</h4>
<pre>
0. One
0. Two x
5. Two and a quarter x
6. Two and a half
9. Two and three quarters
99999. Three
7. Four
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ol>
<li>
<p>One</p>
</li>
<li>
<p>Two x</p>
<ol>
<li>
<p>Two and a quarter x</p>
</li>
<li>
<p>Two and a half</p>
</li>
<li>
<p>Two and three quarters</p>
</li>
</ol>
</li>
<li>
<p>Three</p>
</li>
<li>
<p>Four</p>
</li>
</ol>
<h4>Intended output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two x</p> <ol> <li> <p>Two and a quarter x</p> </li> <li> <p>Two and a half</p> </li> <li> <p>Two and three quarters</p> </li> </ol> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Actual output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two x</p> <ol> <li> <p>Two and a quarter x</p> </li> <li> <p>Two and a half</p> </li> <li> <p>Two and three quarters</p> </li> </ol> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493635460">Case: Nested ordered lists with no spaces</h3>
<p>Ordered lists at different indents, with no spaces between lines.</p>
<h4>Source</h4>
<pre>
0. One
0. Two z
5. Two and a quarter z
6. Two and a half
9. Two and three quarters
99999. Three
7. Four
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ol>
<li>
<p>One</p>
</li>
<li>
<p>Two z</p>
<ol>
<li>
<p>Two and a quarter z</p>
</li>
<li>
<p>Two and a half</p>
</li>
<li>
<p>Two and three quarters</p>
</li>
</ol>
</li>
<li>
<p>Three</p>
</li>
<li>
<p>Four</p>
</li>
</ol>
<h4>Intended output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two z</p> <ol> <li> <p>Two and a quarter z</p> </li> <li> <p>Two and a half</p> </li> <li> <p>Two and three quarters</p> </li> </ol> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Actual output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two z</p> <ol> <li> <p>Two and a quarter z</p> </li> <li> <p>Two and a half</p> </li> <li> <p>Two and three quarters</p> </li> </ol> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493644036">Case: Nested ordered list with mixed spacing</h3>
<p>Ordered lists at different indents, with some spaces between lines.</p>
<h4>Source</h4>
<pre>
0. One
0. Two r
5. Two and a quarter r
6. Two and a half
9. Two and three quarters
99999. Three
7. Four
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ol>
<li>
<p>One</p>
</li>
<li>
<p>Two r</p>
<ol>
<li>
<p>Two and a quarter r</p>
</li>
<li>
<p>Two and a half</p>
</li>
<li>
<p>Two and three quarters</p>
</li>
</ol>
</li>
<li>
<p>Three</p>
</li>
<li>
<p>Four</p>
</li>
</ol>
<h4>Intended output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two r</p> <ol> <li> <p>Two and a quarter r</p> </li> <li> <p>Two and a half</p> </li> <li> <p>Two and three quarters</p> </li> </ol> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Actual output (space normalized)</h4>
<pre><ol> <li> <p>One</p> </li> <li> <p>Two r</p> <ol> <li> <p>Two and a quarter r</p> </li> <li> <p>Two and a half</p> </li> <li> <p>Two and three quarters</p> </li> </ol> </li> <li> <p>Three</p> </li> <li> <p>Four</p> </li> </ol></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<a href="#top">^top</a>
<h2 id="idp493655684">Test: Unordered lists</h2>
<p>Unordered lists are indicated by starting a line with <code>*</code>.</p>
<h3 id="idp493657220">Case: Unordered list with spaces</h3>
<p>A list with spaces between the lines.</p>
<h4>Source</h4>
<pre>
* One
* Two t
* Three
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ul>
<li>
<p>One</p>
</li>
<li>
<p>Two t</p>
</li>
<li>
<p>Three</p>
</li>
</ul>
<h4>Intended output (space normalized)</h4>
<pre><ul> <li> <p>One</p> </li> <li> <p>Two t</p> </li> <li> <p>Three</p> </li> </ul></pre>
<h4>Actual output (space normalized)</h4>
<pre><ul> <li> <p>One</p> </li> <li> <p>Two t</p> </li> <li> <p>Three</p> </li> </ul></pre>
<h4>Test result</h4>
<p style="color: green; font-weight: bold">PASS</p>
<h3 id="idp493662980">Case: Unordered list no spaces</h3>
<p>A list with no spaces between the lines.</p>
<h4>Source</h4>
<pre>
* One
* Two y
* Three
</pre>
<h4>Formatted output (not necessarily supported for all tests)</h4>
<ul>
<li>
<p>One</p>
</li>
<li>
<p>Two y</p>
</li>
<li>
<p>Three</p>
</li>
</ul>