GNOME Bugzilla – Bug 338824
Make search ignore diacritical marks
Last modified: 2007-03-27 10:22:10 UTC
Whenever I filter my library on a term let's say "Alizee", Rhythmbox doesn't display the songs containing the "Alizée"-tag. It would be better if Rhythmbox didn't make any distinction between these irrelevant differences. Could this be changed?
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. Also, which version of rhythmbox is this? *** This bug has been marked as a duplicate of 139196 ***
Ah, I see. Sorry, but I didn't know what to look for. This was in version 0.8.8 (Gentoo x86)
Although this is included in the current description of bug 139196, I think it would be better to separate them. Ignoring diacritical marks is probably easier to do and less controversial. I'm re-titling bug 139196 to reflect the other bit, ignoring typos/different spelling/whatever. Does anyone know if there is a library (or algorithm) for stripping diacritical marks? If so, this should be trivial to do.
Created attachment 63845 [details] [review] patch This actually turns out to be fairly easy to do. The patch will need some testing to ensure it doesn't strip out too much, as in some languages the diacritical marks aren't irrelevent and they are different letters.
It works fine with Vietnamese. I highly appreciate this patch.
Side note, some characters doesn't work with this patch. Those (such as đ/d, ç/c) might be out of scope of this bug although I would rather those characters working too. As for some suspicuous languages, this patch should be an option instead of a hard-coded feature. I might need to search with diacritics sometimes. I'm thinking about enabling this feature only in searchbar with a checkbox beside, allowing people to search with diacritics or not. However, it seems hard to do with searchbar only.
*** Bug 400332 has been marked as a duplicate of this bug. ***
This should have been fixed by the patch from bug 421253 which I just committed to svn trunk.