An American Editor

March 25, 2015

The Business of Editing: Making Search & Replace Efficient & Profitable

Readers of An American Editor know by now my mantra: It has to be profitable! Profit is subject to myriad meanings; for me it means financial profit, whereas for other editors it has no financial meaning — rather, it must be soul satisfying; other editors have other meanings. The key is not how profit is defined but that profit represents what we, individually, seek when we take on an editorial project.

When profit is defined in financial terms, it sets the parameters for how an editor approaches a project. With financial profit as the motivator, the editor seeks to do the very best job he can do but in the least amount of time. It was with that in mind that EditTools was created; it was with that in mind that Editor’s Toolkit Plus and PerfectIt and myriad other time-saving macros were created.

Microsoft Word’s Find Feature

One of the “headaches” of the type of editing work I generally do (medical textbooks) is the use of acronyms and abbreviations (hereafter combined into “acronyms”). For most of my clients, the general rule is that an acronym must be used not less than four times in a document (i.e., once when it is defined plus three additional instances); if it is used fewer times, then it should always be spelled out. However, if it is used enough times that it is kept, then it should be defined only at first use and not again.

Applying that rule could be relatively easy in Word 2010, for example, because the Find feature, which opens the Navigation pane, can give you a count, as shown in the image below. (For a better view of an image in this essay, click on the image to enlarge it.)

Word 2010 Navigation Pane: Find

Word 2010 Navigation Pane: Find

