On Thu, Feb 28, 2008 at 7:43 PM, DanTMan <dan_the_man(a)telus.net> wrote:
From my understanding Title::secureAndSplit(); is the
only place where
anything to do with case-sensitivity of Titles is located.
Explicitly, yeah, but any associative array using title strings as
keys will automatically be case-sensitive, just because array lookups
(and string comparisons generally) are case-sensitive. I have no idea
how many of those there are scattered about.
I really want some robust and generic normalization mechanism.
Instead of distinguishing between display titles and DB keys (which is
pointless: as though we can't store spaces in the database?),
distinguish between display titles and normalized titles. Normalized
titles would be stored separately in the database and used for lookup
and uniqueness checking, as well as in URLs, and are formed by
applying a canonical function to the display title. Then titles can
have underscores in them, for instance, in the default configuration
(just they'd be normalized to underscores), and someone who wanted to
muck around a bit could use all sorts of weird conventions if they
liked just by changing the normalization function and rebuilding the
page table.