Hi, all! I'm relatively new to Python, but have definitely fallen in
love with it. It reminds me of Mesa (old Xerox development language) and
LISP a bit.
Anyway, on to the question. Now that Unicode 4.0 has been released (just
got my copy today), any guesses on how long before the unicodedata
module will be updated to include all the new names? How do things like
that work, anyway; is there somebody whose task it is to update that, or
are they awaiting volunteers to help out? And once the module is
updated, is it generally usable on earlier Python releases (I'm running
the 2.2 that came with the OS X developer package for Jaguar)?
Cheers!
Dave Opstad 1 1769
David Opstad <op****@batnet. com> writes: Anyway, on to the question. Now that Unicode 4.0 has been released (just got my copy today), any guesses on how long before the unicodedata module will be updated to include all the new names?
It might happen for Python 2.4, but by the time Python 2.4 is
released, the Unicode 4.0 database might get skipped, and Python might
incorporate Unicode 4.2 (or some such) instead.
The tricky part is that IDNA specifies Unicode 3.2 as the basis of
international domain names, so some technology must be found to
incorporate two versions of the database in Python, without adding too
much overhead.
How do things like that work, anyway; is there somebody whose task it is to update that, or are they awaiting volunteers to help out?
In general, it would be somebody's task (i.e. mine) to incorporate a
new version. However, since this is more than running the generator
again (as actual code changes have to go with it), contributions are
welcome.
And once the module is updated, is it generally usable on earlier Python releases (I'm running the 2.2 that came with the OS X developer package for Jaguar)?
If you want to backport that database yourself, you could just as well
create your own version of the Unicode 4.0 database. Just run the
generator, and rename the unicodedata module to unicodedata40 (inside
the module's source code). Python won't then use this database
internally (for .is*, and .upper, ...), but you could readily invoke
the unicodedata40 functions yourself.
Regards,
Martin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hallvard B Furuseth |
last post by:
Has someone got a Python routine or module which converts Unicode
strings to lowercase (or uppercase)?
What I actually need to do is to compare a number of strings in a
case-insensitive manner, so I assume it's simplest to convert to
lower/upper first.
Possibly all strings will be from the latin-1 character set, so I could
convert to 8-bit latin-1, map to lowercase, and convert back, but that
seems rather cumbersome.
|
by: Noixe |
last post by:
Hello,
I'm italian and i not speak a good english. My problem is this:
Why this istruction:
print u"\u00" + str(41)
generate an error and this:
|
by: Xah Lee |
last post by:
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
|
by: F. Petitjean |
last post by:
Python has a very good support of unicode, utf8, encodings ... But I
have some difficulties with the concepts and the vocabulary. The
documentation is not bad, but for example in reading
http://docs.python.org/lib/module-unicodedata.html
I had a long time to figure out what unicodedata.digit(unichr) would
mean, a simple example is badly lacking.
So I wrote the following script :
#!/usr/bin/env python
|
by: David Siroky |
last post by:
Hi!
I need to enlighten myself in Python unicode speed and implementation.
My platform is AMD Athlon@1300 (x86-32), Debian, Python 2.4.
First a simple example (and time results):
x = "a"*50000000
real 0m0.195s
| |
by: Klaus Alexander Seistrup |
last post by:
Hi group,
I just came across the following exception:
#v+
$ python
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
|
by: Nicolas Pontoizeau |
last post by:
Hi,
I am handling a mixed languages text file encoded in UTF-8. Theres is
mainly French, English and Asian languages. I need to detect every
asian characters in order to enclose it by a special tag for latex.
Does anybody know if there is a unicode "table of character"
implementation in python? I mean, I give a character and python replys
me with the language in which the character occurs.
Thanks in advance
|
by: M.-A. Lemburg |
last post by:
On 2008-07-01 20:31, Peter Bulychev wrote:
You could write a codec which translates Unicode into a ASCII
lookalike characters, but AFAIK there is no standard for doing
this.
I guess the best choice is to use the Unicode code point names
as basis. These can be accessed via unicodedata.name(). You can
then create a mapping which can be processed by the character
map codec.
|
by: Asterix |
last post by:
how could I test that those 2 strings are the same:
'séd' (repr is 's\\xc3\\xa9d')
u'séd' (repr is u's\\xe9d')
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |