background image
C H A P T E R 1 0
Recognition: Advanced Topics
10-46
Summary of Advanced Topics in Recognition
System-Supplied RecConfig Frames
10
// recognize ink or text
ROM_rcInkOrText :=
{
// allow user to enable text recog from recToggle
allowTextRecognition: true, // default
// return ink text when text recognizer disabled
doInkWordRecognition: true, // default
...}
// recognize according to user prefs
ROM_rcPrefsConfig :=
{
// allow user to enable text recog from recToggle
allowTextRecognition: true, // default
// allow user to enable shape recog from recToggle
allowShapeRecognition: true, // default
...}
// generic recConfig frame - you supply useful values
ROM_rcDefaultConfig :=
{
// true enables recognition of punctuation marks
punctuationCursiveOption: nil, // default
// list of dictionaries used for recognition
dictionaries: nil, // default
// true enables letter-by-letter option
rcSingleLetters: nil, // default
// Holds an rcBaseInfo frame
rcBaseInfo: nil, // default
// bitfield specifying recognition configuration
inputMask: 0x0000, // default
...}
// use as-is to configure single-character input views
ROM_rcSingleCharacterConfig :=
{
// do not change value of this slot
_proto: ROM_rcDefaultConfig, // default
//interpret all input strokes as a single word
letterSpaceCursiveOption: nil, // default
// enable letter-by-letter option
rcSingleLetters: true, // default
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна