[issue19819] reversing a Unicode ligature doesn't work

2013-11-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Unicode nosy: +ezio.melotti stage: needs patch -> committed/rejected ___ Python tracker ___

[issue19819] reversing a Unicode ligature doesn't work

2013-11-27 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the purpose of using reversed(). Don't use it to display a text backward. Handling bidirectional text requires more complex tools to display such text. See for example the pango library: https://developer.gnome.org/pango/stable/pango-Bidirect

[issue19819] reversing a Unicode ligature doesn't work

2013-11-27 Thread STINNER Victor
STINNER Victor added the comment: Python implements the Unicode standards. Except if Python failed to implement the standard correctly, the author should complain to the Unicode Consortium directly! http://www.unicode.org/contacts.html Example of data for the "ffl" character, U+FB04: FB04;LATIN

[issue19819] reversing a Unicode ligature doesn't work

2013-11-27 Thread Christian Heimes
Christian Heimes added the comment: A proper str.reverse function must deal with more extra cases. For example there are special rules for the Old German long s (ſ) and the round s (s). A round s may only occur at the end of a syllable. Hebrew has a special variant of several characters if the

[issue19819] reversing a Unicode ligature doesn't work

2013-11-27 Thread Christian Heimes
Christian Heimes added the comment: There is no ligature for "lff", just "ffl". Ligatures are treated as one char. I guess Python would have to grow a str.reverse() method to handle ligatures and combining chars correctly. At work I ran into the issue with ligatures and combining chars multipl

[issue19819] reversing a Unicode ligature doesn't work

2013-11-27 Thread Larry Hastings
New submission from Larry Hastings: Read this today: http://mortoray.com/2013/11/27/the-string-type-is-broken/ In it the author talks about how the 'ffl' ligature breaks some string processing. He claimed that Python 3 doesn't uppercase it correctly--well, it does. However I discovered that