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, set the number of languages to be activated in the ActiveLanguagesCount property, set the languages to be activated in the ActiveLanguage property and call the SelectLanguages method. This method updates the SelectedLanguages property with the languages that were activated. The SelectedLanguagesCount property is updated by the engine with the number of languages in the SelectedLanguages property.

Special characters can be added to the set of characters provided by the active languages using the LanguageCharacterPlus, LanguageCharacterPlusFilter, and LanguageCharacterFilter properties. To determine whether a specific character is enabled in the active languages, call the IsCharacterEnabled method.

The DefaultSpellLanguagesCount property is updated with the number of default languages used to checking spelling. The DefaultSpellLanguages property actually contains the list of default languages used to check spelling.