Debian Codegraph @

testing/lonely-braces-testcases.tei

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE TEI.2
4 PUBLIC "-//TEI P4//DTD Main DTD Driver File//EN"
5 "http://www.tei-c.org/P4X/DTD/tei2.dtd" [
6 <!ENTITY % TEI.XML "INCLUDE" >
7 <!ENTITY % TEI.dictionaries "INCLUDE" >
8 <!ENTITY % TEI.linking "INCLUDE" >
9 <!ATTLIST xptr url CDATA #IMPLIED >
10 <!ATTLIST xref url CDATA #IMPLIED >
11 ]>
12 <TEI.2>
13
14 <teiHeader>
15
16 <fileDesc>
17 <titleStmt>
18 <title>Lonely Braces Testcases</title>
19 <author>Michael Bunk &lt;[email protected]&gt;</author>
20 </titleStmt>
21 <editionStmt>
22 <edition>0.1</edition>
23 </editionStmt>
24 <extent>only a handful of headwords</extent>
25 <publicationStmt>
26 <publisher>FreeDict</publisher>
27 <availability>
28 <p>Copyright (C) 2005 Michael Bunk &lt;[email protected]&gt;</p>
29 <p>GNU GENERAL PUBLIC LICENSE</p>
30 <p>This program is free software; you can redistribute it and/or modify
31 it under the terms of the GNU General Public License as published by
32 the Free Software Foundation; either version 2 of the License, or
33 (at your option) any later version.</p>
34 <p>This program is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU General Public License for more details.</p>
38 <p>You should have received a copy of the GNU General Public License
39 along with this program; if not, write to the Free Software
40 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</p>
41 </availability>
42 <date>2005</date>
43 <pubPlace>http://freedict.org/</pubPlace>
44 </publicationStmt>
45
46 <seriesStmt>
47 <title>free dictionaries</title>
48 </seriesStmt>
49
50 <notesStmt>
51 <note type="status">testing</note>
52 </notesStmt>
53
54 <sourceDesc>
55 <p>Home: <xptr url="http://freedict.org/"/></p>
56 </sourceDesc>
57 </fileDesc>
58
59 <encodingDesc>
60 <projectDesc>
61 <p>This dictionary comes to you through nice people making it
62 available for free and for good. It is part of the FreeDict project,
63 http://www.freedict.org / http://freedict.de. This
64 project aims to make available many translating dictionaries
65 for free. Your contributions are welcome!</p>
66 </projectDesc>
67 </encodingDesc>
68
69 <revisionDesc>
70 <change>
71 <date>2005-06-23</date>
72 <respStmt>
73 <resp>FreeDict Maintainer</resp>
74 <name>Michael Bunk</name>
75 </respStmt>
76 <item>Wrote these testcases.</item>
77 </change>
78 </revisionDesc>
79 </teiHeader>
80
81 <text>
82 <body>
83
84 <entry>
85 <form><orth>(</orth></form>
86 <trans><tr>This entry should be found.</tr></trans>
87 </entry>
88
89 <entry>
90 <form><orth>a { without counterpart</orth></form>
91 <trans><tr>This entry should be found as well.</tr></trans>
92 </entry>
93
94 <entry>
95 <form><orth>a valid headword</orth></form>
96 <trans><tr>But a broken translation. &lt;</tr></trans>
97 </entry>
98
99 <entry>
100 <form><orth>a valid headword</orth></form>
101 <trans><tr>But an as well broken translation. ></tr></trans>
102 </entry>
103
104 <entry>
105 <form><orth>valid headword without any braces</orth></form>
106 <trans><tr>This entry should not be found.</tr></trans>
107 </entry>
108
109 <entry>
110 <form><orth>valid headword (with allowed corresponding braces)</orth></form>
111 <trans><tr>This entry should not be found. But since braces should be avoided,
112 we could emit a warning...</tr></trans>
113 </entry>
114
115 <entry>
116 <form>
117 <orth>This is a pathologic example (BTW, phrases as headwords are
118 something disputable).</orth>
119 <pron>The problem (with this element {content)} ist, that different
120 brace types nest incorrectly.</pron>
121 </form>
122 <trans><tr>This entry should be found, but cannot.</tr></trans>
123 </entry>
124
125 <entry>
126 <form>
127 <orth>Did I mention it would be nice (to</orth>
128 <pron>be able to automatically determine) test success or failure?</pron>
129 </form>
130 <trans><tr>This entry should be found.</tr></trans>
131 </entry>
132
133 <entry>
134 <form>
135 <orth>Many elements</orth>
136 </form>
137 <trans><tr>The</tr></trans>
138 <trans><tr>bug</tr></trans>
139 <trans><tr>can</tr></trans>
140 <trans><tr>be</tr></trans>
141 <trans><tr>found</tr></trans>
142 <trans><tr>only</tr></trans>
143 <trans><tr>in</tr></trans>
144 <trans><tr>the</tr></trans>
145 <trans><tr>last</tr></trans>
146 <trans><tr>"tr"</tr></trans>
147 <trans><tr>element {</tr></trans>
148 </entry>
149
150 </body>
151 </text>
152 </TEI.2>