g r o t t o 1 1

Peeve Farm
Breeding peeves for show, not just to keep as pets
  Blog \Blôg\, n. [Jrg, fr. Jrg. "Web-log".
     See {Blogger, BlogSpot, LiveJournal}.]
     A stream-of-consciousness Web journal, containing
     links, commentary, and pointless drivel.


On My Blog Menu:

InstaPundit
USS Clueless
James Lileks
Little Green Footballs
As the Apple Turns
Entropicana
Cold Fury
Capitalist Lion
Red Letter Day
Eric S. Raymond
Tal G in Jerusalem
Secular Islam
Aziz Poonawalla
Corsair the Rational Pirate
.clue

« ? Blogging Brians # »





Book Plug:

Buy it and I get
money. I think.
BSD Mall




 10/6/2003 -  10/8/2003
 9/29/2003 -  10/5/2003
 9/22/2003 -  9/28/2003
 9/15/2003 -  9/21/2003
  9/8/2003 -  9/14/2003
  9/1/2003 -   9/7/2003
 8/25/2003 -  8/31/2003
 8/18/2003 -  8/24/2003
 8/11/2003 -  8/17/2003
  8/4/2003 -  8/10/2003
 7/28/2003 -   8/3/2003
 7/21/2003 -  7/27/2003
 7/14/2003 -  7/20/2003
  7/7/2003 -  7/13/2003
 6/30/2003 -   7/6/2003
 6/23/2003 -  6/29/2003
 6/16/2003 -  6/22/2003
  6/9/2003 -  6/15/2003
  6/2/2003 -   6/8/2003
 5/26/2003 -   6/1/2003
 5/19/2003 -  5/25/2003
 5/12/2003 -  5/18/2003
  5/5/2003 -  5/11/2003
 4/28/2003 -   5/4/2003
 4/21/2003 -  4/27/2003
 4/14/2003 -  4/20/2003
  4/7/2003 -  4/13/2003
 3/31/2003 -   4/6/2003
 3/24/2003 -  3/30/2003
 3/17/2003 -  3/23/2003
 3/10/2003 -  3/16/2003
  3/3/2003 -   3/9/2003
 2/24/2003 -   3/2/2003
 2/17/2003 -  2/23/2003
 2/10/2003 -  2/16/2003
  2/3/2003 -   2/9/2003
 1/27/2003 -   2/2/2003
 1/20/2003 -  1/26/2003
 1/13/2003 -  1/19/2003
  1/6/2003 -  1/12/2003
12/30/2002 -   1/5/2003
12/23/2002 - 12/29/2002
12/16/2002 - 12/22/2002
 12/9/2002 - 12/15/2002
 12/2/2002 -  12/8/2002
11/25/2002 -  12/1/2002
11/18/2002 - 11/24/2002
11/11/2002 - 11/17/2002
 11/4/2002 - 11/10/2002
10/28/2002 -  11/3/2002
10/21/2002 - 10/27/2002
10/14/2002 - 10/20/2002
 10/7/2002 - 10/13/2002
 9/30/2002 -  10/6/2002
 9/23/2002 -  9/29/2002
 9/16/2002 -  9/22/2002
  9/9/2002 -  9/15/2002
  9/2/2002 -   9/8/2002
 8/26/2002 -   9/1/2002
 8/19/2002 -  8/25/2002
 8/12/2002 -  8/18/2002
  8/5/2002 -  8/11/2002
 7/29/2002 -   8/4/2002
 7/22/2002 -  7/28/2002
 7/15/2002 -  7/21/2002
  7/8/2002 -  7/14/2002
  7/1/2002 -   7/7/2002
 6/24/2002 -  6/30/2002
 6/17/2002 -  6/23/2002
 6/10/2002 -  6/16/2002
  6/3/2002 -   6/9/2002
 5/27/2002 -   6/2/2002
 5/20/2002 -  5/26/2002
 5/13/2002 -  5/19/2002
  5/6/2002 -  5/12/2002
 4/29/2002 -   5/5/2002
 4/22/2002 -  4/28/2002
 4/15/2002 -  4/21/2002
  4/8/2002 -  4/14/2002
  4/1/2002 -   4/7/2002
 3/25/2002 -  3/31/2002
 3/18/2002 -  3/24/2002
 3/11/2002 -  3/17/2002
  3/4/2002 -  3/10/2002
 2/25/2002 -   3/3/2002
 2/18/2002 -  2/24/2002
 2/11/2002 -  2/17/2002
  2/4/2002 -  2/10/2002
 1/28/2002 -   2/3/2002
 1/21/2002 -  1/27/2002
 1/14/2002 -  1/20/2002
  1/7/2002 -  1/13/2002
