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.7k 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.
  • K Offline
    K Offline
    kamalakshantv
    wrote on 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
                                • J Offline
                                  J Offline
                                  Jupiter
                                  wrote on last edited by
                                  #21

                                  on mac i have libhunspell-1.3.0.dylib
                                  a libhinspell-1.3.a
                                  and a symlink libhunspell-1.3.dylib

                                  if i link against the .a (static link) it works. but it doesn't work when i link against the .dylib

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    goetz
                                    wrote on last edited by
                                    #22

                                    Just to make sure: you did leave out the filename (hunspell-xxx.dylib) from the argument to -L (uppercase L), as this must point to a directory, not a file?

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

                                    1 Reply Last reply
                                    0
                                    • J Offline
                                      J Offline
                                      Jupiter
                                      wrote on last edited by
                                      #23

                                      yes and a lowercase l before the lib name right? exactly like i wrote 2 posts before is my call

                                      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