In this example, I searched for the abbreviation for hemoglobin: Hb (#1). Word tells me that there are 11 “matches” (#2) and I can see the 11 matches in the pane (#3). If I click on one of the entries in the pane (yellow highlighted box), Word will take me to that item and highlight it (#4). This is fine for telling me how many times Hb appears in the document, but Word limits the value of this function in several ways.

One limit occurs if you want to look up something that also can be found in myriad other constructs. For example, the acronym Th is used to represent T helper-type cell and if I search for Th, I get a response like that highlighted in this image:

Too many results to preview

In other words, Find is not going to be helpful. Another problem with Word’s Find function is that it includes the whole document, you cannot tell it to search and report back only up to a particular point. Why is that a problem? In the example document I am using for this essay, there are 65 references, many of which include Hb, and none of which do I want in my count. I want in my count only the primary text. According to Word, the example document is 33 pages, but the main text fills only 21 of those pages. The result is that the count word gave me (11 instances of Hb; see #2 in the image “Word 2010 Navigation pane: Find” above) is not accurate for determining whether Hb should be retained as an acronym.

Word’s Find also has another failing, which for me is a big failing: In a long document with lots of acronyms, Word’s Find gives me no way to easily determine whether an acronym has been previously defined. So if I encounter an acronym on page 5, where it is first defined, and then again on page 12, where it is defined again, absent good memory or conducting another Find search, I am unlikely to recall/know that the acronym has already been defined. There are things I could do — for example, I could go to each instance of Hb via the Navigation pane and highlight each and scan the nearby text to delete redefinitions — but that takes time, especially if there are a lot of instances, and thus eats into profit. That would be especially true with those chapters I have to edit where the text portion alone runs more than 100 pages (and sometimes 200 or more pages).

An Alternative Method:
Enhanced Search, Count, & Replace

For me the best way to deal with the question of acronyms is with EditTools’ ESCR (Enhanced Search Count, & Replace) macro. The macro is found on EditTools’ Highlight menu (red arrow in image below).

ESCR on the Highlight Menu in EditTools

ESCR on the Highlight Menu in EditTools

Because what I want to do is find out how many times hemoglobin (Hb) appears in the main text, I temporarily added (Hb) to the document (as shown in the image below) so that I could do a search for the terms separately and together; usually I do not have to add the acronym or definition at the first instance because the author has done so, but sometimes the first instance of the acronym is undefined or the definition and the acronym are separated by intervening words, in which case I add the definition/acronym before using ESCR so that they form a single selectable search term. In this case, if I hadn’t done so, the search phrase would have been hemoglobin A (HbA), which was too narrow; such a search would have excluded, for example, HbSS and HbC, when what I want searched for is Hb regardless of how it is used. Before running ESCR, you need to select what you want it to look for. It can look for either a phrase or a single word. But remember that, like all macros, this is a dumb macro, so it can end up trying to look for things you do not want. But even that can be easily tackled with ESCR. Here I have selected the phrase hemoglobin (Hb) as the search phrase:

Selecting the Search Phrase

Selecting the Search Phrase

(Tip: I make it a point to select the phrase and copy it to memory. With this particular phrase there will not be a problem, but a phrase that includes terms separated by a comma are a problem, so by copying the “to find” phrase to memory, I can add it easily to the macro in correct form.)

With the phrase selected (and copied), I click ESCR. The macro produces a list of what it will search for, #1 in the below image. If you look at the list, you will see that the macro automatically separated the terms and created variations for singular and plural. Again, it is a dumb macro so it will do silly things, such as item 5, HBS. You can either let it go, or you can uncheck (#2) the item(s) you don’t want included in the search. I have found that for the most part it is as easy to leave it as to decheck it.

What the ESCR macro will search for

What the ESCR macro will search for

But sometimes the list is so long, especially if the search phrase has commas or parenthetical material, for example, BCNU (1,3-bis-(2-chloroethyl)-1-nitrosourea), that I add the terms I want and deselect all and select only those things I am interested in. The image below illustrates the problem that a search phrase like BCNU (1,3-bis-(2-chloroethyl)-1-nitrosourea) presents (in this instance, the macro came up with 36 variations to search for, of which two, possibly, three, are usable). [NOTE: This particular problem will no longer be a problem with the next release of EditTools.] In these instances, I generally ignore what the macro has come up with for the search and go to the Add terms dialog (see the image “Adding additional search terms” below) and paste the selected phrase into the first field and then break it up as I want, using the additional fields as described in the material following this image:

The problems commas, dashes, parens create

If the list is long and there are only a few items I want searched for, I click Deselect All (#3) and then check only the few terms I want used for the search. If the macro doesn’t list a variation that I want included, I click Add terms (#4) to bring up a dialog box in which I can add those missing variations:

Adding additional search terms

Adding additional search terms

I have decided that I want the whole search phrase searched for (I wouldn’t normally do this; I am doing just for demonstration here), so I pasted the selected phrase into the first empty field (#1 in image below). If I wanted to add a symbol, for example a Greek beta, I could click the * (#2) to bring up Word’s Symbol dialog; for an N or M dash, I could click the N- or M- button (#2). Once all the terms I want the macro to find are added here, I click OK (#3), which will take me back to the primary Find screen where I can see that the macro has added my search term as item 11 (arrow). If I am done, I can click OK (#4) to run the macro.

Find screen after adding a phrase

Find screen after adding a phrase

When the macro runs, it goes through the entire list of items to see what it can find. [IMPORTANT: The macro searches from the character immediately following the selection you made to wherever the end bookmark (remhigh) is located. The end bookmark is usually inserted automatically based on other choices you have made in EditTools, but it can also be added manually by you. If it needs to be added by you, when you run the macro, a message will popup telling you that the remhigh bookmark is missing and needs to be added. Although you can place the bookmark anywhere in your document, it is recommended that you place it at the end of the primary text and before any references, tables, or figure legends/figures.] The macro searches down from the point of the selection to the end of the main text of the document.

The idea is that because the macro only searches forward (down) (see the text at #1 in the image below), not all or backward (up), you use it at your first encounter with the acronym or phrase. Running the macro generates a report like the following:

ESCR's report

ESCR’s report

In our example, it only found two variations: Hb and HbA (#2). Based on this report, it is safe to conclude, for example, that hemoglobin is not used in the text after this point. Also, it is clear that Hb, regardless of how it is used, appears only four additional times in the text. You now have two options. First, if you do not want Hb to be used as a substitute for hemoglobin, you can enter hemoglobin in the empty field (#3). (Similarly, if the book style is for Hgb to be used instead of Hb, you can instruct ESCR to change each instance of Hb to Hgb.) This will instruct the macro to replace Hb with hemoglobin. Second, if using Hb and/or HbA is OK, you can check the highlight box (#4) so that the macro will highlight these terms throughout the manuscript. The highlight will indicate to you that (a) you have already done a search for the term and found that it appears enough times in the manuscript to be retained, (b) that the term has been previously defined so if you should see it spelled out again, you know to replace the spelled out version, and (c) that the term is correct (even if Word insists it is misspelled). The image below shows that I have decide to change the one instance of Hb to hemoglobin (#6) and that I want HbA highlighted (#7).

Instructing the ESCR macro

Instructing the ESCR macro

Clicking OK (#5 in ESCR’s report above) causes the macro to run and make the changes. As the following image shows, ESCR made the changes as instructed — and does so with tracking on (even if you have turned tracking off). HbA is now highlighted (#1 and #2) and Hb has been changed to hemoglobin (#3).

After running the ESCR macro

After running the ESCR macro

The ESCR macro is very useful in these circumstances. The two images below are from a document I edited recently. They are the first and last screen of the results of a search for Hb in a nearly 200-page chapter. The macro found 83 variations and you can see that some changes would be required. The advantage is that I can address all of these at one time, enabling me to make them uniform in presentation, and any changes are with tracking on so I can undo any erroneous changes. Word’s Find feature cannot do this as quickly and easily as ESCR (in fact, Word’s Find gave the “too many” message in this instance).

First screen of the Find results

First screen of the Find results

Last screen of the Find results

Last screen of the Find results

Working smarter is the a key to editing profitably. Making use of the right tool at the right time is one hallmark of a professional editor. Importantly, doing those things that help improve accuracy and consistency makes clients happy clients. EditTools is an important tool in the professional editor’s armory.

Richard Adin, An American Editor

Related An American Editor essays are:

____________

Looking for a Deal?

You can buy EditTools in a package with PerfectIt and Editor’s Toolkit at a special savings of $78 off the price if bought individually. To purchase the package at the special deal price, click Editor’s Toolkit Ultimate.

Advertisement

Blog at WordPress.com.

%d bloggers like this: