|
Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate |
| Toolbox for WordPerfect |
||
|
Macros, tips, and templates for Corel®
WordPerfect® for Windows® |
Page updated Feb 13, 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) | ||
|
|
Thie WordList.wcm
macro creates either - (A)
a frequency
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 of appearance);
- 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. Strong recommendation: Please read the included documentation (a "readme" file), since knowing how the macro deals with certain items will help you use it more effectively. The documentation covers topics such as:
For convenience, the
same information is located at the top of the macro's
code. You can edit the macro with Tools, Macro, Edit to view the comments and customize the macro's operation.
Compatibility The macro was created and tested in WordPerfect X5, 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.) 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. Screen shot: Main WordList menu Screen shot: Frequency list sub-menu Screen shot: Alphabetical list sub-menu
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 (or any) macro or other program. Speed of processing To
isolate words and phrases, 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
memory; etc. Resources and tips
|
|