The Law of Least Surprise

I wear many hats, but two of my favorites are my editing hat (really just a green-celluloid visor that protects my eyes from the glare of the lightbulb dangling overhead) and my programming hat (a rakish fedora with a feather on the side). I alternate between the two on any given day, but there's one guiding principle that both hats share—the law of least surprise.

The law of least surprise was formulated by computer nerds who wisely realized that "a programmer should try to think of the behavior that will least surprise someone who uses the program, rather than the behavior that is natural from knowing the inner workings of the program." For example, if I'm writing a document in a word processor, and I type "3rd" (meaning "third"), the "rd" should not magically be formatted as superscript. But that's the default setting in Microsoft Word, which frequently violates the law of least surprise, often in very big ways.

One of the most egregious violations occurred with the introduction of the Document Map in Word 97. The feature didn't work unless heading styles were applied to headings in the document text. If it couldn't find any headings, it created them, automatically formatting short lines that looked as though they might be headings.

Another bad one was the universally hated "Clippy," the animated paperclip also introduced in Word 97. (Is there a pattern here?) Clippy would pop up at the most inopportune times, "helpfully" saying things like "It looks as though you're writing a grocery list. Do you need milk?" In 2007 Smithsonian magazine called Clippy "one of the worst software design blunders in the annals of computing." In 2010 Time magazine listed it as one of the 50 worst inventions. Even at Microsoft, Clippy's internal code name was "TFC," which did not stand for "that friendly clip." Nevertheless, I enjoy some of the creative spoofs that Clippy inspired.

The law of least surprise isn't just for programmers, though. It also applies to editors, who should change an author's text as little as possible while still ensuring clarity (and, in some situations, conformity to house style). I've had bad experiences with inept but well-meaning proofreaders who made changes because something I wrote didn't follow the "rules" or because they had a "better" way to express something than I did, even though my way was perfectly clear. This reminds me of a story about Abraham Lincoln:

A Cabinet meeting was called to consider [the United States'] relations with England. . . . One after another of the Cabinet presented his views, and Mr. Seward read an elaborate diplomatic dispatch, which he had prepared.
Finally Mr. Lincoln read what he termed "a few brief remarks upon the subject,'' and asked the opinions of his auditors. They unanimously agreed that our side of the question needed no more argument than was contained in the President's "few brief remarks.''
Mr. Seward said he would be glad to adopt the remarks, and, giving them more of the phraseology usual in diplomatic circles, send them to Lord Palmerston, the British premier.
. . . The President, half wheeling in his seat, threw one leg over the chair-arm, and, holding the letter in his hand, said, "Seward, do you suppose Palmerston will understand our position from that letter, just as it is?"
"Certainly, Mr. President."
"Do you suppose the London Times will?"
"Certainly."
"Do you suppose the average Englishman of affairs will?"
"Certainly; it cannot be mistaken in England."
"Do you suppose that a hackman out on his box (pointing to the street) will understand it?"
"Very readily, Mr. President."
"Very well, Seward, I guess we'll let her slide just as she is."
And the letter did "slide," and settled the whole business in a manner that was effective. (Alexander K. McClure, Yarns and Stories of Abraham Lincoln [Salt Lake City: Waking Lion Press, 2013], 160-61.)

When editors make changes not to ensure clarity but to meet some arbitrary aspect of their own sensibilities, they're doing it wrong. As an editor, I try to keep that in mind. And as an author, I don't like surprises.

New Programs from the Editorium

Wearing my programmer's hat, I've been working hard all summer to create some new Microsoft Word add-ins to help with your work:

IndexLinker creates hyperlinks from index page numbers back to the text to which they refer. If you're creating ebooks or PDFs with indexes, you need this program.

BookMaker automates typesetting and page layout in Microsoft Word. Stop fighting with page breaks, headers, and footers. Let BookMaker do the heavy lifting.

LyXConverter converts Word documents into LyX documents.

A Special Deal: Editor's Toolkit Ultimate!

Editor's ToolKit Ultimate combines three great products:

The three products work together to create a powerful editing package to take you through three separate stages of copyediting.

Editing Documents in LaTeX

Do you ever have to edit a document written in LaTeX? There’s recently been some discussion on Copyediting-L about how to do this. I know of three methods.

Method 1: Work in raw LaTeX

LaTeX looks like this:

chapter[On the Origin and Design of Government]{On the Origin and Design of Government in General, with Concise
 Remarks on the English Constitution}
 Some writers have so confounded society with government, as to leave
 little or no distinction between them; whereas they are not only
 different, but have different origins. Society is produced by our
 wants, and government by our wickedness; the former promotes our
 happiness emph{positively} by uniting our affections, the latter
 emph{negatively} by restraining our vices. The one encourages
 intercourse, the other creates distinctions. The first is a patron, the
 last a punisher.

As you can see, formatting and document structure are implemented with codes. That's okay; just don't mess with the codes unless you know what you're doing. You can open a LaTeX document in any text editor and start editing. When you're finished, save the file and return it to the authors.

But what if your authors need to see your revisions? In that case, a text editor isn't going to work. But Microsoft Word has revision tracking . . .

Method 2: Edit in Microsoft Word

There are ways to turn a LaTeX file into a Word document, but that's probably not what your authors want. Nevertheless, you can still edit in Word, using revision tracking. Here's how:

  1. Open the LaTeX file (extension .tex) in Word.
  2. Save the file as a Word file (extension .doc or .docx).
  3. Turn on Track Changes.
  4. Edit the text, being careful not to change any of the LaTeX coding.
  5. Don't use any of Word's formatting features (paragraph styles, italic, bold, and so on), which will be lost when the document is changed back to a text file (which, later, it will be).
  6. Save the Word file and send it back to your authors, who should review the file in Word so they can accept or reject your changes.

After all of the changes have been either (1) accepted or (2) rejected (in other words, so that all tracked changes have been taken care of), the authors should do this:

  1. Save the file as a text file (extension .txt).
  2. Change the .txt extension to .tex.

At that point, they should be able to compile the LaTeX file as usual.

Method 3: Edit in LyX

LyX is a graphical user interface for LaTeX, with its own version of revision tracking. Here's the procedure:

  1. You (the editor) install LyX. Unless you're planning to use LyX for typesetting, you just need the simple installer rather than the bundled version.
  2. Import the authors' LaTeX file into LyX (File > Import > LaTeX).
  3. Do your editing in LyX, using its revision-tracking feature (Document > Change Tracking > Track Changes).
  4. Ask your authors to review your changes in LyX and accept or reject as needed.

At that point, your authors can (1) export the file as LaTeX (File > Export > LaTeX) or (2) process the file from within LyX. If you want to use this method, you should do some back-and-forth testing with your authors before starting work on an actual manuscript.

If you find that you like working in LyX (I do), you may sometimes need a way to convert a Word document into a LyX document, which is not an easy task—unless you use my new Microsoft Word add-in, LyXConverter. I do not, however, recommend trying to round-trip a document—that is, convert a Word document into LyX and then back into Word. Again, there are ways to do it (via OpenOffice.org Writer), but how reliable the final conversion might be is open to question.

How about you? Do you get manuscripts in formats other than Word? If so, how do you handle them? Please let me know!