Re: [perl-python] unicode study with unicodedata module

2005-03-16 Thread Xah Lee
Fuck google incorporated for editing my subject name without permission. and fuck google incorporated for editing my message content without permission. http://xahlee.org/UnixResource_dir/writ/responsible_license.html Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://

Re: unicode study with unicodedata module

2005-03-16 Thread Xah Lee
here's a snippet of code that prints a range of unicode chars, along with their ordinal in hex, and name. chars without a name are skipped. (some of such are undefined code points.) On Microsoft Windows the encoding might need to be changed to utf-16. Change the range to see different unicode ch

Re: [perl-python] unicode study with unicodedata module

2005-03-15 Thread Brian McCauley
Xah Lee wrote: i don't know what's the state of Perl's unicode. perldoc perlunicode -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode study with unicodedata module

2005-03-15 Thread TZOTZIOY
On 15 Mar 2005 04:55:17 -0800, rumours say that "Xah Lee" <[EMAIL PROTECTED]> might have written: >how do i get a unicode's number? > >e.g. 03ba for greek lowercase kappa? (or in decimal form) you get the character with: .>> uc = u"\N{GREEK SMALL LETTER KAPPA}" or with .>> uc = unicodedata.lo

Re: unicode study with unicodedata module

2005-03-15 Thread Xah Lee
how do i get a unicode's number? e.g. 03ba for greek lowercase kappa? (or in decimal form) Xah Xah Lee wrote: > python has this nice unicodedata module that deals with unicode nicely. > > #-*- coding: utf-8 -*- > # python > > from unicodedata import * > > # each unicode char has a unique name.

[perl-python] unicode study with unicodedata module

2005-03-15 Thread Xah Lee
python has this nice unicodedata module that deals with unicode nicely. #-*- coding: utf-8 -*- # python from unicodedata import * # each unicode char has a unique name. # one can use the âlookupâ func to find it mychar=lookup('greek cApital letter sIgma') # note letter case doesn't matter print