Martin v. Löwis <mar...@v.loewis.de> added the comment:

> Can you think of any solution to this conflict? 

I don't quite understand why you want to place É, È, Ë, Ê all along
with E, yet Å,Ä,Ö after Z. Because that's what the Swedish alphabet
says?

Please understand that collation varies across languages. For example
in German, we also have Ä, but it does *not* come after Z. Instead,
there are two ways to collate Ä (telephone book vs. dictionary):
1. Ä sorts exactly like A
2. Ä sorts as if it was transcribed as Ae

So there is no one true collation of Ä, but you have to take into
account what language rules you want to follow.

If you want to implement Swedish rules, why then do you also want
to support É, È, Ë, Ê? Do you have these letters in Swedish at all?

If you want to use obscure collation rules, you might have to
implement the collation algorithm yourself. For example, assign
each letter a unique number (different from the Unicode ordinal),
and then sort by these numbers.

Take a look at ICU, which already includes collation algorithms
for many locales.

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5200>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to