Commit Graph

316 Commits (a66ccc3e8da054341ada866706ad61c31468599b)

Author SHA1 Message Date
satok 525141a402 Clean up LatinIME java
- remove unused code
- add @Override
- change the inappropriate cast

Change-Id: Ib25b4939e5b4273794ab0f6349776b5b62d89894
2010-08-24 12:40:00 +09:00
Ken Wakasa 159bc3cf43 am 3ecb4813: am 17dc363a: Fix an NPE found in KeyboardSwitcher.isAlphabetMode()
Merge commit '3ecb4813f1f77ce9330b08a1a2ab83d26df05e51'

* commit '3ecb4813f1f77ce9330b08a1a2ab83d26df05e51':
  Fix an NPE found in KeyboardSwitcher.isAlphabetMode()
2010-08-23 12:02:52 -07:00
Yohei Fujii 4cd593d02a Fixed the issue of unsufficient description about popup_on_keypress at strings.xml
Bug:2930812
Change-Id: I3a6af4d2a6b0dea1d3391300f7bf9a577daf3c8d
2010-08-23 18:47:46 +09:00
Ken Wakasa 78c4611719 Fix LatinIME crashing due to crash in Contacts DB
bug: 2895391
Change-Id: I3a0628942b74556f8b600b63ebc5d808fb2f0abd
2010-08-20 20:12:39 +09:00
Ken Wakasa 17dc363a63 Fix an NPE found in KeyboardSwitcher.isAlphabetMode()
Change-Id: I03d3d9b25147632d25c1502f796acad4cdaeb239
2010-08-20 18:28:22 +09:00
satok 979f869096 DO NOT MERGE. Backport LatinIME from master to Gingerbread
TODO: Cleanup will follow.

Change-Id: I4a68ba9f2f55760aa24187f1f13fdfa8a0b70963
2010-08-20 14:37:03 +09:00
Tadashi G. Takaoka f95e947223 Refactor shift state and caps lock state handling code.
Move setShifted and setShifLocked methods to KeyboardSwitcher, then
delegate to LatinKeyboardView.

Bug: 2910379

Change-Id: I5dba70ec0dfc7a1ed67f1e05d54a2bd92252ed24
2010-08-20 11:42:28 +09:00
Eric Fischer 103634dd8d Merge "Import Romansh translations." 2010-08-19 12:01:53 -07:00
satok 22ac244d5e Add subtype to method.xml
Change-Id: I6006c729f89cc91d5674c19b95cf19ad2cab14cf
2010-08-19 20:02:00 +09:00
Eric Fischer 4c510f83a0 Import Romansh translations.
Change-Id: Ib6529182be031be2e54072a87516caee5f0d2c1d
2010-08-18 16:27:03 -07:00
Yohei Fujii e68bba227f Fixed the popup default value problem.
Bug:2909517

Change-Id: Ic323d38219a2af211b8a8db09746febe4ccbede9
2010-08-18 16:54:26 +09:00
Eric Fischer b9ab7ddd33 Merge "Import revised translations." 2010-08-17 17:24:41 -07:00
Eric Fischer 1193da8ed2 Import revised translations.
Change-Id: I975bcb5cf09211c6379cc7e7ad89ea09d91e7ec1
2010-08-17 16:56:36 -07:00
Ken Wakasa 5403336357 Merge "Fix various modifier keys on the Norwegian keyboard." 2010-08-17 16:34:10 -07:00
Amith Yamasani c20c5a8d4c Fixes for correction mode - reliably show the corrections when tapping on a word.
Also, continue to show the corrections when user keeps replacing the word repeatedly
with different corrections from the suggestion strip. There were problems with
tapping suggestions quickly or tapping the same suggestion more than once (same length).

Also fixes Bug: 2852891 - Text suggestion appears incorrectly when selecting text that's
not a whole word.

Changed the TextEntryState states to an enum type instead of int. Needed it to show the
states for debugging purposes.
2010-08-17 09:05:24 -07:00
Steinar H. Gunderson 4b892a1daa Fix various modifier keys on the Norwegian keyboard.
There are some traditional differences between Norwegian and Swedish
keyboard layouts -- for instance, few Norwegians would search for ü
on the y key, but it is so on the Swedish keyboard. Correct the most
obvious differences.

