Exemple #1
0
 public void findHyphDictionariesFromDirectory(File dir) {
   for (File f : dir.listFiles()) {
     if (!f.isDirectory()) {
       if (HyphDict.fromFile(f))
         log.i("Registered external hyphenation dict " + f.getAbsolutePath());
     }
   }
 }
Exemple #2
0
 public static HyphDict byCode(String code) {
   for (HyphDict dict : values) if (dict.toString().equals(code)) return dict;
   return NONE;
 }