Vocola Information Pages by Rick Mohr (last modified February 18, 2002) |
Substituting ActionsFor example, suppose we want "Move Back" to move the cursor left and "Move
Forward" to move the cursor right. We can specify that this way:
The alternative set "(Back=Left | Forward=Right)" means you can say either "Back" or "Forward", but the value substituted on the right hand side will be "Left" or "Right". Here's another example. The Netscape Mailer has several options for sorting
messages. This command allows you to change the sort by
saying "Sort by Date", "Sort by Sender", or "Sort by Subject":
This alternative set allows you to say "Date", "Sender", or "Subject", and substitutes "e", "r", or "s" into the keystroke sequence. Another common use of alternative sets with substitution is when you want
to pick from a long list of specific items such as files, folders, or email
addresses. For example, we can define the variable <EmailAddress>
to contain a list of email addresses and shorthands to invoke them:
The command "Address <EmailAddress>" allows you to say,
for example, "Address Bill" or "Address Voice Coder" to insert the desired
email address. The list can be modified over time to add new addresses.
This page is (c) Copyright 2002 by Rick Mohr, and was last modified on February 18, 2002. |