aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/WordComposer.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Don't autocorrect after suggestion resuming•••Bug: 6105732 Change-Id: I92e7a9c6d6eb648f747c3b396d7993479fd8478a Jean Chalard2012-05-011-0/+14
* Fix some obvious compiler warnings•••Change-Id: I10a634f7492b45d5a72345f14d36cf341946387d Tadashi G. Takaoka2012-03-291-3/+1
* Good bye the proximity logic in Java code•••Bug: 4343280 Change-Id: I82f7d08703647a3492ce6e2d3b741146df58927e satok2012-03-281-10/+4
* Do not re-calculate primary code in WordComposer•••Bug: 4343280 Test: Ib43c0f1d1a19d067ea0 Change-Id: I3393a6099cb7fb824994f4656ccfef884f9c6bc4 satok2012-03-281-3/+3
* Fix AIOOBE•••Bug: 6236912 Change-Id: Ie09e5ef1c23eb48621ac3f2f2dc28dc2e46ca288 satok2012-03-281-1/+5
* ongoing cleanup 2•••Change-Id: I66b61cbe491cf8375144e834390beae3209a777d satok2012-03-271-24/+28
* Merge "Cleanup jni 1"satok2012-03-231-2/+0
|\
| * Cleanup jni 1•••Change-Id: Ieb6af8385356e259720b50f1fe46a694a098b30f satok2012-03-231-2/+0
* | Stop creating useless objects•••Man that was bad, it's heavy, it's called quite often, and it's totally useless Change-Id: Ia7e23e0e60ff4a929b226f3f4ccabedbc3ea2c06 Jean Chalard2012-03-231-15/+3
|/
* Send correct coordinates for the spell checker•••This results in the computation being done in native code and the correct proximity being used. Bug: 6181080 Change-Id: I08fa05c781d607e4feca2caeda353ec19c133a3d Jean Chalard2012-03-231-27/+2
* Cleanup proximity related code•••Bug: 4343280 Change-Id: I57c0f9e20d9d8911009ea97057251a7f7a81512f satok2012-03-191-5/+4
* Calculate proximity characters in the native code•••Bug: 4343280 Change-Id: I6adaf560f7a4f1f96dcb6ec2f61f20ee3001167e satok2012-03-161-2/+2
* Do not change the proximity orders•••Bug: 4343280 Change-Id: I4e2dfb00d9c843a8a285d409ac5ab8fca5fb1694 satok2012-03-161-16/+0
* Remove touch dead zone•••KeyDetector should use the distance from the hit box to detect the key. Bug: 6174250 Change-Id: Id1745d90222d1d1a10467f194b45307c12449944 Tadashi G. Takaoka2012-03-151-2/+2
* Really pass the y - touch correction to the native code•••Bug: 4343280 Test: I11f8518d9ee Change-Id: I4b90bdffffed9736af223ac83c1a54019add70bb satok2012-03-141-1/+1
* Fix coordinates sent to native code•••Change-Id: I2c8b093b59ad36ffe860c3c4d360d87251d101c4 satok2012-03-061-8/+14
* Integrate the logic to calculate the proximities•••Bug: 4343280 Change-Id: I0f6a7e6912ed4abea07c10d266da4c7ccb0dae76 satok2012-03-061-3/+47
* Activate the code to cancel a manual pick (A5)•••This finally makes active the behavior described in Bug: 5968922 Change-Id: I363ed23270c3dea75411ea806011225097b5d07c Jean Chalard2012-02-221-12/+5
* Give LastComposedWord knowledge of the separator (A2)•••This stores the separator that was used to commit the word in the LastComposedWord. It may be NOT_A_SEPARATOR if there was no separator (for example, the cursor moved causing a commit, or there was a manual pick). This is necessary to implement feature request #5968922. Change-Id: I5fcf19a78ec66d68d4df89418eaef13952588207 Jean Chalard2012-02-211-2/+3
* Give LastComposedWord knowledge of the committed word (A1)•••There is no point storing the prospective autocorrect - we are recomputing it anyway. The committed word however will be necessary to implement feature request #5968922. Change-Id: I588c18e1a5a1050a791d601de465f421ccbe36cd Jean Chalard2012-02-211-5/+5
* Fix the auto-composer to support supplementary chars•••Change-Id: I61ff218ae2ca4eb443a370e581b677755258670a Jean Chalard2012-02-081-13/+22
* Fix a bug with common objects.•••Bug: 5961179 Change-Id: I452efc552c6ab390931f25557d7aee5a64bf054e Jean Chalard2012-02-061-3/+8
* Fix a bug when deleting the last char•••And unit test Change-Id: Ic4fc3626f8b86e10156d770d41cd6deab5d31f39 Jean Chalard2012-02-031-2/+4
* Fix string iterations in a couple places.•••Seems I didn't get how to iterate on a String correctly >.> Talk about a big bug. Anyway, I think it's working now. Bug: 5955228 Change-Id: I988c900cf2a16c44b9505cfd4f77c7cda7e592f0 Jean Chalard2012-02-031-1/+2
* Support additional proximity characters•••Change-Id: Ifbe0d7e4eafea1926bbce968eae4724dd5769689 satok2012-02-021-3/+1
* Cleanup (A9)•••Deactivate the LastComposedWord when the commit was not the right type, instead of fooling it by passing it a null auto-correction. Change-Id: I032b477dc691bd151a644ca4b0c9f0a9b5512e45 Jean Chalard2012-01-261-2/+4
* Remove a useless member (A8)•••It turns out this can be removed entirely. Change-Id: I6f23703cef1666311989a825285317eef696487f Jean Chalard2012-01-261-1/+1
* Remove the CharacterStore class (A7)•••Remove the now useless WordComposer.CharacterStore class and merge back its members inside WordComposer. This should simplify the word composer a bit. Change-Id: I5fe32418c62a583cd558dce98758a4701559bdf5 Jean Chalard2012-01-261-70/+50
* Straighten out resuming suggestion on kept word (A5)•••This is cleanup. This also introduces a "deactivated" state to the last committed word, that can be used for Bug: 5875776 Change-Id: I1855adb8ac8123f6d2c5365b0ae899145e5c3ba1 Jean Chalard2012-01-261-7/+0
* Remove mCommittedWordSavedForSuggestionResuming (A4)•••Change-Id: Ia62ef33b5c777a258b02280bda1b8368780a7eef Jean Chalard2012-01-261-23/+13
* Move some functionality into LastComposedWord (A3)•••Change-Id: Ie0ea02a061dd0cb84db5f33113ff433584636bc7 Jean Chalard2012-01-261-9/+4
* Add useful information to LastComposedWord (A2)•••Change-Id: Idf47f2e2bdd1d6394fc4b1ab7df28d64a808da1e Jean Chalard2012-01-261-1/+4
* Add a class for previously composed data (A1)•••Change-Id: I87498799e6a48b8fa65924a098bb0ceb7626dce1 Jean Chalard2012-01-261-20/+4
* Fix a typo. A follow up to I68dd6b8d•••Change-Id: I16fa4099c75faac35344b0e4d3c2b866ddac896a Ken Wakasa2011-12-211-1/+1
* Fix a bug with wrong auto-correct cancellation•••Auto-correct cancellation would sometimes kick in at wrong times, causing crashes. Bug: 5784542 Change-Id: I68dd6b8d9237ce9b66af2dc63e77ba6dd5fd69dd Jean Chalard2011-12-211-7/+37
* Reorganize the auto-correction memory•••Change-Id: I31cce9db471dcd4a7b3477bcb037a8ff482b7696 Jean Chalard2011-12-191-19/+26
* Remove LatinKeyboard class•••Change-Id: I68c667b00dadf2ed9f1c62fb7da37d2cf499cd81 Tadashi G. Takaoka2011-12-181-5/+4
* Use the WordComposer to check if we are composing a word•••...instead of the hard-to-understand mHasUncommittedTypedChars. This is possible because now the word composer is actually aware of commits. Change-Id: I36b664ce8402a280f801e87b9ebe161f416b0853 Jean Chalard2011-12-161-0/+4
* Make the word composer aware of commits.•••Change-Id: I04e691fbc9227d4df195429bca89edea93575347 Jean Chalard2011-12-161-4/+23
* Group all input-related info into an inner class.•••Currently, these variables hold the info about the composing word, or maybe some outdated info, and it's not very clear which it is. LatinIME is maintaining the freshness info in a separate boolean, and uses it throughout the code for many, many things, leading to much confusion. The idea in grouping this info is, it can be saved in another instance and restored later. It can be tested against to know whether there is actually outdated but kept info or not, and it should allow to straighten out what is actually currently being typed. Ultimately, it will eliminate the need for LatinIME to keep track of the status of the info in the word composer. Change-Id: I00e2c690f303f8320c9be35590a6df4583e9e456 Jean Chalard2011-12-151-33/+50
* Various mini-cleanups•••- Stop the word composer from escaping - take a page from the law of Demeter and only report what is actually needed. - Fix typos in comments. - Add a comment for a fishy processing. - Remove a useless local variable. Change-Id: I5fa78901cbb5483fc9683bfb7094f47244b85df6 Jean Chalard2011-12-131-1/+1
* Move mBestWord to the word composer.•••mBestWord has a confusing name - it's actually an auto-correction. It's cleaner if it lives in the word composer because an auto-correction should be tied to a specific user input, and should be reset each time the user input changes to avoid race conditions. Change-Id: I718d29395bc747372067e6440e090c6a181994ae Jean Chalard2011-12-131-1/+30
* Remove a duplicated variable.•••This is awesome cleanup. Change-Id: I35ce8940a13f3084630dc26d6e7e397acfdaac36 Jean Chalard2011-12-121-3/+0
* Get rid of usage of key index•••Change-Id: I7596ce3ae52fde436d06c2dd95ae873c7aa5ef7f Tadashi G. Takaoka2011-11-291-1/+1
* Merge "Resume suggestion when backspacing to the end of a word"Jean Chalard2011-11-291-0/+46
|\
| * Resume suggestion when backspacing to the end of a word•••Bug: 5515381 Change-Id: I26fea896feaf2e9716c7ae3d4f2630360f23ac50 Jean Chalard2011-11-291-0/+46
* | Keep count of the trailing single quotes for suggestions•••Bug: 5665809 Change-Id: I4d9100dbe980861ccb55c78464524be670cac1f7 Jean Chalard2011-11-291-10/+18
|/
* Special case quotes at start and end of words•••Single quote at start of word is not considered a part of a word any more. Single quote at the end of a word now behave like capitalization: lookup in the dictionary is done *disregarding* a final quote, and it is forcefully added back into the suggestions afterwards. Bug: 5566368 Change-Id: I14dd3815f4b743edba56d64a3abdf4b73d863a6a Jean Chalard2011-11-211-3/+19
* Make some private method static•••Change-Id: Ia23765268be0ef89d7fe7c3f5372ed32d6615765 Tadashi G. Takaoka2011-10-281-1/+1
* Fix checking capitalized word code•••This is a follow up change of If6c0edef. Bug: 5328922 Change-Id: Idb415f53f3fea6660c7802577d08b4d89d4e7842 Tadashi G. Takaoka2011-09-161-1/+1