[Zope-dev] 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
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] 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
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2005-12-09 Thread Tino Wildenhain

Stephan Richter schrieb:

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.


AOL! err. I mean:

+1

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

http://mail.zope.org/mailman/listinfo/zope )