background image
C H A P T E R 1 0
Recognition: Advanced Topics
About Advanced Topics in Recognition
10-5
A formatted comb view utilizes a template you define which specifies characteristics
of the view's behavior or appearance. A comb view's template may specify an
initial value for the string that the view displays, the editing characteristics for each
position in the comb view, and filters that restrict the values recognized in each of
these positions. The template may also define methods for initializing and post-
processing the string displayed by the comb view. These methods may be useful
when the string displayed in the comb needs to be different from the input string or
when an externally-displayed string must differ from its internal representation.
When the user taps a character in a formatted comb view, it displays the list of
characters specified by its template, if that list contains ten or fewer items. (Note
that this value may change in future platforms.) Otherwise, it displays the list of
top-ranking alternate interpretations returned by the text recognizer.
Ambiguous Characters in protoCharEdit Views
10
Because there are several characters that are ambiguous in appearance--for
example, the value zero (
0
) and the letter O, or the value one (
1
) and the letter L--
the built-in system fonts provide enhanced versions of these characters that
improve their readability. However, continuous use of these characters can be
distracting to the user. Thus, these fonts contain character codes that map to
alternate versions of the ambiguous characters, and the system provides functions
for mapping between the codes for the normal and enhanced characters. For more
information, see the descriptions of the
MapAmbiguousCharacters
and
UnMapAmbiguousCharacters
functions under "protoCharEdit Functions and
Methods" (page 8-47) in Newton Programmer's Reference.
Deferred Recognition
10
Deferred recognition is the ability to convert strokes to text at some time other
than when the strokes are first entered on the screen. Views that are to perform
deferred recognition must be capable of capturing ink text or ink. For example, a
view that bases its
recConfig
frame on the system-supplied
ROM_InkOrText
frame and uses a
protoRecToggle
view to configure the recognition system
need not do anything more to provide the deferred recognition feature.
This section describes the user interface to deferred recognition and then provides a
programmer's overview of this feature.
User Interface to Deferred Recognition
10
A view that performs deferred recognition uses the same settings as it would for
real-time text recognition: a combination of settings specified by user preferences
and settings specified by the view flags or
recConfig
frame associated with the
view in which recognition takes place.
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна