Even More Automatic Corrections

A couple of weeks ago, we were discussing lists of corrections that editors can make automatically using Microsoft Word's Find and Replace feature. For more information, you may want to read these two issues of Editorium Update:

http://www.topica.com/lists/editorium/read/message.html?mid=1708048908

http://www.topica.com/lists/editorium/read/message.html?mid=1708127357

I'd like to thank Martha H. Bowes, Ned Humphrey, and Joel Rosenberg for sending more items for our "master list." (If I've missed anyone, I apologize.) I'm especially grateful to Microsoft Word genius Steve Hudson, who contributed most of the corrections in the list below. Steve has sent me some other nifty things, which I'll be discussing soon.

If you have other items you'd like to add to this list, please let me know. It will be a work in progress, and I hope to have the combined lists from this and the past newsletters--with additional entries--available on our Web site soon. I've set up this week's list with the pipe symbol (|) between entries so the list can be used with our MegaReplacer program, which you can learn more about here:

http://www.editorium.com/14843.htm

And now, here's the latest installment, with the items to find on the left, and the items to replace them with on the right. Remember, don't use these blindly. Choose the items that will be most useful to you.

, and| and

a lot of|many

ain;t|are not

ain't|are not

aint|are not

app|application

apps|applications

aren;t|are not

aren't|are not

arn't|are not

at this moment in time|now

by using|with

can;t|cannot

cannot of been|cannot have been

can't|cannot

char|character

click|select

comm|communication

comms|communications

coudln't|could not

coudn't|could not

could of been|could have been

could of had|could have had

couldn;t|could not

couldnt|could not

couple of|several

coz|because

degrade|slow

dept|department

detailed|described

dev|development

devs|developers

didint|did not

didn;t|did not

didn't|did not

didnt|did not

diff|difference

diffs|differences

do not no|do not know

doc|document

docs|documents

doens't|does not

doesn;t|does not

doesn't|does not

doesnt|does not

don;t|do not

do'nt|do not

don't|do not

dont|do not

dosn't|does not

double click|double-click

dox|documents

eg|for example

epicenter|center

epicentre|centre

esp|especially

et cetera|and so on

etc|and so on

explained|described

func|functional

hadn;t|had not

hadn't|had not

hasn;t|has not

hasn't|has not

hasnt|has not

haven;t|have not

he;ll|he will

here;s|here is

I;d|I would

I;ll|I will

I'd|I would

I'd|I would

I'll|I will

I'm|I am

ie|that is

in order to|to

info|information

isn;t|is not

isn't|is not

it' snot|it is not

it snot|it is not

it;ll|it will

it'll|it will

it's|it is

let;s|let us

let;s|let us

made up|consists

may|can

mgr|manager

millenium/millennium

necc|necessary

needs to|must

op|operation

ops|operations

ot|to

para|paragraph

perm|permanent

peruse|study

perused|studied

perusing|studying

pref|preference

prefs|preferences

presently|at present

prod|production

QA|Quality Assurance

rep|representative

reps|representatives

res|resolution

right click|right-click

she;ll|she will

shoudln't|should not

shouldent|should not

shouldn;t|should not

shouldnt|should not

single click|single-click

spec|specification

specs|specifications

std|standard

succ|successful

sufficient number of|enough

teh|the

that has|with

thats|that is

they;l|they will

they;ll|they will

they;r|they are

they;re|they are

they;v|they have

they;ve|they have

they'l|they will

they'll|they will

they'r|they are

they're|they are

they'v|they have

they've|they have

theyll|they will

theyve|they have

trad|traditional

triple click|triple-click

twixt|between

uncheck|clear

untick|clear

utilise|use

utilize/use

via|by way of

visa versa|vice versa

wasnt|was not

we;d|we would

we;ll|we will

we;re|we are

we;ve|we have

we'd|we would

we'll|we will

we're|we are

we've|we have

wern;t|were not

wern't|were not

wernt|were not

what;s|what is

what's|what is

with regards to|about

won;t|will not

won't|will not

wo'nt|will not

woudln't|would not

wouldn;t|would not

wouldn't|would not

wouldnt|would not

you;d|you would

you;re|you are

you'd|you would

you're|you are

you've|you have

youare|you are

youve|you have

yr|year

_________________________________________

READERS WRITE

Ellen Ellender wrote:

"If you are using Find and Replace to replace '%' with 'percent', you must specify that the replacement is '[space]percent', or you'll end up with text reading '75percent' instead of '75 percent'."

Thanks to Ellen for this useful reminder. If you're making your own Find and Replace list, there may be other entries that need similar treatment.

Ed Nelson (ednelson1@earthlink.net) wrote with some questions that many computer users may be puzzling over:

"My newish keyboard has some added keys. One pair, between Alt and Ctl on each side, carries the MS logo. Maybe its only function is to add a new order of potential key combinations, but that might be a worthy addition if true."

I responded:

"Pressing this key is the equivalent of clicking the Start button on the Windows taskbar. I use it a lot, since I hate reaching for the mouse all the time."

Ed continued:

"In addition, next to the right Ctl key is one with what looks rather like an icon(?). Looks like the representation of a sheet of copy with an arrow-cursor pointing toward the top."

I replied:

"This key opens a 'popup' or 'context' menu. It's the equivalent of clicking the right mouse button. I like it, too."

Thanks to Ed for his questions.

More Automatic Corrections

As I explained in last week's newsletter, editors who work in Microsoft Word can make many changes automatically (using Find and Replace) rather than making them manually. For more information on how to do that, please read last week's newsletter:

http://www.topica.com/lists/editorium/read/message.html?mid=1708048908

This week, I've provided a long list of corrections that you *might* be able to make automatically. Don't just use these blindly, however. Please look through the list to see which items would be most useful to you. Then you can record a macro that finds and replaces all of the items you've chosen. You can learn more about recording a find-and-replace macro here:

http://www.topica.com/lists/editorium/read/message.html?mid=1706748016

You might also be interested in our MegaReplacer program, which makes it possible to find and replace many items in many documents at the same time. You can learn more about MegaReplacer here:

http://www.editorium.com/14843.htm

If you have a list of things you routinely change as you edit, and if you'd like to share it with other subscribers, please send it to me here: mailto:editor [at symbol] editorium.com. I'll compile all of the lists for next week's newsletter. And now, here's this week's list:

FIND REPLACE WITH

% percent

& and

a large number of many

a small number of some

absolutely [nothing]

adjacent to next to

admit of admit

adventuresome adventurous

albeit though

all of the all the

alongside of along

already has been has been

alright all right

ameliorate improve

amidst amid

amongst among

an historic a historic

an historical a historical

and also and

anticipate that expect that

append add

arising from the fact that because

assuredly [nothing]

at present now

at that point in time then

at the time when when

at this point in time now

backwards backward

be helpful help

but rather but

by itself alone

cannot help but can only

certainly [nothing]

cognizant aware

commence start

component part

consensus of opinion consensus

currently now

data is data are

decidedly [nothing]

depend upon depend on

depending upon depending on

despite the fact that although

devoid of without

different than different from

disassociate dissociate

divide up divide

due to the fact that because

due to because of

e.g., for example,

eminently [nothing]

end result result

endeavor try

ensue follow

ergo therefore

erstwhile former

espouse hold

et al. and others

etc. and so on

fifthly fifth

filled up the filled the

finalize finish

first began began

first of all first

firstly first

foreseeable future future

forthwith now

fourthly fourth

fundamental basic

general consensus consensus

give an indication of indicate

have a tendency to tend to

have an effect on affect

have an impact on affect

have got to must

henceforth from now on

hereby [nothing]

highly unlikely unlikely

i.e., that is,

in addition to besides

in excess of more than

in order to to

in spite of the fact that although

in the event that if

in the near future soon

in view of the fact that because

inasmuch because

initiate start

inquire ask

irregardless regardless

is a function of depends on

is desirous of wants

join together join

lengthy long

loth loath

make a decision decide

match up match

may possibly may

media is media are

might possibly might

miss out on miss

more importantly more important

must inevitably must

must necessarily must

neither of them are neither of them is

never the less nevertheless

none of them are none of them is

none the less nonetheless

numerous many

on a daily basis daily

on a monthly basis monthly

on a regular basis regularly

on a weekly basis weekly

on a yearly basis yearly

on an annual basis yearly

owing to the fact that because

presented in this in this

preventative preventive

previous to before

prior experience experience

prior to before

quite [nothing]

reason is because reason is that

refer back refer

rely upon rely on

secondly second

sixthly sixth

take into consideration consider

thankfully [nothing]

the majority of most

the reason is because the reason is that

there are now there are

thirdly third

thusly thus

together with with

towards toward

try and try to

TV television

underway under way

until such time as until

very [nothing]

virtually all most

which that

while although

whilst while

will in the future will

will take steps to will

with the exception of except

Manual or Automatic?

When working electronically, editors often have to decide whether to make certain corrections manually or automatically, using such features as Find and Replace. Some corrections *have* to be made manually, but, in my opinion, editors often make more manual corrections than they should. For example, many editors change restrictive "which" to "that" by hand, making each change separately as it shows up in the manuscript. But how bad would it be, really, to change *every* "which" to "that" throughout the manuscript? You're going to read the manuscript all the way through anyway, right? So if you later come to a few "thats" that actually should be "whiches," you can fix them manually--which is much easier and faster than changing *hundreds* of "whiches" to "thats" by hand.

You have to use some judgment when doing this kind of thing. If a certain automatic correction will just make reading the manuscript too weird for you, don't use it. Or, you might try making the automatic correction with revision tracking turned on and showing--

Tools > Track Changes > Highlight Changes > Track changes while editing + Highlight changes on screen

--so that when you're reading through the document later, you'll know that the odd reading of that problem sentence is something you (rather than the author) introduced. Of course, if an automatic correction will result in *more* manual manipulation later on, you shouldn't use it.

Another possibility is to use wildcards in your Find and Replace corrections. In our "which" to "that" example, you could search for the word "which" whenever it *doesn't* follow a comma and replace it with "that," which would leave nearly all of the nonrestrictive occurrences ("blah blah, which blah blah") intact. Here's how:

1. Click the "Edit" menu.

2. Click "Replace."