Change-Id: Iab53fa51ff7faa2022b10b551e47060a6f2c5652
2010-08-17 15:18:26 +02:00
Yohei Fujii c9a181b1b3 Fixed default preference issue.
Change-Id: I6d12bc054fde0fe3ea03b673e7b5b7d7f8db8d54
2010-08-17 18:11:43 +09:00
Yohei Fujii fda1ae71b5 Fixed the issue of popup enabled when i change to symbol keyboard.
Bug:2909517
Change-Id: I1c010b1079a04ff3b08d690c536fbe8d4414ea14
2010-08-13 19:02:34 +09:00
Ken Wakasa 648dcf55a3 Revert the open-source LatinIME package name -
from com.google.android.inputmethod.latin to com.android.inputmethod.latin

Related change: https://android-git.corp.google.com/g/60862

bug: 2786392

Change-Id: Ib7c6cfe61db19ef50c401a01497eef5f1f5e239e
2010-08-13 00:01:03 +09:00
Yohei Fujii 0b0a686281 add new preference for popup preview
this option is disabled as the default at x-large

Bug:2909517

Change-Id: Ifda1b7ff89bc4beeee02ba0f3e01d441a9435b37
2010-08-12 16:45:44 +09:00
Satoshi Kataoka 8dbb0973e9 Merge "Fix the bug that black symbols are shown when only one lanugage is selected. (Update with the files left out from Change-Id: I15f83fc43d91c2c9d74b40fdcecdfe239242d565.)" 2010-08-10 22:59:37 -07:00
Jae Yong Sung c868d0444c Merge "-UserBigram -UnitTest for UserBigram -Changes for number of bigrams to load" 2010-08-10 20:22:11 -07:00
Jae Yong Sung ac093396ba -UserBigram
-UnitTest for UserBigram
-Changes for number of bigrams to load

Change-Id: I2c6fbe6194d34112ccc52c7e199461d2350e8516
2010-08-10 13:30:58 -07:00
Eric Fischer 4e19a93cbd Import revised translations.
Change-Id: I19c1bce22c2395b727891f60776946a0eec7145b
2010-08-10 12:13:13 -07:00
Amith Yamasani 6dea425480 Fix for NPE in saveWordInHistory
Bug: 2898207
2010-08-05 17:31:19 -07:00
Eric Fischer d31d814c58 Merge "Import revised translations." 2010-08-05 16:52:33 -07:00
Ken Wakasa 6be8e35235 am b608a93c: am 6511376f: am 65582531: Fix a bug in backspace handling for the "Tap again to save"
Merge commit 'b608a93c0f3087b191c88cd75665886b7c52015e'

* commit 'b608a93c0f3087b191c88cd75665886b7c52015e':
  Fix a bug in backspace handling for the "Tap again to save"
2010-08-05 16:44:39 -07:00
Ken Wakasa 6511376ff6 am 65582531: Fix a bug in backspace handling for the "Tap again to save"
Merge commit '6558253160e2039c87f424bd814f402ecd31de3b' into gingerbread

* commit '6558253160e2039c87f424bd814f402ecd31de3b':
  Fix a bug in backspace handling for the "Tap again to save"
