[Gambas-user] Textedit and Spell checking

MaxVK maximvonk at ...626...
Sat Mar 29 01:40:42 CET 2008



Rob Kudla wrote:
> 
> Yeah, that's the bummer with asynchronous processing.  You could 
> always write a temporary file with the text you want to check, then 
> shell "aspell pipe <thatfile >anotherfile" and read anotherfile 
> synchronously to display your modal dialog a bunch of times.
> 

Aha! Nice idea. It might not be pretty but it works! The only problem now is
that if a word is corrected, and the correction contains more or less
characters than the original word, from that moment on all other positions
are broken (I'm using the position of the word as returned by aspell, and
the length of the original to select it in the textedit).

Tomorrow Ill try and keep track of the positions and update them according
to the number of characters <> than the original word.

Thanks again for all your help (And thanks to Benoit for pointing out about
using CLOSE) 

Regards

Max
-- 
View this message in context: http://www.nabble.com/Textedit-and-Spell-checking-tp16359797p16365083.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list