3. In the "Find What" box, enter this:

([!,]) which

4. In the "Replace With" box, enter this:

1 that

5. In the "Use Wildcards" or "Use pattern matching" box, put a checkmark (you may need to click the "More" button before you can do this).

6. Click the "Replace All" button.

You can learn more about searching and replacing in past issues of Editorium Update--October 24, 2000, to November 21, 2000, and March 21 to April 25, 2001:

http://editorium.com/euindex.htm

Of course, if the idea of making such sweeping changes scares you, you can use the Find and Replace dialog to "Find Next" and "Replace" items individually, which still beats doing them all by hand.

Don't forget that there are certain corrections you'll almost *always* want to make, such as fixing commonly misspelled words. You'll probably want to make your own list, but here are some of my favorites:

FIND WHAT REPLACE WITH

accomodate accommodate

supercede supersede

independant independent

embarass embarrass

annoint anoint

occurrance occurrence

accidently accidentally

concensus consensus

wierd weird

mischevious mischievous

definate definite

transcendant transcendent

To automate things even further, don't just do these replacements one at a time on job after job; instead, record them in a macro that you can use over and over again. You can learn more about macros in past issues of Editorium Update--May 9 to May 23, 2001:

http://editorium.com/euindex.htm

_________________________________________

READERS WRITE

In a follow-up to her question in last week's Readers Write column about combining chapters into one document before editing, Ann Redmon (ann@gant.org) wrote:

"I'd already flogged myself earlier this year for not having purchased and used your Editor's ToolKit much sooner, but just shoot me for not having used the Add Documents feature much sooner too! I've only received half of this month's issue of the journal I regularly copyedit, so I didn't combine the whole issue into one document, but even doing it in two halves is saving me enormous amounts of time and vastly improving my consistency. Thanks again for a fabulous utility."

After reading last week's article on making separate passes through a document, Pamela Angulo (pamarama@empire.net) wrote:

"Hint for making passes: I have a 'Task' chart (a table, really) that I customize for each job. First, I fill in the details (number of pages, tables, figures, equations, and boxes) for each chapter, so I can track my progress. Below are check boxes for essential tasks: running the spellchecker, cleaning up spaces, checking and marking figure callouts, editing in-chapter headings, cross-checking references, editing references, editing figures and tables, editing boxes and appendices -- all those niggling details that can't be remembered in one pass. I find this chart especially helpful if I have to put a job aside for any time longer than an hour (!); when I come back, I don't try to do things that I have already done.

"And yes, I have a check-box grocery list on the fridge that I find very helpful in streamlining my shopping trips. YMMV! :-)"

Thanks to Ann and Pam for their comments.

Making Passes

No, no, not that kind of passes. I'm talking about making separate passes through a document to catch different kinds of errors. If you can catch them all in one pass, your mind is much more efficient than mine. I work much better and catch more errors by going through a manuscript several times, fixing different kinds of problems each time. This approach to editing works well on paper, but it works even better if you're editing on the computer. This is related to last week's article on editing from the top down, which you can read here:

http://www.topica.com/lists/editorium/read/message.html?mid=1707878802

Here are some of the passes I make when I'm editing a document:

1. I do a spell check. Laugh if you will, but a spell check catches the most elusive of typographical errors--which means I don't have to. It saves time now and embarrassment later. You can read more on this topic here:

http://www.topica.com/lists/editorium/read/message.html?mid=1700310413

2. I scan for repeated errors, inconsistencies, and idiosyncrasies in punctuation (especially in citations), capitalization, and spelling. When I find something I don't like, I fix it globally with Microsoft Word's Find and Replace feature. This is much faster than doing all of this work by hand, and when I'm done, I'm not left wondering if I've missed an occurrence of one of the problems somewhere. You can learn more about searching in past issues of Editorium Update--October 24, 2000, to November 21, 2000, and March 21 to April 25, 2001:

http://editorium.com/euindex.htm

