Hi all,
during the last days I worked on a spell check plugin and here we go.
It checks the content of the current document in Geany with the spell check program Aspell. You can also select a certain text passage, then the plugin will only check the selected text. All lines with misspelled words are highlighted with a red squiggly underline and the wrong words are printed in the messages window at the bottom of Geany together with available suggestions. For the plugin to work at all, you need to have the Aspell library installed together with at least one dictionary. The plugin's configure dialog lists all available languages/dictionaries which can be used for the spell check.
It requires a recent SVN version of Geany to compile and load, at the time of writing, revision 2590 should be good.
Website: http://geany-plugins.sourceforge.net/spellcheck/
Downloads: http://geany-plugins.sourceforge.net/spellcheck/spellcheck-0.1.tar.bz2 or http://geany-plugins.sourceforge.net/spellcheck/spellcheck-0.1.tar.gz
Subversion checkout command:
svn checkout http://geany-plugins.sourceforge.net/svnroot/geany-plugins/trunk/spellcheck
There is still much room for improvements, like the ability to automatically replace misspelled words with a chosen suggestion or to add words to user dictionaries. If anyone wants to work on this or want to maintain this plugin in the future, just contact me (I will otherwise).
Regards, Enrico
On Thu, 15 May 2008 19:16:02 +0200, Enrico Tröger enrico.troeger@uvena.de wrote:
Hi all,
during the last days I worked on a spell check plugin and here we go.
I forgot to mention two things: - the idea of using the messages window and some sample of which this plugin is based came from Laura Michaels. Thanks!
- the plugin basically runs also on Windows, i.e. it compiles and loads. I provide a binary dll for Windows user when the next Windows build of Geany is available.
Regards, Enrico
Enrico Tröger <enrico.troeger@...> writes:
- the plugin basically runs also on Windows, i.e. it compiles and
loads. I provide a binary dll for Windows user when the next Windows build of Geany is available.
Hi Enrico, Any chance you could upload the Windows dll somewhere or email it to me in the mean time?
Thanks,
Nik
On Tue, 20 May 2008 00:55:49 +0000 (UTC), Nik nsmorte@gmail.com wrote:
Enrico Tröger <enrico.troeger@...> writes:
- the plugin basically runs also on Windows, i.e. it compiles and
loads. I provide a binary dll for Windows user when the next Windows build of Geany is available.
Hi Enrico, Any chance you could upload the Windows dll somewhere or email it to me in the mean time?
A current snapshot is available at http://geany-plugins.sourceforge.net/spellcheck/spellcheck-0.2svn_r26.zip
Installation notes:
1) you need to install Geany 0.15svn_r2604 (see http://lists.uvena.de/pipermail/geany/2008-May/003295.html) 2) you need to install Aspell and some dictionaries of your choice (http://aspell.net/win32/, use the Full installer) 3) download the plugin from the link above 4) extract the included spellcheck.dll to your Geany plugins directory (usually c:\program files\geany) 5) then copy the file aspell-15.dll to your Geany installation directory (where geany.exe is located) 6) run Geany and activate the plugin in the plugin manager (Tools->Plugin Manager)
I think in the future there will be a little installer for the plugin instead of a zip file (or additionally to it). And I hope there is a better way than copying the aspell-15.dll into the Geany directory. A workaround would be to add the bin directory of the Aspell installation path to the global PATH environment variable, maybe this could be done via the installer. Not sure at the moment.
Please note, this plugin requires Windows 2000 or newer.
Regards, Enrico
On Thu, 15 May 2008 19:16:02 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
Hi all,
during the last days I worked on a spell check plugin and here we go.
Great, works nicely ;-)
I noticed for unsaved documents on Linux it uses "(null)" for the filename, and I'm not sure but "%s", NULL might fail on Windows - so I've attached a patch to fix this.
Regards, Nick
On Fri, 16 May 2008 12:51:22 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Thu, 15 May 2008 19:16:02 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
Hi all,
during the last days I worked on a spell check plugin and here we go.
Great, works nicely ;-)
I noticed for unsaved documents on Linux it uses "(null)" for the filename, and I'm not sure but "%s", NULL might fail on Windows - so I've attached a patch to fix this.
Thanks, I should use the DOC_FILENAME macro more often ;-). I also found a big memory leak because I just forgot to release the array holding available dictionaries which is filled when the configuration dialog is opened. And this array isn't necessary at all ;-).
Regards, Enrico