[lsc-changes] r429 - lsc/trunk/src/main/java/org/lsc/utils

rschermesser at lsc-project.org rschermesser at lsc-project.org
Mon Nov 9 16:49:21 CET 2009


Author: rschermesser
Date: 2009-11-09 16:49:21 +0100 (Mon, 09 Nov 2009)
New Revision: 429

Modified:
   lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java
Log:
Correct a bug in cedillas tranformation

Modified: lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java
===================================================================
--- lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java	2009-11-09 15:49:13 UTC (rev 428)
+++ lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java	2009-11-09 15:49:21 UTC (rev 429)
@@ -70,25 +70,29 @@
 	/** Array of accents and cedillas */
 	private static final String[] REGEXP_ACCENTS_CEDILLAS = {
 		"À", "á", "Á",
-		"à",
-		"à", "â",
-		"Â", "ä", "Ä",
-		"é",
-		"é",
-		"è",
-		"è", "ê",
-		"Ê", "ë", "Ë",
-		"È", "É", "é",
-		"è", "Ì", "ì",
-		"Í", "í", "î",
-		"Î", "ï", "Ï",
-		"Ò", "ò", "Ó",
-		"ó", "ô", "Ô",
-		"ö", "Ö", "ù",
-		"Ù", "Ú", "ú",
-		"û", "Û", "ü",
-		"Ü", "Ý", "ý",
-		"ç"
+		"à", "à",
+		"â", "Â",
+		"ä", "Ä",
+		"é", "é",
+		"è", "è",
+		"ê", "Ê",
+		"ë", "Ë",
+		"È", "É",
+		"é", "è",
+		"Ì", "ì",
+		"Í", "í",
+		"î", "Î",
+		"ï", "Ï",
+		"Ò", "ò", 
+		"Ó", "ó",
+		"ô", "Ô",
+		"ö", "Ö",
+		"ù", "Ù",
+		"Ú", "ú",
+		"û", "Û",
+		"ü", "Ü",
+		"Ý", "ý",
+		"ç", "Ç"
 	};
 
 	/**
@@ -118,7 +122,7 @@
 		"u", "U",
 		"u", "U",
 		"Y", "y",
-		"c"
+		"c", "C"
 	};
 
 	/** Allowed chars for words separator */
@@ -333,7 +337,7 @@
 	}
 
 	/**
-	 * Méthode permettant de formatter le nouveau sn!
+	 * Format a sn
 	 * @param sn
 	 * @return the filtered surname
 	 * @throws CharacterUnacceptedException thrown if an rejected character



More information about the lsc-changes mailing list