logo separator

[mkgmap-dev] Index with Arabic names

From Steve Ratcliffe steve at parabola.me.uk on Mon Jun 6 21:28:26 BST 2011

Hi

> For example, the Arabic name of Damascus International Airport is:
> مطار دمشق الدولي
> but it is written in the file osmmap_mdr.img as:
> أطار دأشق اءدئءح
>

Yes, you are right, thanks for reporting it.

When names are read out of the .img file, the code page is ignored.
I'm in the middle of making changes to the character set code so I've
attached a new version of the patch which includes a fix.

If you just want to try the fix separately The relevant part of the 
patch is:

@@ -89,6 +100,7 @@
  			funcs.setEncoder(new Simple8Encoder());
  		} else {
  			funcs.setEncodingType(ENCODING_FORMAT9);
+			funcs.setDecoder(new AnyCharsetDecoder(charset));
  			funcs.setEncoder(new AnyCharsetEncoder(charset));
  			guessCodepage(funcs, charset);
  		}

The patch, is the second version of the previous translit_first patch
(which was for problems first noted in Greek names).

There is still the problem that the names will not be sorted quite 
correctly, although they should still be findable, as they will be 
sorted consistently.

..Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: translit_first2.patch
Type: text/x-patch
Size: 12737 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110606/52bfe5f2/attachment.bin 


More information about the mkgmap-dev mailing list