logo separator

[mkgmap-dev] Index with Arabic names

From Steve Ratcliffe steve at parabola.me.uk on Sat Jun 18 11:03:05 BST 2011

Hi Hosam

I have now made a lot of progress and have something that works as far 
as I can tell.

I can now hit space, select one of the displayed names and it is found.

There are two patches attached.

The first is the main problem I think. Previously there were two
equal and opposite errors when reading the labels out of the .img
files and then writing to the index. This was deliberate and works
as far as getting the correct characters. However it meant that the
labels were completly mis-sorted and sorting is essential for
searching.

The second patch includes a sort table for cp1256 and implements
the character expansion feature in the SRT compiler, this is where
a character like æ can be made to sort as if it were the two separate
characters "ae". Previously the feature was hardwired in as I didn't
know how it worked, and it may therefore have been causing problems.

..Steve

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lbl_read_codepage.patch
Type: text/x-patch
Size: 6478 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110618/c770e93b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: srt_expansion_table.patch
Type: text/x-patch
Size: 29827 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110618/c770e93b/attachment-0001.bin 


More information about the mkgmap-dev mailing list