2010-08-05 16:37:47 -07:00
Eric Fischer 15c37520c9 Import revised translations.
Change-Id: I5671feaa4760b2583052527f3026de9c4411c3a4
2010-08-05 16:10:04 -07:00
Ken Wakasa 6558253160 Fix a bug in backspace handling for the "Tap again to save"
bug: 2889273
Change-Id: I0f317e203f368f5f47738154a6dee0f556d56148
2010-08-06 01:14:09 +09:00
Eric Fischer 7faf89f801 Import revised translations. DO NOT MERGE
Change-Id: Ia4de960b5d1168d49b7a97b22751fde11047f5ea
2010-08-04 10:45:43 -07:00
Gilles Debunne 0981a442f3 Generated hdpi drawable size reduced
Change-Id: I653e483f85d04026654a5cd74b48a97b28bd7e45
2010-08-03 18:37:36 -07:00
Gilles Debunne 99991cf0ee Removed conflicting .9 png
Change-Id: Ifafdf81efa05445e143f4e2a44385f540540ecff
2010-08-03 12:19:32 -07:00
Gilles Debunne d5b1296738 packages/inputmethods/LatinIME/ : added scaled hdpi version of assets that were moved to drawable-mdpi
Change-Id: I3e0281e20362f051495b2750cd0b06ab77ed090f
2010-08-03 10:47:36 -07:00
Fredrik Roubert 7ed4c6b81a Fix the bug that black symbols are shown when only one lanugage is selected.
(Update with the files left out from
Change-Id: I15f83fc43d91c2c9d74b40fdcecdfe239242d565.)
2010-08-03 18:35:00 +02:00
Gilles Debunne 11fa0a220b Move pngs from drawable to drawable-mdpi in project packages/inputmethods/LatinIME/
Change-Id: I7df8040996aab9c90547a472a7627f1f1afe4eb9
2010-08-02 15:12:15 -07:00
Tadashi G. Takaoka 35f6cd905d Fix possible NPE and IndexOutOfBoundsException.
Bug: 2868304
Change-Id: I2c474736fb9bb95da9e04bdeb9b9b641e7c3adda
2010-07-29 14:54:21 -07:00
Tadashi G. Takaoka bc305c21bf Merge "Fix NPE introduced by Change-Id: Ie482167b2ae2804fa1aa43ffb5067af47b7553f1" 2010-07-29 11:38:29 -07:00
Tadashi G. Takaoka 87fe3b8556 Fix NPE introduced by Change-Id: Ie482167b2ae2804fa1aa43ffb5067af47b7553f1
Bug: 2868304
Change-Id: I60895e76c4288d4e0e960e5ba22cb47c4b989bf3
2010-07-29 11:37:07 -07:00
Ken Wakasa 4081653744 Move dictionary.xml which refers to the vendor-specific dictionaries to the vendor-specific directory.
Change-Id: I0eff59ca186002fdafe3940720606cc4a39077a6
2010-07-30 01:41:17 +09:00
satok 5f14188625 Merge "Add a layout for a black-characters based theme" 2010-07-28 23:13:46 -07:00
satok db60e6f369 Add a layout for a black-characters based theme
bug: 2838151

Change-Id: Ia7136ac7432258386a53ebec2b26251c8caae0ea
2010-07-29 14:44:34 +09:00
Tadashi G. Takaoka f00341fdc5 Fix grammar error in comment
Change-Id: I728c2fefcf3c22d30d192a9f4b3aedad4eddc2ed
2010-07-28 20:43:48 -07:00
Tadashi G. Takaoka 820e4260cd Fix inconsistency between pop-up preview key and input key
This issue is caused by three reasons.
- In touch move event and while time debouncing is going on, wrong key
  is shown as pop-up preview.
- There is no pop-up preview key shown when touch up event occurs and
  also showing pop-up preview message is unintentionally canceled.
- In detectAndSendKey() method, nearby keys' primary codes are
  mistakenly sent as Key codes.

This is the last of three changes to fix bug #2868304

Bug: 2868304
Change-Id: Ie482167b2ae2804fa1aa43ffb5067af47b7553f1
2010-07-28 20:30:04 -07:00
Tadashi G. Takaoka 7a73c18fd7 Merge "Add hysteresis movement key debouncing" 2010-07-28 11:31:59 -07:00
Jae Yong Sung 80aa14fd43 - separate dict (uses xml)
- retrieve bigrams that only starts with character typed and neighbor keys
- contacts bigram
- performance measure

bug: 2873133

Change-Id: If97c005b18c82f3fafef50009dd2dfd972b0ab8f
2010-07-28 11:08:08 -07:00
Tadashi G. Takaoka e36bce042b Add hysteresis movement key debouncing
When key is pressed, each key will have a halo which is 0.05 inch
wider than the key.

Bug: bug2517112