3. I edit different kinds of items in separate passes. For example, I edit all of the chapter headings at one time, which ensures consistency and parallelism and all of that other good stuff. (If you use Word's built-in heading styles for chapter headings, you can see and edit them all at once in Outline View.) Then I edit the body text. Then I edit the sidebars. Then I edit the footnotes. Then I edit the bibliography entries. You get the idea. As I work, I make liberal use of Word's Find and Replace and macro features. You can learn more about macros in past issues of Editorium Update--May 9 to May 23, 2001:

http://editorium.com/euindex.htm

And you can learn more about editing notes here:

http://www.topica.com/lists/editorium/read/message.html?mid=1701016860

By the way, it's important to consider the order in which to make your passes. Can you really understand the sidebars if you haven't read the body text? If not, you'd better edit the body text first. Also, there's usually some going back and forth between items. For example, changes in the footnotes may require additional editing in the bibliography. So even if you're making passes, don't feel like you can't be a bit flexible. Editing on the computer, just as on paper, is as much an art as it is a science. And while the computer is a wonderful tool, don't forget that you're the one in charge.

_________________________________________

READERS WRITE

In last week's newsletter I wrote:

"If each chapter of a book is a separate document, I pull all of the chapters together using the Add Documents feature of our Editor's ToolKit program. I like having all of the chapters in one document so I can see and work on the whole book at once."

Subscriber Ann Redmon (ann@gant.org) responded:

"I've been using and enjoying many of your Editor's ToolKit features, but haven't tried the Add Documents feature for fear that the resulting document would just be huge and unwieldy. Is this not the case?"

I replied:

"It's true that the document is sometimes huge, but I think that having all of the book in one document is less unwieldy than messing around with, say, twenty different documents ("Let's see, where was that paragraph about . . . ?"). My computer has plenty of memory, so the hugeness doesn't bother me or crash my machine. I like being able to see the whole structure of a book in Outline View, and I like being able to do a quick Find and Replace that I know will standardize something throughout the book without having to go from chapter to chapter. All of this may just be a matter of personal preference, and you should probably do whatever works best for you."

Thanks to Ann for her question.

Editing from the Top Down

When I'm editing on the computer (which is most of the time), I'm most effective when I edit from the "top down." What that means is that I don't start changing commas and semicolons until I've done some other, more comprehensive tasks:

1. If each chapter of a book is a separate document, I pull all of the chapters together using the Add Documents feature of our Editor's ToolKit program. I like having all of the chapters in one document so I can see and work on the whole book at once. Later, if I need to split the document apart again, I use the program's Split Documents feature. You can learn more about Editor's ToolKit here:

http://www.editorium.com/14842.htm

2. I apply my own document template. This template uses a font that's easy on the eyes and includes all of the styles I'm likely to need. You can read more about this here:

http://www.topica.com/lists/editorium/read/message.html?mid=1700934923

http://www.topica.com/lists/editorium/read/message.html?mid=1704544112

3. I replace directly applied formatting with paragraph styles. (Why more authors don't use styles to format their documents is beyond me, but that's the way it is.) If the author has been consistent, I can do this with Word's Replace feature, replacing 16-point Arial bold (for example) with Word's Heading 1 paragraph style (for example). If the author hasn't been consistent (which is usually the case), then I have to go through the document and apply at least some of the paragraph styles manually. The effort is worth it, however, because it means that the styles can be passed on to QuarkXPress when it's typesetting time or reformatted quickly and easily in Microsoft Word as needed. You can read more about this here:

http://www.topica.com/lists/editorium/read/message.html?mid=1705536230

4. After applying the heading styles (Heading 1 through Heading 9) in particular, I use Word's Outline View or Document Map to look at the structure of the document. Does it make sense? Are the different sections in some kind of logical order? If they're not, I can easily move them around in Outline View. You can read more about this here:

http://www.topica.com/lists/editorium/read/message.html?mid=1700396609

5. I run the document through our FileCleaner program to clean up double spaces, eliminate multiple carriage returns, remove any remaining directly applied formatting (but leave italic intact), and fix a host of other annoying (but common) errors. You can learn more about FileCleaner here:

http://www.editorium.com/14845.htm

6. Finally, I start editing the actual text of the document. As I do this, I watch for recurring errors. If an error shows up more than twice, I stop fixing it manually and take care of all of its occurrences in one fell swoop, using a macro or Word's Replace feature. I save my macros and find-and-replace strings for use on future projects, and I now have a large collection of these useful tools. You can learn more about macros and Find and Replace in past issues of Editorium Update--October 24, 2000, to November 21, 2000, and March 21, 2001, to June 6, 2001:

http://editorium.com/euindex.htm

You may not want to follow my procedures exactly, but you might think about the steps you take in editing and see if there are some "top-down" procedures you could follow that would improve your speed, efficiency, and comfort.

Customizing Microsoft Word

When you first install Microsoft Word, it's set up for the "generic" user--someone who employs only the most basic features of this powerful program. For example, it displays the Standard and Formatting toolbars but not the AutoText or Reviewing toolbars. But if you're editing or typesetting in Word, you're not a generic user--far from it. You could probably *use* the AutoText and Reviewing toolbars. And maybe that Standard toolbar doesn't do much of anything for you. Don't be afraid to set up Word so that you can work as efficiently as possible. Here are some tips on how to do that:

1. During a typical workday, notice which features of Word you use the most. You might even make a list and put a check mark next to a feature each time you use it. Then count up the check marks for each feature at the end of the day.

2. If you're using menus or toolbars to access these features, learn and then use their keyboard shortcuts (see "Keyboard Shortcuts" in Word's Help file). Over the course of a year, this will save you an enormous amount of time because you won't be reaching for the mouse every thirty seconds. If the features don't have keyboard shortcuts, make your own, as explained in the Readers Write column of the June 13, 2001, Editorium Update, which you can read here:

http://www.topica.com/lists/editorium/read/message.html?mid=1707100224

3. Explore Word's toolbars by clicking the "View" menu and then "Toolbars." Some of these (Control Toolbox, Visual Basic) may be completely meaningless to you. Others, however (Clipboard, Tables and Borders), you may find very useful.

4. Rearrange menu items and toolbar buttons in ways that make sense to you. Don't settle for Word's out-of-the-box arrangement. Word was *made* to be customized! Go ahead--pull off those buttons you never use. Move buttons from one toolbar to another. If you know that never in your life are you going to use the Letter Wizard, why keep it on your "Tools" menu? Get rid of it! Make your Word window as sleek and efficient as the cockpit of a jet. You can read the basic instructions for customizing toolbars and menus in the past two issues of Editorium Update, here:

