Clean Text helps you clean up messy text

20.04.2012
Whether it's the body of an email message that's been forwarded too many times, or content you've copied from a PDF, sometimes you find yourself with messy content--text that has lots of odd characters and stray line breaks, for example--and you need to make it presentable. Previous Gem is perhaps the best of text-cleaning utilities for Mac, but if you don't need all of TextSoap's features and capabilities, " () does an admirable job for only $10.

You can use Clean Text's features in a few ways. The first is to simply paste your messy text into the Clean Text window. You can then click any of the program's 35 preconfigured modifications, listed to the right, to perform that action on your text. The options are organized by type: Fix (reflowing paragraphs, removing quote characters, removing stray characters, converting tabs to multiple spaces and vice versa, and more), Transform (for example, converting simple punctuation to "smart" equivalents and vice versa, sorting lines, removing duplicate lines), Change Case, Convert (changing line-ending encodings, converting period runs to elipses, stripping non-ASCII characters), Reverse (to reverse text at various levels), and Fun (making text flow backward or upside down). There's also a Quick Clean option that performs the most-common cleanup tasks with one click.

Apimac claims the Convert category includes an action to create ligatures for fi and fl, as well as to convert ligatures to their component letters. However, these actions weren't available in my testing.

The Clean Text window provides a number of other ways to fix your text. There's a traditional find-and-replace dialog, but click the Replace button on the right, and you get a tool for performing up to three find-and-replace tasks in one sweep. Whichever method you use, you can search by full word, ignore case, and even use regular expressions. You can also quickly add the date or time to your text, and a Statistics button reveals a separate window that displays basic stats about your text: character, word, space, and line counts; estimated reading time; word frequency; and more.

The second way to use Clean Text is to select text in any application that supports OS X services and then choose -> Services -> Clean Selection With Clean Text, which uses the Fix All feature on that text, immediately replacing it with the resulting cleaned text. Alternatively, choosing New Clean Text Window With Selection opens a new Clean Text window and pastes the selected text for cleaning. As with any service, you can use the Keyboard pane of System Preferences to create a keyboard shortcut for each of these actions.

Finally, Clean Text offers a couple ways to use the Fix All cleaner on the contents of the clipboard without having to paste it anywhere first. One is to click the Fix Clipboard button in the Clean Text toolbar. But more convenient is that if you click the Iconize button in the main Clean Text window, you get a tiny palette that floats above other windows. Click Fix Clipboard Text and Clean Text does just that--you can then paste the cleaned text into any app. There's also a handy Strip Clipboard Style option that strips all formatting from the clipboard.