Home | History | Annotate | Download | only in latin

Lines Matching refs:Dictionary

32  * Factory for dictionary instances.
38 * Initializes a main dictionary collection from a dictionary pack, with explicit flags.
40 * This searches for a content provider providing a dictionary pack for the specified
41 * locale. If none is found, it falls back to the built-in dictionary - if any.
43 * @param locale the locale for which to create the dictionary
49 Log.e(TAG, "No locale defined for dictionary");
50 return new DictionaryCollection(Dictionary.TYPE_MAIN, locale,
54 final LinkedList<Dictionary> dictList = new LinkedList<>();
61 false /* useFullEditDistance */, locale, Dictionary.TYPE_MAIN);
66 // Prevent this dictionary to do any further harm.
72 // If the list is empty, that means we should not use any dictionary (for example, the user
73 // explicitly disabled the main dictionary), so the following is okay. dictList is never
75 return new DictionaryCollection(Dictionary.TYPE_MAIN, locale, dictList);
79 * Kills a dictionary so that it is never used again, if possible.
80 * @param context The context to contact the dictionary provider, if possible.
81 * @param f A file address to the dictionary to kill.
86 // Warn the dictionary provider if the dictionary came from there.
92 Log.e(TAG, "No permission to communicate with the dictionary provider", e);
96 Log.e(TAG, "Can't establish communication with the dictionary provider");
102 // The following will remove the entry for this dictionary with the dictionary
106 // the new dictionary. That's fine for languages where it's included in the APK,
107 // but for other languages it will leave the user without a dictionary at all until
122 * Initializes a read-only binary dictionary from a raw resource file
147 false /* useFullEditDistance */, locale, Dictionary.TYPE_MAIN);