Search street is case sensitive in Russian #2758
Comments
Author: Dmitriy.Ovdienko[at]gmail.com "6, , " does not work. |
Author: Dmitriy.Ovdienko[at]gmail.com 4 years old bug... I was sure it is fixed. I believe it is core component and search should be tolerant to user typos as much as possible. |
Author: saintam1 It seems to revolve specifically around the handling of the letter (the cyrillic "G"). It looks like Nominatim does not know that "" (unicode 0x0433) is lowercase for "" (0x0413). Searching for William Gladstone St. in Sofia ([[http://www.openstreetmap.org/way/230377106|way 230377106]]), all of these variations work correctly:
Note that the above use a mixture of upper and lower case, but they all have an uppercase "". If you take any of them, however, and simply replace the uppercase "" with a lowercase "", they all fail:
I searched through https://github.com/twain47/Nominatim and couldn't find at a cursory glance where the casing is handled. Is there somewhere a manually defined, hardcoded list of upper/lower character mappings, that perhaps has a typo in it? |
Author: saintam1 FWIW I had a look at [[https://github.com/twain47/Nominatim/blob/master/module/utfasciitable.h|utfasciitable.h]], and it looks OK to me. If I understand correctly how it works (look up the unicode codepoint in UTFASCIILOOKUP, and use the value there as an index in UTFASCII), all cyrillic characters in the 0x410-0x044F range, which includes both upper and lower case, map to lowercase ASCII transliterations. So there's no anomaly around the "" character here, both "" and "" map to "g". |
Author: Dmitriy.Ovdienko[at]gmail.com I guess mapping of the "" and "" is wrong. |
Author: Dmitriy.Ovdienko[at]gmail.com Fixed i->I transition. See attached v2 file. |
Author: lonvia Fixed by osm-search/Nominatim#219 |
Author: Dmitriy.Ovdienko[at]gmail.com Next step is to make search more typo friendly (like google) :) |
Reporter: Dmitriy.Ovdienko[at]gmail.com
[Submitted to the original trac issue database at 6.12am, Monday, 1st March 2010]
Try search "" and "". It is street in Kyiv. Full name is " ."
The text was updated successfully, but these errors were encountered: