Commit Graph

2249 Commits (ffca763050ab2c237569bbac71d35d6b83a8a56b)

Author SHA1 Message Date
satok 5862b4cb8a Merge "Use reflections for classes related to InputMethodSubtype" 2011-03-19 13:25:50 -07:00
satok 610f1dc855 Use reflections for classes related to InputMethodSubtype
Change-Id: Ica53ce879c2b4c5eb47f757fb788a795a881c30e
2011-03-18 22:49:57 -07:00
Ken Wakasa 788c90daaa Merge "Add -Werror flag to catch more warnings and errors" 2011-03-18 18:21:39 -07:00
Ken Wakasa de3070a71b Add -Werror flag to catch more warnings and errors
Change-Id: I9c39ba24578931944aae8182918ed48a2e82eb39
2011-03-19 10:12:15 +09:00
Eric Fischer bf9bc9900b am 645f5e98: (-s ours) am f11c0a24: (-s ours) am e37ee542: Import revised translations. DO NOT MERGE
* commit '645f5e98ea44bee1d8e73801e1b0475b33db57b1':
  Import revised translations.  DO NOT MERGE
2011-03-18 17:05:43 -07:00
Eric Fischer 645f5e98ea am f11c0a24: (-s ours) am e37ee542: Import revised translations. DO NOT MERGE
* commit 'f11c0a245694d8396405e9ee47172714282b176b':
  Import revised translations.  DO NOT MERGE
2011-03-18 17:02:42 -07:00
Eric Fischer f11c0a2456 am e37ee542: Import revised translations. DO NOT MERGE
* commit 'e37ee542e688c6815e1640abf31dbe6e983dd825':
  Import revised translations.  DO NOT MERGE
2011-03-18 16:53:05 -07:00
Eric Fischer e37ee542e6 Import revised translations. DO NOT MERGE
Change-Id: I09b8c4f7c9a0b89fe5c4da8202115dedaa237fc3
2011-03-18 15:17:46 -07:00
Jean Chalard 0a7cf81ca2 Merge "Add different ways of reading the dictionary file." 2011-03-18 12:19:00 -07:00
Jean Chalard cba93f50c3 Add different ways of reading the dictionary file.
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
2011-03-18 12:16:50 -07:00
satok da4236fb51 Merge "Added CompatUtils for starting a language selector" 2011-03-17 20:36:42 -07:00
satok 2cff4d7e4a Added CompatUtils for starting a language selector
Change-Id: I158414efaff43d0c6abe1f9af83ed3425992dfb9
2011-03-18 12:33:04 +09:00
Eric Fischer 76c2ff2154 Import revised translations.
Change-Id: I02fb673c7b4f180fb60c5cb869c458b65820781a
2011-03-17 16:56:28 -07:00
satok 9807ab27ea (Refactor 1) Moved voice related codes to deprecated/voice
Change-Id: I008ac7099c815fb74a9ab374419617b336453f97
2011-03-16 23:00:59 -07:00
Tadashi G. Takaoka 071f47140c Refactor BinaryDictionary a bit
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
2011-03-16 19:46:19 -07:00
Tadashi G. Takaoka 89ff5adc80 Merge "Add Utils.equalsIgnoreCase methods" 2011-03-16 19:19:56 -07:00
Eric Fischer 6556b19fe1 am 88adb7d4: (-s ours) Import revised translations. DO NOT MERGE
* commit '88adb7d4a943b934427154962c7dfc3e3e3ba0a6':
  Import revised translations.  DO NOT MERGE
2011-03-16 17:12:13 -07:00
Eric Fischer 88adb7d4a9 Import revised translations. DO NOT MERGE
Change-Id: Ieb00b75f2eb2f9a85e11c1694d42d2ee449e29e0
2011-03-16 17:02:12 -07:00
Tadashi G. Takaoka e7a2512aa3 Add Utils.equalsIgnoreCase methods
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
2011-03-16 16:03:05 -07:00
Jean Chalard 027992afdc am d631651b: Avoid the removal of high-ranking exactly typed candidates.
* commit 'd631651b1291aef52bdd6ea7caaf9b95c9704506':
  Avoid the removal of high-ranking exactly typed candidates.
2011-03-15 23:54:31 -07:00
Eric Fischer 1f3adba970 am c0471c43: (-s ours) Import revised translations. DO NOT MERGE
* commit 'c0471c43fb056adc32a9fd9f8eaff449e1822b29':
  Import revised translations.  DO NOT MERGE
2011-03-15 23:34:14 -07:00
Jean Chalard d631651b12 Avoid the removal of high-ranking exactly typed candidates.
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
2011-03-15 21:12:38 -07:00
Eric Fischer c0471c43fb Import revised translations. DO NOT MERGE
Change-Id: I6eaad0ee53243ae5eece9bc6f8013eb77472e988
2011-03-15 14:49:18 -07:00
Eric Fischer 9eb7e2c37f Import revised translations.
Change-Id: Idc65c5944dcfa576ee50facb6b1f82e2a7d7186f
2011-03-15 10:48:11 -07:00
Eric Fischer 7be32d4fb2 am 9db8d064: (-s ours) Import revised translations. DO NOT MERGE
* commit '9db8d0641862e2d9532d2cde38e3b1538df5f0b2':
  Import revised translations.  DO NOT MERGE
2011-03-10 13:54:44 -08:00
Eric Fischer 9db8d06418 Import revised translations. DO NOT MERGE
Change-Id: I660c6bc3b40072e209fe31c3c86ad11ce7928a71
2011-03-10 11:28:07 -08:00
Tadashi G. Takaoka 33e8124cf4 am 6a75cd12: Add alphabet hint to number password layout
* commit '6a75cd124d885df1b257d63c9c2b0561a9b09b84':
  Add alphabet hint to number password layout
