Keisuke Kuroynagi
911f326857
Fix proximity/edit correction detection that affects the terminal cost.
...
Bug: 8624690
Change-Id: If59305674a781e0fcc284d236e3d8ba9cdf9ed08
2013-04-24 20:21:18 +09:00
Tom Ouyang
f99f1a757b
Merge "Check bigrams for lowercased previous word if original is not found"
2013-04-24 05:12:02 +00:00
Tom Ouyang
14aa8f1d32
Fix autocompletion lookahead handling
...
Bug: 8689370
Change-Id: I056b1788764bd5c4d8ad9da86e790562d2781f06
2013-04-22 19:36:14 -07:00
Tom Ouyang
5fa33a701d
Check bigrams for lowercased previous word if original is not found
...
Bug: 8592527
Change-Id: I70c4b81263d8b2cb7050364c124589f66900cfce
2013-04-22 18:16:36 -07:00
Jean Chalard
c9688ef267
Fix a small bug
...
Tests results in Ibcd6c110f1d5582425f9592c42e31152131ef80c
Bug: 7226877
Change-Id: I8d03bae3264974eff7b790e27c073b0a8758d17a
2013-04-22 18:30:46 +09:00
Tom Ouyang
90cb956c4f
Remove duplicate new-word bigram cost (part 1)
...
Removes a duplicate application of the new word bigram cost and updates only
the related parameters (those associated with multi-word suggestions).
Note: test results will improve after full optimization.
[Category diff]
+1 357
-1 485
+2 16
-2 20
+3 20
-3 16
+4 198
-4 226
+5 510
-5 443
+6 518
-6 368
+7 394
-7 455
[Weighted category diff]
+1 482
-1 532
+2 22
-2 22
+3 22
-3 22
+4 233
-4 381
+5 578
-5 500
+6 617
-6 498
+7 522
-7 521
Bug: 8633962
Change-Id: I3c3ecc9460e8e03e44925e11b2d4b037a6c3b99e
2013-04-17 19:25:48 -07:00
Tom Ouyang
3970352ea9
Make digraph lookups case insensitive
...
Example: Be able to gesture dictionary words that start with an upper-case
German umlaut (e.g., Übermensch).
Bug: 8493920
Change-Id: I3253bcd236d34c0af60116e5b41e359f2715bf97
2013-04-16 20:08:42 +09:00
Ken Wakasa
2dfaf7a4ac
Update SORTED_CHAR_MAP
...
bug: 7873416
bug: 8493920
Change-Id: Ifddb04cad90da71df5d34dd7076850dbcf51fba4
2013-04-16 19:17:41 +09:00
Satoshi Kataoka
252412d7eb
Use additional multi-word cost per language (for Russian)
...
Bug: 7540133
Change-Id: I7eb7b8399746c15452ed2ed5069955e88fb546d3
2013-04-16 16:42:36 +09:00
Satoshi Kataoka
837f46dcb3
Enable touch coordinate correction for new algorithm
...
Bug: 8505668
Change-Id: I07eb785c74c446777524104a3d2b61f0f591a498
2013-04-15 19:10:27 +09:00
Satoshi Kataoka
a94bb198cf
fix assertion
...
Change-Id: I34ff470122aa0f34c66425d2eeae7590187d3074
2013-04-15 12:03:21 +09:00
Ken Wakasa
2daea19709
am 47bb8d7d: am 4fffa27d: Fix a native crash in AOSP LatinIME
...
* commit '47bb8d7d9cd2dcc8e80f90283e4d9b7d4f68e70b':
Fix a native crash in AOSP LatinIME
2013-04-11 22:21:10 -07:00
Ken Wakasa
4fffa27d3f
Fix a native crash in AOSP LatinIME
...
bug: 8597610
Change-Id: I585c629636a52a1ac45b8cc686bc94427bb601df
2013-04-12 12:53:28 +09:00
Satoshi Kataoka
8b3009ef48
add a debug flag to evaluate the most probable string
...
Change-Id: I34dc08c14feb9cbc0304c1d0ff06922e3b65819d
2013-04-11 11:08:12 +09:00
Tom Ouyang
fd9f3d97ae
Add ability to handle digraphs in gesture and tap typing
...
Example: Gesture the German word "ueber" and the system will now replace
the transliteration "ue" with the correct u-umlaut.
Bug: 8493920
Change-Id: I03e1d6311b4187b6c7f802d8fef43a50eee12721
2013-04-10 22:52:49 +00:00
Tom Ouyang
25e8eda9af
Add mechanism to handle digraphs in DicNode
...
This is needed to support for German umlaut handling for both gesture and typing input.
Bug: 8493920
Change-Id: I292e2a4911c54aa5566c38411016a220bb35a1f4
2013-04-10 14:35:49 -07:00
Keisuke Kuroynagi
87fdde6ec4
Typing double letters via a 'circle' on the key.
...
Bug: 8550980
Change-Id: I5e432dea0e025ccea196f80e90a6bf945488e130
2013-04-10 12:43:13 +09:00
Tom Ouyang
43779c04a9
Merge "Add method to get dictionary flags from DicTraverseSession"
2013-04-09 20:40:24 +00:00
Satoshi Kataoka
a1d84bcf8f
Fix touch coordinate calibration
...
TRT: I3b5f3ed07eabc59306a17
Bug: 8505668
Change-Id: I574d25a4e9886c521f013f9a8ffc09cc145fc0fc
2013-04-09 17:51:53 +09:00
Tom Ouyang
ede2333640
Add method to get dictionary flags from DicTraverseSession
...
This is needed for the traversal algorithm to know which
digraphs (if any) are associated with the current dictionary.
Bug: 8493920
Change-Id: I6ae088b55e50c0c2c7066d045b304c5068e23390
2013-04-08 18:14:38 -07:00
Ken Wakasa
31f42ba0c2
Tiny clean up in Makefile
...
Change-Id: Iff6f363894f01a4c30c795fe88892c2bb8e0a856
2013-04-08 20:22:37 +09:00
Ken Wakasa
b68e734481
Cleanup the include paths
...
Change-Id: Ic93d39e230170cfc9f5be6d81d42006e1a61e347
2013-04-08 18:45:46 +09:00
Satoshi Kataoka
e320789a62
Suppress bigram native log
...
Change-Id: I0b3900e0a205b6925ab9a2be55d375f6b14c803c
2013-04-08 17:33:32 +09:00
Satoshi Kataoka
e67ede12ec
Cleanup suggest interface
...
Change-Id: Ibe334a1d3ab3af69acfa64412c80f0ea24cd2c46
2013-04-08 12:54:04 +09:00
Tom Ouyang
08fd3d95d5
Merge "Add DigraphUtils class"
2013-04-05 03:08:59 +00:00
Tom Ouyang
2fdf5b70ad
Add DigraphUtils class
...
Add a new DigraphUtils class to manage digraph handling for both
gesture and typing input.
Bug: 8493920
Change-Id: I3a509e1311b9039653f9f488d3c28bb54205f416
2013-04-04 19:56:04 -07:00
Ben Cheng
65534ffc4a
am d0c383e1: am 5a4949c2: Merge "Force inlining Correction::isSingleQuote" into jb-mr2-dev
...
* commit 'd0c383e1473c1b302038f4145ba5192fd9af9a5f':
Force inlining Correction::isSingleQuote
2013-04-04 12:20:25 -07:00
Ben Cheng
5a4949c28b
Merge "Force inlining Correction::isSingleQuote" into jb-mr2-dev
2013-04-04 19:13:52 +00:00
Ben Cheng
c2fbd7c64d
Force inlining Correction::isSingleQuote
...
Also, only apply -Winline with GCC 4.6. There are some copy constructors
that GCC 4.7/4.8 fail to inline.
Change-Id: I97906045224e89377e8ea6add07a79fa088648af
2013-04-04 11:26:04 -07:00
Tom Ouyang
609a871da6
Add flag to turn on new suggest implementation for typing
...
Bug: 8277656
Change-Id: I974f560050cc5339d110b97620df1c5b496977fe
2013-04-04 15:37:14 +09:00
Satoshi Kataoka
95fe826795
Move suggest logic to AOSP
...
Bug: 8197301
Change-Id: I2d0ffbbc9d4d57ebfc2fe43e6cb75e8b44dae466
2013-04-03 21:00:57 +09:00
Satoshi Kataoka
a6a4165196
Move typing policy to AOSP
...
Bug: 8197301
Change-Id: Ife9b41a465d7b8d707623a6d3e4c1c88c3c3c4ab
2013-04-02 16:53:53 +09:00
Satoshi Kataoka
3107b467c9
Move policy and session to AOSP
...
Bug: 8197301
Change-Id: I742ff0d939f9ad1ee2cd8b959b6c5ee2757fd177
2013-04-01 18:15:08 +09:00
Satoshi Kataoka
38c26dd0bf
Move dicnode to AOSP
...
Bug: 8187060
Change-Id: I72398fa45b12683bd46d23c5ca69e6bcd5ca2b7e
2013-04-01 16:14:14 +09:00
Satoshi Kataoka
394b0bd345
Refactor
...
Change-Id: Ie50fdd1081d306e520300245498a605e79e03818
2013-03-29 18:49:50 +09:00
Tadashi G. Takaoka
ef86bbceae
Add const_cast to live with host's jni.h
...
Bug: 7970626
Change-Id: I2fd09e16dd9df36eebca2d737a0b7cc3ddd1c862
2013-03-26 17:58:17 +09:00
Satoshi Kataoka
e0e6737373
Refactor parameters by naming convention
...
Change-Id: I8bda8075b33f656ecbec08320afcd864b620fe77
2013-03-18 15:42:15 +09:00
Satoshi Kataoka
cbb816d1b0
Refactor skippable code point
...
Change-Id: I5477b6e5d29d1f0b9c2fd5a495be77cf5f2fbaee
2013-03-13 19:04:16 +09:00
Satoshi Kataoka
f4425aaae9
Refactor ProximityType and CorrectionType
...
Bug: 8277656
Change-Id: Ia7940bbf81fcf4ff5eb7869b105d98aa34155d33
2013-03-07 13:23:02 +09:00
Tom Ouyang
2192d08b9c
Remove unused scale parameter from getPointToKeyLength()
...
Change-Id: I7bbe1b68264a389923f8a19bb37646c8ab0cb46f
2013-03-06 18:30:43 -08:00
Ken Wakasa
042020b05f
Make Cyrillic Hard Signs base letters of Soft Signs per cyrillic
...
keyboard layouts
bug: 8269407
Change-Id: I52962ef1b6cbec125f6cfd3afc110fcbb06409df
2013-03-05 20:09:02 +09:00
Satoshi Kataoka
830ba67498
refactor MAX_POINT_TO_KEY_LENGTH
...
Change-Id: I3b44068bce784531516f3cdfe67b3b46b1f1b805
2013-03-05 15:10:09 +09:00
Satoshi Kataoka
d870891170
Add CorrectionType
...
Change-Id: Ibbad8476be40e322cadfbf9636a13e575338ec1d
2013-03-04 17:47:47 +09:00
Satoshi Kataoka
697a9d3541
Cleanup getProximityType
...
Change-Id: I89c5871bbcf0fe3d5f50052e8f64932d8efbce94
2013-03-01 20:22:29 +09:00
Satoshi Kataoka
fd0e93295f
rename define
...
Change-Id: I4767eff187c76541648cc066a88293e46a90f033
2013-03-01 19:05:04 +09:00
Satoshi Kataoka
a406f803bc
add a default vaule for getMatchedProximityType
...
Change-Id: Id940f1226ca493d0a1b82e2810b1882184ef8987
2013-03-01 12:36:35 +09:00
Tom Ouyang
c95d005c8a
Merge "Use common incremental decoder output scale."
2013-02-22 04:19:34 +00:00
Tom Ouyang
31f7ece470
Use common incremental decoder output scale.
...
Change-Id: Ib6bd7be45be9229a075b6a8feb46c67ec75a9b06
2013-02-21 15:42:44 -08:00
Satoshi Kataoka
2b47513de1
Merge "add defines"
2013-02-21 13:30:08 +00:00
Satoshi Kataoka
bc25b80525
add defines
...
Change-Id: I8bc009bf258cbdf01e15dc63a7a8afad47db5d96
2013-02-21 21:59:28 +09:00
Satoshi Kataoka
d1fff1adcc
Add debug output
...
Change-Id: I45fd249a6536e438125782e6e7800760f8e8d426
2013-02-20 15:53:44 +09:00
Satoshi Kataoka
f9097056f2
Merge "clean up seach key vector"
2013-02-14 08:47:53 +00:00
Satoshi Kataoka
e5cdd21102
clean up seach key vector
...
Bug: 8197301
Change-Id: I6a67d2914bd44b3ceca655adcd65c9c42796b026
2013-02-14 17:04:34 +09:00
Ken Wakasa
d74214d726
Prep for GCC 4.6 that will be used in unbundled branches
...
Change-Id: I31c1d1bc573ee10779efce0f221d378ad758e9ca
2013-02-13 19:56:19 +09:00
Tom Ouyang
625778fd36
Add keyboard hypotenuse metric to ProximityInfo.
...
Change-Id: If4a23041b460326a579e8b8cab20b5c027441e23
2013-02-08 14:13:01 -08:00
Ken Wakasa
ee456af9d4
Cleanup in ProximityInfoParams
...
Change-Id: I4302e3cb2470cee32f9ac2f04e0837fff67ce0cd
2013-02-01 19:59:40 +09:00
Ken Wakasa
0ae5b07b3b
Yet another cleanup in ProximityInfoParams
...
Change-Id: Ice5f5e519f4ccd2e6035010b8fe6b2296ef658d7
2013-02-01 17:01:55 +09:00
Ken Wakasa
28c008421c
Cleanup in ProximityInfoStateUtils
...
Change-Id: I416c0f0a5da6ce69c4ca1e848168e47b83d6597a
2013-02-01 15:51:48 +09:00
Ken Wakasa
4920d370f2
Cleanup in ProximityInfoStateUtils
...
Change-Id: Ifce1c4a2c8b8859c1723ebe01023211a9f495b2f
2013-01-31 20:22:22 +09:00
Satoshi Kataoka
4fab43dd14
Merge "remove unused function"
2013-01-31 09:27:59 +00:00
Satoshi Kataoka
ea9d2fa1cd
remove unused function
...
Change-Id: I7dbcf2926801279a286980f6a650f63722890cea
2013-01-31 18:24:25 +09:00
Ken Wakasa
871b8c9352
Cleanups in defines.h
...
Change-Id: I75ab11e0d6374a2d1302d1684453a61b98682b13
2013-01-31 18:13:27 +09:00
Ken Wakasa
a8ce88bf44
Remove meaningless assertion
...
Change-Id: I8c12a11e54e084cc0554c54cecb441e96a03df08
2013-01-31 12:02:26 +09:00
Ken Wakasa
5e21ac60b0
Small cleanups in binary_format.h
...
Change-Id: I6049a2f312b7d53a3ffa688ddca5731004784ebe
2013-01-30 23:56:50 +09:00
Satoshi Kataoka
99eae8e984
refactor
...
Change-Id: If5a59667cf3b9dc0c4d7423d2cf4ab640bdacf49
2013-01-30 20:56:10 +09:00
Ken Wakasa
6e2ba9b01e
Remove unnecessary maxProximityCharsSize
...
Change-Id: I8013004c1db2a4133795a0e41edea1a41b770cfd
2013-01-30 19:24:03 +09:00
Ken Wakasa
a47c699faa
Just cosmetic fixes
...
Change-Id: I85e9454d774162df46a29791eb562d0cedaff78e
2013-01-30 18:37:58 +09:00
Ken Wakasa
cffb3126ac
Small cleanups
...
Change-Id: I3e5862a405b4c63616c7ea947cd53c52b5035862
2013-01-30 01:19:29 +09:00
Ken Wakasa
ca008d82d4
Some more misc cleanups
...
Change-Id: I88cb6d38d73a2a68ade2f2190910f4733cd7b668
2013-01-29 20:28:58 +09:00
Ken Wakasa
e599d7e317
Misc cleanups
...
Change-Id: Ie4f03f082097f913056308f02c6e15d5b11f84e8
2013-01-29 19:20:04 +09:00
Ken Wakasa
19e13df91f
Remove a duplicated method
...
Change-Id: I41bd0612bf42d549d1acf0d733b689fce68aa8a1
2013-01-29 14:49:45 +09:00
Satoshi Kataoka
20b6775acc
Refactor most probable string
...
Change-Id: I96597decf5e36d9ce088c34427915f2379255054
2013-01-24 21:48:42 +09:00
Satoshi Kataoka
447e96c057
Merge "add a function to char utils"
2013-01-24 07:42:20 +00:00
Satoshi Kataoka
75070a519a
add a function to char utils
...
Change-Id: Id0b45a824a4655d8aba1bf6e1c6df3acd2cbe850
2013-01-24 16:26:58 +09:00
Satoshi Kataoka
7324052ad7
Merge "Refactor proximity info"
2013-01-24 06:41:20 +00:00
Satoshi Kataoka
9d18c6dd38
Refactor proximity info
...
Change-Id: Ie9ea10fe6850721dd7fe64ffc05edc68f2217d2e
2013-01-24 15:32:47 +09:00
Ken Wakasa
e3ee50c321
Merge "Adjust debug warning log"
2013-01-23 10:48:12 +00:00
Ken Wakasa
e9e4fa5af6
Adjust debug warning log
...
Change-Id: I1ea4be3e8bf29f9fd1ad89795eace440a5159559
2013-01-23 18:53:25 +09:00
Satoshi Kataoka
e5aad56463
Refactor proximity info state
...
Change-Id: I00e0618d95d20e5bf5c9e6481e4d3037723785f7
2013-01-23 17:32:56 +09:00
Satoshi Kataoka
e2912d17e4
Refactor proximity info state
...
Change-Id: I4c68457c6b70fe8136ba4fd644f2bb0a2c0e5210
2013-01-23 15:19:03 +09:00
Satoshi Kataoka
d7a8fbf6a9
refactor proximity info state
...
Change-Id: Iaf0c0fb7858358209fa12145777f158e0285bc27
2013-01-22 17:54:42 +09:00
Satoshi Kataoka
d4828d5053
Refactor proximity info state
...
Change-Id: I30cc0d8f2e48d70e214739a073eabf3a8ea73618
2013-01-22 15:43:05 +09:00
Ken Wakasa
6c22439bf8
Remove MAX_PROXIMITY_CHARS_SIZE_INTERNAL
...
Change-Id: I18a997503de4033b5341b564145bca862a872098
2013-01-22 13:18:49 +09:00
Satoshi Kataoka
ee62b78c96
Refactor proximity info
...
Change-Id: I668e6abfe202e1a56d59b6b6e58d1b4f003b720a
2013-01-21 22:06:54 +09:00
Satoshi Kataoka
47cc52415e
refactor proximity info
...
Change-Id: I1e37ca655b4c1ba91a04aaf5aea8267cd46b4f43
2013-01-21 18:45:56 +09:00
Ken Wakasa
0c2227ab99
Clean up in geometry_utils.h
...
Change-Id: I876bceed12cf533cb29d290fbc05a686f4030579
2013-01-21 12:43:16 +09:00
Satoshi Kataoka
f32869c6b6
refactor space proximity
...
Change-Id: I9629986f77ece9addc3a70371679510d99f2659f
2013-01-18 19:36:36 +09:00
Satoshi Kataoka
bf78e1371c
Refactor proximity info
...
Change-Id: I96a4eb5cbdb3b2a402e286ac2aff36c3a52482ff
2013-01-18 16:36:36 +09:00
Ken Wakasa
f25e7053e5
Follow up to I21b54b35
...
Change-Id: I3dd5fdd0c7f157724c82f6ddd6d3bea9bc853988
2013-01-16 01:39:53 +09:00
Satoshi Kataoka
a04fe20c77
Merge "refactor distance cache"
2013-01-15 02:54:27 -08:00
Satoshi Kataoka
a9763f93d7
refactor distance cache
...
Change-Id: I21b54b356641a63d7be17fd34b9ede7a63ec738a
2013-01-15 19:45:49 +09:00
Ken Wakasa
1ddc1dabe6
Small renaming for consistency
...
Change-Id: I10c61d441f586e63045f8c7a606a9ee61366d870
2013-01-15 19:13:37 +09:00
Ken Wakasa
6cee61deeb
Use -fno-inline for debug builds & small cleanups
...
Change-Id: I24f91d7130f2203715b868d4a82510660939886f
2013-01-15 16:41:10 +09:00
Ken Wakasa
5db594abba
Remove MAX_WORD_LENGTH_INTERNAL
...
Change-Id: Ie11ff000675601acff5fbb00e9e9f48eb32c5071
2013-01-15 12:39:08 +09:00
Ken Wakasa
f6870cc82d
Remove BinaryDictionary.MAX_PREDICTION and MAX_SPACES, and rename MAX_WORDS to MAX_RESULTS
...
Change-Id: Iab2a422b367e7521f346481c7fe5e2575f2e9de3
2013-01-11 20:47:42 +09:00
Satoshi Kataoka
e4d07ac75a
Merge "add a define"
2013-01-09 03:10:20 -08:00
Satoshi Kataoka
5817b6b84f
add a define
...
Change-Id: I8139d0639d07afd200ba4507768bf76d0054687b
2013-01-09 20:08:17 +09:00
Ken Wakasa
8f5f79d7ea
Merge "Replace assert() with ASSERT() & use -funwind-tables for debug builds"
2013-01-08 22:47:12 -08:00
Ken Wakasa
ccebd5cefe
Replace assert() with ASSERT() & use -funwind-tables for debug builds
...
Change-Id: I9ec14eb24ebc45657119a45aba09517e71a22974
2013-01-09 15:44:48 +09:00
Satoshi Kataoka
dd4d938e69
assert when the touch event goes back to the future
...
bug: 7911739
Change-Id: I29db6a5cb6749999666b1c53857ea61bcc19b8f1
2013-01-09 15:17:11 +09:00