LoadFrom Method of the LanguageDatabase Object
This method loads custom languages into the LanguageDatabase object.
Custom languages can be created with the help of ABBYY FineReader Engine Visual Components. The procedure of creating and importing recognition languages is as follows:
- Create a custom language with the required parameters in the Language Editor dialog box of Image Viewer, Zoom Viewer, or Document Viewer. The textlang.dat, *.amd files will be created. By default, the files are created in the FineReader Engine data folder (you can change the default value when loading FineReader Engine). You may then redistribute them with your custom ABBYY FineReader Engine-based application.
- Load the created languages by a call to the ILanguageDatabase::LoadFrom method.
Syntax
C++
HRESULT LoadFrom( BSTR FolderPath );
C#
void LoadFrom( string FolderPath );
Visual Basic .NET
Sub LoadFrom(FolderPath As String )
Parameters
- FolderPath
- [in] This parameter specifies the full path to folder where the necessary files are stored. These files are textlang.dat and *.amd.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
You may initialize the LanguageDatabase object before using it; otherwise, only predefined languages will be available through it.
See also
17.09.2024 15:14:41