http://www.topica.com/lists/editorium/read/message.html?mid=1707286867

http://www.topica.com/lists/editorium/read/message.html?mid=1707444986

5. Go spelunking. Use Word's menus to explore features you may not have seen before. Check out Document Map, Change Case, Word Count, Track Changes, and (if you're a keyboard junkie) Full Screen View. Some of these features will make you smile. When they do, remember where they are (make another list) or put them on menus and toolbars where you can find them again.

6. If you've recorded certain macros that you use a lot, make them easily accessible with keyboard shortcuts, toolbar buttons, and menu items.

If the idea of changing toolbars and menus scares you, just be sure to back up your Normal template (Normal.dot, which resides in your Templates folder). Then, if you need to, you can go back to your original configuration by replacing your new Normal template (where your customizations are stored) with your old, generic one. You can also keep your customizations (and macros) in your own add-in template, as explained here:

http://www.topica.com/lists/editorium/read/message.html?mid=1707194086

Remember, too, that just because you remove a feature from a toolbar or menu doesn't mean it's really gone. You can always put it back if you need to. Over the next few weeks, I'll explain how to create your own toolbars and menus (not just modify existing ones) and add or remove features. I'll also show you the secret repository for *all* of Word's features--many of which are not on *any* menu, toolbar, or keyboard shortcut. If you're interested in customizing Word, you won't want to miss that.

Two-Step Searching

While editing in Microsoft Word, I often need to find something that's *partially* formatted and replace it with something else. For example, let's say a manuscript has a bunch of superscript note numbers preceded by a space that's *not* in superscript. Here's an example (with carets indicating superscript):

Lorem ipsum dolor sit amet. ^1^

I'd like to have Word find all such spaces and replace them with nothing (in other words, delete them), but that doesn't seem possible. I can open Word's Replace dialog (Edit > Replace) and set the "Find What" box to superscript, but the space isn't superscript, and the manuscript has thousands of spaces that *don't* precede a superscript number. It also has numbers that aren't superscript (like 2001), so I can't just find spaces preceding numbers. What's an editor to do?

Find and replace the spaces in two steps rather than one:

1. Mark the superscript with codes.

2. Delete the spaces and codes.

STEP 1

To mark the superscript with codes, do this:

1. Open Word's Replace dialog by clicking the "Edit" menu and then "Replace."

2. Put your cursor in the "Find What" box and make sure the box is empty.

3. Click the "Format" button. (You may need to click the "More" button first.)

4. Click "Font."

5. Put a checkmark in the "Superscript" box.

6. Click the "OK" button. The "Find What" box should now be set to superscript.

7. Put your cursor in the "Replace With" box.

8. Type the following string in the "Replace With" box:

^&

9. Click "Replace All."

All of your superscript numbers will be replaced with themselves, preceded by , which is a code I just made up to indicate superscript. In other words, your sentences will now look like this:

Lorem ipsum dolor sit amet. ^1^

Feel free to make up your own codes for whatever you need (italic, bold, paragraph styles, and so on).

The other code in the "Replace With" box, ^&, is Microsoft Word's "Find What Text" code, which represents the text that was found (the superscript numbers). You can learn about it here:

http://www.topica.com/lists/editorium/read/message.html?mid=1703525514

STEP 2

To delete the spaces and codes, do this:

1. Open Word's Replace dialog by clicking the "Edit" menu and then "Replace."

2. Put your cursor in the "Find What" box by clicking it.

3. Type the following string in the "Find What" box:

(You can't see it very well in this newsletter, but there's a space in front of that code, and it needs to be there.)

4. Click the "No Formatting" button so you're no longer finding superscript, which is now represented by the code.

5. Put your cursor in the "Replace With" box and make sure the box is empty.

6. Click "Replace All."

All of the spaces in front of the codes (and thus in front of the superscript numbers) will be deleted, as will the codes themselves, leaving your sentences looking like this:

Lorem ipsum dolor sit amet.^1^

You can use this little two-step trick any time you need to find and replace partially formatted text. Now that you know how, that will probably be quite often.

ERRATA

In the April 18, 2001, issue of Editorium Update, I gave the following find-and-replace pattern for putting last name first in a list of names:

Pattern: G. B. Harrison, Ph.D.

Find What: ^013([A-z].) ([A-Z].) ([A-z]@,) (*)^013

Replace With: ^p3 1 2, 4^p

That first [A-z] wildcard range should have been given as [A-Z] (with a capital Z) to indicate a capital letter. [A-z] (with a lowercase z) will work, but it doesn't make the example as clear as it should have been.

_________________________________________

READERS WRITE

After reading last week's newsletter, subscriber Nancy Adess (naedit@earthlink.net) wrote, "Why would there be periods at all at the end of references in parens in the text? Why not just (Thoreau, Walden, p. 10)?"

I responded:

I realize I'm at odds with the Chicago Manual of Style (10.77) on this, but I think Chicago is wrong. Chicago style is like this, with no period at the end of the quotation and a period after the source citation:

