普通こういうの大文字小文字を区別しない方がいいと思うんですけど.
--- wiki.orig/lib/func.php 2005-02-20 21:50:06.000000000 +0900 +++ wiki/lib/func.php 2005-09-17 00:57:14.000000000 +0900 @@ -313,7 +313,7 @@ $head = $other; } } else { - $head = (preg_match('/^([A-Za-z])/', $page, $matches)) ? $matches[1] : + $head = (preg_match('/^([A-Za-z])/', $page, $matches)) ? strtoupper($matches[1]) : (preg_match('/^([ -~])/', $page, $matches) ? $symbol : $other); }
@@ -328,7 +328,7 @@ // WARNING: Japanese code hard-wired if($pagereading_enable) { if(mb_ereg('^([A-Za-z])', mb_convert_kana($page, 'a'), $matches)) { - $head = $matches[1]; + $head = strtoupper($matches[1]); } elseif (isset($readings[$page]) && mb_ereg('^([ァ-ヶ])', $readings[$page], $matches)) { // here $head = $matches[1]; } elseif (mb_ereg('^[ -~]|[^ぁ-ん亜-熙]', $page)) { // and here @@ -337,7 +337,7 @@ $head = $other; } } else { - $head = (preg_match('/^([A-Za-z])/', $page, $matches)) ? $matches[1] : + $head = (preg_match('/^([A-Za-z])/', $page, $matches)) ? strtoupper($matches[1]) : (preg_match('/^([ -~])/', $page, $matches) ? $symbol : $other); } @@ -364,7 +364,7 @@ '"><strong>' . $head . '</strong></a>' . "\n" . ' <ul>' . "\n"; } - ksort($pages); + uksort($pages, 'strnatcmp'); $retval .= join("\n", $pages); if ($list_index) $retval .= "\n </ul>\n </li>\n";
仮名安直ひとまとめA案 [ -ヿ] 仮名安直ひとまとめB案 [ぁ-ヿ] ひらがな(合成用の濁点、半濁点が漏れる) [ぁ-ゖゝ-ゟ] カタカナ(長音記号が漏れる) [ァ-ヺヽ-ヿ] CJK部首補助 [\u2e80-\u2eff] 康煕部首 [\u2f00-\u2fdf] 漢文用記号 [\u3190-\u319f] CJK拡張漢字A [\u3400-\u4dbf] CJK統合漢字 [\u4e00-\u9fff] CJK互換漢字 [\uf900-\ufaff] CJK拡張漢字B [\u20000-\u2a6df] CJK拡張漢字C [\u2a700-\u2b73f] CJK拡張漢字D [\u2b740-\u2b81f] CJK互換漢字補助 [\u2f800-2fa1f]