Monday, August 14, 2006

A Faster Way to Train the Spellchecker in OS X

Every author has to love the built-in spellchecker in OS X. Sure, most of the applications in use by authors come with their own spellchecker, isn't it fun to add new words to all of them? That's what I thought. I don't know about you, but I prefer the systemwide solution any time. ;-)

It is just a question of right-clicking to add new words to OS X's spellchecker, but what about transferring lists from one Mac to the other, or bulk-insertions? Let's try the Macintosh-Way™: There has to be a dialog somewhere. Sorry folks, not this time (I could not find a GUI-way of doing this). OK, we have to follow the path of the Geek.

If we never added a word to the custom dictionary in the past, we have to do so now. Type a word, e.g. the name of one of the characters in the new book that's always garnished with this wiggly red line, distracting our attention. Right-click and add to the dictionary. Now comes the geeky part, go to the Library folder in your home-directory and into the folder named Spelling contained in there. You should find a file named en (if you should work in more than one language, then there might be other files as well). Open the file with a suitable text-editor, e.g. TextWrangler or BBedit and you'll see that the added word is in the file followed by a delimiter (looks like a question-mark turned upside-down). Now you're able to add new words to your hearts content (don't forget to copy the delimiter) or paste the words from another machine into this file.

Check your spelling while doing so! ;-)

To cut a long story short, this seems to be the easiest way to add new words to your custom dictionary, used be all well-groomed Cocoa apps.

Technorati Tags: ,