"The improvements of ages have had but little influence on the essential laws of man's existence" (Thoreau, Walden [New York: Time Reading Program, 1962], p. 10).

To me, the period is *part* of the quotation--but we've just put it after the citation. However, if the sentence ends with a question or exclamation mark, Chicago keeps it with the quotation where it belongs:

"What is the nature of the luxury which enervates and destroys nations?" (Thoreau, Walden [New York: Time Reading Program, 1962], p. 13).

The placement of the question mark reveals the faulty reasoning behind moving the period--we didn't move the question mark, right? Also, we now have another problem: Since we're not going to move the question mark, how do we punctuate our citation? Chicago does it by leaving that period there--but in this case the period was never part of the sentence to begin with. This makes no sense at all--and besides, the period looks stupid hanging out there by itself. I think the sentence and the citation should be punctuated independently, like this:

"The improvements of ages have had but little influence on the essential laws of man's existence." (Thoreau, Walden [New York: Time Reading Program, 1962], p. 10.)

"What is the nature of the luxury which enervates and destroys nations?" (Thoreau, Walden [New York: Time Reading Program, 1962], p. 13.)

Simple. Sensible. Neat. Consistent. And not ugly.

And besides, I was trained by a marvelous, independent-thinking editor, and that's the way she did it. 🙂

In addition, using this style makes electronic manipulation simple because the sentence and the citation are both self-contained. For example, it's now an easy matter to write a macro that will turn parenthetical source citations into footnotes--or vice versa. If we take our first sentence, punctuated like this--

"The improvements of ages have had but little influence on the essential laws of man's existence." (Thoreau, Walden [New York: Time Reading Program, 1962], p. 10.)

--we can use a macro to:

1. Delete the space before the citation.

2. Delete the opening parenthesis.

3. Cut to the closing parenthesis.

4. Delete the closing parenthesis.

5. Create a footnote.

6. Paste the cut citation into the footnote.

7. Close the footnote.

That leaves our sentence looking like this (with carets indicating superscript):

"The improvements of ages have had but little influence on the essential laws of man's existence."^1^

And our note looking like this:

^1^Thoreau, Walden [New York: Time Reading Program, 1962], p. 10.

We could also use the macro successfully on our second sentence (the one with the question mark). But if we had followed Chicago style, we'd have to create separate macros for each kind of sentence and citation, and they'd be more complicated, too. (Our NoteStripper program includes macros that do this kind of stuff.)

Wildcards in the Real World

I hope you've enjoyed the wildcard "tutorial" articles in Editorium Update over the past few weeks. If you haven't read them, I'd recommend that you do so in order to understand this week's article. You can review the whole series here, starting with the March 20, 2001, issue:

http://www.editorium.com/euindex.htm/

This week I thought you might be interested in seeing some of the wildcard combinations I've used recently in an actual editing project. Maybe you'll find them useful too.

EXAMPLE 1

The manuscript I've been working on has lots of parenthetical references like this:

(Thoreau, Walden, p 10.)

You'll notice that there's no period after the p. To fix these references, I used the following string in Microsoft Word's "Find What" box in the Replace dialog (Edit > Replace), with "Use Wild Cards" (or "Use Pattern Matching") turned on:

p ([0-9]@.))

That's an odd-looking thing with its double parentheses, but its meaning becomes clear when you consider that the first closing parenthesis represents the closing parenthesis of the reference. The backslash in front of it tells Word to treat it as a character rather than the end of a group "expression." So the whole string says this:

1. Find a p followed by a space.

2. Find, as a group, one or more digits followed by a period followed by a closing parenthesis.

I put this in the "Replace With" box:

p. 1

And that string says this:

1. Replace the p followed by a space with p followed by a period and a space.

2. Replace the rest of the "Find What" string (the group in parentheses) with itself.

When I was finished finding and replacing, the references looked like this:

(Thoreau, Walden, p. 10.)

EXAMPLE 2

Here's another example from the manuscript I've been working on:

(Genesis 8:26)

You'll notice that there's no period before the closing parenthesis. Wanting to fix these, I put this string in the "Find What" box:

([0-9]@:[0-9]@))

It says:

1. Find, as a group, any number of digits followed by a colon followed by any number of digits.

2. Find a closing parenthesis character.

I put this in the "Replace With" box:

1.)

And that string says:

1. Replace the group with itself.

2. Replace the closing parenthesis with a period and a closing parenthesis.

When I was finished finding and replacing, the references looked like this:

(Genesis 8:26.)

"Why," you may be wondering, "did you have to use wildcards? Why didn't you just find a closing parenthesis and replace it with a closing parenthesis and a period, like this:

Find What:

)

Replace With:

.)

I couldn't do that because the manuscript had other parenthetical items (like this one) that didn't need a period. Using wildcards makes it possible to find exactly the items you want and ignore those you don't.

EXAMPLE 3

The manuscript had Bible references that looked like this:

II Corinthians

II John

II Kings

I wanted them to look like this:

2 Corinthians

2 John

2 Kings

I put this in the "Find What" box:

II ([A-Z])

The string says:

1. Find I followed by I followed by a space.

2. Find any capital letter.

And I put this in the "Replace With" box:

2 1

