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()); } } }
public static HyphDict byCode(String code) { for (HyphDict dict : values) if (dict.toString().equals(code)) return dict; return NONE; }