Hi,
> to justify the change. We could add some heuristics, such as "if
> everything is uppercase, then apply lowercase first, otherwise honor

Jep, that is also what my code did.

> I don't know if Python supports Unicode categories in its Regular
> Expression. Maybe you should try that (e.g. \P{L}) instead of \W, since
> \W is only defined over the ASCII range, as you found out.

Python is supposed to make \w and \W locale dependent (with unicode
support) when the re.LOCALE and re.UNICODE flags are given. I couldn't
get it to work any different than without the flags, though.
I didn't get \P{L} to do anyhing in python eihter.

best regards,
Erich Schubert
-- 
   erich@(vitavonni.de|debian.org)    --    GPG Key ID: 4B3A135C    (o_
     Which is worse: ignorance or apathy? Who knows? Who cares?     //\
           Es ist besser, geliebt und verloren zu haben,            V_/_
                   als niemals geliebt zu haben.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to