To access personal user dictionaries in WProofreader:
Locate the orange badge in the lower-right corner of your web application with integrated WProofreader and hover your mouse over it.
In the menu which appears, click a button with gears.
In the WProofreader dialog which opens, navigate to the WProofreader Settings > Dictionaries options group.
The personal user dictionary can be managed via simple user interface of the Settings dialog on the Dictionary tab. It allows users to create personal dictionaries with custom words (complex words, acronyms, proper names, etc.) and use them while working with the system. All the words added to a personal dictionary will not be considered as misspellings and these words will also be available in the suggestions list. The user can look through the full list of the words that have been added to this dictionary and also manage the words list. The words can be added either from using a context menu, Add word command or directly on the Dictionary tab.
To add the words to the personal user dictionary in SCAYT plugin for CKEditor 4:
1. On CKEditor toolbar locate and click the ABC icon. In the dropdown menu, select Dictionaries.
2. The SCAYT dialog opens with the Dictionary tab selected.
3. Click the Dictionary Preferences button.
4. Type the new dictionary name and click either Create button to create a brand new dictionary or click Connect to connect with already existing server user dictionary.
5. Click OK to save your changes.
Now all new words are added to the browser local storage. If there are any words which have already been added while working with it, these words are added to a newly created dictionary. Note that this dictionary is available for a particular user who has created it and knows the name of dictionary.
You have an option to set a predefined user dictionary for your end users. With such an approach all the words added using Add word by your end users will be saved and stored in the dictionary that you predefined. Just add the User Dictionary parameter and specify your predefined dictionary name as a value.
Below you can find a table with the names of User Dictionary parameter by product type:
Product Integration | User Dictionary Parameter |
---|---|
SCAYT plugin for CKEditor 4 | |
WSC plugin for CKEditor 4 | |
SCAYT plugin for Froala Editor | userDictionaryName |
WProofreader | userDictionaryName |
For details, refer to Configuring Personal User Dictionary guide.
For example, to predefine a personal user dictionary in WProofreader, follow the procedure described below:
1. Initialize WProofreader using the procedure described in Get Started with WProofreader Server (autoSearch) guide.
2. Add the userDictionaryName option with a name of dictionary as shown below.<script> window.WEBSPELLCHECKERCONFIG = { ... userDictionaryName: 'predefineduser_dictionary' ... }; </script> |
3. To disable the dictionary preferences UI for your users, specify the disableDictionariesPreferences option as true as shown below.
<script> window.WEBSPELLCHECKER_CONFIG = { .... userDictionaryName: 'predefined_user_dictionary', disableDictionariesPreferences: true, ... }; </script> |
After performing this step, the highlighted area of the Dictionaries options group becomes disabled for WProofreader users.
3.2. Example of Setting up a Predefined User Dictionary in SCAYT plugin for CKEditor 4
To set up a predefined user dictionary in SCAYT plugin for CKEditor 4:
... config.scayt_autoStartup = true; config.grayt_autoStartup = true; config.scayt_sLang ="en_US"; config.scayt_userDictionaryName="user_dictionary_name"; ... |
A predefined user dictionary is now available in WProofreader and SCAYT plugin for CKEditor 4.
WebSpellChecker Server provides a list of options for advanced User Dictionaries management.
By default, all created personal user dictionaries are saved and stored in the UserDictionaries folder: <WebSpellChecker_Installation_Path>/AppServer/UserDictionaries. These dictionaries are saved as simple text files in *.txt format with UTF-8 encoding.
There is a list of the Web API commands available that allows administrators to manage the User Dictionary functionality. The full list of Web API commands for User Dictionary can be found in the Using WebSpellChecker Server Web API#4.UserDictionaryCommand manual.
There is a special mechanism available for the User Dictionary functionality which allows working with personal user dictionaries on the environment running under a Load Balancer. It is aimed at synchronizing the work of the User Dictionary functionality among a number of WebSpellChecker servers running at the same time.
In a nutshell, with such an approach, one of WebSpellChecker Servers should be defined as a User Dictionary Server. All personal user dictionaries created by end users will be stored only on this particular server. The rest WebSpellChecker Servers will be considered as User Dictionary Clients which will access a defined User Dictionary Server in case of any operations with User Dictionary functionality.
This approach can be easily configured in your environment. Just follow the step-by-step instructions below.
5.1. Define and Configure User Dictionary Server
On this step you need to assign a User Dictionary Server role to one of the WebSpellChecker application servers. The rest application servers will be User Dictionary Clients that will be connected with the assigned User Dictionary Server. Here are the steps that need to be performed to configure a User Dictionary Server.
Edit in AppServerX.xml file to specify a unique port number for a personal user dictionary server. To do so:
1. Stop AppServer before editing the AppServerX.xml file. Refer to Main AppServer Commands guide, Stop AppServer section for details.
2. Open <WebSpellChecker_Installation_Path>/AppServer/AppServerX.xml of the WebSpellChecker application server that will be used as a User Dictionary Server address.
3. Locate the <Port> tag and change the default port value to any available (e.g. 2882) as shown below.
<Port>2882</Port> |
4. Start AppServer. Refer to Main AppServer Commands guide, Start AppServer section for details.
To edit the ssrv.ini file:
1. Open the <WebSpellChecker_Installation_Path>/WebComponents/WebInterface/script/ssrv.ini file.
2. Locate appserver_port parameter and change the default port value to 2882 (the same as on the previous step).
appserver_port = 2882 |
3. Restart your web or Java application server after the changes made to the ssrv.ini file.
As soon as the User Dictionary Server is defined, the next step is configure other WebSpellChecker Servers that will be considered as User Dictionary Clients.
<UserDictServers> <EnableUserDictServer>true</EnableUserDictServer> <UserDictHost>127.0.0.1:2882</UserDictHost> </UserDictServers> |
Actions described in Step 2 must be performed for each copy of the WebSpellChecker Server which is working as a User Dictionary Client. |
Follow the steps below to verify the work of the remote User Dictionary Server.
Go to WebSpellChecker Samples shipped with the installation package: