View Single Post
Old 01-12-2026, 07:32 AM   #15
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,436
Karma: 6733960
Join Date: Nov 2009
Device: many
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.
KevinH is offline   Reply With Quote