Apple Newton Utilities Guide de l'utilisateur Page 406

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 405
CHAPTER 10
Recognition: Advanced Topics
10-30 Using Advanced Topics in Recognition
Removing Your RAM-Based Custom Dictionary 10
It is recommended that you remove your custom dictionary when it is no longer
needed, such as when your application is removed. The
DisposeDictionary
function removes a specied RAM-based dictionary.
The
DisposeDictionary function accepts one argument, the dictionary identier
returned by
NewDictionary. If this identier was stored in a slot named
mySpecialDictionary, a line of code similar to the following example would
be used to remove the custom dictionary.
DisposeDictionary(mySpecialDictionary);
Using System Dictionaries Individually 10
The system provides several constants that you can use to refer to system
dictionaries conveniently; see “System-Supplied Dictionaries” (page 8-16) in
Newton Programmers Reference. You can set the
vCustomDictionaries ag
and place one or more of these constants in your view’s
dictionaries slot to
specify explicitly the vocabulary it can recognize, such as rst names only or
names of days and months only. Note that a single constant may represent multiple
dictionaries; for example, when the
kCommonDictionary constant is specied,
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.
The
vNumbersAllowed ag 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
vCustomDictionaries ag and place the
kNumbersOnlyDictionary constant in the view’s dictionaries slot.
Note that both the
vCustomDictionaries and vCharsAllowed ags enable
text recognition. The difference between these ags is in the set of dictionaries they
enable. The
vCustomDictionaries ag enables only those dictionaries specied
by the
dictionaries slot of the view performing recognition. The
vCharsAllowed flag, on the other hand, enables several system-supplied
dictionaries. To avoid unexpected results when working with custom dictionaries,
be aware that setting other ags may enable additional dictionaries. Remember,
also, that the printed recognizer can always return words not appearing in dictionaries.
Working With the Review Dictionary 10
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.
Vue de la page 405
1 2 ... 401 402 403 404 405 406 407 408 409 410 411 ... 941 942

Commentaires sur ces manuels

Pas de commentaire