Fw: Re: Quick tutorial on using the unicodedata module?
pbouige at free.fr
Wed Jan 1 21:59:32 CET 2003
Christos "TZOTZIOY" Georgiou wrote:
> On 01 Jan 2003 08:00:37 +0100, rumours say that martin at v.loewis.de
> (Martin v. Löwis) might have written:
> >downloading the Unicode database, and searching for a characters with
> >grep(1) is much more appropriate.
> Would this help at all?
> import unicodedata, sys
> unicode_names= 
> for ix in range(sys.maxunicode+1):
> unicode_names.append( (ix, unicodedata.name(unichr(ix))) )
> except ValueError: # no name for the character
> This is to be used for a grep-like function... therefore a list of
> tuples (indexing the list is not meaningful).
> Happy new year to everyone following AD time notation :)
More information about the Python-list