Toolbox for WordPerfect
Macros, tips, and
templates for Corel®
WordPerfect® for Windows®
|Page updated Aug 26, 2013|
|WORDLIST - Creates a separate list of words that appear at least once in the currently open document (or the current selection), sorted by frequency or alphabetically (or both)|
Two related functions
The WordList.wcm macro creates either -
list of each of the words in the currently open document (or in
a pre-selected block of text in the document),
with duplicates removed, along with the number of times each item
appears in the selection (i.e., its frequency
- or -
(B) an alphabetical list of each of the words in the currently open document (or in a pre-selected block of text in the document), with duplicates removed, but without showing the number of times each item appears in the selection. The list can then be manually edited (trimmed) of unwanted items to create a workable concordance file to help create an index for a document. (It can also serve to visually check for the misspelling of important words, since they will probably show up adjacent to each other.)
Creating a frequency list was the original idea behind this macro. Creating an alphabetical list was included as a convenient way to create the initial draft of a concordance file.
The macro was created in WordPerfect X5 and tested in X5/X6, but it should work in WordPerfect 10 and later versions. (A command used in this macro was not present in WordPerfect 9 and earlier. If you play it in such an early version it will pop up a warning message and then quit.)
read the included documentation (WordList.wcm
readme.pdf; 11 pages), since
how the macro deals with certain items will help you use it more
effectively and let you what to expect from it.
[Yes, it's a bit time-consuming to learn about a new macro's operation
-- but not as time-consuming as (e.g.) manually creating an
alphabetized draft of a concordance file in a large document.]
The documentation covers topics such as:
Instructions and general operation
(1) Select a block of text in the body text area of the document -- or even the entire document (Edit, Select, All). Generally you will want to select several paragraphs or pages. If you do not select anything the macro will process the entire document.
(2) Play the macro, and make your initial choice of the type of list from the first menu that appears. Click OK. A second menu will then appear, related to your first choice. Note that some options on this menu will differ depending on whether you wish to create a frequency list or a plain alphabetical list. Click OK again.
When the macro plays, one of the first things it does is copy everything into a separate document window so that processing will not impact your current document. A small "Please Wait" dialog will appear to show the macro's progress. The final word list will appear in that separate document window so it can be saved for future use. (A summary of what was processed will appear above the words.)
N.B.: Even though the macro does all processing in a separate document window, it is always a good idea to save your current work before using this macro or any other macro or program.
Speed of processing
isolate individual words, then sort them and remove duplicates,
several dozen steps must be taken by the macro. It can take anywhere
from (normally) under a minute to (rarely) several minutes or more to
process a document, depending on (1) the number of options you enable
when you play the macro; (2) the length of the document; (3) your
computer's processing speed; (4) the amount of available computer
Modifications to the macro's menus and/or the way it works