Qt to Title Case

Converts the entered phrase to the title case format used by Qt: prepositions of less than 5 letters are lowercase unless at the end of a sentence.

This script does not perform grammatical analysis, and therefore it might be wrong at times... Use your judgement, and if possible fix the script.


Derived from http://individed.com/code/to-title-case/ written by David Gouch after John Gruber's post