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

C++

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

C#

ITextLanguage CreateCompoundTextLanguage( string LanguageNames );
    

Visual Basic .NET

Function CreateCompoundTextLanguage(LanguageNames As String) As ITextLanguage
    

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 Visual Components 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

24.03.2023 8:51:52

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.