44
Part Two: WordPerfect
61
Find and Replace
In this chapter:
• “Finding and replacing text” on page 61
• “Finding and replacing formatting codes” on page 63
Finding and replacing text
WordPerfect lets you find and replace text. You can search for words, phrases, or individual characters in a
document. Once the text is found, you can replace some or all occurrences of the text with other text, or you can
delete the text. You can also create a list of find-and-replace items and commit them all at once.
You can search for text that is displayed in a specific font or case. You can also highlight, and advance through, each
instance of a word or phrase in a document.
You can also find and replace forms of a word. For example, you can replace forms of the word “entry” with the word
“insertion.” Therefore, if the plural form, “entries,” is found, it is replaced with the word “insertions.” Furthermore,
you can search for occurrences of words that are whole words, and not part of a larger word. For example, if you do
a default search for the word “sum,” you will find “sum,” “summer,” and “summit.” If you do a whole-word search
for the word “sum,” you will find only occurrences of the word “sum.”
You can also find and replace text in all WPD or WPT files in a folder.
To find and replace text
1
Click Edit Find and replace.
2
In the Find box, type the text you want to search for.
3
Type the replacement text in the Replace with box.
4
Click one of the following:
• Find next — finds the next occurrence of the search text
• Find prev — finds the previous occurrence of the search text
• Replace — finds and replaces the next occurrence of the search text
• Replace all — finds and replaces all occurrences of the search text
You can delete all occurrences of a text string by typing the text you want to delete in the Find box and leaving
the Replace with box empty.
You can search for a word or phrase you searched for previously by choosing the word or phrase from the Find
list box.
To find and replace a list of words or phrases
1
On the Workflow macros toolbar, click the Multiple find and replace button.
2
In the Find box, type the text you want to search for.
3
Type the replacement text in the Replace with box.
4
Click Add.
52
62
Find and Replace
5
Repeat steps 2 through 4 for each word or phrase you want to replace.
If the Workflow macros toolbar is not displayed, click View Toolbars, and enable the Workflow macros check
box.
To find text in a specific font
1
Click Edit Find and replace.
2
In the Find box, type the text you want to find.
3
Click Match Font.
4
Enable the Font check box.
5
Choose a font from the Font list box.
To find and highlight text
1
On the Workflow macros toolbar, click the Highlight find and replace
button.
2
In the Find box, type the text you want to find.
You can scroll through the highlighted text by clicking Previous and Next.
You can also count a specific word in a document. For more information, see “To count a specific word or
phrase” on page 120.
If the Workflow macros toolbar is not displayed, click View Toolbars, and enable the Workflow macros check
box.
To find and replace case-specific text
1
Click Edit Find and replace.
2
Click Match Case.
To find and replace a form of a word
1
Click Edit Find and replace.
2
Click Type Word forms.
To find and replace a whole word
1
Click Edit Find and replace.
2
Click Match Whole word.
You can also
Search for a font style
Choose a font style from the Font style list box.
Search for a specific point size
Enable the Point size check box. Type a point size in the
Point size box.
Search for specific font attributes
In the Attributes area, enable one or more of the attribute
check boxes.
56
Part Two: WordPerfect
63
To find and replace text in all WPD and WPT files in a folder
1
Click Tools Macro Play, and double-click ReplaceInFolder.
2
Click the Browse button, and navigate to the folder where the WPD or WPT files are stored.
3
Enable one or more of the following check boxes:
• WPD — to find and replace text in all WordPerfect documents in the folder
• WPT — to find and replace text in all WordPerfect templates in the folder
4
In the Find box, type the text you want to search for.
5
Type the replacement text in the Replace with box.
6
Repeat steps 2 through 5 for each word or phrase you want to replace.
If the Workflow macros toolbar is not displayed, click View Toolbars, and enable the Workflow macros check
box.
Finding and replacing formatting codes
You can search for and replace codes in a document. For example, if you search for a font size code, all font size codes
are found.
You can also search for specific codes, such as a specific font size.
To find and replace codes, you must first enable Reveal Codes.
You can also
Find and replace occurrences of a word that are not part of
larger words
Enable the Whole words check box.
Include headers, footers, and other substructures, such as
endnotes and equations in the find-and-replace process
Enable the Whole words check box.
Find and replace only case-specific occurrences of a word
or phrase
Enable the Case sensitive check box.
Make the changes in a new version of the file, leaving the
original file unchanged
Enable the Do not overwrite original (Append number to
end of filename) check box.
Sample Code
Represents
Bot mar
Bottom margin
Font
Font
Font size
Font size
HAdv
Horizontal advance
Just
Justification
Lft Mar
Left margin
Lft Mar Adj
Left margin adjustment
Ln Spacing
Line spacing
49
64
Find and Replace
To find and replace a general formatting code
1
Click Edit Find and replace.
2
Click Match Codes.
To choose a merge code, enable the Display merge codes only check box.
3
Choose a code from the Find codes list box.
4
Click Insert.
5
In the Find and replace dialog box, click in the Replace with box.
6
In the Codes dialog box, choose a replacement code from the Replace codes list box.
7
Click Insert and close.
8
Click one of the following:
• Find next — finds the next occurrence of the code
• Find prev — finds the previous occurrence of the code
• Replace — finds and replaces the next occurrence of the code
• Replace all — finds and replaces all occurrences of the code
To find and replace a specific formatting code
1
Click Edit Find and replace.
2
Click Type Specific codes.
3
Choose a code from the Find codes list box.
4
Type values in the following boxes:
• Find
• Replace with
Ovrstk
Overstrike
Rgt Mar
Right margin
Rgt Mar Adj
Right margin adjustment
Style
Document style
Top Mar
Top margin
VAdv
Vertical advance
Sample Code
Represents
43
Part Two: WordPerfect
65
Styles
A style is a collection of formatting attributes that you can apply to text or graphics.
WordPerfect provides several preset styles ready for use. You can also create your own styles.
In this chapter:
• “Using text styles” on page 65
• “Using graphics styles” on page 67
For information about list styles, variables, graphics boxes, and graphics lines, see “Working with styles” in
the WordPerfect Help.
Using text styles
You can create text styles. Text styles are collections of formatting attributes that you can apply to selected text,
paragraphs, or the entire document. Text styles you create are saved with the active document. You can create a
QuickStyle for text. QuickStyles are styles created based on the formatting in effect at the cursor location. You can
also create a QuickStyle for a paragraph.
Formatting text with styles ensures consistent formatting throughout a document. Whenever you change the
formatting in a style, you change the appearance of all text that uses that style.
You can save a text style. You can also specify where to save text styles. When you save a text style, you can associate
it with a specific template or with the active document only, or you can save it as a separate file. Saving a text style as
a separate file is useful if you plan to use the style with a different template or on a different computer.
You can apply a style to text in a document.
You can edit a text style.
To create a text style
1
Click Format Styles.
2
Click Create.
3
In the Styles editor dialog box, type a name for the style in the Style name box.
You can create style names that contain up to 12 characters.
4
Type a description for the style in the Description box.
5
Choose a style from the Type list box.
6
Using the Styles editor toolbar and menu bar, apply any style attributes.
If you want to define what function the Enter key performs when the style is applied, choose a style from the Enter
key inserts style list box.
If you want to display the codes that take effect when a style ends, enable the Show ‘off codes’ check box.
You can also
Delete a text style
Click Format Styles, choose a style from the Available
styles list, and click Options Delete.
53
66
Styles
Give each style a unique name; otherwise, when you combine documents that contain a style with the same
name, one style is used and the other deleted in the new document.
The Reveal Codes check box is enabled by default and displays the codes for the style attributes in the Contents
box.
You can also define the style attributes by typing codes or text in the Contents box in the Styles editor dialog
box.
To create a QuickStyle
1
Select the text or paragraph for which you want to create a QuickStyle.
2
Click Format Styles.
3
Click QuickStyle.
4
In the QuickStyle dialog box, type a name for the style in the Style name box.
5
Type a description for the style in the Description box.
6
Enable one of the following options:
• Character with automatic update — creates a QuickStyle for characters
• Paragraph with automatic update — creates a QuickStyle for paragraphs
To save a text style
1
Click Format Styles.
2
Click Options Save as.
3
In the Save styles to dialog box, type a filename in the Filename box.
4
In the Style type area, enable one of the following options:
• Both — includes both the styles you have created and the preset styles provided with WordPerfect
• User styles — includes only the styles you have created
• System styles — includes only the preset styles provided with WordPerfect
5
Click Options Settings.
6
In the Save new styles to area, enable one of the following options:
• Current document — associates the style with the active document
• Default template — associates the style with the default template
• Additional objects template — associates the style with an additional objects template
The Additional objects template option is available only if you have specified a second default template to use
for additional objects such as keyboards, menus, template macros, toolbars, and styles.
To apply a text style
1
Click Format Styles.
2
Choose a style from the Available styles list.
3
Click Insert.
4
Type the text in the document.
48
Part Two: WordPerfect
67
5
Press Enter.
6
Press Backspace.
To edit a text style
1
Click Format Styles.
2
Choose a style from the Available styles list box.
3
Click Edit.
4
In the Styles editor dialog box, use the Styles editor toolbar and menus to apply any style attributes.
If you want to define what function the Enter key performs when the style is applied, choose a style from the Enter
key inserts style list.
If you want to display the codes that take effect when a style ends, enable the Show ‘off codes’ check box.
Using graphics styles
You can use the preset styles included with WordPerfect or you can create your own styles.
You can create graphics styles for boxes, borders, fills, and lines. You can save a graphics style. Saving graphics styles
lets you use them again in other documents or templates.
You can delete a graphics style that you have created, but you cannot delete one of the preset graphics styles provided
with WordPerfect.
You can edit a graphics style to apply different formatting. When you edit a graphics style, all graphics boxes, borders,
fills, and lines formatted with that style are updated.
To create a graphics style
1
Click Format Graphics styles.
2
Enable one of the following options:
• Box
• Border
• Fill
• Line
3
Click Create.
4
Type a name for the style in the Style name box.
5
Change the attributes of the graphics style.
To save a graphics style
1
Click Format Graphics styles, and enable one of the following options:
• Box
• Border
• Fill
• Line
34
68
Styles
2
Click Options Save as, and type a name for the style in the Filename box.
The file is saved to the default template folder, as specified in Tools Settings. If none is specified, WordPerfect
saves the styles where your user files are stored.
To delete a graphics style
1
Click Format Graphics styles.
2
Enable one of the following options:
• Box
• Border
• Fill
• Line
3
Choose a style from the Styles list.
4
Click Options Delete.
To edit a graphics style
1
Click Format Graphics styles.
2
Enable one of the following options:
• Box
• Border
• Fill
• Line
3
Choose a style from the Styles list.
4
Click Edit.
5
Change the attributes of the graphics style.
47
Part Two: WordPerfect
69
Page margins
WordPerfect lets you set margins using various methods.
You can set margins by using guidelines. Guidelines are vertical or horizontal dotted lines that are displayed on pages.
You can also set margins by using exact measurements or the ruler.
All margin settings affect the current page and subsequent pages until you change them.
To set the margins by using the margin guidelines
1
Click View Guidelines.
2
Enable the Margins check box.
3
Point to one of the following guidelines:
• left vertical dotted guideline
• right vertical dotted guideline
• upper horizontal dotted guideline
• lower horizontal dotted guideline
The pointer changes to a double-sided arrow.
4
Drag the guideline to a new position.
To set the margins by using exact measurements
1
Click in the document where you want the margin changes to start.
2
Click Format Margins.
3
Click the Page setup tab.
4
In the Document margins area, type values in any of the following boxes:
• Left — lets you specify where the left margin starts
• Right — lets you specify where the right margin starts
• Top — lets you specify where the top margin starts
• Bottom — lets you specify where the bottom margin starts
You can also set margins by clicking File Page setup.
To set the margins by using the ruler
1
Point to the Margin marker to the left or right of the ruler.
The pointer changes to a double-sided arrow.
2
Drag the Margin marker to a new location on the ruler.
You can also
Set all margins to the last margin value edited
In the Document margins area, click Equal.
Set all margins to the minimum size allowed by the current
printer
In the Document margins area, click Minimum.
Documents you may be interested
Documents you may be interested