bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Editing > AutoCorrect > Two Keys with the Press of One

Two Keys with the Press of One

Summary: Sometimes it could be helpful to have Word substitute two characters for the one that you type, for instance to replace a slash with a slash followed by a no-width optional space. (This could possibly help in the proper breaking of information between lines in Word.) This can be accomplished with AutoCorrect, but you may want to carefully think through the change before doing it, as discussed in this tip. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)

Sara asked if there was a way to modify the Word keyboard so that whenever she struck the "/" key, Word would actually insert the slash followed by a no-width optional break.

Yes, there is a way to do this, using the AutoCorrect feature in Word. Follow these general steps:

  1. Choose Symbol from the Insert menu. Word displays the Symbol dialog box.
  2. Make sure the Special Characters tab is selected. (Click here to see a related figure.)
  3. In the list of available characters, choose the No-Width Optional Break option.
  4. Click the Shortcut Key button. Word displays the Customize Keyboard dialog box (Click here to see a related figure.) and the insertion point should be in the Press New Shortcut Key box.
  5. Press a keyboard shortcut to associate with the special character. For instance, press Alt+A.
  6. Click Assign to assign the shortcut key, then close the dialog box.
  7. Choose AutoCorrect Options from the Tools menu. Word displays the AutoCorrect Options dialog box.
  8. Make sure the AutoCorrect tab is displayed. (Click here to see a related figure.)
  9. In the Replace box, type a slash ("/").
  10. In the With box, type a slash ("/") and press Alt+A.
  11. Click OK.

That's it. Now, whenever you type a slash, Word will replace it with the desired sequence. However, that being said, you may want to reconsider whether you actually want to make the change to Word.

The lowly keyboard slash key serves several semantically different functions. In typesetting, there are different glyphs for different purposes, and these are accessible through Insert | Symbol. The fraction slash (vinculum) is different from the slash seen in "and/or" (virgule) is different from the shilling mark (now obsolete, except for historical references to English currency).

The default glyph you get when you press the slash key on the keyboard is the virgule. This is used a few different ways:

  1. It is used as a hybrid of the ordinary English word "or" and the logical OR in expressions like "and/or."
  2. It is used to indicate arithmetic division, with spaces around it, as in 12 / 3 = 4:
  3. It is used to mean "per," which is also a form of arithmetic division, in running text, without spaces, as in "calories/serving."

In all three of these uses, if it is really necessary to break the line in the middle of the expression, the concept of adding a no-width optional break after the slash works just fine. But there is one other place where slashes are used in today's writing, and that is in URLs. The preferred place to break a long URL is before the slash, not after. This serves the important function of signaling to the reader that the word beginning the next line is still part of the URL.

So, if you were to create the AutoCorrect entry to replace a slash with a slash followed by a no-width optional space, you wouldn't get the preferred method of breaking the URL across lines. In addition, the URL would no longer be "clickable."

So, if you decide that the drawbacks to creating the AutoCorrect entry for the slash outweigh the benefits, then you may want to reconsider. A good trade-off may be to create the shortcut key for the no-width optional space, and then simply use the shortcut key to type the character wherever you decide that you need it--either before or after the slash, as appropriate.

Tip #357 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003


Take Control! Master the real power behind Word! Successfully master the secrets of powerful formatting and create documents that stand out from the rest. Best of all, you can create documents that are easy to maintain and quick to change.
 
Check out Word 2007 Styles and Templates today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)