On 14-Aug-2001 Dekel Tsur wrote:
> On Tue, Aug 14, 2001 at 02:37:43PM +0200, Juergen Vigna wrote:
>> > But spellchecking is much faster!
>> > I believe that they have similar implementation so why there is a
>> > difference ?
>>
>> One does activate nodraw() the other doesn't (and it's not possible to do
>> it in a good way), the implementation is not the same it's quite different.
>
> I don't understand why there is a difference in the implementation of
> spellchecking and searching.
> Both need to traverse the text until an "interesting" text segment is found
> and then select this segment.
Nope! Spellchecking is checking EVERY word and is returning a string with
the actual word. Higlighting is only done if a word is misspelled.
F&R does the above but returns only true if the word was found and false
if the word was not found. On true the word is selected.
Anyway this needs cleanup in 1.3.0 I won't spend time on this other then
fixing serious bugs!
Jürgen
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Now there's a violent movie titled, "The Croquet Homicide," or "Murder
With Mallets Aforethought."
-- Shelby Friedman, WSJ.