<div dir="ltr"><div><div><span id="result_box" class="" lang="en"><span class="">I am in the</span> <span class="">position of having to</span> <span class="">verify the correctness</span> <span class="">of a series of</span> <span class="">RTF documents</span> <span class="">that have been handled</span> <span class="">by other procedures</span>, so <span class="">I looked to calligra.<br>

</span></span></div><br><span id="result_box" class="" lang="en"><span class="">I noticed that when</span> <span class="">the document is corrupted</span> <span class="">due to the lack</span> <span class="">of</span> <span class="">delimiter</span> <span class="">control word</span> <span class="">or</span> <span class="">the closure of</span> <span class="">the</span> <span class="">group</span> <span class="">filter</span>, the <span class="">rtf</span> <span class="">word</span> <span class="">filter goes</span> <span class="">in</span> <span class="">loop (attending that the ,</span> <span class="">without indicating</span> <span class="">to the user</span> <span class="">that the document is</span> <span class="">corrupt</span><span class="">, unlike</span> <span class="">OpenOffice</span> <span class="">which indicates</span> <span class="">a generic "</span><span class="">I /</span> <span class="">O error</span> <span class="">" or</span> <span class="">Microsoft word</span> <span class="">that</span> <span class="">is unable to</span> <span class="">read the file and</span> <span class="">suggests that it might</span> <span class="">be damaged.<br>

<br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">An example of corrupted document can be found at the address <a href="http://www.norme.marche.it/attiweb/ViewDoc.aspx?docnum=272075">http://www.norme.marche.it/attiweb/ViewDoc.aspx?docnum=272075</a><br>

</span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br></span></span></div><span id="result_box" class="" lang="en"><span class="">Looking for the first time at Calligra sources seems that the problem is that the Tokenizer::fetchToken in rtf-qt does not notify the end of the stream, and that this condition is not handeld by the Reader::parseFile too.<br>

<br></span></span><div><div>I'm a newbie in qt and kde, so I would like to know what do you think and what do you suggest to manage this <span id="result_box" class="" lang="en"><span class="">behavior. <br></span></span></div>

<div><br><span id="result_box" class="" lang="en"><span class="">I wanted</span> <span class="">to thank you</span>: <span class="">for a</span> <span class="">complex project such as</span> <span class="">an office suite,</span> <span class="">looking at the</span> <span class="">sources</span> <span class="">for the first time</span> <span class="">I have not been</span> <span class="">lost</span><span class="">.</span> <span class="">I think it is</span> <span class="">a good indicator of</span> <span class="">good</span> <span class="">design</span><span class="">.<br>

</span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br>Great work!<br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br></span></span></div><div><div>-- <br>

Costantino Giuliodori
</div></div></div></div>