logo separator

[mkgmap-dev] Fix and augment sort definitions

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Tue Jan 4 16:37:57 GMT 2022

Hi Gerd

On my eTrex 30x:

Same --lower-case map as before. Also loaded is GB map that is disabled
in Setup>Map; it uses same charset & sort, sort has same id1 but
different id2.

Where To? > Cities > Spell Search > "VOS" gives "No Results Found"

Spell Search has option to change the keyboard language. GERMAN allows
input of A/O/U umlaut and ß. "Voß" gives "No Results Found"

So it seems that old HCx works well and the new 30x doesn't.

Tried again after removing the GB map and still fails.

Doing an Address street search (ie skip the city), ß finds ß and ss, ss
doesn't find ß.

I'll investigate and experiment more, mainly MDR17/PrefixIndex.

There is possible problem with sort.collator
compareOneStrengthWithLength() in that it counts expansions whereas the
short string doesn't. So, for prefix length 4, "Voßaaa" and Voßbbb" are
considered equal, but the output is "Voßa" only. 

Maybe the 2/4 char string should be the major PRIMARY representation -
upper case, unaccented, expanded


More information about the mkgmap-dev mailing list