GNOME Bugzilla – Bug 722254
Add tracker:normalize() and tracker:unaccent()
Last modified: 2014-01-21 11:20:10 UTC
Search in gnome-documents basically does: "fn:contains (fn:lower-case (nie:title (?urn), str2))" Given that all Unicode strings in the DB are not normalized, I would like to do: "fn:contains (tracker:case-fold (tracker:normalize (nie:title(?urn))), str2))" See: https://bugzilla.gnome.org/show_bug.cgi?id=722246
We would also need a tracker:unaccent() so that accented alphabets can be matched with unaccented ones when searching.
Created attachment 266381 [details] [review] Patch 1/3
Created attachment 266382 [details] [review] Patch 2/3
Created attachment 266383 [details] [review] Patch 3/3
Aleksander, thanks for the patches. They appear to work perfectly for me. I wrote patches for gnome-documents in bug 722246
Aleksander, outstanding work, please commit...
Comment on attachment 266382 [details] [review] Patch 2/3 Only comment here is that I would probably have put "Invalid normalization specified, options are 'nfc', 'nfd', 'nfkc' or 'nfkd'." So the person in error knows what they can use.
Comment on attachment 266382 [details] [review] Patch 2/3 updated the error string as suggested as well.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.