Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81469
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-11-24 11:24 -0800 |
| References | (2 earlier) <mailman.16008.1416472839.18130.python-list@python.org> <m4kaqg$p62$1@dont-email.me> <mailman.16082.1416544509.18130.python-list@python.org> <b13f018a-46de-4312-9dd5-84ff902bb5dd@googlegroups.com> <m4qogc$cer$1@dont-email.me> |
| Message-ID | <a338e626-3d7e-4707-b2ce-7bfd3ac59596@googlegroups.com> (permalink) |
| Subject | Re: GUI toolkit(s) status |
| From | wxjmfauth@gmail.com |
Le samedi 22 novembre 2014 20:35:01 UTC+1, Christian Gollwitzer a écrit :
> Am 22.11.14 19:33, schrieb wxjmfauth@gmail.com:
> > As you are rewriting unicode, a small suggestion/request.
> >
> > Assume that one processes a part of the Bible in polytonic
> > Greek, one has to create a ton of temporary (locale) letters,
>
> <°)))o>< αὐτὸν τὸν ἰχθύα
>
> ὁ Χριστιανὸς ἔγραψε τρόλλοι
Nice,
>>> import unicodedata as ud
>>> for c in ud.normalize('NFKD', s):
... 'U+{:#04} {}'.format(ord(c), ud.name(c))
...
'U+0959 GREEK SMALL LETTER OMICRON'
'U+0788 COMBINING REVERSED COMMA ABOVE'
'U+0032 SPACE'
'U+0935 GREEK CAPITAL LETTER CHI'
'U+0961 GREEK SMALL LETTER RHO'
'U+0953 GREEK SMALL LETTER IOTA'
'U+0963 GREEK SMALL LETTER SIGMA'
'U+0964 GREEK SMALL LETTER TAU'
'U+0953 GREEK SMALL LETTER IOTA'
'U+0945 GREEK SMALL LETTER ALPHA'
'U+0957 GREEK SMALL LETTER NU'
'U+0959 GREEK SMALL LETTER OMICRON'
'U+0768 COMBINING GRAVE ACCENT'
'U+0962 GREEK SMALL LETTER FINAL SIGMA'
'U+0032 SPACE'
'U+0949 GREEK SMALL LETTER EPSILON'
'U+0787 COMBINING COMMA ABOVE'
'U+0769 COMBINING ACUTE ACCENT'
'U+0947 GREEK SMALL LETTER GAMMA'
'U+0961 GREEK SMALL LETTER RHO'
'U+0945 GREEK SMALL LETTER ALPHA'
'U+0968 GREEK SMALL LETTER PSI'
'U+0949 GREEK SMALL LETTER EPSILON'
'U+0032 SPACE'
'U+0964 GREEK SMALL LETTER TAU'
'U+0961 GREEK SMALL LETTER RHO'
'U+0959 GREEK SMALL LETTER OMICRON'
'U+0769 COMBINING ACUTE ACCENT'
'U+0955 GREEK SMALL LETTER LAMDA'
'U+0955 GREEK SMALL LETTER LAMDA'
'U+0959 GREEK SMALL LETTER OMICRON'
'U+0953 GREEK SMALL LETTER IOTA'
>>>
but it is however not explaining why
serious tools does not have to waste time in
encoding to save memory.
>>> sys.getsizeof(s)
84
>>> sys.getsizeof(s.encode('utf-16-le'))
71
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-19 23:59 -0800
Re: GUI toolkit(s) status Paul Rubin <no.email@nospam.invalid> - 2014-11-20 00:25 -0800
Re: GUI toolkit(s) status Chris Angelico <rosuav@gmail.com> - 2014-11-20 19:40 +1100
Re: GUI toolkit(s) status Christian Gollwitzer <auriocus@gmx.de> - 2014-11-20 10:04 +0100
Re: GUI toolkit(s) status Chris Angelico <rosuav@gmail.com> - 2014-11-20 20:17 +1100
Re: GUI toolkit(s) status Terry Reedy <tjreedy@udel.edu> - 2014-11-20 23:34 -0500
Re: GUI toolkit(s) status Paul Rubin <no.email@nospam.invalid> - 2014-11-20 20:49 -0800
Re: GUI toolkit(s) status Christian Gollwitzer <auriocus@gmx.de> - 2014-11-21 08:57 +0100
Re: GUI toolkit(s) status Kevin Walzer <kw@codebykevin.com> - 2014-11-21 09:13 -0500
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 00:59 -0800
Re: GUI toolkit(s) status Kevin Walzer <kw@codebykevin.com> - 2014-11-22 12:40 -0500
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 10:49 -0800
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-21 12:38 -0800
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-21 12:49 -0800
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 10:33 -0800
Re: GUI toolkit(s) status Christian Gollwitzer <auriocus@gmx.de> - 2014-11-22 20:34 +0100
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-24 11:24 -0800
Re: GUI toolkit(s) status Kevin Walzer <kw@codebykevin.com> - 2014-11-21 09:05 -0500
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-21 12:15 -0800
Re: GUI toolkit(s) status Michael Torrie <torriem@gmail.com> - 2014-11-21 21:07 -0700
Re: GUI toolkit(s) status Dave Cook <davecook@nowhere.net> - 2014-11-26 09:40 +0000
Re: GUI toolkit(s) status Mark Summerfield <list@qtrac.plus.com> - 2014-11-26 03:47 -0800
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-26 06:36 -0800
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-26 07:11 -0800
Re: GUI toolkit(s) status Michael Torrie <torriem@gmail.com> - 2014-11-26 20:19 -0700
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 00:12 -0800
Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 02:46 -0800
Re: GUI toolkit(s) status Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-24 08:18 -0700
csiph-web