Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Spell checker for Qt application Editor
Forum Updated to NodeBB v4.3 + New Features

Spell checker for Qt application Editor

Scheduled Pinned Locked Moved General and Desktop
23 Posts 7 Posters 13.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Immii
    wrote on 22 Dec 2010, 21:47 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on 22 Dec 2010, 22:35 last edited by
      #2

      May be "here":http://bit.ly/gSJwRV

      --
      Vasiliy

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Immii
        wrote on 23 Dec 2010, 00:24 last edited by
        #3

        I am unable to reach on this link it seems not working. Is this any third party stuff or is this gitorius link?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vcsala
          wrote on 23 Dec 2010, 06:10 last edited by
          #4

          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

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Immii
            wrote on 23 Dec 2010, 06:14 last edited by
            #5

            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

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kamalakshantv
              wrote on 23 Dec 2010, 07:26 last edited by
              #6

              [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.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on 23 Dec 2010, 10:18 last edited by
                #7

                [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.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  Immii
                  wrote on 23 Dec 2010, 10:41 last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vcsala
                    wrote on 23 Dec 2010, 10:45 last edited by
                    #9

                    [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 :)

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on 23 Dec 2010, 11:01 last edited by
                      #10

                      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.

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        alexander
                        wrote on 23 Dec 2010, 11:10 last edited by
                        #11

                        Try to find here: "http://gitorious.org/+qt-developers/qt/qspellchecker":http://gitorious.org/+qt-developers/qt/qspellchecker

                        1 Reply Last reply
                        0
                        • I Offline
                          I Offline
                          Immii
                          wrote on 23 Dec 2010, 17:02 last edited by
                          #12

                          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 Easy

                          To renew your DNS service now, please login to your account here and click on the Purchase/Upgrade/Renew link.

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            kamalakshantv
                            wrote on 23 Dec 2010, 18:55 last edited by
                            #13

                            [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 Easy

                            To renew your DNS service now, please login to your account here and click on the Purchase/Upgrade/Renew link.[/quote]

                            Its working now

                            1 Reply Last reply
                            0
                            • I Offline
                              I Offline
                              Immii
                              wrote on 23 Dec 2010, 19:22 last edited by
                              #14

                              Thanx Qtk, I am able to checkout now. Hope this serve my Need.

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on 24 Dec 2010, 21:38 last edited by
                                #15

                                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.

                                http://www.catb.org/~esr/faqs/smart-questions.html

                                1 Reply Last reply
                                0
                                • G Offline
                                  G Offline
                                  goetz
                                  wrote on 4 Jan 2011, 22:44 last edited by
                                  #16

                                  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.

                                  http://www.catb.org/~esr/faqs/smart-questions.html

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    Jupiter
                                    wrote on 16 Nov 2011, 12:25 last edited by
                                    #17

                                    @Volker
                                    is it allowed in an commercial app (like you also use) to embed the hunspell libs into the application as a static lib?

                                    afaik lgpl says, it has to be replace able?

                                    1 Reply Last reply
                                    0
                                    • G Offline
                                      G Offline
                                      goetz
                                      wrote on 16 Nov 2011, 13:23 last edited by
                                      #18

                                      It just works the same with using dynamic/shared libs (DLLs).

                                      http://www.catb.org/~esr/faqs/smart-questions.html

                                      1 Reply Last reply
                                      0
                                      • J Offline
                                        J Offline
                                        Jupiter
                                        wrote on 16 Nov 2011, 20:57 last edited by
                                        #19

                                        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?

                                        1 Reply Last reply
                                        0
                                        • G Offline
                                          G Offline
                                          goetz
                                          wrote on 16 Nov 2011, 22:05 last edited by
                                          #20

                                          What files do you have in your lib path?

                                          http://www.catb.org/~esr/faqs/smart-questions.html

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved