I am not sure what is the point of pre-seeding the dict with any particular alphabet. (The NarWeb does not show groupings if there is nothing in them).
On 1 Feb 2013, at 15:50, Benny Malengier wrote:
I suppose if you seed a dictionary with our alphabet, with value the letters to group there, you can maintain a list with the order at the same time.
I was simply going to use the first encountered symbol as the heading for the grouping, just as you suggest here.
When a first letter is encountered that is not in the dict, the sorted list can be used to see where it should be added. Then insert in the list, and seed the dict further.
Like this, the first encountered symbol will be used for the grouping (as it is the key in the dict), which might not be how a user of a culture would expect it, but I cannot think of a way to avoid that.
I don't think it is worth the added complexity of doing this for the possible marginal gain in some edge cases (and the possible loss in some other edge cases).
One could count the letter that is found most though, and use that letter as the indication of the group.
I was hoping someone would know an algorithm or interface in the ICU/Unicode/CLDR for doing what is needed - after all, this is not a unique requirement - it must occur whenever a dictionary etc is automatically constructed!