CreateCompoundTextLanguage Method of the LanguageDatabase Object

This method creates the TextLanguage object of one or more custom languages included in the LanguageDatabase. The TextLanguage object specifies the recognition language for a text.

Syntax

HRESULT CreateCompoundTextLanguage(
  BSTR            LanguageName,
  ITextLanguage** Result
);
    

Parameters

LanguageName
[in] This parameter specifies the name of the language that is included in the language database. This parameter may contain several language names separated with commas. When creating custom languages in Windows version give them names consisting of letters and digits and do not use names that include punctuation marks (!@#$%^&*(), etc.). After a language was given a name consisting of letters and digits, it appears for the LanguageDatabase object prefixed with the @ symbol. For example, to retrieve the TextLanguage for a user-defined language named "MyLanguage1", you should pass here the string "@MyLanguage1". For example, "@MyLanguage1,@MyLanguage2,English".
Result
[out, retval] A pointer to the ITextLanguage* pointer variable that receives the interface pointer of the TextLanguage object. *Result should not be NULL. *Result is guaranteed to be non-NULL after successful method call.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

The language database must contain languages with all internal names that you pass to this function; otherwise, an error code is returned. The resulting TextLanguage object will have attributes of all the custom languages put together.

See also

LanguageDatabase

03.07.2024 8:50:10

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.