[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Maposmatic-dev] [PATCH 3/6] Add by-letter maps pagination

From: Jeroen van Rijn
Subject: Re: [Maposmatic-dev] [PATCH 3/6] Add by-letter maps pagination
Date: Thu, 7 Jan 2010 18:12:47 +0100

> Hum, that's a very good call. The problem is that if we consider
> non-[A-Z] first letters, then the "by-letter selection" becomes very,
> very long. But if we want to be truly i18n-ized, then we must support
> it.

How about this? Group unique starting characters into a list, sort
taking UTF8 collation into account, then slice it up into a reasonable
number of indices (depending on the number of pages and characters in
the list). So you might have:


And so on, which could vary depending on the number of maps. If one
letter has an overwhelming amount of entries further paging could be
considered, like: /maps/A/1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]