Add stripAccents to KStringHandler

Thiago Macieira thiago at kde.org
Thu Oct 18 16:17:30 BST 2007


Em Thursday 18 October 2007 14:34:20 Josef Spillner escreveu:
> On Thursday 18 October 2007 14:08:51 Thiago Macieira wrote:
> > In the specific case of Parley, "getting the accents wrong" isn't enough.
> > You have to match other language specificities: for instance, in German,
> > ö is the same as "oe" and ß is the same as "ss" (but not in all cases,
> > AFAIU), but ß isn't the same as β (Greek Beta).
>
> I also think that a more generic mechanism, like stringprep profiles, are
> better than "removing accents" for string matching purposes.
> Other people already care about locale-aware semantic matching, we should
> care about giving it a nice API (to free people from the madness of ICU
> etc.) instead of wasting our manpower to reinvent mapping mechanisms.

Stringprep does make sense.

Qt implements the IDNA stringprep only (a.k.a. nameprep RFC 3491).

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071018/620938de/attachment.sig>


More information about the kde-core-devel mailing list