background image
C H A P T E R 9
Recognition
9-18
About the Recognition System
Figure 9-7
Handwriting Settings slip
When the "Learn my handwriting" checkbox is selected, the system sets the value
of the
learningEnabledOption
slot in its user configuration data to
true
.
When this slot holds the value
true
, the system modifies its internal handwriting
model as the user corrects misrecognized words when the cursive recognizer is
enabled. The printed recognizer does not provide or use learning data.
The user can cause the cursive recognizer to perform character-based recognition
(rather than dictionary-based recognition) in certain kinds of views by selecting the
"Letter-by-letter in fields" or "Letter-by-letter in notes" checkboxes in the
Handwriting Settings slip. (The printed recognizer can always return character
combinations that do not appear in dictionaries.)
The "Letter-by-letter in fields" checkbox enables the cursive recognizer's letter-by-
letter option in
protoLabelInputLine
views that use this recognizer. The
intended use of this flag is to permit the user to enable letter-by-letter recognition
automatically for views that are unlikely to find user input in dictionaries. For
example, an application that restricts the cursive recognizer to returning dictionary
words might enable this recognizer's letter-by-letter option selectively for views
intended to accept surnames. When the "Letter-by-letter in fields" box is selected,
the value of the
letterInFieldsOption
slot in the system's user configuration
data is set to
true
. For more information, see the description of this slot in
"System-Wide Settings" (page 8-2) in Newton Programmer's Reference.
The "Letter-by-letter in notes" checkbox enables letter-by-letter recognition for
views based on the
clEditView
class that use the cursive recognizer. When the
"Letter-by-letter in notes" box is selected, the
lettersCursiveOption
slot in
the system's user configuration data is set to
true
. The built-in Notes application
and notes associated with items in the Names and Dates applications demonstrate
this behavior. For more information, see the
lettersCursiveOption
description
in "System-Wide Settings" (page 8-2) in Newton Programmer's Reference.
RecToggle Views
9
The
protoRecToggle
view is a button that allows the user to control the
recognition behavior of one or more views easily. This button is usually provided
as a child of your application's status bar. When the user taps this button, it
letterInFieldsOption
lettersCursiveOption
learningEnabledOption
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна