]> gitweb.fperrin.net Git - DictionaryPC.git/blobdiff - src/com/hughes/android/dictionary/engine/DictionaryBuilderMain.java
New unit tests, { instead of {{,
[DictionaryPC.git] / src / com / hughes / android / dictionary / engine / DictionaryBuilderMain.java
index 07696edf62c2401f691925a143b7cc9d65f2f778..52c937a16d967f5dc7b507c6359e3de9ad4bdfd9 100644 (file)
@@ -63,11 +63,12 @@ public class DictionaryBuilderMain extends TestCase {
     isoToStoplist.put("FR", "fr.txt");
 
     final Map<String,String>  isoToRegex = new LinkedHashMap<String, String>();
-    isoToRegex.put("ZH", "Chinese|Mandarin|Cantonese");
+    // HACK: The missing "e" prevents a full match, causing "Cantonese" to be appended to the entries.
+    isoToRegex.put("ZH", "Chinese|Mandarin|Cantones");
     
 //    isoToWikiName.keySet().retainAll(Arrays.asList("UK", "HR", "FI"));
+    //isoToWikiName.clear();
     boolean go = true; 
-    isoToWikiName.clear();
     for (final String foreignIso : isoToWikiName.keySet()) {
       if (foreignIso.equals("SV")) {
         go = true;