maposmatic-dev
[Top][All Lists]
Advanced

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

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


From: Maxime Petazzoni
Subject: Re: [Maposmatic-dev] [PATCH 3/6] Add by-letter maps pagination
Date: Thu, 7 Jan 2010 18:17:32 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hi,

* Jeroen van Rijn <address@hidden> [2010-01-07 18:12:47]:

> > 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:
> 
> /maps/[0-9]
> /maps/[AÃÄÁÀÂBCÇDEËÉÈÊ]
> /maps/[F-K]
> /maps/[L-OÕÖÓÒÔ]

Well, actually I can make it to handle any first character in the
/maps/<character> URL. That's not a problem. And there is per-letter
pagination, as you get for the full list of maps.

But my inquiry was more about the list of letters to display. We could
use ranges there as you suggest, like:

All - 0-9 - A-C - D-É - F-K - ... But if these ranges change, it might
confuse people, so I don't know.

- Maxime
-- 
Maxime Petazzoni <http://www.bulix.org>
 ``One by one, the penguins took away my sanity.''
Linux kernel and software developer at MontaVista Software

Attachment: signature.asc
Description: Digital signature


reply via email to

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