LanguageDatabase object (ILanguageDatabase interface) in the ABBYY FineReader Engine API — Provides advanced operations for working with FineReader Engine predefined and custom recognition languages, including creating compound text languages and managing user dictionaries.
This object provides means for performing advanced operations with recognition languages. It allows you to work with the whole set of ABBYY FineReader Engine predefined languages, and also to import custom languages. This object allows you to create compound recognition language of several predefined languages and/or imported custom languages.
Visual Components are currently only supported for Windows.
You may combine the loaded custom languages with each other and with predefined languages and use them for text recognition. You may choose not to load any custom languages into the language database. In this case, only the predefined languages will be available.In Windows, Visual Components, with their user interface, provide relatively simple way to create custom recognition languages. See the procedure of creating and importing recognition languages in the description of the ILanguageDatabase::LoadFrom method.
For Linux and macOS, you can create custom recognition languages in the Windows version of ABBYY FineReader Engine.
Specifies the full path to the folder with dictionary extension files (*.ame). These files contain words added to the dictionary by the user; they can only be created for languages that already have standard dictionary support. These files can be created in ABBYY FineReader, where they are called user dictionaries. ABBYY FineReader stores extensions of standard dictionaries in the %appdata%\ABBYY\FineReader\15\FineReaderShell\UserDictionaries folder.
You can edit dictionary extension as a user dictionary via the Dictionary object, which can be received with the help of the OpenDictionaryExtension method.
By default, this property contains the path to the UserDictionaries folder, located in the FineReader Engine data folder:
Linux for automatic installation: /var/lib/ABBYY/SDK/12/FineReader Engine
macOS for automatic installation: /Library/Application Support/ABBYY/SDK/12/FineReader Engine
Provides access to the dictionary extension of the standard dictionary for the specified language. The path to the dictionary extension is defined by the DictionaryExtensionsPath property.
FREngine.IEngine engine;// Use LanguageDatabase to create a compound text languageFREngine.ILanguageDatabase langDatabase = Engine.CreateLanguageDatabase();FREngine.ITextLanguage textLanguage = langDatabase.CreateCompoundTextLanguage( "English,German" );