[issue12737] str.title() is overzealous by upcasing combining marks inappropriately
Martin v. Löwis
report at bugs.python.org
Sat Oct 1 12:59:48 CEST 2011
Martin v. Löwis <martin at v.loewis.de> added the comment:
> * Word characters are Alphabetic + Mn+Mc+Me + Nd + Pc.
Where did you get that definition from? UTS#18 defines
"<word_character>", which is Alphabetic + U+200C + U+200D
(i.e. not including marks, but including those
> I think you are looking for here are Word characters without
> Nd + Pc, so just Alphabetic + Mn+Mc+Me.
>
> Is that right?
With your definition of "Word character" above, yes, that's right.
Marks won't start a word, though.
As for terminology: I think the documentation should continue to
speak about "words" and "letters", and then define what is meant
in this context. It's not that the Unicode consortium invented
the term "letter", so we should use it more liberally than just
referring to the L* categories.
----------
title: str.title() is overzealous by upcasing combining marks inappropriately -> str.title() is overzealous by upcasing combining marks inappropriately
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12737>
_______________________________________
More information about the Python-bugs-list
mailing list