<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
This is not a CQPweb thing but a general XML thing. To escape quote marks within an XML attribute value, you need to use the XML entity &amp;quot;
<div><br>
</div>
<div>C escapes won't work at all in XML.</div>
<div><br>
</div>
<div>Best</div>
<div><br>
</div>
<div>Andrew.</div>
<br>
<br>
<br>
Ray Wu &lt;liangpingwu@126.com&gt; wrote:<br>
<br>
<br>
<div>
<div style="line-height:1.7; color:#000000; font-size:14px; font-family:arial">hi all,<br>
<br>
I'm preparing a parallel corpus for CQPweb. All things went well until I hit upon the double quotes.
<br>
<br>
Ok, I have a corpus like this,using \ (as in C) to escape the quotation mark in the translation:<br>
&lt;text id=&quot;test&quot;&gt;<br>
&lt;s cn=&quot;\&quot;亚洲\&quot;的未来&quot;&gt;<br>
The&nbsp;&nbsp;&nbsp; AT<br>
Future&nbsp;&nbsp;&nbsp; NN1<br>
of&nbsp;&nbsp;&nbsp; IO<br>
Asia &nbsp;&nbsp; NP1<br>
&lt;/s&gt;<br>
&lt;/text&gt;<br>
<br>
When concordancing the corpus, I got the following:<br>
<b><a class="nodelink" href="http://124.193.83.252/cqp/paratest/context.php?batch=0&amp;qname=e5o3dvdevx&amp;uT=y">The</a></b> Future of Asia<br>
&nbsp;\ <br>
<br>
It seems that everything after the second quotation mark was silently ignored. However, if I change the input like this: &lt;s cn=&quot;'非洲'的未来&quot;&gt;, I would have<br>
<b><a class="nodelink" href="http://124.193.83.252/cqp/paratest/context.php?batch=0&amp;qname=e5o3dvdevx&amp;uT=y">The</a></b> Future of Asia<br>
'亚洲'的未来<br>
<br>
This is better but at the cost of changing the face of the original text. Does anyone know how to properly escape such special characters like quotation marks in CQPweb? Thanks.<br>
<div><span style="color:rgb(128,128,128)"><span style="color:rgb(128,128,128)"><span style="color:rgb(0,0,0)"><span style="color:rgb(0,0,0)"><br>
</span><span style="color:rgb(0,0,0)">Ray</span></span><br>
</span></span></div>
</div>
<br>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span></div>
</body>
</html>