From c37fc847ff845e9f442079e94573d31fff986105 Mon Sep 17 00:00:00 2001 From: rboren Date: Thu, 9 Dec 2004 00:16:33 +0000 Subject: [PATCH] Comment the unicode blocks. git-svn-id: http://svn.automattic.com/wordpress/trunk@1925 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-formatting.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 350fe6112..3c49d6429 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -131,7 +131,8 @@ function utf8_uri_encode( $utf8_string ) { function remove_accents($string) { if (seems_utf8($string)) { - $chars = array(chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', + $chars = array(// Decompositions for Latin-1 Supplement + chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', chr(195).chr(130) => 'A', chr(195).chr(131) => 'A', chr(195).chr(132) => 'A', chr(195).chr(133) => 'A', chr(195).chr(135) => 'C', chr(195).chr(136) => 'E', @@ -158,9 +159,12 @@ function remove_accents($string) { chr(195).chr(185) => 'u', chr(195).chr(186) => 'u', chr(195).chr(187) => 'u', chr(195).chr(188) => 'u', chr(195).chr(189) => 'y', chr(195).chr(191) => 'y', + // Decompositions for Latin Extended-A + // TODO: Finish me. chr(197).chr(146) => 'OE', chr(197).chr(147) => 'oe', chr(197).chr(160) => 'S', chr(197).chr(161) => 's', chr(197).chr(189) => 'Z', chr(197).chr(190) => 'z', + // Euro Sign chr(226).chr(130).chr(172) => 'E'); $string = strtr($string, $chars);