Re: [Zope3-dev] RFC: Locale-specific Text Collation

2005-12-12 Thread Christian Theune
Hi,

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

Christian

-- 
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


signature.asc
Description: This is a digitally signed message part
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] RFC: Locale-specific Text Collation

2005-12-09 Thread Dmitry Vasiliev

Jim Fulton wrote:

A proposal to address this problem is here:

  http://dev.zope.org/Zope3/LocaleSpecificTextCollation

Comments are welcome.


+1

--
Dmitry Vasiliev (dima at hlabs.spb.ru)
http://hlabs.spb.ru
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] RFC: Locale-specific Text Collation

2005-12-09 Thread Stephan Richter
On Friday 09 December 2005 08:58, Jim Fulton wrote:
> A proposal to address this problem is here:
>
>    http://dev.zope.org/Zope3/LocaleSpecificTextCollation
>
> Comments are welcome.

+1 as said on IRC.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com