Leadtools.Forms.Ocr Namespace : OcrSpellCheckEngine Enumeration |
public enum OcrSpellCheckEngine : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
'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
Leadtools.Forms.Ocr.OcrSpellCheckEngine = function() { }; Leadtools.Forms.Ocr.OcrSpellCheckEngine.prototype = {
None = 0x00000000, Native = 0x00000001, Hunspell = 0x00000002, };
public enum class OcrSpellCheckEngine : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Value | Member | Description |
---|---|---|
0x00000000 | None |
No spell checker (disables the spell check sub system) |
0x00000001 | Native |
Native spell checker. |
0x00000002 | Hunspell |
Hunspell spell checker. |
Refer to IOcrSpellCheckManager for more information on the type of spell check engines available and any restrictions.
Set IOcrSpellCheckManager.SpellCheckEngine to OcrSpellCheckEngine.None to disable the spell checking sub system.
The OcrSpellCheckEngine.Native spell checker is used differently depending on your OCR engine type:
For OcrEngineType.Plus and OcrEngineType.Professional, this is the native spell checker that ship with the Professional and Plus OCR runtimes.
For OcrEngineType.Advantage, LEADTOOLS will use Microsoft .NET WPF spell checker. Current dictionaries support is: English, French, German and Spanish only. Leadtools.Forms.SpellChecker.Native.dll is required and the Microsoft .NET Runtime 3.0 or later must be installed on the machine.
The OcrSpellCheckEngine.Hunspell is only supported by LEADTOOLS Advantage OCR engine and uses the uses the popular Hunspell spell checker (through the standard .NET NHunspell wrapper). LEADTOOLS setup does not contain the NHunspell binaries or any language dictionaries. You must 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.
Any language supported by both OCR Advantage and NHunspell. This includes: English, Spanish, French, German, Italian, Bulgarian, Catalan, Czech, Danish, Greek, Finnish, Hungarian, Indonesian, Lithuanian, Latvian, Dutch, Norwegian, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Serbian, Swedish, Turkish, Ukrainian, Vietnamese, Japanese, Korean and Chinese (Simplified and Traditional).
The following prerequisites must exist in order for you to use the Hunspell engine with LEADTOOLS Advantage OCR engine:
The Leadtools.Forms.SpellChecker.Hunspell.dll assembly must be in your Bin folder next to Leadtools.Forms.Ocr.Advantage.dll.
NHunspell.dll: NHunspell .NET wrapper. Must be in your bin folder next to Leadtools.Forms.SpellChecker.Hunspell.dll.
Hunspellx86.dll or Hunspellx64.dll: Hunspell native DLL. The correct version for your platform must exist in the OCR Advantage runtime folder. By default, the location is:
"C:\Program Files (x86)\LEAD Technologies\LEADTOOLS 18\Bin\Common\OcrAdvantageRuntime"
lang.aff and lang.dic dictionary files: Language dictionary files for the Hunspell engine. Visit http://wiki.services.openoffice.org/wiki/Dictionaries to download the files for the languages you are interested in. You can use the same name as the original dictionary file, for example, "en_US" for English US dictionary.
The dictionary file must reside in the OCR Advantage runtime folder. By default, the location is:
"C:\Program Files (x86)\LEAD Technologies\LEADTOOLS 18\Bin\Common\OcrAdvantageRuntime"
For an example, refer to IOcrSpellCheckManager.
System.Object
System.ValueType
System.Enum
Leadtools.Forms.Ocr.OcrSpellCheckEngine