...
Adding the ephox.spelling.custom-dictionaries-path
element activates the custom dictionary feature. It points to a directory on the server's file system that will contain custom dictionary files and should not contain anything else. It is a good idea to store these files where the application.conf
file lives, i.e. if application.conf
is in a directory called /opt/ephox
, the dictionary files could live in a sub-directory /opt/ephox/dictionaries
.
Example
Code Block |
---|
ephox {
spelling {
custom-dictionaries-path = "/opt/ephox/dictionaries"
}
} |
Anchor | ||||
---|---|---|---|---|
|
...
NOTE for German and Finnish languages: Spell checking in German and Finnish will employ compound word spell checking. Compound words such as "Fußballtennis" will be assumed correct as long as the root words "Fußball" and "Tennis" are individually present in the dictionary. It is not necessary to add "Fußballtennis" separately.
Anchor | ||||
---|---|---|---|---|
|
If successfully configured, the custom dictionary feature will report dictionaries found in the application server's log at service startup.
Example
Code Block |
---|
2017-06-12 17:46:00 [main] INFO com.ephox.ironbark.IronbarkBoot - Starting task (booting Ironbark) 2017-06-12 17:46:00 [main] INFO com.ephox.ironbark.IronbarkBoot - using custom dictionary: [global] = 1 words 2017-06-12 17:46:00 [main] INFO com.ephox.ironbark.IronbarkBoot - using custom dictionary: "en" = 3 words 2017-06-12 17:46:00 [main] INFO com.ephox.ironbark.IronbarkBoot - using custom dictionary: "fr" = 2 words 2017-06-12 17:46:01 [main] INFO com.ephox.ironbark.IronbarkBoot - Finished task (booting Ironbark) |
The The above log shows that 3 custom dictionaries were found, one "global", language-independent one and one each for English and French. They were found to contain 1, 3 and 2 words, respectively. Please check that this report matches your expectations.
Anchor | ||||
---|---|---|---|---|
|
Future additions/changes to dictionaries after the initial deployment will require a restart of the spell check service each time.