changeset 27:883dd7b59979

bugfix indexgrouping for TitleIndex imported from: moin--main--1.5--patch-28
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 24 Sep 2005 18:03:54 +0000
parents 842243815e18
children ef8b90110f33
files MoinMoin/wikimacro.py MoinMoin/wikiutil.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikimacro.py	Sat Sep 24 17:35:11 2005 +0000
+++ b/MoinMoin/wikimacro.py	Sat Sep 24 18:03:54 2005 +0000
@@ -272,7 +272,6 @@
                 
         current_letter = None
         for name in pages:
-            letter = name[0].upper()
             letter = wikiutil.getUnicodeIndexGroup(name)
             if letter not in index_letters:
                 index_letters.append(letter)
--- a/MoinMoin/wikiutil.py	Sat Sep 24 17:35:11 2005 +0000
+++ b/MoinMoin/wikiutil.py	Sat Sep 24 18:03:54 2005 +0000
@@ -831,7 +831,7 @@
     if u'\uAC00' <= c <= u'\uD7AF': # Hangul Syllables
         return unichr(0xac00 + (int(ord(c) - 0xac00) / 588) * 588)
     else:
-        return c
+        return c.upper() # we put lower and upper case words into the same index group
 
 
 def isStrictWikiname(name, word_re=re.compile(ur"^(?:[%(u)s][%(l)s]+){2,}$" % {'u':config.chars_upper, 'l':config.chars_lower})):