That string says:

1. Replace the II with a 2.

2. Replace the capital letter with itself.

Worked like a charm.

"Why," you ask, "didn't you just replace II with 2 throughout the manuscript rather than use wildcards?" Well, I could have. But I was also thinking about other entries like these:

I Corinthians

I John

I Kings

Obviously, I couldn't just replace I with 1 throughout the manuscript, so I used this string in the "Find What" box:

I ([A-Z])

And I used this string in the "Replace With" box:

1 1

And that took care of the problem.

I hope you're beginning to see how powerful wildcards can be and how much time they can save while you're editing a manuscript. Using wildcards, you can quickly fix repetitive problems that would take hours to correct by hand. I highly encourage you to try them, but I also urge you to back up your documents and experiment on some junk text before using wildcards in the "real world." Also, try finding and replacing items individually before replacing all of them globally. Then you'll know that the wildcards you're using actually do what you need to have done.

Using the "Find What Expression" Wildcard

For the past few weeks we've been talking about using wildcards to find and replace text in Microsoft Word. Last week I introduced the "Find What Expression" wildcard (n) and promised to show you how to use it to move things around.

Let's say you've got a list of authors, like this:

Emily Dickinson

Ezra Pound

Willa Cather

Ernest Hemingway

and you need to put last names first, like this:

Dickinson, Emily

Pound, Ezra

Cather, Willa

Hemingway, Ernest

You can use the "Find What Expression" wildcard to do this in a snap.

Start the Replace dialog (Edit > Replace) and put a check in the "Use wildcards" or "Use Pattern Matching" box (you may need to click the "More" button before this is available). Then, in the "Find What" box, enter this:

^013([A-z]@) ([A-z]@)^013

If you've been reading Editorium Update, you'll probably understand these codes and wildcards:

^013 represents a paragraph mark.

[A-z] represents any single alphabetic character, from uppercase A to lowercase z.

@ represents any additional occurrences of the previous character--in this case, any single alphabetic character, from uppercase A to lowercase z.

() groups [A-z]@ together as an "expression" representing an author's first name. (This grouping is the key to using the "Find What Expression" wildcard in the "Replace With" box.)

The space after the first ([A-z]@) expression represents the space between first name and last name.

The next ([A-z]@) group represents the author's last name.

The final ^013 represents the paragraph mark after the name.

Now, in the "Replace With" box, enter this:

^p2, 1^p

The ^p codes represent paragraph marks. "Wait a minute," you say. "You just used ^013 for a paragraph mark. Why the change?"

Excellent question. The answer has two parts:

1. If we could use ^p in the "Find What" box, we would. But since Word won't let us do that when using wildcards (it displays an error message), we have to resort to the ANSI code, ^013, instead. You can learn more about this here:

http://www.topica.com/lists/editorium/read/message.html?mid=1703875043

2. If we use ^p in the "Replace With" box, Word retains the formatting stored in the paragraph mark (a good thing). If we use ^013, Word loses the formatting for the paragraph (a bad thing). In a list of author names, this probably doesn't matter, but you'll need to know this when finding and replacing with codes in more complicated settings.

Continuing with our example, ^p2, 1^p:

2 is the "Find What Expression" wildcard for our *second* expression (hence the 2) in the "Find What" box--in other words, it represents the last name of an author in our list.

The comma follows this wildcard because we want a comma to follow the author's last name.

A space follows the comma because we don't want the last and first names mashed together, like this: "Pound,Ezra."

1 is the "Find What Expression" wildcard for our *first* expression (hence the 1) in the "Find What" box--in other words, it represents the first name of an author in our list.

Now click the "Replace All" button. The authors' names will be transposed:

Dickinson, Emily

Pound, Ezra

Cather, Willa

Hemingway, Ernest

You've always wondered how to do that, right? But now you're wondering about middle initials. And middle names. And Ph.D.s.

All of those make things more complicated. But here, in a nutshell, are the Find and Replace strings you'll need for some common name patterns (first last, first middle last, first initial last, and so on). First comes the name pattern, then the Find string, and finally the Replace string, like this:

NAME PATTERN

FIND WHAT

REPLACE WITH

William Shakespeare

^013([A-z]@) ([A-z]@)^013

^p2, 1^p

Alfred North Whitehead

^013([A-z]@) ([A-z]@) ([A-z]@)^013

^p3, 1 2^p

Philip K. Dick

^013([A-z]@) ([A-Z].) ([A-z]@)^013

^p3, 1 2^p

L. Frank Baum

^013([A-Z].) ([A-z]@) ([A-z]@)^013

^p3, 1 2^p

G. B. Harrison, Ph.D.

^013([A-z].) ([A-Z].) ([A-z]@,) (*)^013

^p3 1 2, 4^p

J.R.R. Tolkien

^013([A-Z].)([A-Z].)([A-Z].) ([A-z]@)^013

^p4, 123^p

That list doesn't show every pattern you'll encounter, but it should provide enough examples so you'll understand how to create new patterns on your own--which is the whole point of this article. Once you've created all of the patterns you need, you could record all of that finding and replacing in a single macro that you could run whenever you need to transpose names in a list.

_________________________________________

READERS WRITE

