C H A P T E R 1 0
Recognition: Advanced Topics
Using Advanced Topics in Recognition
Removing Your RAM-Based Custom Dictionary
It is recommended that you remove your custom dictionary when it is no longer
needed, such as when your application is removed. The
function removes a specified RAM-based dictionary.
function accepts one argument, the dictionary identifier
. If this identifier was stored in a slot named
, a line of code similar to the following example would
be used to remove the custom dictionary.
Using System Dictionaries Individually
The system provides several constants that you can use to refer to system
dictionaries conveniently; see "System-Supplied Dictionaries" (page 8-16) in
Newton Programmer's Reference. You can set the
and place one or more of these constants in your view's
specify explicitly the vocabulary it can recognize, such as first names only or
names of days and months only. Note that a single constant may represent multiple
dictionaries; for example, when the
constant is specified,
the system may actually add several dictionaries to the set that the view uses for
recognition. The rest of this section describes the use of individual system dictionaries.
flag enables both the numeric lexical dictionary and the
monetary lexical dictionary. To create a view that recognizes numeric values but
not monetary values, set the
flag and place the
constant in the view's
Note that both the
text recognition. The difference between these flags is in the set of dictionaries they
flag enables only those dictionaries specified
slot of the view performing recognition. The
flag, on the other hand, enables several system-supplied
dictionaries. To avoid unexpected results when working with custom dictionaries,
be aware that setting other flags may enable additional dictionaries. Remember,
also, that the printed recognizer can always return words not appearing in dictionaries.
Working With the Review Dictionary
The review dictionary object provides methods for manipulating the contents of the
user dictionary (personal word list), and the expand dictionary. Although the
auto-add dictionary is also part of the review dictionary, the auto-add dictionary
has its own interface.