Using Check Spelling

The Check Spelling option ( EditCheck Spelling (F4) or the toolbar button Check spelling ) enables you to perform the check spelling on the current document:

 

Figure 21.5. Check Spelling Dialog

Check Spelling Dialog

Complete the dialog as follows:

Unrecognized Word

Contains the word that cannot be found in the selected dictionary. The word is also highlighted in the XML document.

Replace with

The character string which is suggested to replace the unrecognized word.

Guess

Displays a list of words suggested to replace the unknown word. Double clicking a word in this list automatically inserts it in the document and continues the spell checking process.

Dictionary

Displays a list with the available dictionaries.

Replace

Replaces the currently highlighted word in the XML document, with the selected word in the "Replace with" field.

Replace All

Replaces all occurrences of the currently highlighted word in the XML document, with the selected word in the "Replace with" field.

Ignore

Allows you to continue checking the document while ignoring the first occurrence of the unknown word. The same word will be flagged again if it appears in the document.

Ignore all

Ignores all instances of the unknown word in the whole document.

Learn

Includes the unrecognized word in the list of valid words so that the spell checker will not consider it for correction.

Options

Sets the configuration options of the Spell Checker.

Begin at caret position

When checked, the spell checker begins checking from the current cursor position.

OK

Closes the Spell Checker dialog.

<oXygen/> provides dictionaries only for the languages English (EN, GB, CA, US), French (FR, BE, CA, CH) and German in the form of .dar files located in the directory [oXygen-install-dir]/dicts. A pre-built dictionary can be added by copying the corresponding .dar archive to the same directory and restarting <oXygen/>. A dictionary can be built with the tool available at http://www.xmlmind.com/spellchecker/dictbuilder.shtml.

Learned words are stored into an persistent learned-words dictionary with the .tdi extensions located in [user-home-dir]/Application Data/com.oxygenxml/spell directory on Windows and [user-home-dir]/Library/Preferences/com.oxygenxml/.spell directory on Mac OS X. There is one dictionary for each language-country variant combination. If the Learn button is pressed by mistake the only possibility to delete the learned word from the learned-words dictionary is to edit this dictionary manually and restart <oXygen/> because the spell-check component does not allow its editing by the user interface.

[Note]Note

The Czech check spelling dictionary may be downloaded from http://www.kosek.cz/sw/xxe/cs.dar

Spell checking feature can be also used as you type by enabling it from the Preferences panel. Also for words with wrong spelling the suggestions of the Spelling dialog are available on the context menu of the editor panel in the Spell check suggestions submenu:

 

Figure 21.6. Spell check suggestions in the editor context menu

Spell check suggestions in the editor context menu

[Note]Note

Words with lengths in excess of 100 characters are ignored by the spell checker.

[Note]Note

The check spelling is available when editing documents in the text editor as well as in the Author editor.