After reading last week's newsletter, Mary L. Tod (mtod@earthlink.net) wrote:

In your Editorium Update for today, is it necessary to enclose the space in parentheses? Since it isn't being replaced by itself, can't the expression in the Find box be reduced to

(^013[0-9]@.)

(with just the space entered after the first expression)?

Mary is absolutely right about this. I put the space in parentheses because I wanted to briefly introduce the idea that you could have more than one "Find What Expression" wildcard--in this case, 2. For that to work, the space has to be in parentheses so it's recognized as an expression. But I didn't actually *use* the 2 in the example, so a simple space would have worked just fine.

Mary continued:

In a related question, does the @ symbol in the wildcard field also allow for no repeats of the previous character? Otherwise, it would start the list at 10, wouldn't it?

2. followed by a number ([0-9])

3. followed by one or more numbers (@)

Again, this is right on the mark. The @ really means "followed by one or more numbers *if there are any.*" A more technical way to put it is "followed by *zero* or more numbers."

Thanks to Mary for her astute comments.

Wildcard Grouping

For the past few weeks we've been talking about using wildcards to find and replace text in Microsoft Word. This week we'll discuss wildcard grouping, which is simply a way of telling Word that you want certain wildcards to be used together as a unit.

Continuing with our example from last week, let's say that you're editing a document with lots of numbered lists, like this:

1. Lorem ipsum dolor sit amet.

2. Ut wisi enim ad minim veniam.

3. Duis autem vel eum iriure dolor.

Now let's say that you want to replace the space after each number and period with a tab. After calling up the Replace dialog (Edit > Replace) and putting a check in the "Use wildcards" or "Use Pattern Matching" box, you could enter the following string of characters into the "Find What" box:

^013[0-9]@.

(You can't see it, but there's a space on the end of that string, and it needs to be included.) As you probably recall from the past few weeks, this tells Microsoft Word to do the following:

1. Find a paragraph mark (^013)

2. followed by a number ([0-9])

3. followed by one or more numbers (@)

4. followed by a period (.)

5. followed by a space ( ).

But that still won't let us replace that space with a tab. Why? Because there's no way to replace the space independently of the rest of the string--whatever the string finds *includes* the space.

So let's try this:

(^013[0-9]@.)( )

Notice that we've grouped the wildcards and other characters together with parentheses. (In case you can't tell, that's our uncooperative space between the last two parentheses.) Such groups, for reasons known only to the mathematically minded, are called "expressions," and in this case there are two of them:

1. (^013[0-9]@.)

2. ( )

Grouping things together like this makes it possible to refer to each group independently in the "Replace With" box--a wonderful thing! So in the "Replace With" box, we'll enter this string:

1^t

That "1" is an example of the little-known "Find What Expression" wildcard, which lives deep in the wilds of Redmond, Washington, and only comes out at night. It's a backslash followed by the number one, and it tells Word to replace whatever is found by the first expression--

(^013[0-9]@.)

--with whatever the first expression finds. (Yes, you read that correctly.) In other words, Word replaces whatever the first expression finds with *itself.* That seems strange, but it means we can treat the second expression--

( )

--as an independent unit, which is exactly what we need to do. (By the way, "Find What Expression" wildcards are the only wildcards that can be used in the "Replace With" box. They are simply a backslash followed by a number.)

The ^t, of course, is the code for a tab, as explained in the November 14, 2000, issue of Editorium Update:

http://www.topica.com/lists/editorium/read/message.html?mid=1703968584

You'll notice that we haven't included a "2" code, which would replace something with whatever is found by our *second* expression, the space in the parentheses. Since we haven't included that code, the space will be replaced by nothing--in other words, it will be *deleted* during the Find and Replace. So the relationship between the wildcards in the "Find What" string and the "Replace With" string is something like this:

FIND WHAT: REPLACE WITH:

(^013[0-9]@.) > 1 (followed by a tab: ^t)

( ) > [nothing]

Now let's try using them:

1. Start the Replace dialog (Edit > Replace).

2. Put a check in the "Use wildcards" or "Use Pattern Matching" box (you may need to click the "More" button before this is available).

3. In the "Find What" box, enter this:

(^013[0-9]@.)( )

4. In the "Replace With" box, enter this:

1^t

5. Click the "Replace All" button.

Presto! All of the spaces after your numbers will be replaced with tabs, and your list will now look like this:

1.Lorem ipsum dolor sit amet.

2.Ut wisi enim ad minim veniam.

3.Duis autem vel eum iriure dolor.

To me, this is like magic, and it comes in handy more often than you might think. I hope you'll find it useful! In the future, I'll try to provide other examples that you can apply in your day-to-day work. Next week I'll show you how to use "Find What Expression" codes to move things around.

_________________________________________

READERS WRITE

After reading our past few newsletters on wildcard searching, a subscriber wrote, "Use Pattern Matching does not appear to be an option in my Word program."

I apologize for not explaining this. In Microsoft Word 6 and 95, "Use Pattern Matching" is an option in the Find and Replace dialogs, and selecting this option tells Word that you're going to use wildcards. In Word 97 and later, this option is simply called "Use Wildcards." To see this option, you may need to click the "More" button in the Find and Replace dialogs.