git.iko.soy/typeable/pandoc
on master help sign in
Added old-style tests for TEI writer (tests/tables.tei, tests/writer.tei).
commit2a2e3d99d226636166859e63d5259258ba759d5c authorJohn MacFarlane <jgm@berkeley.edu> dateThu 21 Jan 2016, 15:44 (11 years ago) parent5b31790
3 files changed+1033−1
tests/Tests/Old.hs+1−1 tests/tables.tei+171 tests/writer.tei+861
tests/Tests/Old.hs+1−1
@@ -162,7 +162,7 @@ tests = [ testGroup "markdown"
162162 [ test "reader" ["-r", "twiki", "-w", "native", "-s"]
163163 "twiki-reader.twiki" "twiki-reader.native" ]
164164 , testGroup "other writers" $ map (\f -> testGroup f $ writerTests f)
165− [ "opendocument" , "context" , "texinfo", "icml"
165+ [ "opendocument" , "context" , "texinfo", "icml", "tei"
166166 , "man" , "plain" , "rtf", "org", "asciidoc"
167167 ]
168168 , testGroup "writers-lang-and-dir"
tests/tables.teinew file+171
@@ -0,0 +1,171 @@
1+<p>Simple table with caption:</p>
2+<table>
3+ <row role="label">
4+ <cell><p>Right</p></cell>
5+ <cell><p>Left</p></cell>
6+ <cell><p>Center</p></cell>
7+ <cell><p>Default</p></cell>
8+ </row>
9+ <row>
10+ <cell><p>12</p></cell>
11+ <cell><p>12</p></cell>
12+ <cell><p>12</p></cell>
13+ <cell><p>12</p></cell>
14+ </row>
15+ <row>
16+ <cell><p>123</p></cell>
17+ <cell><p>123</p></cell>
18+ <cell><p>123</p></cell>
19+ <cell><p>123</p></cell>
20+ </row>
21+ <row>
22+ <cell><p>1</p></cell>
23+ <cell><p>1</p></cell>
24+ <cell><p>1</p></cell>
25+ <cell><p>1</p></cell>
26+ </row>
27+</table>
28+<p>Simple table without caption:</p>
29+<table>
30+ <row role="label">
31+ <cell><p>Right</p></cell>
32+ <cell><p>Left</p></cell>
33+ <cell><p>Center</p></cell>
34+ <cell><p>Default</p></cell>
35+ </row>
36+ <row>
37+ <cell><p>12</p></cell>
38+ <cell><p>12</p></cell>
39+ <cell><p>12</p></cell>
40+ <cell><p>12</p></cell>
41+ </row>
42+ <row>
43+ <cell><p>123</p></cell>
44+ <cell><p>123</p></cell>
45+ <cell><p>123</p></cell>
46+ <cell><p>123</p></cell>
47+ </row>
48+ <row>
49+ <cell><p>1</p></cell>
50+ <cell><p>1</p></cell>
51+ <cell><p>1</p></cell>
52+ <cell><p>1</p></cell>
53+ </row>
54+</table>
55+<p>Simple table indented two spaces:</p>
56+<table>
57+ <row role="label">
58+ <cell><p>Right</p></cell>
59+ <cell><p>Left</p></cell>
60+ <cell><p>Center</p></cell>
61+ <cell><p>Default</p></cell>
62+ </row>
63+ <row>
64+ <cell><p>12</p></cell>
65+ <cell><p>12</p></cell>
66+ <cell><p>12</p></cell>
67+ <cell><p>12</p></cell>
68+ </row>
69+ <row>
70+ <cell><p>123</p></cell>
71+ <cell><p>123</p></cell>
72+ <cell><p>123</p></cell>
73+ <cell><p>123</p></cell>
74+ </row>
75+ <row>
76+ <cell><p>1</p></cell>
77+ <cell><p>1</p></cell>
78+ <cell><p>1</p></cell>
79+ <cell><p>1</p></cell>
80+ </row>
81+</table>
82+<p>Multiline table with caption:</p>
83+<table>
84+ <row role="label">
85+ <cell><p>Centered Header</p></cell>
86+ <cell><p>Left Aligned</p></cell>
87+ <cell><p>Right Aligned</p></cell>
88+ <cell><p>Default aligned</p></cell>
89+ </row>
90+ <row>
91+ <cell><p>First</p></cell>
92+ <cell><p>row</p></cell>
93+ <cell><p>12.0</p></cell>
94+ <cell><p>Example of a row that spans multiple lines.</p></cell>
95+ </row>
96+ <row>
97+ <cell><p>Second</p></cell>
98+ <cell><p>row</p></cell>
99+ <cell><p>5.0</p></cell>
100+ <cell><p>Here's another one. Note the blank line between rows.</p></cell>
101+ </row>
102+</table>
103+<p>Multiline table without caption:</p>
104+<table>
105+ <row role="label">
106+ <cell><p>Centered Header</p></cell>
107+ <cell><p>Left Aligned</p></cell>
108+ <cell><p>Right Aligned</p></cell>
109+ <cell><p>Default aligned</p></cell>
110+ </row>
111+ <row>
112+ <cell><p>First</p></cell>
113+ <cell><p>row</p></cell>
114+ <cell><p>12.0</p></cell>
115+ <cell><p>Example of a row that spans multiple lines.</p></cell>
116+ </row>
117+ <row>
118+ <cell><p>Second</p></cell>
119+ <cell><p>row</p></cell>
120+ <cell><p>5.0</p></cell>
121+ <cell><p>Here's another one. Note the blank line between rows.</p></cell>
122+ </row>
123+</table>
124+<p>Table without column headers:</p>
125+<table>
126+ <row role="label">
127+ <cell></cell>
128+ <cell></cell>
129+ <cell></cell>
130+ <cell></cell>
131+ </row>
132+ <row>
133+ <cell><p>12</p></cell>
134+ <cell><p>12</p></cell>
135+ <cell><p>12</p></cell>
136+ <cell><p>12</p></cell>
137+ </row>
138+ <row>
139+ <cell><p>123</p></cell>
140+ <cell><p>123</p></cell>
141+ <cell><p>123</p></cell>
142+ <cell><p>123</p></cell>
143+ </row>
144+ <row>
145+ <cell><p>1</p></cell>
146+ <cell><p>1</p></cell>
147+ <cell><p>1</p></cell>
148+ <cell><p>1</p></cell>
149+ </row>
150+</table>
151+<p>Multiline table without column headers:</p>
152+<table>
153+ <row role="label">
154+ <cell></cell>
155+ <cell></cell>
156+ <cell></cell>
157+ <cell></cell>
158+ </row>
159+ <row>
160+ <cell><p>First</p></cell>
161+ <cell><p>row</p></cell>
162+ <cell><p>12.0</p></cell>
163+ <cell><p>Example of a row that spans multiple lines.</p></cell>
164+ </row>
165+ <row>
166+ <cell><p>Second</p></cell>
167+ <cell><p>row</p></cell>
168+ <cell><p>5.0</p></cell>
169+ <cell><p>Here's another one. Note the blank line between rows.</p></cell>
170+ </row>
171+</table>
tests/writer.teinew file+861
@@ -0,0 +1,861 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<TEI xmlns="http://www.tei-c.org/ns/1.0">
3+<teiHeader>
4+ <fileDesc>
5+ <titleStmt>
6+ <title>Pandoc Test Suite</title>
7+ <author>John MacFarlane</author>
8+ <author>Anonymous</author>
9+ </titleStmt>
10+ <publicationStmt>
11+ <p></p>
12+ </publicationStmt>
13+ <sourceDesc>
14+ <p>Produced by pandoc.</p>
15+ </sourceDesc>
16+ </fileDesc>
17+</teiHeader>
18+<text>
19+<body>
20+<p>This is a set of tests for pandoc. Most of them are adapted from John
21+Gruber’s markdown test suite.</p>
22+<milestone unit="undefined" type="separator" rendition="line" />
23+<div type="level1">
24+ <head>Headers</head>
25+ <div type="level2">
26+ <head>Level 2 with an <ref target="/url">embedded link</ref></head>
27+ <div type="level3">
28+ <head>Level 3 with <hi rendition="simple:italic">emphasis</hi></head>
29+ <div type="level4">
30+ <head>Level 4</head>
31+ <div type="level5">
32+ <head>Level 5</head>
33+ <p></p>
34+ </div>
35+ </div>
36+ </div>
37+ </div>
38+</div>
39+<div type="level1">
40+ <head>Level 1</head>
41+ <div type="level2">
42+ <head>Level 2 with <hi rendition="simple:italic">emphasis</hi></head>
43+ <div type="level3">
44+ <head>Level 3</head>
45+ <p>with no blank line</p>
46+ </div>
47+ </div>
48+ <div type="level2">
49+ <head>Level 2</head>
50+ <p>with no blank line</p>
51+ <milestone unit="undefined" type="separator" rendition="line" />
52+ </div>
53+</div>
54+<div type="level1">
55+ <head>Paragraphs</head>
56+ <p>Here’s a regular paragraph.</p>
57+ <p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
58+ item. Because a hard-wrapped line in the middle of a paragraph looked like a
59+ list item.</p>
60+ <p>Here’s one with a bullet. * criminey.</p>
61+ <p>There should be a hard line break<lb />here.</p>
62+ <milestone unit="undefined" type="separator" rendition="line" />
63+</div>
64+<div type="level1">
65+ <head>Block Quotes</head>
66+ <p>E-mail style:</p>
67+ <quote>
68+ <p>This is a block quote. It is pretty short.</p>
69+ </quote>
70+ <quote>
71+ <p>Code in a block quote:</p>
72+ <ab type='codeblock '>
73+sub status {
74+ print &quot;working&quot;;
75+}
76+</ab>
77+ <p>A list:</p>
78+ <list type="ordered:arabic">
79+ <item>
80+ <p>item one</p>
81+ </item>
82+ <item>
83+ <p>item two</p>
84+ </item>
85+ </list>
86+ <p>Nested block quotes:</p>
87+ <quote>
88+ <p>nested</p>
89+ </quote>
90+ <quote>
91+ <p>nested</p>
92+ </quote>
93+ </quote>
94+ <p>This should not be a block quote: 2 &gt; 1.</p>
95+ <p>And a following paragraph.</p>
96+ <milestone unit="undefined" type="separator" rendition="line" />
97+</div>
98+<div type="level1">
99+ <head>Code Blocks</head>
100+ <p>Code:</p>
101+ <ab type='codeblock '>
102+---- (should be four hyphens)
103+
104+sub status {
105+ print &quot;working&quot;;
106+}
107+
108+this code block is indented by one tab
109+</ab>
110+ <p>And:</p>
111+ <ab type='codeblock '>
112+ this code block is indented by two tabs
113+
114+These should not be escaped: \$ \\ \&gt; \[ \{
115+</ab>
116+ <milestone unit="undefined" type="separator" rendition="line" />
117+</div>
118+<div type="level1">
119+ <head>Lists</head>
120+ <div type="level2">
121+ <head>Unordered</head>
122+ <p>Asterisks tight:</p>
123+ <list type="unordered">
124+ <item>
125+ <p>asterisk 1</p>
126+ </item>
127+ <item>
128+ <p>asterisk 2</p>
129+ </item>
130+ <item>
131+ <p>asterisk 3</p>
132+ </item>
133+ </list>
134+ <p>Asterisks loose:</p>
135+ <list type="unordered">
136+ <item>
137+ <p>asterisk 1</p>
138+ </item>
139+ <item>
140+ <p>asterisk 2</p>
141+ </item>
142+ <item>
143+ <p>asterisk 3</p>
144+ </item>
145+ </list>
146+ <p>Pluses tight:</p>
147+ <list type="unordered">
148+ <item>
149+ <p>Plus 1</p>
150+ </item>
151+ <item>
152+ <p>Plus 2</p>
153+ </item>
154+ <item>
155+ <p>Plus 3</p>
156+ </item>
157+ </list>
158+ <p>Pluses loose:</p>
159+ <list type="unordered">
160+ <item>
161+ <p>Plus 1</p>
162+ </item>
163+ <item>
164+ <p>Plus 2</p>
165+ </item>
166+ <item>
167+ <p>Plus 3</p>
168+ </item>
169+ </list>
170+ <p>Minuses tight:</p>
171+ <list type="unordered">
172+ <item>
173+ <p>Minus 1</p>
174+ </item>
175+ <item>
176+ <p>Minus 2</p>
177+ </item>
178+ <item>
179+ <p>Minus 3</p>
180+ </item>
181+ </list>
182+ <p>Minuses loose:</p>
183+ <list type="unordered">
184+ <item>
185+ <p>Minus 1</p>
186+ </item>
187+ <item>
188+ <p>Minus 2</p>
189+ </item>
190+ <item>
191+ <p>Minus 3</p>
192+ </item>
193+ </list>
194+ </div>
195+ <div type="level2">
196+ <head>Ordered</head>
197+ <p>Tight:</p>
198+ <list type="ordered:arabic">
199+ <item>
200+ <p>First</p>
201+ </item>
202+ <item>
203+ <p>Second</p>
204+ </item>
205+ <item>
206+ <p>Third</p>
207+ </item>
208+ </list>
209+ <p>and:</p>
210+ <list type="ordered:arabic">
211+ <item>
212+ <p>One</p>
213+ </item>
214+ <item>
215+ <p>Two</p>
216+ </item>
217+ <item>
218+ <p>Three</p>
219+ </item>
220+ </list>
221+ <p>Loose using tabs:</p>
222+ <list type="ordered:arabic">
223+ <item>
224+ <p>First</p>
225+ </item>
226+ <item>
227+ <p>Second</p>
228+ </item>
229+ <item>
230+ <p>Third</p>
231+ </item>
232+ </list>
233+ <p>and using spaces:</p>
234+ <list type="ordered:arabic">
235+ <item>
236+ <p>One</p>
237+ </item>
238+ <item>
239+ <p>Two</p>
240+ </item>
241+ <item>
242+ <p>Three</p>
243+ </item>
244+ </list>
245+ <p>Multiple paragraphs:</p>
246+ <list type="ordered:arabic">
247+ <item>
248+ <p>Item 1, graf one.</p>
249+ <p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s
250+ back.</p>
251+ </item>
252+ <item>
253+ <p>Item 2.</p>
254+ </item>
255+ <item>
256+ <p>Item 3.</p>
257+ </item>
258+ </list>
259+ </div>
260+ <div type="level2">
261+ <head>Nested</head>
262+ <list type="unordered">
263+ <item>
264+ <p>Tab</p>
265+ <list type="unordered">
266+ <item>
267+ <p>Tab</p>
268+ <list type="unordered">
269+ <item>
270+ <p>Tab</p>
271+ </item>
272+ </list>
273+ </item>
274+ </list>
275+ </item>
276+ </list>
277+ <p>Here’s another:</p>
278+ <list type="ordered:arabic">
279+ <item>
280+ <p>First</p>
281+ </item>
282+ <item>
283+ <p>Second:</p>
284+ <list type="unordered">
285+ <item>
286+ <p>Fee</p>
287+ </item>
288+ <item>
289+ <p>Fie</p>
290+ </item>
291+ <item>
292+ <p>Foe</p>
293+ </item>
294+ </list>
295+ </item>
296+ <item>
297+ <p>Third</p>
298+ </item>
299+ </list>
300+ <p>Same thing but with paragraphs:</p>
301+ <list type="ordered:arabic">
302+ <item>
303+ <p>First</p>
304+ </item>
305+ <item>
306+ <p>Second:</p>
307+ <list type="unordered">
308+ <item>
309+ <p>Fee</p>
310+ </item>
311+ <item>
312+ <p>Fie</p>
313+ </item>
314+ <item>
315+ <p>Foe</p>
316+ </item>
317+ </list>
318+ </item>
319+ <item>
320+ <p>Third</p>
321+ </item>
322+ </list>
323+ </div>
324+ <div type="level2">
325+ <head>Tabs and spaces</head>
326+ <list type="unordered">
327+ <item>
328+ <p>this is a list item indented with tabs</p>
329+ </item>
330+ <item>
331+ <p>this is a list item indented with spaces</p>
332+ <list type="unordered">
333+ <item>
334+ <p>this is an example list item indented with tabs</p>
335+ </item>
336+ <item>
337+ <p>this is an example list item indented with spaces</p>
338+ </item>
339+ </list>
340+ </item>
341+ </list>
342+ </div>
343+ <div type="level2">
344+ <head>Fancy list markers</head>
345+ <list type="ordered:arabic">
346+ <item n="2">
347+ <p>begins with 2</p>
348+ </item>
349+ <item>
350+ <p>and now 3</p>
351+ <p>with a continuation</p>
352+ <list type="ordered:lowerroman">
353+ <item n="4">
354+ <p>sublist with roman numerals, starting with 4</p>
355+ </item>
356+ <item>
357+ <p>more items</p>
358+ <list type="ordered:upperalpha">
359+ <item>
360+ <p>a subsublist</p>
361+ </item>
362+ <item>
363+ <p>a subsublist</p>
364+ </item>
365+ </list>
366+ </item>
367+ </list>
368+ </item>
369+ </list>
370+ <p>Nesting:</p>
371+ <list type="ordered:upperalpha">
372+ <item>
373+ <p>Upper Alpha</p>
374+ <list type="ordered:upperroman">
375+ <item>
376+ <p>Upper Roman.</p>
377+ <list type="ordered:arabic">
378+ <item n="6">
379+ <p>Decimal start with 6</p>
380+ <list type="ordered:loweralpha">
381+ <item n="3">
382+ <p>Lower alpha with paren</p>
383+ </item>
384+ </list>
385+ </item>
386+ </list>
387+ </item>
388+ </list>
389+ </item>
390+ </list>
391+ <p>Autonumbering:</p>
392+ <list>
393+ <item>
394+ <p>Autonumber.</p>
395+ </item>
396+ <item>
397+ <p>More.</p>
398+ <list>
399+ <item>
400+ <p>Nested.</p>
401+ </item>
402+ </list>
403+ </item>
404+ </list>
405+ <p>Should not be a list item:</p>
406+ <p>M.A. 2007</p>
407+ <p>B. Williams</p>
408+ <milestone unit="undefined" type="separator" rendition="line" />
409+ </div>
410+</div>
411+<div type="level1">
412+ <head>Definition Lists</head>
413+ <p>Tight using spaces:</p>
414+ <list type="definition">
415+ <label>
416+ apple
417+ </label>
418+ <item>
419+ <p>red fruit</p>
420+ </item>
421+ <label>
422+ orange
423+ </label>
424+ <item>
425+ <p>orange fruit</p>
426+ </item>
427+ <label>
428+ banana
429+ </label>
430+ <item>
431+ <p>yellow fruit</p>
432+ </item>
433+ </list>
434+ <p>Tight using tabs:</p>
435+ <list type="definition">
436+ <label>
437+ apple
438+ </label>
439+ <item>
440+ <p>red fruit</p>
441+ </item>
442+ <label>
443+ orange
444+ </label>
445+ <item>
446+ <p>orange fruit</p>
447+ </item>
448+ <label>
449+ banana
450+ </label>
451+ <item>
452+ <p>yellow fruit</p>
453+ </item>
454+ </list>
455+ <p>Loose:</p>
456+ <list type="definition">
457+ <label>
458+ apple
459+ </label>
460+ <item>
461+ <p>red fruit</p>
462+ </item>
463+ <label>
464+ orange
465+ </label>
466+ <item>
467+ <p>orange fruit</p>
468+ </item>
469+ <label>
470+ banana
471+ </label>
472+ <item>
473+ <p>yellow fruit</p>
474+ </item>
475+ </list>
476+ <p>Multiple blocks with italics:</p>
477+ <list type="definition">
478+ <label>
479+ <hi rendition="simple:italic">apple</hi>
480+ </label>
481+ <item>
482+ <p>red fruit</p>
483+ <p>contains seeds, crisp, pleasant to taste</p>
484+ </item>
485+ <label>
486+ <hi rendition="simple:italic">orange</hi>
487+ </label>
488+ <item>
489+ <p>orange fruit</p>
490+ <ab type='codeblock '>
491+{ orange code block }
492+</ab>
493+ <quote>
494+ <p>orange block quote</p>
495+ </quote>
496+ </item>
497+ </list>
498+ <p>Multiple definitions, tight:</p>
499+ <list type="definition">
500+ <label>
501+ apple
502+ </label>
503+ <item>
504+ <p>red fruit</p>
505+ <p>computer</p>
506+ </item>
507+ <label>
508+ orange
509+ </label>
510+ <item>
511+ <p>orange fruit</p>
512+ <p>bank</p>
513+ </item>
514+ </list>
515+ <p>Multiple definitions, loose:</p>
516+ <list type="definition">
517+ <label>
518+ apple
519+ </label>
520+ <item>
521+ <p>red fruit</p>
522+ <p>computer</p>
523+ </item>
524+ <label>
525+ orange
526+ </label>
527+ <item>
528+ <p>orange fruit</p>
529+ <p>bank</p>
530+ </item>
531+ </list>
532+ <p>Blank line after term, indented marker, alternate markers:</p>
533+ <list type="definition">
534+ <label>
535+ apple
536+ </label>
537+ <item>
538+ <p>red fruit</p>
539+ <p>computer</p>
540+ </item>
541+ <label>
542+ orange
543+ </label>
544+ <item>
545+ <p>orange fruit</p>
546+ <list type="ordered:arabic">
547+ <item>
548+ <p>sublist</p>
549+ </item>
550+ <item>
551+ <p>sublist</p>
552+ </item>
553+ </list>
554+ </item>
555+ </list>
556+</div>
557+<div type="level1">
558+ <head>HTML Blocks</head>
559+ <p>Simple block on one line:</p>
560+ <p>foo</p>
561+ <p>And nested without indentation:</p>
562+ <p>foo</p>
563+ <p>bar</p>
564+ <p>Interpreted markdown in a table:</p>
565+ <p>This is <hi rendition="simple:italic">emphasized</hi></p>
566+ <p>And this is <hi rendition="simple:bold">strong</hi></p>
567+ <p>Here’s a simple block:</p>
568+ <p>foo</p>
569+ <p>This should be a code block, though:</p>
570+ <ab type='codeblock '>
571+&lt;div&gt;
572+ foo
573+&lt;/div&gt;
574+</ab>
575+ <p>As should this:</p>
576+ <ab type='codeblock '>
577+&lt;div&gt;foo&lt;/div&gt;
578+</ab>
579+ <p>Now, nested:</p>
580+ <p>foo</p>
581+ <p>This should just be an HTML comment:</p>
582+ <p>Multiline:</p>
583+ <p>Code block:</p>
584+ <ab type='codeblock '>
585+&lt;!-- Comment --&gt;
586+</ab>
587+ <p>Just plain comment, with trailing spaces on the line:</p>
588+ <p>Code:</p>
589+ <ab type='codeblock '>
590+&lt;hr /&gt;
591+</ab>
592+ <p>Hr’s:</p>
593+ <milestone unit="undefined" type="separator" rendition="line" />
594+</div>
595+<div type="level1">
596+ <head>Inline Markup</head>
597+ <p>This is <hi rendition="simple:italic">emphasized</hi>, and so
598+ <hi rendition="simple:italic">is this</hi>.</p>
599+ <p>This is <hi rendition="simple:bold">strong</hi>, and so
600+ <hi rendition="simple:bold">is this</hi>.</p>
601+ <p>An <hi rendition="simple:italic"><ref target="/url">emphasized
602+ link</ref></hi>.</p>
603+ <p><hi rendition="simple:bold"><hi rendition="simple:italic">This is strong
604+ and em.</hi></hi></p>
605+ <p>So is
606+ <hi rendition="simple:bold"><hi rendition="simple:italic">this</hi></hi>
607+ word.</p>
608+ <p><hi rendition="simple:bold"><hi rendition="simple:italic">This is strong
609+ and em.</hi></hi></p>
610+ <p>So is
611+ <hi rendition="simple:bold"><hi rendition="simple:italic">this</hi></hi>
612+ word.</p>
613+ <p>This is code: <seg type="code">&gt;</seg>, <seg type="code">$</seg>,
614+ <seg type="code">\</seg>, <seg type="code">\$</seg>,
615+ <seg type="code">&lt;html&gt;</seg>.</p>
616+ <p><hi rendition="simple:strikethrough">This is
617+ <hi rendition="simple:italic">strikeout</hi>.</hi></p>
618+ <p>Superscripts: a<hi rendition="simple:superscript">bc</hi>d
619+ a<hi rendition="simple:superscript"><hi rendition="simple:italic">hello</hi></hi>
620+ a<hi rendition="simple:superscript">hello there</hi>.</p>
621+ <p>Subscripts: H<hi rendition="simple:subscript">2</hi>O,
622+ H<hi rendition="simple:subscript">23</hi>O,
623+ H<hi rendition="simple:subscript">many of them</hi>O.</p>
624+ <p>These should not be superscripts or subscripts, because of the unescaped
625+ spaces: a^b c^d, a~b c~d.</p>
626+ <milestone unit="undefined" type="separator" rendition="line" />
627+</div>
628+<div type="level1">
629+ <head>Smart quotes, ellipses, dashes</head>
630+ <p><quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
631+ name.</quote></p>
632+ <p><quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.</p>
633+ <p><quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are
634+ names of trees. So is <quote>pine.</quote></p>
635+ <p><quote>He said, <quote>I want to go.</quote></quote> Were you alive in
636+ the 70’s?</p>
637+ <p>Here is some quoted <quote><seg type="code">code</seg></quote> and a
638+ <quote><ref target="http://example.com/?foo=1&amp;bar=2">quoted
639+ link</ref></quote>.</p>
640+ <p>Some dashes: one—two — three—four — five.</p>
641+ <p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
642+ <p>Ellipses…and…and….</p>
643+ <milestone unit="undefined" type="separator" rendition="line" />
644+</div>
645+<div type="level1">
646+ <head>LaTeX</head>
647+ <list type="unordered">
648+ <item>
649+ <p></p>
650+ </item>
651+ <item>
652+ <p><formula notation="TeX">2+2=4</formula></p>
653+ </item>
654+ <item>
655+ <p><formula notation="TeX">x \in y</formula></p>
656+ </item>
657+ <item>
658+ <p><formula notation="TeX">\alpha \wedge \omega</formula></p>
659+ </item>
660+ <item>
661+ <p><formula notation="TeX">223</formula></p>
662+ </item>
663+ <item>
664+ <p><formula notation="TeX">p</formula>-Tree</p>
665+ </item>
666+ <item>
667+ <p>Here’s some display math: <figure type="math">
668+ <formula notation="TeX">\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</formula>
669+ </figure></p>
670+ </item>
671+ <item>
672+ <p>Here’s one that has a line break in it:
673+ <formula notation="TeX">\alpha + \omega \times x^2</formula>.</p>
674+ </item>
675+ </list>
676+ <p>These shouldn’t be math:</p>
677+ <list type="unordered">
678+ <item>
679+ <p>To get the famous equation, write
680+ <seg type="code">$e = mc^2$</seg>.</p>
681+ </item>
682+ <item>
683+ <p>$22,000 is a <hi rendition="simple:italic">lot</hi> of money. So is
684+ $34,000. (It worked if <quote>lot</quote> is emphasized.)</p>
685+ </item>
686+ <item>
687+ <p>Shoes ($20) and socks ($5).</p>
688+ </item>
689+ <item>
690+ <p>Escaped <seg type="code">$</seg>: $73
691+ <hi rendition="simple:italic">this should be emphasized</hi> 23$.</p>
692+ </item>
693+ </list>
694+ <p>Here’s a LaTeX table:</p>
695+ <milestone unit="undefined" type="separator" rendition="line" />
696+</div>
697+<div type="level1">
698+ <head>Special Characters</head>
699+ <p>Here is some unicode:</p>
700+ <list type="unordered">
701+ <item>
702+ <p>I hat: Î</p>
703+ </item>
704+ <item>
705+ <p>o umlaut: ö</p>
706+ </item>
707+ <item>
708+ <p>section: §</p>
709+ </item>
710+ <item>
711+ <p>set membership: ∈</p>
712+ </item>
713+ <item>
714+ <p>copyright: ©</p>
715+ </item>
716+ </list>
717+ <p>AT&amp;T has an ampersand in their name.</p>
718+ <p>AT&amp;T is another way to write it.</p>
719+ <p>This &amp; that.</p>
720+ <p>4 &lt; 5.</p>
721+ <p>6 &gt; 5.</p>
722+ <p>Backslash: \</p>
723+ <p>Backtick: `</p>
724+ <p>Asterisk: *</p>
725+ <p>Underscore: _</p>
726+ <p>Left brace: {</p>
727+ <p>Right brace: }</p>
728+ <p>Left bracket: [</p>
729+ <p>Right bracket: ]</p>
730+ <p>Left paren: (</p>
731+ <p>Right paren: )</p>
732+ <p>Greater-than: &gt;</p>
733+ <p>Hash: #</p>
734+ <p>Period: .</p>
735+ <p>Bang: !</p>
736+ <p>Plus: +</p>
737+ <p>Minus: -</p>
738+ <milestone unit="undefined" type="separator" rendition="line" />
739+</div>
740+<div type="level1">
741+ <head>Links</head>
742+ <div type="level2">
743+ <head>Explicit</head>
744+ <p>Just a <ref target="/url/">URL</ref>.</p>
745+ <p><ref target="/url/">URL and title</ref>.</p>
746+ <p><ref target="/url/">URL and title</ref>.</p>
747+ <p><ref target="/url/">URL and title</ref>.</p>
748+ <p><ref target="/url/">URL and title</ref></p>
749+ <p><ref target="/url/">URL and title</ref></p>
750+ <p><ref target="/url/with_underscore">with_underscore</ref></p>
751+ <p>Email link (nobody@nowhere.net)</p>
752+ <p><ref target="">Empty</ref>.</p>
753+ </div>
754+ <div type="level2">
755+ <head>Reference</head>
756+ <p>Foo <ref target="/url/">bar</ref>.</p>
757+ <p>Foo <ref target="/url/">bar</ref>.</p>
758+ <p>Foo <ref target="/url/">bar</ref>.</p>
759+ <p>With <ref target="/url/">embedded [brackets]</ref>.</p>
760+ <p><ref target="/url/">b</ref> by itself should be a link.</p>
761+ <p>Indented <ref target="/url">once</ref>.</p>
762+ <p>Indented <ref target="/url">twice</ref>.</p>
763+ <p>Indented <ref target="/url">thrice</ref>.</p>
764+ <p>This should [not][] be a link.</p>
765+ <ab type='codeblock '>
766+[not]: /url
767+</ab>
768+ <p>Foo <ref target="/url/">bar</ref>.</p>
769+ <p>Foo <ref target="/url/">biz</ref>.</p>
770+ </div>
771+ <div type="level2">
772+ <head>With ampersands</head>
773+ <p>Here’s a <ref target="http://example.com/?foo=1&amp;bar=2">link with an
774+ ampersand in the URL</ref>.</p>
775+ <p>Here’s a link with an amersand in the link text:
776+ <ref target="http://att.com/">AT&amp;T</ref>.</p>
777+ <p>Here’s an <ref target="/script?foo=1&amp;bar=2">inline link</ref>.</p>
778+ <p>Here’s an <ref target="/script?foo=1&amp;bar=2">inline link in pointy
779+ braces</ref>.</p>
780+ </div>
781+ <div type="level2">
782+ <head>Autolinks</head>
783+ <p>With an ampersand:
784+ <ref target="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</ref></p>
785+ <list type="unordered">
786+ <item>
787+ <p>In a list?</p>
788+ </item>
789+ <item>
790+ <p><ref target="http://example.com/">http://example.com/</ref></p>
791+ </item>
792+ <item>
793+ <p>It should.</p>
794+ </item>
795+ </list>
796+ <p>An e-mail address: nobody@nowhere.net</p>
797+ <quote>
798+ <p>Blockquoted:
799+ <ref target="http://example.com/">http://example.com/</ref></p>
800+ </quote>
801+ <p>Auto-links should not occur here:
802+ <seg type="code">&lt;http://example.com/&gt;</seg></p>
803+ <ab type='codeblock '>
804+or here: &lt;http://example.com/&gt;
805+</ab>
806+ <milestone unit="undefined" type="separator" rendition="line" />
807+ </div>
808+</div>
809+<div type="level1">
810+ <head>Images</head>
811+ <p>From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):</p>
812+ <p><figure>
813+ <head>lalune</head>
814+ <graphic url="lalune.jpg" />
815+ <figDesc>fig:Voyage dans la Lune</figDesc>
816+ </figure></p>
817+ <p>Here is a movie <figure>
818+ <head>movie</head>
819+ <graphic url="movie.jpg" />
820+ </figure> icon.</p>
821+ <milestone unit="undefined" type="separator" rendition="line" />
822+</div>
823+<div type="level1">
824+ <head>Footnotes</head>
825+ <p>Here is a footnote reference,<note>
826+ <p>Here is the footnote. It can go anywhere after the footnote reference.
827+ It need not be placed at the end of the document.</p>
828+ </note> and another.<note>
829+ <p>Here’s the long note. This one contains multiple blocks.</p>
830+ <p>Subsequent blocks are indented to show that they belong to the footnote
831+ (as with list items).</p>
832+ <ab type='codeblock '>
833+ { &lt;code&gt; }
834+</ab>
835+ <p>If you want, you can indent every line, but you can also be lazy and
836+ just indent the first line of each block.</p>
837+ </note> This should <hi rendition="simple:italic">not</hi> be a footnote
838+ reference, because it contains a space.[^my note] Here is an inline
839+ note.<note>
840+ <p>This is <hi rendition="simple:italic">easier</hi> to type. Inline notes
841+ may contain <ref target="http://google.com">links</ref> and
842+ <seg type="code">]</seg> verbatim characters, as well as [bracketed
843+ text].</p>
844+ </note></p>
845+ <quote>
846+ <p>Notes can go in quotes.<note>
847+ <p>In quote.</p>
848+ </note></p>
849+ </quote>
850+ <list type="ordered:arabic">
851+ <item>
852+ <p>And in list items.<note>
853+ <p>In list.</p>
854+ </note></p>
855+ </item>
856+ </list>
857+ <p>This paragraph should not be part of the note, as it is not indented.</p>
858+</div>
859+</body>
860+</text>
861+</TEI>