Message144683
> Martin, do you think that str.title() should follow the Unicode standard?
I don't think that "follow the Unicode standard" has any meaning in this
context: the Unicode standard doesn't specify (AFAIK) what a .title()
method in a programming language should do.
> Should string methods work with all the normalizations or just with NFC?
When we know what .title() should do, it should do so correctly for all
strings. I try to propose a definition for .title()
"Split S into words. Change the first letter in a word to upper-case,
and all subsequent letters to lower case. A word is a sequence that
starts with a letter, followed by letter-related characters."
Letters are all characters from the "Alphabetic" category, i.e.
Lu+Ll+Lt+Lm+Lo+Nl + Other_Alphabetic.
"letter-related" characters are letters + marks (Mn, Mc, Me). |
|
Date |
User |
Action |
Args |
2011-09-30 10:36:39 | loewis | set | recipients:
+ loewis, gvanrossum, terry.reedy, vstinner, ezio.melotti, Arfrever, tchrist |
2011-09-30 10:36:38 | loewis | link | issue12737 messages |
2011-09-30 10:36:38 | loewis | create | |
|