12/31/2001 -   1/6/2002
12/24/2001 - 12/30/2001
12/17/2001 - 12/23/2001
Wednesday, August 7, 2002
14:49 - Text Handling

(top) link
I like the way the Mac handles text selection and keyboard/mouse interaction with typing.

Apple introduced the first paradigms for how GUI text selection should work: you select some text, and then whatever you type or paste replaces whatever is selected. Double-click in some text, and it selects the word; triple-click, and it selects the sentence, or the paragraph. Double-click a word and then drag to the next word, and it selects that whole word.

Then Windows came along, and decided to make it all smarter. Like, for instance, in Word, if you double-click on a word, it selects not just the word but the space following it as well, so that if you delete the word it will also delete the space and leave you with just one space between the remaining words. And if you single-click in a word and drag to the next word, it selects the next word and the entire first word as well. It's impossible to select just the part of a sentence, from the middle of a word to the middle of another word, without a lot of indeterminate mouse flailing.

It's amazing to me how thin a line there is between "software that tries so hard to be 'smart' that it interferes with your workflow" and "software that does what you tend to want".


I like, for instance, some of the pieces of "smartness" that Apple is putting into OS X. For instance: in Mail, if you're typing a list of names or e-mail addresses into the To: field, as soon as you type enough of a name for it to identify a complete address-book entry, it fills it out for you-- standard auto-complete stuff. The rest of the address, which you haven't typed yet, is selected, so anything further that you type replaces it. Just as you'd expect. But if you type a comma, it takes that to mean "I accept that address, as you've auto-completed it; rewrite the name as it appears in the Address Book, move the cursor to the end, and let me start typing a new address". It's a special-case exception to the old strike-over text-selection tactics, and it works bloody well.

And if you're typing in TextEdit or any text field, you can double-click on a word, and only that word will be selected-- not the space before or after the word. that way, if you start typing, it preserves the spaces as they were, and your new word replaces only the word that was selected. But if you delete the selected word, it also deletes one of the spaces, leaving only one. Which is what you want it to do. And meanwhile, if you place the cursor between two letters and drag to some other point in the paragraph, it won't extend the selection box beyond what you asked for-- it will select just the stuff between where you clicked and where you released. If you'd wanted it to select whole words, you'd have double-clicked before dragging.

(Oh, and everything in the system uses the same text-handling engine; there's none of this "Well, text behaves one way in Word, and another way in IE, and another way in this piece of shareware that I have" stuff. With the exception of a few Cocoa-specific things like UNIX-style keybindings, everything in OS X, from the Finder to OmniWeb to the Terminal, has the same text behaviors. It's all the same code. That's why Inkwell will work anywhere in the system, even at the command line. Yikes!)

It's this kind of stuff that makes publishing professionals and writers prefer Macs. The text behaviors make sense; they don't try to outsmart you. It's hard to tell whether it's this way because the designers within Apple use Windows sporadically and find out each time what horrible things Windows does that PC users are all to used to by now, that only Mac people will notice because they're used to a much more intuitive paradigm-- or if it's simply that they analyze how they themselves type and work with text, decide continuously that "This is the way it should be," and program in that direction.

I can tell you one thing: if I'd had to use Word on a PC for my book, I'd have gone mad before I made it three chapters.

Back to Top


© Brian Tiemann