Change-Id: I1368ff4af5f5d230b8c2f0c05c3c27bdb89027ae
2010-07-28 10:54:06 -07:00
satok 679b838b05 Update resources of the tentertive UI for tablet friendly UI
Change-Id: I59acd50b3531cf02d71c124d7ce8211d0c3dcd7e
2010-07-29 02:18:29 +09:00
Tadashi G. Takaoka e55a9a170e Refactor move and time de-bouncing codes into separate static class
This is the second one of three changes to fix the bug#2868304.

Bug: 2868304
Change-Id: I11a6d2e501888da98faf0c88c8d861c508d500fc
2010-07-27 09:35:05 -07:00
Maryam Garrett 879b79be27 Merge "Read the alternatives from the server-side" 2010-07-27 08:43:49 -07:00
satok 9f1db5fbcd Merge "Add a logging code to send Bigram data" 2010-07-27 01:45:15 -07:00
satok d5276e4a72 Add a logging code to send Bigram data
- with some cleanups

Change-Id: I737c9ee7f148f94e6299d6e962dda82701454759
2010-07-27 17:42:52 +09:00
satok 6591321cc1 Remove values-xlarge/styles.xml and added key_text_size to dimens.xml
Change-Id: I5b23950447742f70e7ca6dca21e8afaed28d30ec
2010-07-27 16:04:54 +09:00
Tadashi G. Takaoka 994d4000f4 Merge "Refactor UI message handling class to be more readable" 2010-07-26 22:44:36 -07:00
Tadashi G. Takaoka bd0f31f492 Refactor UI message handling class to be more readable
This is the first one of three changes to fix the bug#2868304.

Bug: 2868304

Change-Id: I2eb31c0966b2a7695e19aed7fceb13dad0c5bf0d
2010-07-26 22:40:02 -07:00
Tadashi G. Takaoka 999368ef0c Updating keyboard ids must happen everytime makeKeyboards() is called
In makeKeyboards(), there is a fall through pass in which the
keyboards' id (mSymbolsId and mSymbolsShiftedId) will not be updated.
Then in toggleShift(), current keyboard id (mCurrentId) will not match
any of two and nothing happens.

Bug: 2825858

Change-Id: Iaf8a7368f513b35cf77a67794ecd3e21aa08484b
2010-07-26 16:35:47 -07:00
Maryam Garrett 262748c8da Read the alternatives from the server-side
This change will parse the voice-search word-based
alternatives from the bundle returned by the server,
rather than generating them on the client.

Change-Id: I7d7abc224de3ab8f37eca18632a427d39fd61a78
2010-07-26 13:56:26 -04:00
satok b851e406c0 Merge "Change the default value of keyTextSize for xlarge" 2010-07-26 03:43:30 -07:00
satok c97c326cb8 Change the default value of keyTextSize for xlarge
- rename ginger to stone

Change-Id: I6968ed1b388e1f55ecb27a449ca49be77790f9cc
2010-07-26 19:29:30 +09:00
Ken Wakasa ae1b71c6a8 Move Google's proprietary dictionaries for LatinIME to vendor/google/apps/LatinImeGoogle.
bug: 2811749

Refer to https://android-git.corp.google.com/g/58621

