Commit: r2704: Fix for 'mdr20 value changed' message.

Version 2704 was committed by steve on Sun, 15 Sep 2013 Fix for 'mdr20 value changed' message. Space was being treated as a non-character so any names that differed only by a space would be treated the same during sorting although not during separation into different streets while building the index. This would be very unlikely to cause problem in normal circumstances, but when you have another country with names that cannot be represented in 1250 then all the names turn into sequences of question marks. In that case is likely eventually that you will get something like '??? ??' and '?? ???' followed by '??? ??' again, which sort the same but are seen as different separating the streets while building the index. The second '??? ??' causes a problem because it has already been dealt with.

Hi,
In that case is likely eventually that you will get something like '??? ??' and '?? ???' followed by '??? ??' again
Well, yes, we get a map with all names like this. You can imagine how silly it looks like. I have asked once without success, maybe this is better opportunity to request again. Could we have a proper transliteration in CP1250? Or could we have at least a function in style, that will allow to transliterate any text to ASCII? -- Best regards, Andrzej

On 16/09/13 00:19, Andrzej Popowski wrote:
Well, yes, we get a map with all names like this. You can imagine how silly it looks like. I have asked once without success, maybe this is better opportunity to request again.
Could we have a proper transliteration in CP1250?
Attached patch is first attempt at this. Any character that cannot be represented in the target character set will be transliterated to ascii. ..Steve

Hi, thanks for patch. This was my first attempt to compile mkgmap or java program, there could be errors on my part. Program created all but one tiles of Poland with transliterated foreign names. Here is crash report: java.nio.BufferOverflowException at java.nio.Buffer.nextPutIndex(Unknown Source) at java.nio.HeapByteBuffer.put(Unknown Source) at uk.me.parabola.imgfmt.app.labelenc.AnyCharsetEncoder.encodeText(AnyCharsetEncoder.java:78) at uk.me.parabola.imgfmt.app.Label.write(Label.java:111) at uk.me.parabola.imgfmt.app.lbl.LBLFile.newLabel(LBLFile.java:130) at uk.me.parabola.imgfmt.app.lbl.PlacesFile.createPOI(PlacesFile.java:277) at uk.me.parabola.imgfmt.app.lbl.LBLFile.createPOI(LBLFile.java:137) at uk.me.parabola.mkgmap.build.MapBuilder.processPOIs(MapBuilder.java:480) at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:211) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:120) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:69) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:243) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:239) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) -- Best regards, Andrzej

Hi
thanks for patch. This was my first attempt to compile mkgmap or java program, there could be errors on my part. Program created all but one tiles of Poland with transliterated foreign names. Here is crash report:
java.nio.BufferOverflowException at java.nio.Buffer.nextPutIndex(Unknown Source) at java.nio.HeapByteBuffer.put(Unknown Source)
Thanks, I have created a branch (transliterate) and put in a temporary fix for that. You you can download a ready built jar file from the bottom of the download page. There will probably be a few bugs to sort out. ..Steve
participants (3)
-
Andrzej Popowski
-
Steve Ratcliffe
-
svn commit