Top Navigational Bar

Replace Feature Cannot Replace Attribute On/O
DocumentID: 607865
Revision Date: 29-Feb-96 1:32:32 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: When the customer replaces a subscript with a superscript, the remainder of the document automatically turns to superscript from the first subscript code. This occurs whenever a customer does a search and replace for an attribute. Solutions: The program is working as designed. The Replace feature cannot replace both on and off codes (e.g., attribute on/off codes) or even specific font changes.

Customers who wish to search and replace one set of paired codes with another (for example, replace bold codes with underline codes) can use the Alt-R macro on the MACROS keyboard. The Alt-R macro is designed to replace Size/Attribute codes or text. The macro can be used by selecting the Macros keyboard in Keyboard Layout or by saving the macro as a stand-alone macro. NOTE: This macro was not available before the 12/31/90 release.

To use the macro with the Keyboard Layout feature, users should select the Macros keyboard from the Setup menu (Shift-F1, K, Macros, S). With this keyboard selected, users should press Alt-R and follow the prompts to replace any attribute. Attributes are listed as they are found on the Font menu (by Size or Appearance).

If the Macros keyboard is not listed on the Keyboard Layout screen, make sure the *.WPK files are in the directory that is specified as the Keyboard/Macro directory (Shift-F1, L, K). If no directory is specified, users will need to either specify the directory where the macro files are located or copy the *.WPK files into the current directory.

Users who would like to use the Alt-R macro as a stand-alone macro, should save it with a new filename. The macro is stored within the Keyboard Layout file, and needs to be copied to its own file to be used independently of the Macros keyboard. To do this, go to the Keyboard Layout screen, edit the Macros definition, and select Save (Shift-F1, K, Macros, E, Alt-R, S, Enter filename). Note that the filename is entered at the "Define Macro" prompt.

Important: The REPLACE.WPM macro is nested within the ALTR.WPM macro, so users should remember not to delete that macro or name another macro REPLACE.

Some of the size and appearance codes found with this macro are:
Bold                        Underline                  Double Underline      Italic
Outline                  Shadow                  Small Caps            Redline
Strikeout                  Fine                        Small                  Large
Very Large            Extra Large

Another option is to create a macro to do this such as the one below:
{Search}{Bold}{Search}{Block}{Search}{Bold}{bold}{Left}
{Backspace}{Search}{Underline}{Left}{Backspace}

The macro searches for the first code of the pair, turns on Block, and searches for the second code of the pair. This blocks the text between the paired codes. Then, the macro inserts the new paired codes around the blocked text and deletes the old codes.

Status:      Enhance
***|enhance|***
Press Enter on link token to view statement.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.