TextEdit: Spell Checker

A spelling checker is included for TextEdits.

The spelling checker uses LGPL Hunspell (see http://hunspell.sourceforge.net/) which is the default spell checker of OpenOffice.org or Mozilla tools.

You need to provide the Genero Desktop Client (GDC) the two dictionary files needed for each language. These files can be downloaded from http://extensions.openoffice.org/. Extract the files in the oxt archive.

The files can be stored on the Runtime System side and can be uploaded to GDC using a simple FGL_PUTFILE. Then specify in the style the two files for the "spellCheck" StyleAttribute, using the following format:
"<affix file>|<dictionnary file>"
By default, files are read from where you're executing GDC. You can, however, specify an absolute path:
<Style name="TextEdit.spellUs">
<StyleAttribute name="spellCheck" 
 value="file:///c:/dics/en_US.aff|file:///c:/dics/en_US.dic" />
</Style>

GDC will underline unknown words, and a right click on the unknown word will add the list of suggestions for this word to the contextual menu.


The figure shows examples of the contextual menu showing alternate spellings of the questionable term.

Figure 1. Spell checker window flow

<Style name="TextEdit.spellUs">
<StyleAttribute name="spellCheck" value="en_US.aff|en_US.dic" />
</Style>
Note: