Displaying 2 results from an estimated 2 matches for "g_str_to_ascii".
2018 Jul 25
2
Search requests should ignore accents (C++ API)?
Hi,
I am using libxapian in a C++ project (hence I am using Xapian's C++ API)
and some user has requested that search requests should ignore accents.
E.g. when the user searches for "Herr Müller" he expects that "Herr Muller"
is also a search hit.
Is this possible in Xapian?
Do you have any links to the documentation of that feature?
Thanks for your help,
Kim
2018 Jul 25
0
Search requests should ignore accents (C++ API)?
...to the documentation of that feature?
People often use https://www.nongnu.org/unac/ for this, though it
doesn't look like it's very actively maintained (or else there's a
new home page for it I couldn't trivially find). That seems to
just drop the umlaut though.
There's also g_str_to_ascii () in glib:
https://developer.gnome.org/glib/stable/glib-String-Utility-Functions.html#g-str-to-ascii
That seems to be a bit too heavy a hammer for normalising text for
search though as you really don't want pure ASCII out in every case
(particularly for languages which don't use the Lati...