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
2009/6/1 Sebastian Sastre ssastre@seaswork.com:
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
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: squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] 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 ssastre@seaswork.com:
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
2009/6/1 Sebastian Sastre ssastre@seaswork.com:
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
http://www.squeaksource.com/DiacriticSupport.html
2009/6/1 Sebastian Sastre ssastre@seaswork.com
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
great. Maybe not completely universal but for now this is wonderful. It covers my current need. thanks one more time Hernan, sebastian
_____
De: squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] 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 ssastre@seaswork.com
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
squeak-dev@lists.squeakfoundation.org