Change-Id: I3721ad3b3a29673f1ddd32871b1575a45c7365ee
2010-07-24 11:50:38 +09:00
Ken Wakasa 68df22eebc Get rid of wrongly added "Don't translate" entries in values-sr/strings.xml
Change-Id: I10437a119fac68ae3231ad923b2ce090f56847e6
2010-07-23 01:01:53 +09:00
Ken Wakasa 74635f5146 Merge "Add Norwegian and Danish keyboard layouts." 2010-07-21 22:20:39 -07:00
Fredrik Roubert 7c76990c03 Add Norwegian and Danish keyboard layouts.
Change-Id: I77e4f6105b1f5d4569ad59e3d536941310cc6c0d
2010-07-21 10:16:23 +02:00
satok 512cba7838 Merge "Fix a string for zh-rCN" 2010-07-20 06:25:30 -07:00
satok 096b87a4b4 Fix a string for zh-rCN
Change-Id: I63d9c5254188a84c92cb4ff34988ebb5a2a034ae
2010-07-20 22:24:00 +09:00
satok 40bd98816d Enable re-edit feature
Change-Id: I4c6a9ddf3f3c4eb35076f4ed27e009462cfc2e9e
2010-07-20 20:19:21 +09:00
Ken Wakasa b42ceab02e Merge "Change the default vaule of Log to be false" 2010-07-20 01:59:23 -07:00
satok 7df1c4e6c9 Change the default vaule of Log to be false
Change-Id: I8a3c0ce81b67e27b7559b534b4ccde2ad0783dbc
2010-07-20 17:46:09 +09:00
Ken Wakasa 9a5d3cd9a5 Merge "Prepare for master merge - Rename the jni library name - Revert the local cert - LatinIme2Google -> LatinIME Please note that we'll use the new package name: com.google.android.inputmethod.latin" 2010-07-20 00:51:23 -07:00
satok 9ebcc21450 Merge "Change the name of the application to Latin Keyboard" 2010-07-20 00:50:43 -07:00
Ken Wakasa debd74c678 Prepare for master merge
- Rename the jni library name
- Revert the local cert
- LatinIme2Google -> LatinIME
Please note that we'll use the new package name: com.google.android.inputmethod.latin

Change-Id: Ibbab07e8102ade5a93660c0723cd86f600c14a7d
2010-07-20 16:37:12 +09:00
satok 91d96f2a64 Add xlarge resources
Change-Id: I8879322ed8573d57257faf15b66b8ae04101971f
2010-07-20 14:21:54 +09:00
satok e04cc8b826 Change the name of the application to Latin Keyboard
Change-Id: I0ae02c61fae200672004028196d3e8d990b4c32c
2010-07-20 14:17:34 +09:00
satok 481a75fcfa Merge remote branch 'goog/master'
Conflicts:
	java/src/com/android/inputmethod/latin/LatinIME.java
2010-07-17 19:20:35 +09:00
Tadashi G. Takaoka 44f92495c1 Merge "Slightly reluctant to scroll candidate strip to be able to easily choose the suggestion" 2010-07-16 22:56:00 -07:00
Ken Wakasa 1812bcebd6 am 88e7b49f: Backport https://android-git.corp.google.com/g/#change,52371 to Froyo. Fix bug: 2693836 - Russian keyboard is missing a letter
Merge commit '88e7b49fc8657544380620729eb28966669103a2' into gingerbread

* commit '88e7b49fc8657544380620729eb28966669103a2':
  Backport https://android-git.corp.google.com/g/#change,52371 to Froyo.  Fix bug: 2693836 - Russian keyboard is missing a letter
2010-07-16 18:12:48 -07:00
Tadashi G. Takaoka 353c20a62f Slightly reluctant to scroll candidate strip to be able to easily choose the suggestion
Also fixed the comment of mMinTouchableWidth

Bug: 2581826

Change-Id: Idc79186b0647b0e7e7ec889488b019b7db5241ad
2010-07-16 18:04:18 -07:00
Ken Wakasa 88e7b49fc8 Backport https://android-git.corp.google.com/g/#change,52371 to Froyo. Fix bug: 2693836 - Russian keyboard is missing a letter
Change-Id: Ic931991bc188f646d30a399bb0b268f415f12051
2010-07-17 09:51:26 +09:00
Amith Yamasani 8b96a9a238 Underlining for correction is causing problems with styled text. Disable for now.
Disable until we find a cleaner solution to highlighting for correction (may need
a framework change).

