View Single Post
Old 11-05-2019, 03:56 AM   #3808
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Quote:
Originally Posted by JimmXinu View Post
How about a more generic 'call python's title()' solution as a personal.ini setting?

Something like a titlecase_entries setting that you could give a list of metadata entries to. I'd apply it before include/replace/exclude so you could address words like 'The' and 'A' in replace_metadata yourself if so inclined. (I have included something similar once before in the base_xenforo specific capitalize_forumtags setting which also does English contractions properly.)

Is this something anyone would use?

FYI, the plugin options for fixing title and author call Calibre routines specifically for that (from calibre.ebooks.metadata.sources.base fixcase and fixauthors). The 'small words' that aren't capitalized by those routines are hard-coded in Calibre. And the Calibre routines rely on enough other code that I judge it impractical to pull them into FFF.
Thanks for the explanation, and the consideration.

I'll look forward to see if you figure something out.

Thanks again for a great plugin.

Tanjamuse is offline   Reply With Quote