On Oct 18, 2005, at 15:29, Eric van der Vlist wrote:
> Le mardi 18 octobre 2005 à 15:18 +0200, Robin Berjon a écrit :
>> I posted a while back asking for /i (can't find the pointer though)
>> and the answer I got was that it was difficult to specify in an I18N-
>> clean manner (case doesn't fold/unfold the same depending on the
>> language). It's true though I would have thought that the I18N WG
>> would know how to address that.
>>
>
> Sure, but a lot of users would be happy to get even a buggy support
> for
> that feature which could be modeled after what Perl does :-) ...
Yeah, but you'd never get a Rec out with that sort of limitation (NB
for those who don't know Perl, it does a best effort to handle case
issues and most people will never notice that it has limitations, but
it doesn't support Unicode locales and therefore will produce
sometimes wrong results for some operations on some characters). This
concerns real and widespread languages such as Turkish.
> But I also understand that what can be good enough for a programming
> language might not be good enough for a standard...
I guess we could force users to know what they're doing when they
request case insensitivity by making the flag an attribute with a
required list of applicable Unicode locales, eg case-
insensitive='azeri lithuanian'.
>> Also, adding /x would certainly help
>> a lot for complex regexen and it doesn't have the same problems as /
>> i. In the meantime I've been handling this by having the readable
>> pattern in a comment, and each time I edit it I copy it to the
>> pattern and remove the space.
>>
>
> Taking the risk to be called pedant and old fashioned, I'd confess
> that
> I am often using XML entities for this purpose.
I've done that as well (but then I'm old fashioned too ;) but it
mostly helps for repetitive patterns, not as much for those that are
just long and unreadable IMHO.
--
Robin Berjon
Senior Research Scientist
Expway, http://expway.com/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/rng-users/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/