Re: Re: [PATCH] Make mb_convert_case() conform to UnicodeSpec

From: Date: Sun, 10 Nov 2002 22:16:25 +0000
Subject: Re: Re: [PATCH] Make mb_convert_case() conform to UnicodeSpec
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-90742@lists.php.net to get a copy of this message
On Thu, Oct 24, 2002 at 05:31:44AM +0900, Moriyoshi Koizumi wrote: > Sure, I hope they'll also think about having string conversion functions. Yes, I think that's interesting. As Wez writes below, if you improve or add to this, or have ideas on how it should work, please also mail the author of ucdata, Mark Leisher <mleisher@crl.nmsu.edu>. A cc to me would also be nice, since I'm a bit involved in ucdata and am using it in openldap. Stig > > Moriyoshi > > Wez Furlong <wez@thebrainroom.com> wrote: > > > If you know what you're doing, go ahead. > > But, out of courtesy to the ucdata people who produced the basis of the > > code, please Cc: them any patches that they might find useful. > > (ucdata is used by the openldap project). > > > > --Wez. > > > > On Thu, 24 Oct 2002, Moriyoshi Koizumi wrote: > > > > > Hi, > > > > > > AFAIK, UCDATA itself only offers character conversion facilities, not > > > string conversion ones. Is it our job to discuss how to implement those > > > string conversion functions? If you think so, I'll commit it because > > > I might be one of those who know the right way to handle it. > > > > > > Moriyoshi > > > > > > > > > Wez Furlong <wez@thebrainroom.com> wrote: > > > > > > > Hi Moriyoshi, > > > > > > > > The code was taken from the ucdata package; I don't really know anything > > > > about the internals at this stage. > > > > It is probably best to talk to the ucdata guys - I don't have the URL to > > > > hand, but I'm sure you can find them using google. > > > > > > > > --Wez. > > > > > > > > On Thu, 24 Oct 2002, Moriyoshi Koizumi wrote: > > > > > > > > > Hello Wez, > > > > > > > > > > IMO the current behaviour of mb_convert_case() with MB_CASE_TITLE looks > > > > > a bit strange as per Unicode specification. > > > > > > > > > > --snip-- (cited from > > > > > http://www.unicode.org/unicode/reports/tr21/) > > > > > > > > > > S3. toTitlecase(X) > > > > > For each character C, find the preceding character B. > > > > > ignore any intervening case-ignorable characters when finding B. > > > > > If B exists, and is cased > > > > > map C to UCD_lower(C) > > > > > Otherwise, > > > > > map C to UCD_title(C) > > > > > > > > > > --snip-- > > > > > > > > > > The attached patch modifies the conversion routine so that it conforms to > > > > > the document referred above. > > > > > > > > > > I don't know what the expected result is, so I refrain from committing > > > > > it > > > > > immediately. Are there any problems with this? > > > > > > > > > > Moriyoshi > > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP Development Mailing List > > > > <http://www.php.net/> > > > > To unsubscribe, visit: > > > > http://www.php.net/unsub.php > > > > > > > > > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.dev (#90742) next »