…and for my first attempt at a plugin.
Enhanced Title Case Plugin (Work in Progress)
What it does:
A new scripting command is added
All Words Not in the List of Exceptions Are Capitalized.
Existing CaPiTaLs are retained and various other rules are applied to text. Use of the new command is the same as $title, $upper, $lower…
$titlecase(%tag%) - $titlecase(text)
This Grammatically Atrocious Text String:
the traveling prayers at the small stadium in the woods near o'reilly forest by the lake feat billy joel and the beatles with the who plus devo and abba mocking PhoolishPhloyd at the US festival in the USA.
The Traveling Prayers at the Small Stadium in the Woods Near O'Reilly Forest by the Lake feat Billy Joel and the Beatles With the Who Plus DEVO and ABBA Mocking PhoolishPhloyd at the US Festival in the USA
To Be Done:
• Figure out how to make the configuration fields each be on a new line.
(Figure out how the Qt UI code stuff works)
self.titlecase_small_words = QtWidgets.QLineEdit(self.groupBox) self.titlecase_small_words.setObjectName('titlecase_small_words') self.horizontalLayout.addWidget(self.titlecase_small_words)
• Add in Exception for Artist Intent Titles, ‘The Beatles’, ‘The Who’, ‘Ludwig van Beethoven’, etc.
Things like this will have to do for now:
$replace(%title%,the Beatles,The Beatles)
Use the [Install Plugin] Option to load this one.