Am Freitag, den 09.12.2005, 08:58 -0500 schrieb Jim Fulton:
> When presenting users with ordered text (e.g. sorted lists of options),
> simply sorting Unicode strings doesn't provide an ordering that
> users in a given locale will find useful.  Various languages have
> text sorting conventions that don't agree with the ordering of
> Unicode code points. (This is even true for English.  Generally,
> users prefer to see text sorted without regard to case.)
> A proposal to address this problem is here:
>    http://dev.zope.org/Zope3/LocaleSpecificTextCollation
> Comments are welcome.

I wondered whether the method "key" will always be computable, but
discussing that with zagy I found out that doing __cmp__ requires one to
be able to normalize the string for a different comparison anyway, so
they key method would be the one doing that.

Eventually you might want to mention that the key() method would be
useful to implement as basis for __cmp__ anyway as it does the
normalization work, so __cmp__ should in any case be possible to derive
from key() ...

So, from me as well: +1


gocept gmbh & co. kg - schalaunische str. 6 - 06366 koethen - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 3496 30 99 112 -
fax +49 3496 30 99 118 - zope and plone consulting and development

Attachment: signature.asc
Description: This is a digitally signed message part

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to