aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryFactory.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Make use of the FULL_EDIT_DISTANCE flag.•••In effect, this stops the spell checker from suggesting overly long words. More precisely, it takes advantage of the new facility that takes into account the whole length of the dictionary word when computing scores, so words much longer than the input word will see their score demoted accordingly. Bug: 5384578 Change-Id: I326cd7c87c3080e7fa8729f78517f8ba13672a9b Jean Chalard2011-09-301-4/+21
* Move locale-related utility methods to LocaleUtils.•••Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e Jean Chalard2011-08-291-7/+7
* Fix an excessive fallback problem.•••LatinIME has several fallbacks to ensure a dictionary is used. However, it should now be possible to deactivate the main dictionary through the dictionary pack settings. In this case, Latin IME should not fallback to the built-in dictionary. Change-Id: Ibd992ad89793169f04a968b40781fce819b87b6f Jean Chalard2011-08-231-18/+4
* Have the spell checker use the User dictionary.•••Bug: 5175868 Change-Id: I165eee4c865caa5ee1daf3e0b1acde8788b996ef Jean Chalard2011-08-191-2/+2
* Set the locale for opening an asset•••This is necessary because we don't know any more whether the locale of the process is the expected one when the dictionary is loaded asynchronously. Bug: 5023141 Change-Id: Ia9e4741f3b4a04a9f085f5b65ec122471b0c2dff Jean Chalard2011-07-211-4/+14
* Fallback to the included dict if the passed one is invalid•••If all dictionaries returned by the dictionary pack are invalid, then fallback to the dictionary included in the resources for this locale. Bug: 5052486 Change-Id: Id875194ca56a74b2ed6f5b0b4fdd55475f6842c8 Jean Chalard2011-07-201-3/+15
* Add a number of NULL pointer guards.•••None of these are expected to actually be null, but those are included for peace of mind and foolproofing against future code changes. Bug: 4580040 Change-Id: Ib112b3e5db5f177aaf61767164b7e78d711f90a0 Jean Chalard2011-07-191-5/+15
* Fix the available input locales and moved Recorrection•••Bug: 4409091 Change-Id: I6efd23ebb9528bf1bd35320057a0ea264c187451 satok2011-05-121-0/+19
* Improve the architecture to support multiple dictionaries.•••This change enables the interface to get multiple dictionaries from a dictionary pack. It only implements it to the end in the case of the proprietary method, as the open method needs still some working out, and the "inside the package" method does not need it. This change goes together with Iaa95bf36, and breaks the build without it. Bug: 1752028 Change-Id: I3ccfd696e8ef083ef9c074e1c3e4bb0bf2fcfd23 Jean Chalard2011-04-281-7/+10
* Use the new Utils.setSystemLocale method in the new code.•••The change list that introduced this code was created at the same time as the one that introduced the Utils.setSystemLocale method and didn't use it yet. Fix this. Change-Id: Ifdd2ad9f7dbb7f300bc255bc2e035ae893a9d410 Jean Chalard2011-04-271-7/+3
* Create a dictionary collection and a dictionary factory.•••The dictionary collection is a class complying to the Dictionary interface that acts as a front end to a collection of arbitrarily many dictionaries of any type. The dictionary factory is a helper class for creating various dictionaries and get some meta information about them. At the same time, this change makes the BinaryDictionary class not a singleton any more. This also needs I9afe61a9 to not break the build. Change-Id: I61fdcc4867fcda18342807bf1865e6e46979e5d5 Jean Chalard2011-04-271-0/+159