Spell checker for Qt application Editor
-
wrote on 22 Dec 2010, 21:47 last edited by
Hi All we would like to have spelling checker mechanism embedded in our one of the small editor in our application, we were wondering is there any class/any thing available in Qt?
-
wrote on 22 Dec 2010, 22:35 last edited by
May be "here":http://bit.ly/gSJwRV
-
wrote on 23 Dec 2010, 00:24 last edited by
I am unable to reach on this link it seems not working. Is this any third party stuff or is this gitorius link?
-
wrote on 23 Dec 2010, 06:10 last edited by
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
-
wrote on 23 Dec 2010, 06:14 last edited by
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
-
wrote on 23 Dec 2010, 07:26 last edited by
[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.
-
wrote on 23 Dec 2010, 10:18 last edited by
[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.
-
wrote on 23 Dec 2010, 10:41 last edited by
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
-
wrote on 23 Dec 2010, 10:45 last edited by
[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 :)
-
wrote on 23 Dec 2010, 11:01 last edited by
VCsala, yes, I know the fact. And it indeed fits well in our German needs, as the structure of both languages is quite similar. And it's LGPL/MIT licensed and thus usable in our commercial project.
-
wrote on 23 Dec 2010, 11:10 last edited by
-
wrote on 23 Dec 2010, 17:02 last edited by
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.
-
wrote on 23 Dec 2010, 18:55 last edited by
[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
-
wrote on 23 Dec 2010, 19:22 last edited by
Thanx Qtk, I am able to checkout now. Hope this serve my Need.
-
wrote on 24 Dec 2010, 21:38 last edited by
The sources on gitorious seem to be a Qt libs project, that means it's the regular Qt libs enhanced with some built-in spell checkers. Unfortunately I doubt it is usable for mort than some tests at the moment.
-
wrote on 4 Jan 2011, 22:44 last edited by
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.
-
wrote on 16 Nov 2011, 13:23 last edited by
It just works the same with using dynamic/shared libs (DLLs).
-
wrote on 16 Nov 2011, 20:57 last edited by
well actually when i change it to @LIBS += -L<myLibPath> -lhunspell@ it doesn't link also tried -llibhunspell -lhunspell-1.3 almost every combination. but it does not link. any ideas about that?
-
wrote on 16 Nov 2011, 22:05 last edited by
What files do you have in your lib path?