beautypg.com

Shapes 9 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 347

background image

C H A P T E R 9

Recognition

About the Recognition System

9-5

Figure 9-1

Recognizers create units from input strokes

Shapes

9

When the recognition system returns a shape unit to the view, the shape is displayed
as the

clPolygonView

child view of a

clEditView

view. The shape unit contains

a single, cleaned-up version of the original strokes. The shape recognizer may
make the original shape more symmetrical, straighten its curves, or close the shape.

There is no developer interface to shape recognition. To manipulate shapes
returned by the recognition system, you must extract polygon view children from
edit views yourself. You can do so from within an optional

ViewAddChildScript

method that you supply. The system invokes this method

for each

clPolygonView

or

clParagraphView

child added to an edit view.

Pen on tablet

Stroke units

Shape

unit

Word

unit

Gesture

unit

Ink text

Text

Ink

Recognizers

ABC