[Gambas-user] An utility component for Gambas, Accented characters

Benoît Minisini gambas at ...1...
Tue Dec 2 20:26:03 CET 2014


Le 02/12/2014 20:06, Lewis Balentine a écrit :
> I believe that these may be the characters of interest:
> Private Const AccentInFilter As String =
> "ÀÁÂÃÄÅĀĂĄăāąàáâãäåÇĆĊĈČćĉċčçĎĐďđĒÈÉÊËĔĖĘĚẼẽēĕėęěèéêëĜĞĠĢĝğġģĤĦħĥÌÍÎÏĨĪĬĮİĩīĭįıìíîïĴĵĶķĸĹĺĻĽŁļľĿŀłÑŃŅŇńņňʼnñŊŋÒÓÔÕÖŌŎŐØōŏőòóôõöðøŔŖŘŕŗřŚŜŞŠşŝśšŢŤŦţťŧÙÚÛÜŨŪŬŮŰŲũūŭůűųùúûüŴŵŶŸÝŷýÿŹŻŽżźž"
> Private Const AccentOutFilter As String =
> "AAAAAAAAAaaaaaaaaaCCCCCcccccDDddEEEEEEEEEEdeeeeeeeeeGGGGggggHHhhIIIIIIIIIiiiiiiiiiJjKkkLlllllllllNNNNnnnnnnnOOOOOOOOOooooooooooRRRrrrSSSSssssTTTtttUUUUUUUUUUuuuuuuuuuuWwYYYyyyZZZzzz"
> Each string is 181 characters in length.
>

String.RemoveDiacritics() has already been implemented in gb.util. I 
don't think I have forgotten any characters with diacritics, but it 
should be checked with more eyes.

But diacritics are only removed, not transformed. That would depend on 
the language (for exemple, ö -> o whereas german wants ö -> oe)

Regards,

-- 
Benoît Minisini




More information about the User mailing list