[squeak-dev] a diacritics free version of a string

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] a diacritics free version of a string

Sebastian Sastre-2
Hi there,
I have a string that will eventually contain diacritics and, at some point, I
need to work with a diacritics free version of that string.
Anybody knows what can I use in squeak for that?
thanks
sebastian


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] a diacritics free version of a string

Philippe Marschall
2009/6/1 Sebastian Sastre <[hidden email]>:
> Hi there,
> I have a string that will eventually contain diacritics and, at some point, I
> need to work with a diacritics free version of that string.
> Anybody knows what can I use in squeak for that?

AFAIK you can't do it in Squeak. At least not if you want full unicode.

Cheers
Philippe

Reply | Threaded
Open this post in threaded view
|

RE: [squeak-dev] a diacritics free version of a string

Sebastian Sastre-2
ah, thanks for the info.
And, in case it can be enough for the moment, what would be the poor's man version of this goal?
sebastian

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En
> nombre de Philippe Marschall
> Enviado el: Monday, June 01, 2009 14:26
> Para: The general-purpose Squeak developers list
> Asunto: Re: [squeak-dev] a diacritics free version of a string
>
> 2009/6/1 Sebastian Sastre <[hidden email]>:
> > Hi there,
> > I have a string that will eventually contain diacritics
> and, at some point, I
> > need to work with a diacritics free version of that string.
> > Anybody knows what can I use in squeak for that?
>
> AFAIK you can't do it in Squeak. At least not if you want
> full unicode.
>
> Cheers
> Philippe
>


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] a diacritics free version of a string

Philippe Marschall
2009/6/1 Sebastian Sastre <[hidden email]>:
> ah, thanks for the info.
> And, in case it can be enough for the moment, what would be the poor's man version of this goal?

Build the map of characters with diacritics to ones without "by hand".

The Unicode solution would be to do normalization with full
decomposition and then a regex on \p{InCombiningDiacriticalMarks} and
replace it with an empty string or something similar.

Cheers
Philippe

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] a diacritics free version of a string

hernanmd
In reply to this post by Sebastian Sastre-2
http://www.squeaksource.com/DiacriticSupport.html

2009/6/1 Sebastian Sastre <[hidden email]>
Hi there,
I have a string that will eventually contain diacritics and, at some point, I
need to work with a diacritics free version of that string.
Anybody knows what can I use in squeak for that?
thanks
sebastian





Reply | Threaded
Open this post in threaded view
|

RE: [squeak-dev] a diacritics free version of a string

Sebastian Sastre-2

great. Maybe not completely universal but for now this is wonderful. It covers my current need.
thanks one more time Hernan,
sebastian


De: [hidden email] [mailto:[hidden email]] En nombre de Hernán Morales Durand
Enviado el: Monday, June 01, 2009 17:18
Para: The general-purpose Squeak developers list
Asunto: Re: [squeak-dev] a diacritics free version of a string

http://www.squeaksource.com/DiacriticSupport.html

2009/6/1 Sebastian Sastre <[hidden email]>
Hi there,
I have a string that will eventually contain diacritics and, at some point, I
need to work with a diacritics free version of that string.
Anybody knows what can I use in squeak for that?
thanks
sebastian