|
There is no universal titlecase function that works on every string in every language as even in English the rules for what gets titlecased are not generally agreed upon under certain styles or grammar rules. And yes if something is in all caps, title case generally ignores it as allcaps indicates it may be an abbreviation, or acronyms.
If you want to handle all caps cases then in your own python function replace do two things with the first lowercasing the string, and the second titlecases it. But be careful for acronyms.
|