Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Strange Unicode normalization question

by mje (Curate)
on Aug 16, 2018 at 13:35 UTC ( #1220449=note: print w/replies, xml ) Need Help??

in reply to Re: Strange Unicode normalization question
in thread Strange Unicode normalization question

Thank you. I had not understood what is happening and I think I do now. The NFKD is separating the í into 2 characters and the substitution is removing the 2nd one (the NonspacingMark) leaving an i (similarly for other 2). So "Lubomír,Bartoňová" becomes "Lubomir,Bartonova". Unless this is done there is no match for the combination of strings which include this name (BTW, the name is fictitious - I should have mentioned that). I am at a loss as to why we need to do this via this API which from a UK government organisation but there is no documentation saying this must be done.

  • Comment on Re^2: Strange Unicode normalization question

Replies are listed 'Best First'.
Re^3: Strange Unicode normalization question
by Your Mother (Archbishop) on Aug 16, 2018 at 13:46 UTC

    I have no clue what the most stable/robust answer is here but I thought this belonged in the footnotes of the thread: Text::Unidecode. I have used it for normalizing search indexes such that a user typing Francois finds François; maybe similar to your use case.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1220449]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2021-04-11 03:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found