LEADTOOLS OCR C DLL Help > Quick Reference > Data Types > OCR Professional > USERDICTIONARY2 |
typedef struct _tagUserDictionary2
{
L_UINT uStructSize;
L_TCHAR * pszFileName;
L_CHAR * pszDefSection;
} USERDICTIONARY2, * pUSERDICTIONARY2;
The USERDICTIONARY2 structure contains user dictionary options.
Member |
Description |
uStructSize |
Structure size. It should be equal to sizeof(USERDICTIONARY2). |
pszFileName |
Character string that contains the name of the user dictionary file. |
pszDefSection |
Character string that contains the name of the default section of the user dictionary. If it is NULL, the default section will be the first section of the dictionary, if one exists. |
Comments
The checking subsystem contains three parts, as follows:
Spell checking (using all available languages),
User Dictionary-checking (using the User dictionary),
User-written checking (using user-written callback functions).
Once the checking subsystem has been enabled, it can be further configured to use any combination of these three checking options.
pUSERDICTIONARY2 is a pointer to a USERDICTIONARY2 structure. If the function parameter type is pUSERDICTIONARY2, declare a USERDICTIONARY2 variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pUSERDICTIONARY2 variable is necessary only if the program requires a pointer.
This structure is used with the following functions: