Once SplInit creates the spelling checker handle, the function loads the four required dictionaries and any other optional dictionaries:
You can instruct SplInit to load external user dictionaries at the beginning of a spelling session. An external user dictionary is a dictionary that is defined by an application, user, or other third party. A common use of an external user directory is to store unique words that are not found in the main directory but are commonly used by an individual user. You can save the external dictionary at the end of a spelling session, and load it again at the beginning of the next spelling session.
Use the ppwz parameter of SplInit to point to a list of external user dictionaries. Each element on the list includes the dictionary path and file name. SplInit assigns identifiers to the internal user dictionaries and to any external user dictionaries pointed to by ppwsz.
The following table describes the values you can provide in the ppwz parameter.
|
nID value |
|
SPL_IGNORE_LEX | –3 | Contains words that the spelling checker finds, but the user does not want to change. The spelling checker ignores words in this list for the remainder of the spelling session. |
SPL_CHANGE_ALWAYS_LEX | –2 | Contains words that the spelling checker finds, paired with words with which the spelling checker replaces subsequent occurrences of the word. For example, thru paired with through. |
SPL_CHANGE_ONCE | –1 | Contains words that the spelling checker finds and the user changes. The spelling checker continues to find subsequent occurrences of these words. |
External user dictionary 1 | 0 | The first external user dictionary described in ppwz. |
External user dictionary 2 | 1 | The second external user directory described in ppwz. |
External user dictionary clex | clex-1 | The last external user directory described in ppwz. |
Use the nID value to direct the spelling checker API to a specific dictionary. The clex value is the total number of external dictionaries you provide in the ppwz parameter.