For some patches to the device (mainly) version of the
address index.


git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2282 25d90789-57f7-4ee0-8453-03a3dfeeeb22
In mdr 10 the repeat flag is set when the name and the subdiv are the same.
Previously just checked the name.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2283 25d90789-57f7-4ee0-8453-03a3dfeeeb22
The mdr19 entries were not sorted correctly by type.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2284 25d90789-57f7-4ee0-8453-03a3dfeeeb22
gmapsupp img files appear to have the byte at 0xe set to 1.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2285 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Obtain the code page and sort-order from an input file so it can be
used during index generation.

Some tests for the functionality that is planned which currently fail since
nothing is implemented yet.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2286 25d90789-57f7-4ee0-8453-03a3dfeeeb22
If there are multiple family-id's in the gmapsupp, then there should also
be multiple MDR files (and SRT files) one for each family id.

This is now implemented.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2287 25d90789-57f7-4ee0-8453-03a3dfeeeb22
The latin1 option should be identical to code-page=1252 so make it exactly so, rather than special casing it
all over the place.

Remove old names of options that are so old that likely no-one has ever used them.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2288 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Take the codepage from the input files when creating the gmapsupp index.
Also warn when the code page or sort order paramaters do not match
across all input files within a family.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2290 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Removal of file generated by test.


git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2291 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Should the POIs in mdr 11 be de-duplicated? First it was but was then removed.

Now de-dupe is back, but only for the on device format...

POIs with the same name, in the same map and region are only entered once.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2292 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Allow space in the gmapsupp for the SRT file(s).

They are small files so you would be very unlucky if this has caused a problem before.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2293 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Prevent the exception thrown when there are no countries in any of the input files.

In such cases the index is likely to be empty and/or of no particular use.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2295 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Set the codepage and sort order of the index based on the
actual code page of the first file that is added to the index.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2296 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Code to make --latin1 exactly the same as --code-page=1252 was not complete.

code-page=1252 did not include the transliteration step that was included in latin1. Now added.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2303 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Change to mdr10 backed out again!

Can't see that it is needed. More investigation needed.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2304 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Fix test failures.

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/dev-index@2305 25d90789-57f7-4ee0-8453-03a3dfeeeb22
Merge of the dev-index branch.

Summary of the changes:

Features
- The code-page and sort-order are taken from the input files when
  creating an index. Also warn if they are not all the same.
- Working gmapsupp index when there are more than one family in the
  gmapsupp.

Bugs
- Prevent the exception thrown when there are no countries in any of the input files.
- Fix the sorting of the entries in MDR19
- Correct calculation of gmapsupp size to allow for the SRT file(s).

Small changes
- The --latin1 option is now exactly the same as --code-page=1252
  instead of being *almost* exactly the same ;)
- Repeat flag in mdr10 set differently



git-svn-id: http://svn.mkgmap.org.uk/mkgmap/trunk@2306 25d90789-57f7-4ee0-8453-03a3dfeeeb22