beautypg.com

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

Page 669

background image

C H A P T E R 1 8

Intelligent Assistant

Summary

18-23

System-Supplied Action Templates

18

// base your action templates on this generic action

dyna_user_action:= {

// this template has no lexicon

…}

// Action template for dialing the telephone

call_act:= {

// Words or phrases to match with this template

// lexicon: ["call", "phone", "ring","dial"],

…}

// Action template for using the Find service.

find_act := {

lexicon :["find", "locate", "search for", "look for"],

…}

//Action template for faxing the target data item

fax_act:= {

lexicon: ["fax"],

…}

//Action template for printing the target data item

print_act:= {

lexicon: ["print"],

…}

// Action template for displaying the About box

about_act := {

lexicon: ["about newton"],

…}

// Action template for retrieving time values

// from the Time Zones application

time_act := {

lexicon: ["time", "time in","the time in",

"what time is it", "what time is it in",

"the time in", "what time",

"what is the time", "what is the time in"],

…}