Address search problems with CP1250

Hi, I observe following problems when using CP1250 in mkgmap options: - Address search in nuvi requires upper case characters input. If keyword contains lower case characters, no results are found. - If I use option "lower-case" in mkgmap, address search doesn't work in Mapsource. Mapsource accept only single character as an input in search form, subsequent characters are deleted. This could be mismatch in lower-upper case too. If I use CP1252 all works correctly. Note: CP1252 is hard-coded in TDB, but probably it doesn't matter. -- Best regards, Andrzej

On 24/07/13 02:26, Andrzej Popowski wrote:
I observe following problems when using CP1250 in mkgmap options: - Address search in nuvi requires upper case characters input. If keyword contains lower case characters, no results are found.
OK I can see why that probably happens. The default sort order is useless since it does not sort 'a' and 'A' together. For the question of cp1250 there is no sort definition in resources/sort. I have attached a possible file based on http://collation-charts.org/vista/vista.0415.CP1250.Polish_Poland.html but I would appreciate someone who is more familiar with the languages to have a look at it. ..Steve

Hi Steve, are there more sort-orders are missing? So maybe we should ask at talk-mailinglist or at least create a wiki-page for that. I would write such a mail, but don't know which parts are missing. Henning

Hi, thanks for working at the problem. Your character table is damaged in CP1252. Still I can see that you have missed ASCII 'S';) I would expect that accented characters are treated like basic ones. This is how it works in Garmin maps. I can write "Kraków" or "Krakow" and get the same search results. See for example at accented 'Z', probably they should be in the same row as ASCII 'Z'. -- Best regards, Andrzej

Hi Andrze, I think you have the knowledge to change the provided list. Eg. doing this directly in the repository or sending a working file to this list ;) Henning

Am 26.07.2013 22:41, schrieb Andrzej Popowski:
Hi Henning,
I think you have the knowledge to change the provided list.
Unfortunately not. I can understand some parts of mkgmap code, but I don't know it enough to modify. And I have never programmed in java.
Its just a simple txt-file ;) https://github.com/openstreetmap/mkgmap/blob/master/resources/sort/cp1252.tx... Henning

Hi
and get the same search results. See for example at accented 'Z', probably they should be in the same row as ASCII 'Z'.
Thanks. I have committed an initial version of the file with all 'z' together and added the unaccented 's' and 'S' and a few other changes to include more characters. ..Steve

I think this code from cgpsmapper could be helpful: http://sourceforge.net/p/cgpsmapper/code/14/tree/cgpsmapper/cpreview/compare... -- Best regards, Andrzej
participants (3)
-
Andrzej Popowski
-
Henning Scholland
-
Steve Ratcliffe