Commit Graph

869 Commits (f75e1c939b901e9519b42d99f5b57f7a92f3a4ab)

Author SHA1 Message Date
Jean Chalard e93b1f2209 Allow reading a binary dictionary even without proximity info.
This prepares the way for spell checking, which is to be done
without context so without proximity info.

Bug: 4176026
Change-Id: I1b4bfaefe2611e1b484acdf3c33598cb80f81ff4
2011-06-02 12:10:13 +09:00
Tadashi G. Takaoka e99738564a Merge "Adaptive keyboard width/position parser" 2011-05-31 01:55:44 -07:00
Tadashi G. Takaoka 327763e518 Adaptive keyboard width/position parser
This change introduces the following features to Keyboard XML format.

 * "keyXPos" can specify the key X coordinate directly.
 * "keyXPos" can be negative. The X coordinate will be calcluated from
    the right edge of the keyboard toward left.
 * "keyWidth" can be zero to be filled up to the right side.
 * "keyWidth can be negative. The key will be filled up to both sides.
 * Spacer's horizontalGap is renamed as keyWidth, and can be inherited
   from key-style.
 * Spacer can have keyXPos attribute.

Using these syntax, all keyboard layouts have been re-written.

Cherry-Pick: I314b2e8ca2aa145ff9506cbf927140a15685af42
Bug: 4442045
Change-Id: I048fe5eaef020d8472ab577e9d326042bae2f3fa
2011-05-31 17:52:32 +09:00
Jean Chalard 57c38bf4b0 Merge "Enable choosing a bigram prediction several times in a row." 2011-05-30 19:35:15 -07:00
Tadashi G. Takaoka c25e07d212 Fix web input type judgment
Bug: 4490948
Change-Id: I71efb8f5784970f1d2a94da1d2eb852f7f11885f
2011-05-30 19:10:25 +09:00
Jean Chalard 41ec3ec2f3 Enable choosing a bigram prediction several times in a row.
This change fixes a bug that prevented to choose a prediction
several times in a row because the predictions would be replaced
right away by punctuations.
Please note several things about this change:
- Recorrection is pretty much in the middle of being refactored.
  This change has no effect on recorrection itself, but may make
  existing strange behavior more obvious when moving the cursor
  for example.
- The part of this change in Recorrection.java is not used in
  master at the moment because ongoing changes on recorrection
  result in the control never landing there, but would have been
  needed in the past and may be needed in the future.
- This change may have adverse effects on performance which need
  to be evaluated. A comment in the code has also been written
  to this effect.
- This does not fix bug 4466199, only addresses a pinpoint case
  of it to help evaluating the bigram predictions feature.

Bug: 4466199
Change-Id: I7219e5aeb74dff9251d12b2a72f94448dbb3e63f
2011-05-30 16:03:39 +09:00
Tadashi G. Takaoka a8fd3af67a Merge "Remove web mode and add webInput boolean" 2011-05-27 09:09:30 -07:00
Tadashi G. Takaoka 9e2d810dc5 Remove web mode and add webInput boolean
Bug: 4490948
Change-Id: I6fe23c9ab4918eab6806cc621c4d6821c2e1baf9
Cherry-Pick: I4cd1af0b
2011-05-27 21:47:14 +09:00
Jean Chalard f4a05624ee Merge "Stop promoting auto dictionary words to the user dict." 2011-05-27 03:26:30 -07:00
satok a0493fa070 Fix whitelist
Bug: 4090049
Change-Id: I1d57ddafcacb895196c65acaae198dad7499983b
2011-05-26 20:30:27 +09:00
satok ea9098ca69 Add SuggestionSpan suggestion picked notification receiver
Bug: 4443922

Change-Id: I8a9dc5077ae06c6d0c39fd7fdd823fc4f4d05f45
2011-05-26 19:47:29 +09:00
Jean Chalard 8ef4dd9af8 Stop promoting auto dictionary words to the user dict.
Also see change I5a57ecc8 which is another fix for the same
problem.