Removed a check for VoiceInput.DELETE_SYMBOL, which is not in use any more.
2010-07-16 13:28:38 -07:00
satok f336adc4bf Comment out re-editing feature
Change-Id: Ib4ffee3a00b8dae75e3472ccdfcb3765625ed4ed
2010-07-16 17:59:24 +09:00
satok 9dc82cb77e Merge "Change version to 0.21" 2010-07-16 01:43:06 -07:00
satok f73907ab5a Change version to 0.21
Change-Id: I8e3792ba43293313baab0bb0d6bebba8c65df4b9
2010-07-16 17:42:33 +09:00
satok 7ff4da9489 Fix build failure by adding an input
Change-Id: I0f8f7549423deb6d18df4cca949b210c9ec494a5
2010-07-16 17:38:25 +09:00
satok b9c57e6540 Merge remote branch 'goog/master'
Conflicts:
	java/res/xml/prefs.xml
	java/src/com/android/inputmethod/latin/BinaryDictionary.java
	java/src/com/android/inputmethod/latin/Dictionary.java
	java/src/com/android/inputmethod/latin/ExpandableDictionary.java
	java/src/com/android/inputmethod/latin/LatinIME.java
	java/src/com/android/inputmethod/latin/Suggest.java
	tests/src/com/android/inputmethod/latin/tests/SuggestTests.java
2010-07-16 13:02:45 +09:00
Ying Wang 2a118d844e Unbundle LatinIME
Change-Id: I9f55377d5de050d18ee4a3b29bc43b19b0fababd
2010-07-14 17:32:12 -07:00
Jae Yong Sung 937d5ad013 added bigram prediction
- after first character, only suggests bigram data (but doesn't autocomplete)
  - after second character, words from dictionary gets rearranged by using bigram
  - compatible with old dictionary
  - added preference option to disable bigram

Change-Id: Ia8f4e8fa55e797e86d858fd499887cd396388411
2010-07-13 11:33:39 -07:00
Amith Yamasani b71547f2d0 Fix some bugs in editing feature
- Fixed caching of words - some StringBuilders were being recycled while also being cached. Making copies now.
- Fixed regression in revert - don't reset the word composer after saving the accepted word.
- Removed flicker when cursoring through a word - delay the abortCorrection() until we need to and do the correction
   as an atomic operation.
- Fixed replacing of "selected" words (double-tap to select a word)

Still to do:
- Remove flicker on highlighting a word - may need a framework change
- Don't remove spans on text that's already in the text field - may require a framework change.
- Figure out what to do about the punctuations that share the suggestion strip when in correction mode.
2010-07-09 14:08:01 -07:00
satok b5a0d8ef42 Merge "Change version" 2010-07-02 01:38:19 -07:00
satok 2941dc28d7 Change version
Change-Id: I1e4042eef1a6b19e1e75cc62f24e8b229970b608
2010-07-02 17:37:41 +09:00
satok 09ecdc8bd6 Disable re-editting feature.
Change-Id: I1fd8d7b3037ec8ee2eb468ed7770b10c09c5e73c
2010-07-02 17:32:55 +09:00
satok bc0b0a6478 Show preview of F1 keys properly
Change-Id: Ie1c6a13efcada09d29c1006224dcf54000c14283
2010-07-02 08:02:55 +09:00
satok e8e153490d Merge "Null check at BackToAcceptedDefault" 2010-07-01 14:45:28 -07:00
satok ac108d5b34 Null check at BackToAcceptedDefault
Change-Id: Ib232475520f822bf8613258afb9638e1be50d7f7
2010-07-02 06:36:02 +09:00
satok a86a942d7c Fix the mic icon key is not black in the black scheme.
Change-Id: I2be3507019601bc93a3e49cc60777e1515f53dc4
2010-07-02 05:35:27 +09:00
satok c700ffcddf Merge commit 'goog/master' 2010-07-01 15:59:27 +09:00
Ken Wakasa b54abe22ab Merge "Add key debounce. bug: 2517112" 2010-06-30 18:38:50 -07:00
Ken Wakasa 59d271ee76 Add key debounce. bug: 2517112
Change-Id: I461e481226395ce8964003c2ad1f4af888c6f7f9
2010-07-01 10:31:14 +09:00
satok c891d4d16c Merge "Fix NPE on logging words" 2010-06-30 17:37:29 -07:00
satok 9c76844da2 Fix NPE on logging words
Change-Id: Idb01cc3226a979de656b30e57422bb35b25d13fa
2010-07-01 08:42:20 +09:00
satok 222c9019e7 Add a key to the keyboard layout for Russia
bug: 2693836
Change-Id: I88a3664af8074788c6bfc146247ab33ae8a02c08
2010-07-01 07:33:06 +09:00