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.

For more information, refer to:

Languages and Dictionaries

Working with Dictionaries

DOC2_LANGIDS

Punctuation and Miscellaneous Characters

OCR Professional

The OCR engine supports many different languages for recognizing text. To get a list of the currently installed languages into your OCR engine directory, call L_Doc2GetSupportedLanguages. To get each language ID friendly name, call L_Doc2GetLanguageFriendlyName. 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_Doc2SelectLanguages. In addition, special character options can also be set for characters in the active languages using L_Doc2SetCharLangsOptions. For more information on these character options, refer to the CHAROPTIONS2 structure. To determine what languages have been activated for the OCR engine, call L_Doc2GetSelectedLanguages. To determine which special character options have been set use L_Doc2GetCharLangsOptions.

L_Doc2GetDefaultSpellLanguages 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_Doc2FreeLanguages.

When the list of the enumerated supported languages retrieved by calling L_Doc2GetSupportedLanguages is no longer needed, free the pointer to the supported languages by calling L_Doc2FreeLanguages.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Professional OCR C API Help