Marko Mäkelä wrote:
On Tue, Feb 02, 2010 at 09:39:56AM +0000, Steve Hosgood wrote:
  
As a note primarily for Steve Ratcliffe(*): it might be an idea to  
include a boilerplate .SRT file in the .IMG files generated by mkgmap.  
If this is done it is possible that the .SRT file will get loaded to the  
GPS units and help clear up this sorting issue.
    

We might want to include several .SRT files, for different collations.
While you can collate A=Ä in English and German, Swedish uses the sorting
XYZÅÄÖ for instance. 

I suspect that a given .IMG file can only contain one .SRT file, but yes - if Steve Ratcliffe agreed to do it, I guess that a user could request a given collation sequence. Then again, should it just be tied to the codepage that is already specified on the command-line to 'mkgmap'.

Would a Swedish user want to use codepage 1252 like Western European users would?

It seems that the codepage number to be used with a given .SRT file appears inside that .SRT file. I would guess that the actual lookup tables in the .MDR file have to be created using the sort-rules taken from the matching .SRT file if any of this is going to work.

BTW - I just created a placeholder page on the Wiki to describe the .SRT file: http://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/SRT_Subfile_Format

Please contribute if you know anything more about that file format.
Steve