beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 428

background image

C H A P T E R 1 0

Recognition: Advanced Topics

10-52

Summary of Advanced Topics in Recognition

protoCharEdit Templates

10

ROM_numberFilter // general-purpose numeric template

GetLocale().timeFilter // time template

GetLocale().dateFilter// date template

GetLocale().phoneFilter // phone numnber template

ProtoCharEdit Functions

10

MapAmbiguousCharacters(

str

)

UnmapAmbiguousCharacters(

str

)

ProtoCorrectInfo

10

aCorrectInfoFrame :=

{

info: [

frame1

,

frame2

frameMax

] // wordInfo frames

// maximum number of frames in info array

max: 10, // default value

// system-supplied methods

Offset:

function

, // move, merge or delete wordInfo

// remove view’s wordInfo from correctInfo

RemoveView:

function

,

// return wordInfo frame at specified offset

Find:

function

,

// return wordInfo frame at specified offset,

// creating one if none found

FindNew:

function

,

// extract wordInfo from unit & add to correctInfo

AddUnit:

function

,

// add specified wordInfo to correctInfo

AddWord:

function

,

// delete range of wordInfo frames from correctInfo

Clear:

function

,

// copy range of wordInfo frames from view

// into a new correctInfo frame

Extract:

function

,

// copy range of wordInfo frames from source

// correctInfo frame into dest correctInfo frame

Insert:

function

,

…}