Apple Newton Utilities User's Guide Page 389

  • Download
  • Add to my manuals
  • Print
  • Page
    / 942
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 388
CHAPTER 10
Recognition: Advanced Topics
Using Advanced Topics in Recognition 10-13
Manipulating Dictionaries 10
You can control the views use of dictionaries by including in your recConfig
frame the
dictionaries, rcSingleLetters, or
inhibitSymbolsDictionary slots as appropriate. These slots are described in
“protoRecCong” (page 8-36) in Newton Programmers Reference.
Single-Character Input Views 10
When recognizing single characters, the recognizer sometimes has difficulty
determining individual characters’ baseline or size; for example, it can be difcult
to distinguish between an upper case
P and a lower case p when relying strictly on
user input. If you know where the user will be writing with respect to a
well-dened baseline, you can provide an
rcBaseInfo or rcGridInfo frame to
specify to the recognition system precisely where characters are written.
The rcBaseInfo Frame 10
The rcBaseInfo frame is especially valuable in improving the recognition of
single characters, for which it is sometimes difcult to derive baseline or letter-size
values from user input.
Figure 10-3 depicts the editing box that an
rcBaseInfo frame denes.
Figure 10-3 Single-character editing box specied by rcBaseInfo frame
The NewtonScript code used to create the baseline information for the editing box
shown in Figure 10-3 looks like the following example.
rcBaseInfo := {
base: 140,// global y-coordinate of baseline
smallHeight:15,// height of a lower case x
bigHeight:30,// height of an upper case X
descent:15,// size of descender below baseline
};
base
descent
smallHeight
bigHeight
Page view 388
1 2 ... 384 385 386 387 388 389 390 391 392 393 394 ... 941 942

Comments to this Manuals

No comments