Soundex fix:
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 22 May 2007 19:49:13 +0000 (19:49 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 22 May 2007 19:49:13 +0000 (19:49 +0000)
OW -> U
W -> V

 xorg.misc.inc.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1830 839d8a87-29fc-0310-9880-83ba4fa771e5

include/xorg.misc.inc.php

index eab8b36..c5e4e1d 100644 (file)
@@ -162,13 +162,13 @@ function soundex_fr($sIn)
             '/(ILLE?|I)/', '/O(U|W)/', '/O[NM]($|[^EAOUIY])/', '/(SC|S|C)H/',
             '/([^AEIOUY1])[^AEIOUYLKTP]([UAO])([^AEIOUY])/', '/([^AEIOUY]|^)([AUO])[^AEIOUYLKTP]([^AEIOUY1])/', '/^KN/',
             '/^PF/', '/C([^AEIOUY]|$)/',
-            '/C/', '/Z$/', '/(?<!^)Z+/', '/ER$/', '/H/');
+            '/C/', '/Z$/', '/(?<!^)Z+/', '/ER$/', '/H/', '/W/');
         $convVOut  = array( 'O', '1\3', 'A\1',
             'E\1', '\1E\3', 'O',
             'Y', 'U', 'O\1', '9',
             '\1\2\3', '\1\2\3', 'N',
             'F', 'K\1',
-            'S', 'SE', 'S', 'E', '');
+            'S', 'SE', 'S', 'E', '', 'V');
         $accents = $uc_convert + $lc_convert;
         $accents['Ç'] = 'S';
         $accents['¿'] = 'E';