Microsoft KB Archive/284231

= Description of the AutoCorrect feature in Visio =

Article ID: 284231

Article Last Modified on 4/26/2007

-

APPLIES TO


 * Microsoft Office Visio Professional 2007
 * Microsoft Office Visio Standard 2007
 * Microsoft Office Visio Professional 2003
 * Microsoft Office Visio Standard 2003
 * Microsoft Visio 2002 Professional Edition
 * Microsoft Visio 2002 Standard Edition

-



This article was previously published under Q284231



SUMMARY
This article describes the AutoCorrect features in Microsoft Visio 2002 and in later versions of Visio.

AutoCorrect is a shared Office feature that automatically detects and corrects common typographical errors, misspelled words, grammatical errors, and incorrect capitalization. These corrections are made as the text is typed.

To use the AutoCorrect feature, click AutoCorrect Options on the Tools menu. This opens the AutoCorrect dialog box.

Note There is no custom keyboard shortcut for the AutoCorrect feature. Keyboard access to the AutoCorrect dialog box is done through standard menu accelerators.



MORE INFORMATION
The AutoCorrect dialog box is a shared component of Microsoft Office. The Visio version of the AutoCorrect dialog box is slightly different from the Office versions. The AutoCorrect dialog box consists of two property sheets: one for AutoCorrect and one for AutoFormat As You Type. By default, Microsoft Office supplies a single property sheet labeled AutoCorrect. This property sheet is identical in form and function across all Microsoft Office programs. It consists of a number of check boxes and a list to review or edit replacement text. Each of the check boxes provides the ability to enable or disable specific auto-corrections.

The Visio-supplied &quot;AutoFormat As You Type&quot; property sheet includes additional replacement options appropriate for typical text formatting in Visio drawings. This tab contains a number of check boxes, each of which provides the ability to enable or disable specific auto-formatting.

Auto corrections
Visio uses the Microsoft Office AutoCorrect feature to provide automatic text substitution while you are editing text. AutoCorrect automatically corrects many common typing, spelling, and grammatical errors. You can easily customize the preset AutoCorrect options or add errors that you may commonly make to the list of AutoCorrect entries.

Auto-correction consists of the following:
 * Correcting two initial capitals.
 * Capitalizing the first letter of a sentence.
 * Capitalizing names of days.
 * Correcting the accidental use of the caps lock key.
 * Replacing text as you type with substitutions defined by Microsoft Office and customization performed to the list.

Visio is triggered to perform the first four corrections when you type a non-alphabetic character. The last correction option, text replacement, is only triggered when you type a non-alphanumeric character or a white space character. The corrections are performed when Visio detects the AutoCorrect trigger.

When Visio makes a correction, it is treated as a separate, undo-able action.

Smart quote substitutions
Smart quotes, also known as curly or type-setters Quotes, are substituted for straight quotes. The substitution is specified by the following rules.

Feet & Inches Rule

Microsoft Visio does not convert straight quotes to smart quotes when they are used to indicate feet or inches. If you type a straight quote that is preceded by a number, and the number is preceded by an open smart quote, Visio converts the straight quote to a smart quote to indicate an integer encapsulated in smart quotes. However, if the straight quote is preceded by a number, and the number is preceded by a closed smart quote or by no quote at all, Visio does not convert the straight quote and instead assumes it represents feet or inches.

Example of smart quote with a number: &quot;Get me the last 10&quot;.

Example of straight quote with a number: The sentence &quot;This is something profound&quot; is followed by 10&quot; of nonsense.

If the last typed character was a straight single or double quote and the Feet & Inches Rule does not apply, then the following rule may apply:

If its preceding character is one of the following:
 * start of paragraph
 * white space
 * open parenthesis
 * open bracket
 * open brace
 * hyphen
 * em-dash
 * en-dash

In these cases, the locale-specific smart single or double open quote is substituted for a straight single or double quote.

Or, the locale-specific smart single or double close quote is substituted for the straight single or double quote.

Single quote contraction
A smart open single quote will be replaced with a smart close single quote as specified by the following rules:

If the current keyboard locale is one of the following:
 * German
 * Czech
 * Slovak

and the text which precedes the current text insertion point follows the pattern of: a word or integer

followed by a smart open single quote

followed by a word

then a smart close single quote is substituted for the smart open single quote.

Single quote date
A smart open single quote is replaced with a smart close single quote as specified by the following rules:

If the text that precedes the current text insertion point follows the pattern of

a smart open single quote

followed by two digits followed by one of the following characters:
 * space
 * tab
 * period
 * comma
 * exclamation point
 * question mark
 * semicolon
 * colon
 * hyphen
 * close parenthesis

then a smart close single quote is substituted for the smart open single quote.

Thousands numeric separator
A smart close single quote is replaced with a straight single quote as specified by the following rules.

If the current keyboard locale is one of the following:
 * German
 * French
 * Italian

and if the text which precedes the current text insertion point follows the pattern of: an integer

followed by a smart close single quote

followed by three digits followed by one of the following characters:
 * space
 * tab
 * period
 * comma
 * exclamation point
 * question mark
 * semicolon
 * colon
 * hyphen
 * close parenthesis
 * close single quote

Then, a straight single quote is substituted for the smart close single quote.

AutoFormat fractions
Multiple characters that specify certain fractions are replaced with single characters as specified by the following rules.

If the current keyboard locale is US, and the text that precedes the current text insertion point follows the pattern of

1/4 or 1/2 or 3/4

then the fraction text pattern is substituted with either 1/4, 1/2, or 3/4.

AutoFormat smiley faces and arrows
Multiple characters that represent a &quot;smiley face&quot; or arrow symbol are replaced with a single smiley face or arrow character as specified by the following rules.

If the text that precedes the current text insertion point follows the pattern of: -->         right arrow

==>         large right arrow

<=>         double-headed arrow

<--         left arrow

<==         large left arrow


 * -)         smiley face


 * )         smiley face


 * -(         frowning face


 * (          frowning face


 * -|         impassive face


 * impassive face

then that text is substituted by the applicable face or arrow symbol.

