Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2017 by Barry MacDonnell. All Rights Reserved.

Page updated Jan 23, 2017

WordPerfect Tips
Main tips page | Browse tips

QuickWords

See also -

Miscellaneous tips for using QuickWords (below in next column)

Managing and troubleshooting your QuickWords (below in next column; includes methods to find and repair the QuickWords file, how to migrate QuickWords to another version of WordPerfect, etc.)

QuickCorrect, QuickMacros and other boilerplate methods

Overview

  In WordPerfect 8 and later versions, you can use a QuickWord (on the Tools, QuickWords menu) to instantly insert blocks of material.

  QuickWords are not just for words. There are many things for which you can use a QuickWord. For example, you can insert -

•  large blocks of boilerplate material

•  letterheads, logos, text boxes, or other graphic images

•  headers, footers, and watermarks

•  mailing addresses and custom envelope return addresses

•  signature blocks

•  fax cover sheets 

•  custom styles and preferred outlines

•  specially formatted

- paragraphs (e.g., tab sets; custom indents)

- tables (special sizes, empty or filled)

- columns (created with Format, Columns) 

- character names in a screenplay or novel

- document stamps

... the list is almost endless. 

  QuickWords can speed up your work and help eliminate typing and formatting errors. If you need to use the same material again in the current document or in future documents, consider using QuickWords.

  Basically, a QuickWord is an abbreviated form (or abbreviation) of something you wish to insert in the document. It is composed of a few unique, easy-to-remember characters that you type into the document.