2011-03-09 10:07:46 -08:00
Tadashi G. Takaoka 56d54381de am ab0ee37f: Disable debug flag in TextEntryState
* commit 'ab0ee37f52b87756c6d91aecd508fda821aeb4b6':
  Disable debug flag in TextEntryState
2011-03-08 18:41:24 -08:00
Tadashi G. Takaoka 6a75cd124d Add alphabet hint to number password layout
Bug: 4063047
Change-Id: I53e79edcb15d4da73a72d14a38224e80b612c115
2011-03-08 18:02:18 -08:00
Tadashi G. Takaoka ab0ee37f52 Disable debug flag in TextEntryState
Bug: 4051276
Change-Id: I980c0dfefdf3ae70935aca9755a55d1c925a23f9
2011-03-08 12:11:47 -08:00
satok b34c74abb1 am b55fcea6: Merge "Add whitelist dictionary" into honeycomb-mr1
* commit 'b55fcea6fc23bf44966ffb278d976c54995be72e':
  Add whitelist dictionary
2011-03-07 22:50:07 -08:00
satok 2113ec2fa4 am e07f93d3: Merge "Tweak the demotion rate for a word with missing letter" into honeycomb-mr1
* commit 'e07f93d3ab60f88b154740186795efaf802c7051':
  Tweak the demotion rate for a word with missing letter
2011-03-07 22:48:09 -08:00
satok b55fcea6fc Merge "Add whitelist dictionary" into honeycomb-mr1 2011-03-07 22:45:09 -08:00
satok e07f93d3ab Merge "Tweak the demotion rate for a word with missing letter" into honeycomb-mr1 2011-03-07 22:44:16 -08:00
satok 0bddb2f4d6 Tweak the demotion rate for a word with missing letter
Bug: 4027223

Change-Id: Ie9a5552d2f41d60f433573fde52efc097f5143bf
2011-03-07 19:44:52 -08:00
satok bcfce3b3b9 Add whitelist dictionary
Bug: 3447571

Change-Id: I538e4e706982129b666ca1ab1085f1b68b69f87f
2011-03-08 11:29:10 +09:00
satok 36e2abdd3b am 46341838: Merge "Fix a bug that a word with only one missing word is not promoted" into honeycomb-mr1
* commit '463418385c2bca0ec13a3f720e0dbdbe769004bd':
  Fix a bug that a word with only one missing word is not promoted
2011-03-07 18:20:45 -08:00
satok 463418385c Merge "Fix a bug that a word with only one missing word is not promoted" into honeycomb-mr1 2011-03-07 18:15:39 -08:00
satok 1df8c82d71 Fix a bug that a word with only one missing word is not promoted
Bug: 4027223

Change-Id: Icf7c5b917c18b565dca95b98b96c1c8e2963f540
2011-03-07 18:01:09 -08:00
Eric Fischer b84046a3ba am d7e2bc33: (-s ours) Import revised translations. DO NOT MERGE
* commit 'd7e2bc335d354a4bb5ae78594aa38cb60df0597b':
  Import revised translations.  DO NOT MERGE
2011-03-07 13:32:26 -08:00
Eric Fischer d7e2bc335d Import revised translations. DO NOT MERGE
Change-Id: I2d90d6842d8572db68b3034917fa45e642c7f123
2011-03-07 13:03:14 -08:00
satok 509b13cd80 am 3c4bb774: A bug fix for the mistyped space algorithm
* commit '3c4bb7747d1a16d6b9d2d34992bad250069632a7':
  A bug fix for the mistyped space algorithm
2011-03-06 01:38:01 -08:00
satok 3c4bb7747d A bug fix for the mistyped space algorithm
Bug: 3311719

-- also fixed compiler warnings

Change-Id: I6941c0d02f10d67af88bc943748dde8d8783fabb
2011-03-04 23:25:48 -08:00
Jean Chalard 8867737adf am eaecb56f: Merge "Demote skipped characters matched words with respect to length." into honeycomb-mr1
* commit 'eaecb56f948a4979e72346f6c5c64b56f7bc7bbf':
  Demote skipped characters matched words with respect to length.
2011-03-04 22:46:13 -08:00
Jean Chalard eaecb56f94 Merge "Demote skipped characters matched words with respect to length." into honeycomb-mr1 2011-03-04 22:43:16 -08:00
satok a7dfbf8409 am f9a5bfa1: Merge "Add the suggestion algorithm of words with space proximity" into honeycomb-mr1
* commit 'f9a5bfa147b07f135e8da6f9b7305c31181fa5eb':
  Add the suggestion algorithm of words with space proximity
2011-03-04 22:27:28 -08:00
Ken Wakasa 107e876757 am 5ac85462: Merge "Fix a NPE caused by a null typedWord" into honeycomb-mr1
* commit '5ac8546268a3c3cd2f523d086043d6200c553fa7':
  Fix a NPE caused by a null typedWord
2011-03-04 22:24:22 -08:00
satok f9a5bfa147 Merge "Add the suggestion algorithm of words with space proximity" into honeycomb-mr1 2011-03-04 22:24:05 -08:00
Ken Wakasa 5ac8546268 Merge "Fix a NPE caused by a null typedWord" into honeycomb-mr1 2011-03-04 22:14:24 -08:00
satok 817e517e46 Add the suggestion algorithm of words with space proximity
Bug: 3311719

Change-Id: Ide12a4a6280103c092fa0f563dd5b9e3f7f5c89b
2011-03-04 20:37:18 -08:00