Bug: 3459274
Change-Id: Ica2bb5b5aa4362d538df3765559d676c1aab4a85
2011-05-25 21:24:07 +09:00
Tadashi G. Takaoka 9e5be6caad Merge "Use custom theme for Keyboard theme switch" 2011-05-25 03:02:25 -07:00
Tadashi G. Takaoka 13a7419994 Use custom theme for Keyboard theme switch
This change reduces the number of layout files and make these
theme-generic.  This might be very helpful to re-design suggestion
strip.

Bug: 4175031
Change-Id: Idca10a4aa0bf7ac496eedd1879311e59780a423b
2011-05-25 18:59:00 +09:00
satok 30f38adb0b Merge "Disable the legacy recorrection functionalities if the suggestion span is supported" 2011-05-25 02:56:36 -07:00
satok 0d4757bb0b Disable the legacy recorrection functionalities if the suggestion span is supported
Bug: 4346045

Change-Id: Ib4594a9073b961038564bbcd601f9c290d153d5d
2011-05-25 18:37:48 +09:00
Tadashi G. Takaoka 6c4add55f9 Initialize CandidateView in setInputView
When keyboard theme has been switched, input view will be replaced
with new theme one and current CandidateView will get stale.  The
CandidateView must be reseted in setInputView.

Change-Id: I36fd14280572d2d367cfef549d7705b3b321ba3e
2011-05-25 18:28:03 +09:00
satok f4c9e9d359 Merge "Put SuggestionSpan at commitText" 2011-05-25 02:00:05 -07:00
Tadashi G. Takaoka 3e17686c68 Fix missing setService call for CandaiteView
This bug has been introduced by I95f379b9.

Bug: 4486388
Change-Id: I23fd3abe05946d4709b4593efa4713cd19723479
2011-05-25 17:57:33 +09:00
satok 1fef530ec7 Put SuggestionSpan at commitText
Bug: 4346045
Change-Id: Iaabdb8a148b2601bb9cbc2b08509adac164105a4
2011-05-25 17:48:31 +09:00
Tadashi G. Takaoka 0aa0133795 Fix missing initializartion of key preview position
This is followup of Iddab254c

Change-Id: I2d8e68b696779b742d29fdcf03c5fb509cb0bd87
2011-05-25 16:14:19 +09:00
Tadashi G. Takaoka 598a25d990 Merge "Enable long press even if the key is disabled" 2011-05-24 23:52:12 -07:00
Tadashi G. Takaoka e07b51e7c6 Enable long press even if the key is disabled
Change-Id: Iddab254c7d6625bf44473109b4a52d2f7a163a27
2011-05-25 15:22:03 +09:00
Tadashi G. Takaoka f3cd2bb33d Fix IllegalStateException when setting input view
This is followup change of I95f379b9.

Bug: 4175031
Change-Id: Ibf3e3bd2524c9543ec6193cb6e59529b2c4df3b1
2011-05-25 15:09:09 +09:00
Tadashi G. Takaoka 187a8da246 Merge "Move CandidateView into input view" 2011-05-24 00:12:20 -07:00
Tadashi G. Takaoka c150acc7c8 Move CandidateView into input view
Bug: 4175031
Change-Id: I95f379b9943d1dcab1dc5527b6e5ac5abd58e280
2011-05-24 15:37:53 +09:00
Tadashi G. Takaoka 5979673c9e Merge "Fix reflection method invokation" 2011-05-23 19:27:11 -07:00
Tadashi G. Takaoka 8e26dfeaae Add missing IME_ACTION_NEXT
Change-Id: I377042c1750dd97b922bcf40bffb4046e023f6bb
2011-05-24 11:22:25 +09:00
Tadashi G. Takaoka f23f00a13a Fix reflection method invokation
Either of Method.invoke, Field.get and Field.set can accept null as
receiver.

