Spell checker for Qt application Editor
-
May be "here":http://bit.ly/gSJwRV
-
As I see several years ago there was a similar question on Trolltech discussion "here":http://lists.trolltech.com/qt-interest/2003-03/thread01029-0.html
-
[quote author="Immii" date="1293084848"]Thank you for the pointer, it looks like there is nothing inbuilt in Qt for this. Has any one does this before using some third party library or what ever, I would really appreciate if I get some example or good tutorial how to do it[/quote]
"This":http://bugreports.qt.nokia.com/browse/QTBUG-14462 should help you get some references and background.
-
[quote author="Immii" date="1293084848"]Thank you for the pointer, it looks like there is nothing inbuilt in Qt for this. Has any one does this before using some third party library or what ever, I would really appreciate if I get some example or good tutorial how to do it[/quote]
We've added "hunspell":http://hunspell.sourceforge.net/ to QTextEdit in our application. For that we created a small Qt-ish C++ wrapper around a Hunspell object. There are methods spell() for correct spelling yes/no, suggest() for suggestion for replacement words, put_word() for temporarily putting a word into the dictionary to ignore it and addToUserWordlist() for creating a user dictionary. It's quite straightforward.
Maybe I'll make a wiki page, once I have extracted the code for a small standalone app.
-
volker that would so great if you could find some time to put up one small stand alone example which demonstrate how it can be done. Though I have just downloaded it and will be playing around. Any thing from existing user is ++ as they know the small glitches which saves others time
-
[quote author="Volker" date="1293099480"]We've added "hunspell":http://hunspell.sourceforge.net/ [/quote]
Nice to see that you are using some Hungarian developed resources :)
-
-
I tried to download from gitorious.org link you gave above but site is down :( I am getting this message
DNS service for this domain has expired with DNS Made EasyTo renew your DNS service now, please login to your account here and click on the Purchase/Upgrade/Renew link.
-
[quote author="Immii" date="1293123748"]I tried to download from gitorious.org link you gave above but site is down :( I am getting this message
DNS service for this domain has expired with DNS Made EasyTo renew your DNS service now, please login to your account here and click on the Purchase/Upgrade/Renew link.[/quote]
Its working now
-
I've added the spell checker example on the wiki page "Spell Checking with Hunspell ":http://developer.qt.nokia.com/wiki/Spell_Checking_with_Hunspell. It's not the most beautiful code in the world, but it works for me :-) Hopefully it's useful for someone else.