ImageGear .NET
UD-Checking Prerequisites

The prerequisites for checking with a User dictionary are:

The checking subsystem can handle two kinds of User dictionaries: native dictionary files (created or updated by a previous ImGearRecUserDictionary.Save Method call), and word-list file. The way of preparing a native User dictionary file is given in the next topic. A word-list file is a text file; it contains words, one in each line.

Before recognition, the ImGearRecUserDictionary.Load Method must be called with the name of the User dictionary file and also with a section name. This section name defines the default section in the User dictionary. The items under this section will be "used" by any zone in the zone list whose UserDictionarySection Property contains an empty string. (Note that the auto-zoning feature always creates zones with an empty string in this property.) Other sections in the User dictionary can be referred to by name. In this case, for those zones where it is needed, the UserDictionarySection Property must contain the section name. This way different zones on a page can be UD-checked with different sections. A zone will be subject to UD-checking only if the USERDICT_PROHIBIT flag of its Checking Property is off.

Configuring the Checking Subsystem to Enable UD-Checking

C#
Copy Code
igRecognition.Recognition.SpellingEnabled = true;
igRecognition.Recognition.CorrectionEnabled = true;
igRecognition.Recognition.UserDictionary.Load("MYWORDS.DCT", "DEFSECT");
VB .NET
Copy Code
igRecognition.Recognition.SpellingEnabled = True
igRecognition.Recognition.CorrectionEnabled = True
igRecognition.Recognition.UserDictionary.Load("MYWORDS.DCT", "DEFSECT")

After recognition, the Checking Property of the zones might be updated by one of the flags: LANGDICT_USED, USERDICT_USED, CHECKCBF_USED, or VERTDICT_USED.

See Also

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback