File Listing > Plugins > Messaging > Enhancements > Spell Checker (Unicode)


Spell Checker (Unicode) 0.1.0.2



Download
25324 Downloads | 231.32KBytes

ScreenshotView
PublisherPescuma
Date added18/04/2008 20:20:49
RequirementsMiranda 0.7
LicenseOpen Source - GPL
Source code0.1.0.2 - Download (214.67KBytes)

Description
CAUTION: THIS IS A BETA STAGE PLUGIN. IT CAN DO VERY BAD THINGS. USE AT YOUR OWN RISK.

This is a spell checker plugin that uses Hunspell to do the dirty work. Hunspell is the spell checker used by OpenOffice, so it should have a good range of dictionaries.

For message window plugins (let's call them all *srmm) it works transparently if those plugins implement the new notification API and have a richedit in the input area. Latest version (from Miranda build #0.7) of tabSRMM and scriver already do so. SRMM plugin don't have a rich edit, so you need this moded version:
Ansi: http://pescuma.mirandaim.ru/miranda/srmm.zip
Unicode: http://pescuma.mirandaim.ru/miranda/srmmW.zip
Patch: http://pescuma.mirandaim.ru/miranda/srmm.spellchecker.patch

For other plugins, it works throught providing 3 serices for them to interact:
- one to add handling of a rich edit control
- one to remove it
- one to append options needed to a popup menu and show it
These plugins have to call this services in other for the magic to happen. So, things like when the popup menu is show are handled by the calling plugin.

The dictionaries: it uses hunspell dictionaries. Each is a couple of files with the name beeing the language and the extensions .dic and .aff. Both need to be inside the dir <Miranda Path>\Dictionaries (of a custom folder if folders plugin is installed). You can download then at: http://wiki.services.openoffice.org/wiki/Dictionaries.
PS: This path is read only at startup, so changing it needs a restart of miranda.

It has an options page to set the default dictionary and some other options. It is at Message Sessions/Spell Checker

The flags: new versions support showing flags to represent the dicts. This is done to have an visual way to represent the dict. To load the flags, the following steps are done:
1. Try to load from file Icons\flags.dll - in this case an icon resource must exist with same name as language (for ex: pt_BR). If this is found, the icon is also added to IconLib to allow further customizing.
2. Load unknown flag. It can be customized thorught IconLib
Currently there are 2 sets of flags, one from Angeli-Ka and one from the famfamfam.com site:
- famfamfam's icons as .ico: http://pescuma.mirandaim.ru/miranda/flags-famfamfam.zip (note that there are a lot of files inside this zip with wrong names. It happens because I don't know which languages they represent - and if they represent a language or not. So, if you think some file name must change, please tell me)
- famfamfam's icons as .dll: http://pescuma.mirandaim.ru/miranda/flags-dll-famfamfam.zip
- Angeli-Ka's icons as .ico: http://pescuma.mirandaim.ru/miranda/flags-angelika.zip
- Angeli-Ka's icons as .ico with language names: http://pescuma.mirandaim.ru/miranda/flags-angelika-name.zip
- Angeli-Ka's icons as .dll: http://pescuma.mirandaim.ru/miranda/flags-dll-angelika.zip

Many thanks to the Hunspell team and to Vladimir Vainer that made an initial version of the plugin. And thanks to the famfamfam.com site for the icons I'm using for the flags.

To report bugs/make suggestions, go to the forum thread: http://forums.miranda-im.org/showthread.php?t=11555


Latest Change(s) - Full Changelog

. 0.1.0.2
+ Updated to Hunspell 1.2.2b (closes issue 16)
+ Use also TRY as word chars (closes issue 13)


Administration