- Add the “space” character to the alphabet of the current language.
- Add the necessary words with spaces to the dictionary.
- Set the OneWordPerLine property of the RecognizerParams object to TRUE.
- Create a new text language on the basis of a predefined language. To do this, create a TextLanguage object using the CreateTextLanguage method of the LanguageDatabase object and copy the attributes of the predefined language.
- Add the “space” character to the BaseLanguage object within the TextLanguage object, using the LetterSet property of the BaseLanguage object.
- Create a new dictionary and add all the necessary words with spaces to this dictionary. You can use the Dictionary object to do this.
- Create a UserDictionaryDescription object. Assign the path to the new dictionary to the FileName property of this object.
- Add the UserDictionaryDescription object to the DictionaryDescriptions collection of the BaseLanguage object.
- In the RecognizerParams object of all text blocks, assign the previously created TextLanguage object to the TextLanguage property and the TRUE value to the OneWordPerLine property.
C++ (COM) code
C++ (COM) code
C# code
C# code
