Re: Function for removing Accents?
- From: "Luc The Perverse" <sll_noSpamlicious_z_XXX_m@xxxxxxxxxx>
- Date: Tue, 16 May 2006 17:14:18 -0600
"Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4469c6fa$0$639$bed64819@xxxxxxxxxxxxxxxxxxxx
Luc The Perverse wrote:
Right now I have a crude hard coded method using a series of replaceAll's
for removing accents and converting them to their approximate non
accented
equivalents.
I doubt if that is either meaningful or possible in general. It is
certainly
not easy.
My wife does not know to push ALT 0 2 4 4 for an ñ, so she would have a hard
time searching for Piña Coladas if she wanted to hear that Garth Brooks'
song.
If you try it at all, and are not satisfied with a handful of hardwired
mappings, then you'll probably have to get deeply into Unicode. See:
http://www.unicode.org/reports/tr15/index.html
for one of the Unicode technical reports which discusses decomposition of
characters into base characters plus various kinds of diacritical marks.
You
could presumably filter out characters representing diacritical marks
leaving
the character which was qualified by the marks in place.
AH! I don't want to "learn" unicode. Especially after looking at that
link!
Perhaps I should have explained in more detail the scope of my question.
--
LTP
:)
.
- Follow-Ups:
- Re: Function for removing Accents?
- From: Chris Uppal
- Re: Function for removing Accents?
- References:
- Function for removing Accents?
- From: Luc The Perverse
- Re: Function for removing Accents?
- From: Chris Uppal
- Function for removing Accents?
- Prev by Date: Re: Function for removing Accents?
- Next by Date: Re: Function for removing Accents?
- Previous by thread: Re: Function for removing Accents?
- Next by thread: Re: Function for removing Accents?
- Index(es):
Relevant Pages
|
|