On 30.05.2008, at 17:32, Walter Dörwald wrote:
Hans-Joerg Bibiko wrote:
Dear all, there's a new bundle called "Unicode" in the review trunk. It is meant to be a place where we can gather any kind of scripts, commands, etc. which are related to general Unicode issue, meaning non-ASCII. This should also a place ...
One small note:
In the character name script you should probably call unicodedata.name() with a second argument in case the character has no name, i.e. replace
res = a + " : " + unicodedata.name(a)
with
res = a + " : " + unicodedata.name(a, "U+%04X" % ord(a))
Thanks for the hint! These are more or less the first scripts which I wrote in python ;) Caused by the issue that python has installed some Unicode data per default.
Furthermore it would be great if this script could display all information there is in the Python Unicode database, i.e. stuff like
unicodedata.category() unicodedata.bidrectional() unicodedata.decimal()
Yes. I have such a script in Perl which also shows up info about Unicode code points etc.
Servus,
--Hans