Change-Id: I4539dcc95a794f6ee84cf4e7aabf4e8f0206728f
2011-05-24 11:15:18 +09:00
Jean Chalard 8c08a49895 Merge "Squash case for bigram insertion/lookup." 2011-05-23 02:34:48 -07:00
Tadashi G. Takaoka 3a38fef7a0 Remove CandidatesView related method call from voice ime
Change-Id: I33ccf2c141d94437b175222b9e65c0b4e2671a35
2011-05-23 18:05:46 +09:00
Jean Chalard ed8c29568d Squash case for bigram insertion/lookup.
Bug: 4464446
Change-Id: If7b6d73fb408d53f941c82ed4f47221e85c845d8
2011-05-23 15:44:35 +09:00
Tadashi G. Takaoka 20e16475e6 Merge "Remove manual config item controlling to show input language settings" 2011-05-20 03:02:14 -07:00
Tadashi G. Takaoka 29a4b1ac88 Merge "Reload keyboard after SoftInputWindow size changed" 2011-05-20 00:42:13 -07:00
Tadashi G. Takaoka e896d31bb9 Reload keyboard after SoftInputWindow size changed
Bug: 4450008
Change-Id: Ic6c457db808d8e7479bfaa509192c07a384453e2
2011-05-20 16:23:20 +09:00
Tadashi G. Takaoka 9d98a7ed18 Merge "Fix copyright author from Google to AOSP" 2011-05-19 20:38:12 -07:00
Tadashi G. Takaoka d794c6f078 Remove manual config item controlling to show input language settings
Change-Id: I77f831c653567f2cf214a5b61107b25cca6d751d
2011-05-20 12:36:46 +09:00
Tadashi G. Takaoka 8632bff2d5 Fix copyright author from Google to AOSP
Change-Id: Iaceedc783181e43af6dd48ece218a42eace66532
2011-05-20 12:09:57 +09:00
Tadashi G. Takaoka 96f185d8af Fix NPE in Key.isDigitPopupCharacter
Change-Id: Ie6e8d31e41010db27e2db415b577458b73a9f1a2
2011-05-19 14:32:33 +09:00
Freeman Ng 0e8bbe3ab4 Merge "move setup wizard package name to google namespace" 2011-05-18 12:26:57 -07:00
satok 0b47f3af83 Merge "Show full display names in the popup of the spacebar language swicher" 2011-05-18 02:34:37 -07:00
satok eaa10f44a4 Show full display names in the popup of the spacebar language swicher
- Multiply the speed of the slide

Bug: 4427222
Change-Id: Ifd2de9843191296f0f311440ea7b8ab075c67d8d
2011-05-18 18:15:50 +09:00
Jean Chalard bf65f31c5f Fix a bug in one of the methods to get a dictionary.
One of the two methods for getting a dictionary from the dictionary
pack had a bug and would not tolerate not getting an actual dictionary.
This change fixes that.

Change-Id: Id58bb27258494fb3aa60ec07a4eb27cfb5cc7279
2011-05-17 22:55:58 +09:00
satok 1f050f6348 Fix NPE
Change-Id: Ib9a000ead8be91fab815dda161fcb258f678c3f4
2011-05-14 05:52:13 +09:00
Jean Chalard bb02bd1d50 Merge "Add advanced settings screen" 2011-05-13 04:44:26 -07:00
satok 7f3674af5a Merge "Fix null pointer exception in LatinIME" 2011-05-13 04:43:47 -07:00
Jean Chalard 240297d0ee Add advanced settings screen
Also add an option for popup dismissal delay so as to inaugurate the
new screen.  Besides, remove a path for options to escape from
LatinIME and replace with a direct read from the settings.

Change-Id: I7ec6e724262871fa6523506ecc39f65c5fbe34da
2011-05-13 20:40:21 +09:00
satok fe1a6d961c Fix null pointer exception in LatinIME
Change-Id: Ic4d60fe651bdc83771137c0f61f07c3879a3f1a1
2011-05-13 20:34:53 +09:00
Tadashi G. Takaoka bdd732721d Merge "Refactor KeyboardView constructor" 2011-05-13 04:08:20 -07:00
Tadashi G. Takaoka bdd9341f61 Refactor KeyboardView constructor
Change-Id: I1fd869c180c6c9f966936fce90bc031bc7824983
2011-05-13 20:04:06 +09:00