Error processing SSI file
LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

Show in webframe

OcrSpellCheckEngine Enumeration








OCR Spell Checker Type
Syntax
'Declaration
 
Public Enum OcrSpellCheckEngine 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
'Usage
 
Dim instance As OcrSpellCheckEngine
public enum OcrSpellCheckEngine : System.IComparable, System.IConvertible, System.IFormattable  
typedef NS_ENUM(NSInteger, LTOcrSpellCheckEngine)
public enum OcrSpellCheckEngine
Leadtools.Forms.Ocr.OcrSpellCheckEngine = function() { };
Leadtools.Forms.Ocr.OcrSpellCheckEngine.prototype = {<br/>
  None = 0,
	Native = 1,
	OS = 2,
	Hunspell = 3,
	
 };
public enum class OcrSpellCheckEngine : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
Members
ValueMemberDescription
0None No spell checker (disables the spell check sub system)
1Native Native engine spell checker.
2OS The operating system spell checker.
3Hunspell Hunspell spell checker.
Remarks

Refer to IOcrSpellCheckManager for more information about the types of spell check engines available and any restrictions.

Set IOcrSpellCheckManager.SpellCheckEngine to OcrSpellCheckEngine.None to disable the spell checking sub system. Only one spell check language can be enabled at a time using IOcrSpellCheckManager.SpellLanguage.

The OcrEngineType.Professional engine supports the OcrSpellCheckEngine.None only. This is the internal spell checker that ships with the OCR Professional runtimes. User words and dictionaries are not supported.

The OcrEngineType.Advantage engine supports all OcrSpellCheckEngine types. User words and dictionaries are supported and the engine automatically loads the dictionaries based on the language(s) currently enabled in IOcrLanguageManager. IOcrSpellCheckManager.SpellLanguage is not used and will have no effect.

The following information is only for the OcrEngineType.Advantage engine.

All OCR Advantage spell checker engines support adding user words to create custom dictionaries through IOcrSpellCheckManager.AddUserWords.

The OcrSpellCheckEngine.Native engine uses the internal LEADTOOLS cross-platform spell checker. The dictionary files ship with LEADTOOLS in the Advantage runtime in the following format Advantage.[Language].dic where [Language] is the specific language (such as "en" for English or "de" for German). This engine has no extra dependencies, except for the dictionary files.

The OcrSpellCheckEngine.OS engine uses the Operating System-specific spell checker, if any. In the Windows environment, this is the .NET spell checker (requires .NET 3.0 or later to be installed on the machine) which supports only English, French, German and Spanish. In order to use this engine, Leadtools.Forms.SpellCheckers.OS.dll must exist in the Bin folder next to the Leadtools.Forms.Ocr.Advantage.dll.

The OcrSpellCheckEngine.Hunspell uses the popular Hunspell spell checker (using the standard .NET NHunspell wrapper). The LEADTOOLS setup does not contain the NHunspell binaries or any language dictionaries. Download the required assemblies from the NHunspell page as well as the dictionaries for the languages you are interested in. Visit the NHunspell home page at http://nhunspell.sourceforge.net for more information.

The following prerequisites must exist in order for you to use the Hunspell engine with LEADTOOLS Advantage OCR engine:

Example

For an example, refer to IOcrSpellCheckManager.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Forms.Ocr.OcrSpellCheckEngine

Requirements

Target Platforms

See Also

Reference

Leadtools.Forms.Ocr Namespace

Error processing SSI file
Leadtools.Forms.Ocr requires a Recognition or Document Imaging Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features