Keyboard Maestro “Improved Title Case” Macro
Improved Title Case
The built-in title case filter in Keyboard Maestro distinguishes between “small words” that should not be capitalized and words that should but it doesn’t recognize acronyms.
Take, for example, these fake headlines:
The sub-report of the ACI committee C.I.A. Defeats F.B.I. in Smart Softball match-up Lightroom CC Includes Significant ACR Revisions OpticsPro takes on lightroom cc and phase one capture one pro
This is how the built-in filter applies capitalization:
The Sub-Report of the Aci Committee c.i.a. Defeats f.b.i. In Smart Softball Match-Up Lightroom Cc Includes Significant Acr Revisions Opticspro Takes on Lightroom Cc and Phase One Capture One Pro
John Gruber wrote a Perl routine in 2008 to handle title case which was refined that same year by Aristotle Pagaltzis and put in the public doman (https://gist.github.com/gruber/9f9e8650d68b13ce4d78). It applies capitalization to those same headlines like this:
The Sub-Report of the ACI Committee C.I.A. Defeats F.B.I. In Smart Softball Match-Up Lightroom CC Includes Significant ACR Revisions OpticsPro takes on lightroom cc and phase one capture one pro
The main difference is that when the Gruber/Pagaltzis routine detects an acronym, it leaves it alone, although it won’t presume one if it’s lowercase.
Select the text you want to convert and type the Hot Key, which has been set to Shift-Option-T. Your selection will be replaced with the capitalized string.
Improved Title Case.kmmacros (3.3 KB)