Open somhi opened 7 years ago
Try these two things:
First, look in /usr/share/nixnote2/plugins and make sure there is a libhunspellplugin.so file.
Second, make sure you are using the proper Qt version of the plugin. If you have the Qt5 version of NixNote, then you need the Qt5 version of the plugin. If you are using the Qt4 version of NixNote then you need the Qt4 version of the plugin.
Also, you shouldn't need to reboot, but you will need to restart NixNote.
The file libhunspellplugin.so was not in /usr/share/nixnote2/plugins folder.
File seems to be missing from nixnote2-hunspell-plugin-2.0_amd64.deb package as it's only 3.4 kB whereas e.g. nixnote2-hunspell-plugin-2.0-beta11_amd64.deb is 13.7 kB.
At the moment I extracted libhunspellplugin.so from nixnote2-hunspell-plugin-2.0-beta11_amd64.deb and now the spell checking is working, but seems a bit slow though.
How do I choose which language I want to do the spell checking?
By the way the same problem apply also to the webcam plugin
Thanks for the plugin report. I hadn't noticed that.
To answer your other question, it searches for dictionary files in the following locations:
/usr/share/hunspell /usr/share/myspell /usr/share/myspell/dicts /Library/Spelling /opt/openoffice.org/basis3.0/share/dict/ooo /opt/openoffice.org2.4/share/dict/ooo /usr/lib/openoffice.org2.4/share/dict/ooo /opt/openoffice.org2.3/share/dict/ooo/ /usr/lib/openoffice.org2.3/share/dict/ooo/ /opt/openoffice.org2.2/share/dict/ooo/ /usr/lib/openoffice.org2.2/share/dict/ooo/ /opt/openoffice.org2.1/share/dict/ooo/ /usr/lib/openoffice.org2.1/share/dict/ooo /opt/openoffice.org2.0/share/dict/ooo/ /usr/lib/openoffice.org2.0/share/dict/ooo/
The first dictionary it finds it uses. It will look for dictionary names that match the system locale. There are two different files it needs (.dic & .aff). For example, in my case it needs en_US.aff & en_US.dic.
I usually deal with three different languages so changing system locale each time is not very user friendly. If you have a list of user requested features, please add language selection for spell checking. Thanks
How do I install the hunspell plugin?
Under /usr/share/nixnote2
I cannot even see a plugins folder
I've installed nixnote2 from the ubuntu repo.
I found a solution for this on Ubuntu 18.04
sudo apt-get update && sudo apt-get install nixnote2
sudo dpkg -i libhunspell-1.3-0_1.3.3-3_amd64.deb
sudo dpkg -i nixnote2-hunspell-plugin-2.0-beta11_amd64.deb
If anyone is interested, the spellchecker should now work "out of the box" (its not a plugin anymore). And there a few improvements as all installed locales supported etc. see https://github.com/robert7/nixnote2/issues/25
I'm on Ubuntu 16.04 I installed nixnote2-2.0_amd64.deb from Sourceforge ( Home / NixNote2 - 2.0 / Linux / Qt5) Later I installed hunspell library: sudo apt-get install libhunspell-dev And finally I installed plugin nixnote2-hunspell-plugin-2.0_amd64.deb Rebooted I'm still getting message "Hunspell plugin not found or could not be loaded" when I try to use spell function. How can I get spell to work?