aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Support Turkish keyboardTadashi G. Takaoka2011-06-211-0/+3
| | | | | | | | | I left TODOs in Suggest.java because we must pay attention to locale when changing character's case. Filed another Bug: 4769095 to track that. Bug: 4768050 Change-Id: I1ae2c4ffd2208403a8c2a25dd3a56b71dcefc826
* Close dictionary appropriatelyTadashi G. Takaoka2011-06-201-28/+21
| | | | | | | | The dictionary that extends ExpandableDictionary must be closed when it becomes unused. Bug: 4725930 Change-Id: Ib5d2c39771fb7010d303a26d1ea1c8e237c0101f
* Implement expandable candidates paneTadashi G. Takaoka2011-06-141-1/+1
| | | | | | | | | | This change removes horizontal scroll from candidates strip. Instead of that this change introduces "fixed 3 items candidates strip" and "expandable candidates pane". Bug: 4175031 Change-Id: Ia367d9074436fdea76d3b653d81798ce2749170e
* Add an option to use or not the contacts dictionary.Jean Chalard2011-06-131-1/+6
| | | | | Bug: 4586840 Change-Id: If62cd57e5ab661e6a51a5442d09bf0af8f08f263
* Create a dictionary collection and a dictionary factory.Jean Chalard2011-04-271-10/+8
| | | | | | | | | | | | | | | 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
* Fix Eclipse warnings.Jean Chalard2011-04-261-1/+1
| | | | | | | This change is only there to fix warning issued by Eclipse. It should have absolutely no impact on the program logic. Change-Id: Ie0e242ac6c167297d33de19902340b0f6ecae9e1
* Use user-history bigrams when no input if available.Jean Chalard2011-04-221-16/+31
| | | | | | | | This also fixes a small inconsistency upon clicking on whitespace twice in a row. Also add some unit tests for an introduced and an existing method. Change-Id: I1be2fb53c9624f4d0f5299009632cb4384fdfc15
* Check the availability of layouts for showing the input languages in the ↵satok2011-04-211-1/+1
| | | | | | | | settings Bug: 4316889 Change-Id: I746b3ff79c2a6cd4925fca1817d5b209623b5108
* Move language-specific keyboard setting to resources.Jean Chalard2011-04-201-4/+4
| | | | | | | | | | | | | | Some flag settings used to be stored in a keyboard layout extravalue setting. This change: - Introduces the capability of setting such specific flags in values/config.xml - Retains the ability to use extravalues (for layout-specific settings), though there is no more any such setting at the moment. - Fixes a bug where loading a dictionary from outside does not initialize the flags. - Moves Flag to another class. Note: this needs I705ec68c to avoid breaking the build Change-Id: Ia7703aae3215b06c0b3cb792821649806e8998c1
* Add different ways of reading the dictionary file.Jean Chalard2011-03-181-2/+17
| | | | | | | | | | | | | | | | | | This change adds basic support for an external dictionary provider. It adds methods for reading the dictionary itself from an asset in the dictionary provider package directly, obtaining the file name through the ContentProvider interface; it also adds a way of getting the data through an InputStream and copying the file locally. Incidentally this change also adds the code needed to listen for updating the dictionary provider package and reloading it in time. This change also goes hand-in-hand with Iab31db6e, which implements the small closed part of this. Issue: 3414944 Change-Id: I5e4fff99a59bb99dbdb002102db6c90e6cb41c8a
* Refactor BinaryDictionary a bitTadashi G. Takaoka2011-03-161-4/+6
| | | | | | | | | This changes: * Flag initialization code in BinaryDictionary to be more unit test friendly. * Removing unnecessary class hierarchy of LatinIME inner class WordAlternatives. * Formatting normalized score neatly. Change-Id: I9f10c093d4f36258fe883cf3fb10cbbda2770497
* Add Utils.equalsIgnoreCase methodsTadashi G. Takaoka2011-03-161-59/+41
| | | | | | | | | This change also corrects usage of "frequency", "priority" and "score" * Frequency is the relative probability in dictionary. * Score is the relative probability in suggestions. * Priority is kind a sorted score. Change-Id: Iafb135a4ecdb401cc505014a07c74dfcac44d699
* Avoid the removal of high-ranking exactly typed candidates.Jean Chalard2011-03-151-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | It used to be the case that the scoring system turns up the same word that was entered with a different capitalization, but with a lower score than some other, more frequent word. To cope with this, there was code that would order such candidates in the first slot no matter what. This processing is now useless because fully matching words now have a huge boost that ensures they will get to the top of the list, before any non-fully matching word (which means, differing only by capitalization or accents). The bug that did happen with this was, if a fully-matching word got matched by several processing passes, and the (chronologically) later score affected to this word was weaker, it would result in the duplicate removal pass removing the stronger score. This in turn would mess with autocorrect. In an effort to keep the risk at a minimum for MR1, this change does not actually remove the useless code, but adds a check in the odd case to avoid the bad situation. Another change will remove the code for ICS release. bug: 4100269 Change-Id: I18c0575332981ffec0e257e26a360995838d521e
* Add whitelist dictionarysatok2011-03-081-43/+53
| | | | | | Bug: 3447571 Change-Id: I538e4e706982129b666ca1ab1085f1b68b69f87f
* Cleanup Suggest to be able to be unit test readyTadashi G. Takaoka2011-03-031-59/+52
| | | | | Bug: 3414081 Change-Id: Ia76afac4b1a61b8953a215b7cbdb7557736f7b9c
* Move the auto correction functionalities to AutoCorrection.javasatok2011-03-031-65/+49
| | | | | | - Also removed a quick fix for 2nd or more suggestions. Change-Id: I7bf46a9cd6a727473e68836954fca160c9d853e6
* Clear suggestion strip when the suggestion startsKen Wakasa2011-03-021-1/+1
| | | | | | | bug: 3488704 bug: 3480132 Change-Id: Ie895d2ad1b58dc65fe16d65baa6fccafd4a142bb
* Remove next letters frequency handlingTadashi G. Takaoka2011-02-171-20/+6
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Add unit test helper method to BinaryDictionary and SuggestTadashi G. Takaoka2011-02-081-0/+7
| | | | | Bug: 3414081 Change-Id: Idee64010f2f423d3c7c548d0279c7bf287088762
* Move and rename computeProximityThresholdTadashi G. Takaoka2011-02-081-7/+7
| | | | | | | | | | | Move and rename KeyboardView.computeProximityThreshold to KeyDetector.getMostCommonKeyWidth. And make it public for unit test use. This is a part of multi-project change (If751659a, Idb18f362) Bug: 3414081 Change-Id: If751659a53c7412f836d6d28866760ffe84b179b
* Add debugging info for Latin IME.Jean Chalard2011-02-011-4/+28
| | | | | | | | | Add frequency of candidates in the candidates view when the debug mode is active. Bug: 3312867 Change-Id: Ie911f14ef11b2fa02af8f3a74302129f16ed0604
* Merge "Fix auto-correction threshold and promote full matched words" into ↵satok2011-01-261-1/+1
|\ | | | | | | honeycomb
| * Fix auto-correction threshold and promote full matched wordssatok2011-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | Bug: 3374359 Bug: 3278422 "zbe" will be auto corrected to "be" by fixing s-line "teh" will be auto corrected to "the" by promotion of full matched words Change-Id: I314c632820e4e0b1501edeca60ada205d291451f
* | Fix safety net not to be enabled at aggressive autocompletion modesatok2011-01-271-0/+4
|/ | | | | | Bug: 3374359 Change-Id: I7b1dbeb64a87dda05397c236bb58da292f819471
* Dim previously suggested wordssatok2011-01-211-8/+8
| | | | Change-Id: Id673c03bfa22ea9ce1bedb5174d8309a37a2a460
* Add a safety net for auto-correction.satok2011-01-191-7/+18
| | | | | | Bug: 3353956 Change-Id: I6a32632b2f986f0d9a07aa72f256a2c41cc09873
* Fixes in close() in BinaryDictionary.Ken Wakasa2011-01-171-4/+4
| | | | | | | Avoid using 'synchronized' in finalizer as well. bug: 3340837 Change-Id: I9b28f54e4490ecb844ba33a379f71b625e4246a2
* Load main dic in nativeKen Wakasa2011-01-071-15/+26
| | | | | | | Follow up to Id57dce51 bug: 3219819 Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66
* Consolidate main dictionary files.Ken Wakasa2011-01-051-1/+1
| | | | | | | | | This change is a preparation for upcoming optimizations on dictionary file loading. * We can consolidate dictionary files because we are no longer relying on Asset Manager. * Stopping compressing dictionary files as planning to use mmap() on the region in the apk file. * Probably we won't rely on Asset Manager. Instead we'll probably use offset and size obtained from AssetFileDescriptor. Change-Id: Id57dce512fd3d2397a58628f8264bd824194da76
* Suppress punctuation suggestions if not neededTadashi G. Takaoka2010-12-221-1/+1
| | | | | | | Bug: 3294256 Bug: 3284745 Change-Id: I77d54cbfcc2e809315bab59ecb808ae944982501
* Fix auto correction threshold values array referenceTadashi G. Takaoka2010-12-131-16/+14
| | | | | | This change also removes unused argument from Suggest.getSuggestions(). Change-Id: I512f8695d22898bb906e136a66e0ee6b521cd1d1
* Cleanup unused string resourcesTadashi G. Takaoka2010-12-121-5/+5
| | | | | | This change also renames some "completion" to "correction". Change-Id: I156dd7ccafe99a632721f20769d5f0ea5915a564
* Introduce SuggestedWords class to represent suggestions listTadashi G. Takaoka2010-12-121-7/+12
| | | | Change-Id: I81677a785640d37296be8b42c7a74bd0c00edf46
* Remove LatinIME prefix from classesTadashi G. Takaoka2010-12-091-1/+1
| | | | | | This change also cleanups preference key string constants Change-Id: I58510f220a90d00d71a935731abeab87384675bb
* Suggest excessive characterssatok2010-12-081-36/+7
| | | | | | bug: 3193883 Change-Id: Iea7a0fce7ce62d8779a7c7e4613d50db30d82b07
* Move some inner static class to top class in new packageTadashi G. Takaoka2010-12-021-0/+1
| | | | | | | | | This change introduces new package com.android.inputmethod.keyboard which hosts keyboard related classes. Also adds missing @Override and @SuppressWarning("unused") annotation Change-Id: I0317f5cfa317e13f3c77815f48ffc69b5d1ade05
* Cleanup unused Java importTadashi G. Takaoka2010-11-291-5/+5
| | | | | | This change also fixes wrong file mode. Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f
* Capitalization for "Quick Fixes" words doesn't workKen Wakasa2010-11-011-3/+19
| | | | | bug: 3151706 Change-Id: I7770a1d26edb1ea72ee93396181953a724dcc4bf
* Add an auto complete's threshold option.Mitsuhiro Shimoda2010-10-051-2/+13
| | | | Change-Id: I3a6821ced8642ab8f954e79a25e31766e4a18eb8
* Capitalize the displayed text in the suggestion bar when all of the user ↵Ken Wakasa2010-09-281-3/+9
| | | | | | | typed chars are upper case bug:3014227 Change-Id: Ic453e2fde57ce51be00f3a506e1c9328103ca99a
* Clean up LatinIME javasatok2010-08-241-2/+0
| | | | | | | | - remove unused code - add @Override - change the inappropriate cast Change-Id: Ib25b4939e5b4273794ab0f6349776b5b62d89894
* DO NOT MERGE. Backport LatinIME from master to Gingerbreadsatok2010-08-201-43/+196
| | | | | | TODO: Cleanup will follow. Change-Id: I4a68ba9f2f55760aa24187f1f13fdfa8a0b70963
* Clarify licensingJean-Baptiste Queru2010-04-051-1/+1
| | | | | | | | -use AOSP copyright instead of Google -add NOTICE and tag file Bug: 2548782 Change-Id: If50b2e9e9cc4b4876b0d047fc9f34e2d537a6da4
* Don't auto-add when in suggest-only mode. Bug: 2521344Amith Yamasani2010-03-241-5/+4
| | | | | | Also don't highlight quickfixes when in suggest-only mode In general, reduce the situations where words are auto-added. It was too eagerly adding even words that were in the dictionary.
* Remove popup for extension keyboard in landscape. bug: 2519903Amith Yamasani2010-03-171-1/+1
| | | | | | | Also add a summary text in the input language list for languages with a dictionary so that users don't feel cheated when they pick a language that doesn't happen to have a dictionary. Remove greek as it isn't an extension of the QWERTY keyboard.
* Don't let the native code target be included twice when unbundling.Amith Yamasani2010-03-091-0/+378
Move java code to a different directory so that the unbundled version doesn't try to compile the native code again. Change-Id: I05cf9e643824ddc448821f69805ccb0240c5b986