Spell checker
Spell checker can be used out of the box, can be extended, or you can use the API to build your own custom spell checker.
Dictionaries
The spell checker checks possible contractions between words, the use of capitals as well as spelling. The spell checker supports a number of dictionaries. These should be referenced by the language code, for example British English is referred to as en-GB. If you need another language you can contact Customer Support to obtain additional dictionary files.
| Code | Language |
|---|---|
| de-de | Deutsch |
| en-ca | Canadian English |
| en-gb | British English |
| en-us | American English |
| es-es | Español |
| fr-ch | Français de Suisse |
| fr-fr | Français |
| nl-nl | Nederlands |
Configuring the (default) language(s) on nodes
In order to use the spell checker, you can set the
xml:lang attribute on the nodes in the document. You can also define multiple languages in a document. For example, you could have three sections each with a different lang attribute. Child nodes inherit the language attribute.
<myNode xml:lang="en-US">
...
</myNode>
Alternatively you can define the
defaultLanguage in the configuration. When the default language is specified, the spell checker will use the language defined for all nodes that do not have a lang attribute declared in the document:
<x:spellChecker>
<x:defaultLanguage>en-US</x:defaultLanguage>
</x:spellChecker>