A spell checker plug-in lets XXE use alternative spell checking engines/dictionaries to spell check the text contained in the documents being edited.
Like all plug-ins, a spell checker plug-in is not declared anywhere. It is dynamically discovered and loaded during the startup of XXE (more info in Section 1, “Dynamic discovery of add-ons” in XMLmind XML Editor - Configuration and Deployment) provided that it complies with the following conventions:
The code of the spell checker plug-in must be contained in a JAR file having a name ending with "_spellchecker.jar
".
This JAR file must contain a META-INF/services/com.xmlmind.xmleditapp.spellchecker.SpellCheckerFactory
file containing the name of the class implementing interface com.xmlmind.xmleditapp.spellchecker.SpellCheckerFactory
.
For example, hunspell_spellchecker.jar
contains com.xmlmind.xmleditapp.spellchecker.SpellCheckerFactory
which contains com.xmlmind.xmleditext.hunspell_spellchecker.HunspellFactory
.
Implement com.xmlmind.xmleditapp.spellchecker.SpellCheckerFactory
, a factory which creates com.xmlmind.xmleditapp.spellchecker.SpellChecker
instances.
If you plan to implement a spell checker plug-in and need an example showing how this can be done, please send an email to <xmleditor-info@xmlmind.com>
and we'll provide you with the full source code of the "Hunspell Spell Checker" plug-in.