Note: Some utility programs call this abbreviation a "hotstring" i.e., a string of characters that act like a single shortcut key or "hotkey" but without the need to press (e.g.) the Ctrl key or the Alt key.

  Typically the characters are preceded by a special "trigger key" or "signal key" such as a backslash (e.g., \name, \logo, etc.) or by any other rarely used character (e.g., ~joe or `123). 

Note: Though it is not a requirement for a QuickWord to function, using a trigger key is strongly recommended. Using a leading character, for example, helps prevent the abbreviated form from being accidentally expanded if it is the same as some other normal word you might use or something that QuickCorrect might recognize, such as those used in the examples in the previous paragraph (name, logo, Joe, etc.).

In a sense, it signals WordPerfect (and you) that what follows should be treated as a QuickWord. On the other hand, QuickCorrect does not require them either 
and they probably shouldn't be used in QuickCorrect since that feature is used to make automatic corrections and/or to "speed type." Using a backslash (e.g.) with QuickWords is a good way to differentiate between these two features.

Tip: QuickWrods cannot natively handle possessives (e.g., Smith's) the way QuickCorrect can (using the trick here], but if you need to use them you can simply create a second version of the QuickWord with a similar abbreviation (e.g., ~joe and ~joes).

  QuickWords expand automatically into whatever you have previously assigned to the QuickWord. When you type the QuickWord into a document and follow it with either a space, a tab, or a hard return (i.e., <Enter> key) — sometimes called the activation key the assigned material is immediately and quickly inserted as a block (i.e., not character-by-character) at the cursor location, similar to WordPerfect's Insert, File feature.

Note: This assumes you have enabled the QuickWord feature. See "How to create, use, and revise QuickWords" below.

Tip: You can optionally expand all QuickWord abbreviations in the document at once at a later time with a Corel shipping macro; see here. Or you can expand just a single QuickWord using a macro assigned to a menu, toolbar button, or shortcut key (explained here); to record such a macro see here, or see the one-line macro example in the Notes below.

  QuickWords are stored in their own special QuickWords template, so they are available in any document. Each WordPerfect version has its own QuickWords template. See "Managing and Troubleshooting your QuickWords" below for more on where the Quickwords template is stored so you can back it up, migrate its entries, fix it, etc.

  Finally: QuickWords are similar to — but more powerful than — the QuickCorrect feature. Each has advantages and disadvantages, and you might want to compare them to each other and to other methods of inserting boilerplate material.

How to create, use, and revise QuickWords

To create a QuickWord . . .

This is easier to do than it might initially appear from the steps below.

(1) Set up the material you wish to quickly insert later in the current (or future) document.

This typically includes a contiguous block of text — even several long paragraphs or several pages — along with any desired WordPerfect formatting or graphics, but it can be just a formatting element such as the codes for a special watermark, footer, table, etc. This is the material the QuickWord will insert in a document any time you need it.

Tip: It is sometimes useful to do this in a new, blank document (unless you also want to also "capture" some material in the current document). For example, you could type several "boilerplate" paragraphs, complete with formatting. Or you could set up your letter's entire closing (even with a scanned graphic signature "anchored" to the closing's paragraph; see the tip below). Use any styles or other formatting you wish, even tables or columns.

Caveat:
If you do this while editing a custom template (.wpt), and proceed with the next steps to create the QuickWord, the QuickWord will be stored in that template, not in the special QuickWords template. Thus it will not be available in other documents created from different templates, such as the standard default template. While storing QuickWords in a custom template might be useful in certain circumstances, such as in an automated template, most users probably should set up the QuickWord material in an ordinary document or in a blank document, not inside a custom template, and proceed with the next steps. (If you want to do it anyway, see the tip below.)


(2) Select the text, graphics, and any related codes using the Reveal Codes window to ensure you capture everything for the new QuickWord.

Tip: Selection may be easier using Reveal Codes and placing the insertion cursor just to the left of the material -- particularly any relevant codes — and then hold down the <Shift> key while you press the <Right Arrow> key to "paint" the material. Some users find this easier and more accurate than using a mouse to select text with adjacent codes. (You can also select the material from right to left.)

Caveat: You can also select a sentence (or paragraph) by clicking (or double clicking) in the immediately adjacent left margin, but this can sometimes add a hard return ([HRt]) to the end of the expanded QuickWord -- even when the original material does not end with a hard return. Hence, it might be better to use the aforementioned selection method (i.e., to "paint" the material with keys or mouse) when creating a QuickWord.
Note: If you are selecting format codes, you may need to include any "Off" codes as well as "On" codes. Some formatting in WordPerfect is achieved by bracketing the material by an On/Off code-pair. Bold, Italics, Highlighting, and similar formatting are examples of this. Be sure to select both codes of the code-pair.

(3) Click Tools, QuickWords, and give the new QuickWord a name in the "Abbreviated form" field (just above the list of any existing QuickWords).

Tip: You should precede the QuickWord's name (technically, an abbreviated form or abbreviation) with a backslash (e.g., \draft or \copy) or other unique and little-used character (such as a tilde, ~) to help prevent possible confusion with the same characters used elsewhere in the document, when you type the QuickWord. Preceding characters are not required but they are highly recommended.

(4) Click on the Add Entry button to add the QuickWord to the list.

(5) Click the Options button and select "Expand as text with Formatting."

From WordPerfect's Help: "When you expand text as plain text, you can insert a QuickWord in a document other than the one where it was created, and the QuickWord text will look the same as the other text in that document. When you expand text as formatted text [as recommended here], you can insert a QuickWord in a document and include the formatting and graphics that appeared with the QuickWord when you created it."

Important: If you are using WordPerct 10 or later version, and choose the "Expand as plain text" option, be sure to aslo enable the new feature available in those versions in Tools, Settings, Environment: "Use WordPerfect 9 text selection." If this setting is disabled (i.e., not ticked) during QuickWord creation you might find that some of your newly created QWs expand with an extra hard return in them. If this happens, see Footnote 2 here about this bug and how to work around it.

(6) If you want the QuickWord to expand as you type it (the typical case), make sure the "Expand QuickWords when you type them" box is checked (ticked) at the bottom of the QuickWord dialog box.
To use a QuickWord . . .
Type the QuickWord — plus a <space> character, or a <Tab>, or press the <Enter> key — on the page where you want it to begin. The abbreviation should expand in place. (If it doesn't, see the Notes and tips below.)

In some cases you might want to delete the extra <space>, <Tab>, or hard return code ([HRt]) that was used to expand the QuickWord. See the Notes and tips section below for a simple macro that can simultaneously insert the QuickWord abbreviation and expand it, without also inserting these activation keys.
To revise a QuickWord . . .
(1) Either -
make revisions directly in the document that has an expanded QuickWord, 
or -

open a new blank document and type the QuickWord; when it expands, make your revisions to the expanded material. (Reveal Codes can help in either scenario.)

Tip: This second option might be easier to work with if you have a complex QuickWord, since it isolates the material from any other surrounding text and format codes.

(2) Delete the old QuickWord in Tools, QuickWords.

Tip: You can skip this step and create a new abbreviation (next step) if you want to keep the old one.

(3) Select the entire block of revised material and create a new QuickWord. (Again, Reveal Codes can help here.)
Why don't my QuickWords work?
If you have not checked (i.e., ticked) the "Expand QuickWords when you type them" box at the bottom of the QuickWord dialog, the QuickWords won't expand.

However, you can expand all QuickWords at once by playing the EXPNDALL.WCM shipping macro, usually located in your default or supplemental macro folder (see Tools, Settings, Files, Merge/Macro for these locations). [Note: You can assign a macro to a menu, toolbar, or shortcut key for quick and easy access: see here.]

QuickWords will not normally expand if you have a macro toolbar or a merge toolbar showing on any open document (even if empty).

Solutions:

[1] You can run the shipping macro macro Abbrev.wcm to force a QuickWord expansion immediately.

[2] You can also use the EXPNDALL.WCM macro to expand all QuickWords later (e.g., after the merge has finished).

[3] Update: You can use a simple one-line macro to expand the abbreviation even when a macro or merge toolbar is open. See the next item below.

Note:

You can assign a macro to a menu, toolbar, or shortcut key for quick and easy access: see here.

QuickWords (specifically, their abbreviated forms) are "words" and therefore need to be separated from preceding characters with a space, tab, indent, etc.

Otherwise they will be seen by the program to be part of the preceding character(s).

Thus they will not not normally expand even when you follow the QuickWord with a space, tab, or hard return.

However
, you can work around this if you need to produce a QuickWord expansion in the middle of a string of characters, such as in a mathematical formula.

To do this you will need to -

[1] create the QuickWord as described above (using the "Expand as text with Formatting" option), then -

[2] create a one-line macro with this command in it (see here for how to copy the command into WordPerfect and create the macro) -

AbbreviationExpand (AbbreviationName: "\2"; Template: QuickWords!)

Notes and tips

•  This particular example assumes the QuickWord abbreviation "\2" was previously created (but without quotes) to produce (e.g.) a superscripted number 2.

•  You can, of course, use any QuickWord abbreviation in the macro command, as long as you use the syntax shown above and specify the QuickWord abbreviation's name in quotes.

•  To copy this macro code to your WordPerfect program, see here. You can then assign this macro to a keystroke combination, toolbar button, or menu, as described here. This will make it very easy to use in a document.

•  For additional macro code to automatically delete any "bracketing" [Font] and [Font Size] codes that might be imported with the QuickWord (and thereby conflict with the current font and size in effect at that location, see Footnote 1 below.

•  See also the tip below which uses a more robust macro (ReplWithQW) to expand multiple instances of a QuickWord in a document, after the final draft is completed.

All your QuickWords are stored in a special template (see "Managing and troubleshooting your QuickWords" below). They are not stored in the document (.wpd) you are working on at the moment. Rather, they are added to the QuickWord template when you exit the program. Like any computer file, this file can be damaged, so it is wise to back it up frequently. Also, if the QuickWord template file is deleted or it is not in the expected location (see below), a new virgin copy will be generated when you next load WordPerfect.

Page Top

Miscellaneous tips for using QuickWords

See also "Managing and troubleshooting your QuickWords" below.


Red checkmarkUse a leading (or following) "special character" in QuickWord abbreviations.

If you click on Tools>QuickWords, you will see that the samples shipped with some versions of WordPerfect are preceded by a backslash [\]. This is not essential, but if there is any chance that your QuickWord abbreviation may also be acceptable as a word or something that QuickCorrect might recognize, you are advised to use a leading '\' (or similar character, such as the tilde [~]) to avoid expansion of the abbreviation. For example, don't use 'BP' as the QuickWord for 'The patient's BP was normal' [since BP could also mean the oil and gas company!]. But you could use '~BP' or even 'PBP,' if it is an abbreviation that is unlikely to be automatically corrected by QuickCorrect. [Thanks to Charles Rossiter for this tip.]

You can, of course, use a following trigger character (e.g., 'BP~') but the pattern of a leading character plus an abbreviation might be easier to remember.

Red checkmarkRecord a macro to insert and expand a QuickWord:

  • Click on Tools, Macro, Record;
  • give the macro a name;
  • position the cursor in the document where you want the QuickWord to expand (assuming you have set QuickWords to expand as explained above, under "How to create and use QuickWords");
  • select the QuickWord with Tools, QuickWords;
  • click Insert in Text (you need to insert it at least once during recording);
  • stop the macro recording with the Stop button on the macro toolbar.
  • The macro can then be assigned to a menu, toolbar button, or shortcut key as explained here, and used again at any document location.
  • Related tip: Such simple macros can be written and saved, then assigned to a menu, toolbar, etc. See the example above.

Red checkmarkCreate matching envelopes for your letterhead.

If you have WordPerfect8 and later, you can use a QW to insert your custom return address (including different font sizes and a graphic logo) in the Envelope dialog. See here.

Red checkmarkUse a QuickWord to stamp a document with DRAFT, COPY, etc.

Red checkmarkAutomatically add your scanned signature to a .WPD document.

  • Scan a printed document that contains your signature. Use a high resolution for the scan.
  • Clip ("crop") just the signature from the scanned image (probably a .BMP or .JPG image) with any graphics program (WordPerfect Office's Presentations should do the job, or use something like PaintShopPro), then insert it between previously typed closing lines of text ("Sincerely...").
  • Position the graphic signature, and then anchor it to "Character" or "Paragraph" (not "Page") by right-clicking the image and choosing Position. (It will then move with the closing if you add or delete text later.) Right-click again and choose Wrap, Behind text. You can make final adjustments by right-clicking the image and choosing Select Box, then use the mouse to drag the image; or you can right-click the box and use the Position choice to enter numeric values. When finished positioning the box, click outside it to deselect it.
  • In Reveal Codes, select both the closing lines of text and the signature's graphic code, and create a QuickWord from them, as described above.
  • From that point on, typing the QuickWord will insert both the closing and the signature -- all in one step.

Red checkmarkSet repeating tabs with a QuickWord.

  • For example, to quickly set all tabs 0.25 inches apart, click Format, Line, Tab Set.
  • In the Tab Set dialog, set the Tab type (usually, Left), the Tab position (0.25" from the left margin), and check the Repeat box and set it to every 0.25". Click on Set to return to the document.
    • (Alternatively, you can also record these first two steps in a macro and assign the macro to a toolbar button, menu, or keystroke: see here.)
  • Finally, follow the directions above to select the new [Tab Set] code in the Reveal Codes window and assign it to a QuickWord, such as "\25".
  • Whenever you need the new settings, simply type "\25" (without quotes) followed by a space and the new tabs will be set. Backspace to delete the extra space.
  • See also TabSet25, a macro that sets left tabs every 0.25 inches, out to 9.75 inches (the WordPerfect limit).

Red checkmarkUse text and counters with a QuickWord. [For more on counters see here.]

You can automatically and sequentially number items at the end of a phrase — and you can even insert a second type of sequentially numbered list (dark red items below) into the first list (dark blue items below). This technique works like an outline, where deleted or inserted items cause automatic renumbering of subsequent items. WordPerfect will keep the lists properly — and separately — numbered.

For example -

Interrogatory No. 1.
Did you ever ....

Interrogatory No. 2.
List the people within your division who ...

Interrogatory No. 3.
State where the manager told ....

Production Request No. 1.
Produce all records in the ...

Interrogatory No. 4.
Do you claim that Mr. X never ...

Production Request No. 2.
If your answer is yes ...

And so forth.

Here's how:

1. Open a new, blank document. Create a single-level counter for each list item (e.g., one for Interrogatory items and one for Production items) with Insert, Other, Counter, Create. Enter a name for the counter in the Create Counter Definition dialog that pops up, and click OK. When finished creating all counters, click Close to exit from the Counter Numbering dialog.

2. Then, in the main body of the document, type the leading text phrase and a space ("Interrogatory... "), then click Insert, Other, Counter. Choose the new, appropriate counter from the list and then click Display in Document. This takes you back to the main document. Make sure the insertion point is to the right of the new code in Reveal Codes. Then click Insert, Other, Counter, Increase.

You should now have two codes in the document,

   [Count Disp][Count Inc] — in that order.

The idea is to make WordPerfect display the number, then (internally) increment it for any counter number that may follow later in the document.

Add a space, colon, hard left indent, etc., as desired to separate and/or format the text that will follow the two counter codes.

3. Here's the part that automates everything:

Make a QuickWord out of the text phrase and the two codes (and any following spaces or codes) by using Reveal Codes to place the cursor just in front of (i.e., to the left of) the text phrase, and then use <Shift>+<RightArrow> keys to move the cursor to just after (to the right of) the end of the phrase and codes.

Now, with the phrase and counter codes and any formatting codes selected, click on Tools, QuickWords. Give the QW an easy-to-remember abbreviation, such as "\Int" (without quotes) for "Interrogatory."

4. Repeat steps 2 and 3 for the other list item. Use the other counter, of course, and give the QuickWord a different name (e.g., "\Prod" [without quotes]).

Note that when you create QuickWords, you should make sure that the "Expand QuickWords when you type them" box is enabled, and the Option button's "Expand as text with formatting" is selected.

Now, when you need the items, just type the QuickWord for them, plus a space, tab, or hard return. The QW will expand and the counter will number the item. You can add or delete a counter item, or insert a counter of the second type between a sequence of the first type, and WordPerfect will keep them properly — and separately — numbered.

Red checkmarkGlobally replace text or symbols with QuickWords, then expand them as needed.

Assuming you have disabled (un-ticked) the box, "Expand QuickWords when you type them" in Tools, QuickWords, you can use the shipping macro, EXPNDALL.WCM, to expand them all at once. (You should find this macro in one of the folders listed in Tools, Settings, Files, Merge/Macro. If it is located there, simply type "EXPNDALL" in the File name field in the dialog box that appears when you click on Tools, Macro, Play.)

Related tips:

Using Edit, Find and Replace you can first replace an existing character, word, or symbol anywhere in a document with a QuickWord abbreviation (e.g., \MyLogo), then expand all the QuickWord abbreviations throughout the document with EXPNDALL.WCM.

Note: The EXPNDALL macro only works if the QuickWords are individual items and not part of a word; that is, the QuickWord abbreviation must be separated from other text characters. Still, this is a quick way to replace, for example, a text character or number (or a symbol) with a highly formatted item -- such as a math symbol in a different font and size, or a specially formatted corporate or product name — that you have previously created as a QuickWord. [Note also that EXPNDALL will not work if you are editing a macro of if the merge toolbar is open.]

Alternative: For a macro that can find an existing character, word, or symbol wherever it appears in a document and replace it with an expanded QuickWord — all in one step — see ReplWithQW. [Since QuickWords are stored in their own special template, they will be available in all documents for the same version of WordPerfect on the same system. See the next section for information on migrating your QuickWords to another version of WordPerfect.]

Red checkmarkUse a QuickWord where a macro won't work.

Some things cannot be recorded in a macro, such as creating custom graphics or text box sizes. They must be hand-coded by a macro writer.

But there is an easy way to insert complicated structures (such as custom text boxes):

Open Reveal Codes and select the structure (e.g., the [Box] code) and create a QuickWord from the selected item. Typing the QuickWord abbreviation later will insert the item at the cursor location. You can even select adjacent format codes and/or text along with the structure itself. A single QuickWord can contain all of these items.

Red checkmarkQuickWords can be stored in custom templates (but...)

Typically, users want QuickWords available in all documents, so when they are created as explained above, they are stored in the user's local QuickWords template.

However, if you edit a custom template and create a QuickWord while editing that template, the QuickWord will be stored in that template — not in the standard location (i.e., the user's QuickWords template).

But...

Although the QuickWord will be available when you load a document based on that custom template, it will not expand in the usual way by typing its abbreviation (at least, in recent versions of WordPerfect). You will need to insert it and expand it with either the Tools, QuickWords ... "Insert in text" button, or with a macro (or a template macro) such as this one-line macro (which assumes the QuickWord is named "\2" and it is stored in the custom template which spawns the current document):

AbbreviationExpand (AbbreviationName: "\2"; Template: CurrentDoc!)

[Note: You can assign a macro to a menu, toolbar, or shortcut key for quick and easy access: see here.]

Page Top

Managing and troubleshooting your QuickWords

Problems with quickWords?

QuickWords template location

How to migrate your QuickWords to a new version of WordPerfect

Use a macro to export / import QuickWords

How to save your QuickWords to a text file



Problems with QuickWords?

First, see "Why don't my QuickWords work?" above.

Then, if your QuickWords template file might have become damaged or corrupted, here are some things you can try.

Locate the QuickWords file.

Please note that your QuickWords are typically stored in their own special template file (see next item below for the file's standard name and location), which can be renamed/backed up the same way as the standard default template. (As noted below they will be found in the same folder.)

Keep these things in mind:

•  When WordPerfect cannot "see" this special template -- e.g., because it was renamed, or deleted, or is not in the expected location -- it will then automatically create a new, virgin (i.e., empty) copy the next time WordPerfect is loaded.

[Renaming this file in Windows Explorer or similar file manager (see below for name and location), then reloading WordPerfect, is a quick troubleshooting method since it gives you the opportunity to test a few newly created QuickWords using a factory fresh QuickWords template file (or if not used that way, renaming will at least temporarily remove the file from possible interaction with your typing when troubleshooting various text entry problems). Later, if you wish, you can always delete the new "test" version and rename the old file back to its original name (see below).]

•  If you have set up a new location for your standard WordPerfect default template (the one shown in Tools, Settings, Files, Templates) then the currently active QuickWords template will also be stored in that location, not in the default installation location. In other words, you might have more than one QuickWords template on your system, so you should identify (next section) the active one before proceeding further.

•  If you cannot find the template file (it has a .wpt filename extension) or the Windows folder seems to be empty, this might be because of a setting in Windows itself, which often hides certain program files. See here.

Is it truly damaged? If so you can try to repair the current QuickWords template file.

First try the renaming trick above. Sometimes this can help you quickly determine if it is damaged by having the program create a factory fresh copy of the file and use it instead of you old file. If it works and you only have a small number of QuickWord entries you might simply re-create them in the new file. This might be enough to "fix" the problem.

On the other hand if you wish to use the old file -- and even if renaming the old file doesn't turn up an obvious problem -- you can try repairing that template in case there is some corruption, using the methods you will find on the page "Repairing WordPerfect documents and templates - How to find and fix common problems."

Look particularly there for how to use Corel's file repair utility, WPLOOK.

An alternative (in case repairing the QuickWords template doesn't work):

Try to export/import the QuickWord entries. You might be able to export your QuickWords using the method below, then you can simply delete the QuickWords template file. (Make a back up before deleting the file. WordPerfect will then create a new, virgin one when you next load WordPerfect.) Then import the old QuickWords into the new file.

QuickWords template name and location

QuickWords are stored in their own special template file named QWnnxx.wptHere, "nn" is the WordPerfect version number (e.g., 8, 9 ... 16, 17, 18, etc.) and "xx" is the language ("EN" for all English language versions).

Important point: The QuickWords template is located in the same folder as the WordPerfect default template as shown in the Tools, Settings, Files, Template dialog. Always look in that dialog to see where the currently active default template is located on your system (there can be more than one depending on the installation). This is where you will also find your current QuickWords template.

Tips

☼  Back up your QuickWords template from time to time.

☼  Note that if you specify a different folder for the WordPerfect default template (which is the one used to create new, blank documents) in Tools, Settings, Files, Template, then WordPerfect will use that new folder for the QuickWords template, too. If the QuickWords template does not exist in that folder, WordPerfect will create a new, virgin (empty) copy of the QW template the next time WordPerfect is opened. (It will also do this for a missing WordPerfect default template.) You can replace the new virgin, copy with the older version, but it must be named exactly the same.

☼  You can copy this file to another computer that is using the same version and language edition of WordPerfect, for use on that computer. Both the version number in the QuickWord template's file name (e.g., 15) and the language code (e.g., US, UK, etc.) must match the new WordPerfect program.

☼  You can migrate this file to a different version of WordPerfect. See the next tip, which shows how to preserve the older version's entries by migrating this file.

☼  If you cannot find the file or the folder seems to be empty, this might be because of a setting in Windows itself. See here.

☼  [Arcane tip:] QuickWords can also (but not typically) be stored in a custom template as explained here. But this is something users must deliberately set up.

How to migrate your QuickWords to a new version of WordPerfect

Notes

¤  Please review the previous two sections on managing QuickWords.

¤  If you want to back up and migrate other program cusomizations, see the main Tips page section on Updating, upgrading, or reinstalling WordPerfect here. The following copy-and-rename migration method is recommended for QuickWords only.

Here's how to migrate your existing QuickWords to a new version of WordPerfect.

(If it's the same version and language edition of WordPerfect, you can simply replace the new QuickWords template with the old one, since the file's name will be exactly the same. In this case you can skip step 5 below, which renames the old QuickWords template.)

Step 1. The QuickWords template is normally found in the same folder as the standard WordPerfect default template, so in the new version of WordPerfect click on Tools, Settings, Files, Templates tab and make a note of this location. This will also be the new "target" location for the older QuickWords template.

Step 2. Close WordPerfect. Use Windows Explorer (or My Computer) to find -- and navigate to -- the location of the new QuickWords template file (see previous tip).

•  If you cannot find the file or the folder seems to be empty, this might be because of a setting in Windows itself. See here.

•  Note that if you have set a different location for your standard default template (as shown in Tools, Settings, Files, Templates) then the QuickWords template will be stored in that location, not the default location mentioned on the Corel page.

•  [Arcane tip: QuickWords can also (but not typically) be stored in a custom template as explained here. But this is something users must deliberately set up.]

Step 3. Back up the new QuickWords template by renaming it: Right click on this new QuickWords file and select Rename. (For example, if your new version is WordPerfect 15 the file probably will be QW15EN.WPT for English versions. (See the previous section on template names for various editions.) To the end of the name add .NEW and hit Enter to rename the file. This will preserve the new version, which you can always restore later by simply removing the .NEW filename suffix.)

Step 4. Next, find the old QuickWords template (e.g., QW12EN.WPT for WP12) and copy this file to the same folder that contains the new version of QuickWords. (If the old file is located on a different computer or in a non-standard folder, use the same techniques in Step 1 and Step 2 on that computer to locate and navigate to that old version of QuickWords, so that you can copy it.)

Step 5. Now you need to rename the old (copied) file so that the new version of WordPerfect can recognize it: Right click on the old QuickWords file (e.g., QW12EN.WPT) and select Rename. Type the new version file name of the QuickWords file and hit Enter to rename the file. (For example, if your new version is the English edition of WordPerfect X4 you would type in QW14EN.WPT. If it is WordPerfect X5, you would type QW15EN.WPT.)

Step 6. Launch the new version of WordPerfect. Click on the Tools menu and select QuickWords to confirm that your QuickWords were migrated to the new version. Verify you have checked the "Expand QuickWords when you type them" box at the bottom of the QuickWord dialog; otherwise the QuickWords won't expand automatically.

Use a macro to export / import QuickWords

See Charles Rossiter's QWManage.wcm macro, downloadable from the Other Authors page here.) It is designed to -

"A. Create a 2 column table listing all QuickWords abbreviations and their expansions defined in the current QuickWords templates.

B. Restore QuickWords and their expansions from the output of option A created in a table with 2 columns of abbreviations and expansions."

For those on a network who wish to "roll out" a master list of QuickWords to each user:

Each user has their own QuickWords template on their own system. So --

[Quoted from a post by Charles Rossiter, replying to a user who needed to replicate a master list of 50 QuickWords on several networked computers:]

"When you run the [QWManage] macro, it creates a 2 by nnn table of QuickWord abbreviations and their expansions. You could create such a table for your 50 desired QuickWords. If you now copy your master QuickWords table to the users' default template folders, then you can run QWManage.wcm and all your 50 desired QuickWords will be added to those already available to each user personally. If it happens that a user has a QuickWord with the same abbreviation as one of your set of 50, then you will be warned to choose to save the original or the new QuickWord."

How to save your QuickWords to a text file

First, get the Corel free file repair utility, WPLOOK. Note that in recent versions of WordPerfect it is included in the installation's Programs folder on your computer. (It can also be found on the Corel FTP site as noted here.)

Note that WPLOOK.EXE is a standalone program (it doesn't need to be installed, just double click it) that works on WordPerfect 6.x files and newer.

For more on this handy utility and how to use it, see here.

(From Corel's old KnowledgeBase:)
...

Save the file to a location you can easily find, for example the desktop.

Once the file is downloaded, click Start, Search.

Click "All files and folders".

In "Named" type in on of the following files depending on your version of WordPerfect: QW9EN.WPT (WordPerfect 9), QW10EN.WPT (WordPerfect 10) or QW11EN.WPT (WordPerfect 11).

In "Look In" select "Local Hard Drive(s)".

Once the file is found, right click on it, select copy.

Close the Search window, go back to the desktop, right click an empty spot, select paste.

Open the WPLOOK program that was downloaded in step 1.

Click File, Open.

Select the QuickWords file that was copied to the Desktop in step 8, click open.

Click Edit, Extract text from document.

Click Extract Text.

Close WPLOOK.

A new file will be created on the Desktop called: QW9EN.txt (for WordPerfect 9), QW10EN.txt (for WordPerfect 10) or QW11EN.txt (for WordPerfect 11). This file has all the ... information in text file format.

Page Top




Footnote 1

As explained in the Notes above, a simple macro can automatically expand an existing QuickWord. Using a similar command to the one in the Notes example and adding some code to it, we get a macro that should do the job of removing any "bracketing" [Font] and [Font Size] codes that might be imported by the expanded QuickWord, thereby conflicting with the current font and size in effect at that location. (Other format codes inside the expanded QuickWords should not be affected.)

UPDATE (Jul 2, 2009): A user on WordPerfect Universe ("Jomomma") reported that this problem can be eliminated by using styles inside QuickWords:

    "...Basically, you can park the text in a style that doesn't include font or font size codes, then store [i.e., create] the style as a QuickWord. Other formatting can be included in the style, e.g., hyperlinks, text attributes, any formatting that the Style Editor allows.
   Done that way, the text stored in the style takes whatever font and font size that is applicable at the insertion point [where the QuickWord expands]. And because the style is stored in the QuickWords template file, you can delete it afterward from the available styles list in the Styles dialog so you have fewer style names to traverse to find the one you want.
   Tested and works in X4 and X3...."

[But for those who are curious about using a macro to solve this problem, see the rest of this Footnote.]

IMPORTANT: As noted above, this macro assumes a QuickWord abbreviation exists, named (here) "\abc." You can substitute any existing abbreviation for your own purposes (be sure to retain the double quote marks).

Note: There is extra code ("// This segment...") to deal with the need to have Reveal Codes visible during the macro's operation. It will reset the state of Reveal Codes to the previous state when the macro exits.

To copy this macro code to your WordPerfect program, see here.

// Macro begins

// ** BE SURE TO REPLACE \abc IN THE NEXT COMMAND
// WITH THE NAME OF YOUR OWN QUICKWORD (but
// keep the double quote marks):

AbbreviationExpand (AbbreviationName: "\abc"; Template: QuickWords!)

// Remove any "bracketing" [Font] and [Font Size] codes that might
// be imported by the expanded QuickWord:
// Toggle Reveal Codes on if not already on:
Call(RC_Check@)
// Set a temporary bookmark at the cursor location:
QuickmarkSet
// While there's a code or space on the left:
While(?LeftCode>0 or ?LeftChar=" ")
    // While the code is a [Font] or [FontSize] code:
    While(?LeftCode=6868 or ?LeftCode=7124)
        DeleteCharPrevious // (delete the code)
    Endwhile
    PosCharPrevious
Endwhile
QuickmarkFind
BookmarkDelete("QuickMark")

// ... Optional: You can perform other tasks here,
// such as relocating the cursor ...

// Restore user's Reveal Codes state:
Call(RC_Reset@)
Return

// This segment is usually called at the top of a macro:
Label(RC_Check@)
// Check to see whether Reveal Codes is on
// (we want it on while macro plays).
// First get the current state of Reveal Codes:
vRevCodeState:=?RevealCodesActive
// Then get the current View (draft, page, two-page):
vDispMode:=?DisplayMode
// Toggle to Page view first ("2"=Draft; "3"=Page;
// note that in some WP versions the Command
// syntax's help file shows "4" for Two Page View,
// even though it is really "5"):
If(?DisplayMode <> 3) ViewPage Endif
// Turn Reveal Codes on if it is not already on:
If(NOT ?RevealCodesActive) RevealCodes(On!) Endif
Return
// This segment is called at any point where the macro exits:
Label(RC_Reset@)
// Reset state of Reveal Codes and WP menu's View setting:
If (NOT vRevCodeState) RevealCodes(Off!) EndIf
// First, if inside a substructure, mark current location, then
// exit the substructure(s):
BookmarkCreate("TempBookmark4Subs")
If(?Substructure)
While (?Substructure)
vSubDoc:=?CurrentSubDoc
SubstructureExit
If ((vSubDoc=10) or (vSubDoc=11))
BoxEnd (Save!)
EndIf
EndWhile
Endif
// Reset user's display mode (see View menu):
// (Note: Web Page view in WP8/9: Since there is no 'ViewWebPage'
// macro command in WP8/9, get the user's WP version number and
// restore the view to Page)
vWP:=?MajorVersion
If((vDispMode=1 and vWP<=8) or (vDispMode=4 and vWP=9)) ViewPage Endif
If(vDispMode=2) ViewDraft Endif
If(vDispMode=3) ViewPage Endif
If((vDispMode=4 and vWP<=8) or (vDispMode=5 and vWP>8)) ViewTwoPage Endif
// Go back to cursor location:
BookmarkFind("TempBookmark4Subs")
BookmarkDelete("TempBookmark4Subs")
Return

// Macro ends