Adding Custom Dictionaries for the Spell Checker
Oxygen XML Web Author includes an automatic spell checking feature and you can customize the words that are detected by adding custom dictionaries.
To add a custom dictionary, follow these steps:
- Download the files needed for your custom dictionary (or create your
own). You will need a dictionary file (.dic file extension)
and an affix file (.aff file extension). If the dictionary did
not include an affix file (.aff), you can create one and leave it
empty, but it is needed for the mechanism to work properly.Tip:For a website that includes numerous dictionary files, see: https://extensions.openoffice.org/.
- In the dictionary file (.dic extension), add the words you want to
be included in your custom dictionary. Add one word per row and the first line needs to
contain the number of words, as in the following example:
2 parabola asimptoticTip:Words stored in dictionaries are not handled as case-sensitive. Therefore, you do not need to include both uppercase and lowercase versions of the words. - Copy both files (.dic and
.aff) to the dicts folder that is located
inside your Oxygen Data Directory
(
oxygen.data.dir/dicts).Important:The name of the dictionary file should begin with a two letter prefix that indicates the language it should be attached to, followed by an underscore or hyphen, and then a descriptive name (for example, en_medical.dic for a medical dictionary in the English language). For a list of language codes, see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes.Notice:It is important to have thexml:langattribute set to lang_LANG in the document to ensure proper integration with the added custom dictionary. - Restart Oxygen XML Web Author for the spell checker to start using the new dictionary.
Enabling a Spell Checker for Additional Languages
An English language tool plugin is available (https://www.oxygenxml.com/maven/com/oxygenxml/languagetool-english-plugin/) that provides support for checking spelling and grammar in the English language only.
Another language tool plugin is available (https://www.oxygenxml.com/maven/com/oxygenxml/languagetool-plugin/) that provides support for using additional languages for the spell
checker. The following additional languages are supported:
- Italian
- Dutch
- Spanish
- Japanese
- Simplified Chinese