Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58112

Re: sorting german characters äöü...

From Christian Heimes <christian@python.org>
Subject Re: sorting german characters äöü...
Date 2013-10-30 21:41 +0100
References <52715232.5020108@fam-goebel.de>
Newsgroups comp.lang.python
Message-ID <mailman.1842.1383165703.18130.python-list@python.org> (permalink)

Show all headers | View raw


Am 30.10.2013 19:38, schrieb Ulrich Goebel:
> Hello,
> 
> for a SQLite database I would like to prepare a collating function in
> python. It has to compare two (unicode-)strings s, t and should return
> -1 if s<t, 0 if s=t and 1 if s>t.
> 
> The strings are german names/words, and what I would like is to have a
> case-insensitive ordering, which treates

Do you know PyICU? PyICU provides an interface to ICU which offers more
elaborate features like locale-specific collation, normalization and
more. https://pypi.python.org/pypi/PyICU/1.5

Christian

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: sorting german characters äöü... Christian Heimes <christian@python.org> - 2013-10-30 21:41 +0100

csiph-web