OpenDictionaryExtension Method of the LanguageDatabase Object
This method provides access to the dictionary extension of the standard dictionary for the specified language. The path to the folder with dictionary extensions is defined by the ILanguageDatabase::DictionaryExtensionsPath property.
Dictionary extensions can be created in ABBYY FineReader, where they are called user dictionaries. They can only be created for languages which already have dictionary support.
After you have received the dictionary extension, you can edit it in the same way as a user dictionary via the Dictionary object.
HRESULT OpenDictionaryExtension( LanguageIdEnum LanguageID, IDictionary** Result );
IDictionary OpenDictionaryExtension( LanguageIdEnum LanguageID );
Visual Basic .NET
Function OpenDictionaryExtension(LanguageID As LanguageIdEnum ) As IDictionary
- [in] This parameter specifies the ID of the language, for which dictionary extension is to be opened. See the description of the LanguageIdEnum constants. If there is no dictionary extension file for the specified language, a new dictionary extension is created and corresponding Dictionary object is returned.
- [out, retval] A pointer to the IDictionary* pointer variable that receives the interface pointer of the Dictionary object with dictionary extension.
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
If you create a dictionary extension using ABBYY FineReader 11 or using another release of ABBYY FineReader Engine 12, you may need a special TXT file for opening this dictionary extension in the current release of ABBYY FineReader Engine. This TXT file is created automatically during dictionary extension creation and has the name <language name>.txt. Copy this file to the folder with dictionary extensions.