View Single Post
Old 11-18-2017, 03:59 PM   #17
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by AlanHK View Post
There isn't any other choice with those, except all caps.
Even with Proper Nouns it gets tough. You have names like Hernando de Soto (or "de la" is very common in Spanish). Or "van" + "von" + a whole host of other lowercase surnames. Or names with caps in the middle like McCormick.

Side Note: This capitalization issue also creeps up in how to alphabetize Indexes.

Quote:
Originally Posted by Doitsu View Post
There's an improved title case algorithm by John Gruber, which has been ported to JavaScript and Python.
Based on my preliminary tests, the results are better than the default Python title() function, but by no means perfect.
When I first got annoyed at this Title Casing problem, I actually tried to code up a little Python tool using that package. I put that project on hold though, because that package had many of the same problems mentioned above. :P

I may have to revisit it though and do more thorough testing.

Last edited by Tex2002ans; 11-18-2017 at 04:01 PM.
Tex2002ans is offline   Reply With Quote