CreateCompoundTextLanguage Method of the LanguageDatabase Object
HRESULT CreateCompoundTextLanguage( BSTR LanguageName, ITextLanguage** Result );
ITextLanguage CreateCompoundTextLanguage( string LanguageNames );
Visual Basic .NET
Function CreateCompoundTextLanguage(LanguageNames As String) As ITextLanguage
- [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".
- [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.
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
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.