Working with Languages
The OCR engine supports many different languages for recognizing text. For a language to be used in the recognition process it must be set as active. To activate the languages that will be used in the next recognition process, call L_DocSelectLanguages. In addition, special character options can also be set for characters in the active languages using L_DocSetCharLangsOptions. For more information on these character options, refer to the CHAROPTIONS structure. To determine what languages have been activated for the OCR engine, call L_DocGetSelectedLanguages. To determine what special character options have been set use L_DocGetCharLangsOptions.
To determine whether a specific character is enabled in the active languages, call L_DocIsCharEnabled.
L_DocGetDefaultSpellLanguages gets the default languages used for checking spelling. All available spelling languages available to the OCR engine are default and are used for checking spelling.
When the active languages are no longer needed, free the pointer to the selected languages by calling L_DocFreeLanguages.