aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionary.java (follow)
Commit message (Expand)AuthorAgeFilesLines
...
* Replace the flags in getSuggestions with a boolean.•••Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java Jean Chalard2012-04-061-14/+5
* Change the flags to a boolean in constructors.•••Change-Id: I9939204f3b16346aaebd4d726315ba9c4faf910a Jean Chalard2012-04-061-16/+10
* Fix the locale of flags in BinaryDictionary•••Bug: 6129372 Change-Id: I4958c2aabf651d7e26648a29b75fcc6c77813451 satok2012-04-041-3/+16
* Good bye the proximity logic in Java code•••Bug: 4343280 Change-Id: I82f7d08703647a3492ce6e2d3b741146df58927e satok2012-03-281-9/+5
* ongoing cleanup 2•••Change-Id: I66b61cbe491cf8375144e834390beae3209a777d satok2012-03-271-8/+2
* Merge "Cleanup jni 1"satok2012-03-231-3/+5
|\
| * Cleanup jni 1•••Change-Id: Ieb6af8385356e259720b50f1fe46a694a098b30f satok2012-03-231-3/+5
* | Add processing for French ligatures.•••Bug: 5140033 Change-Id: I1c2751fc617e662aad9f67506e28a622f81d0bc9 Jean Chalard2012-03-231-0/+3
|/
* Strengthen java code against bad returns from native•••This doesn't really fix the following bug but it may alleviate the symptoms Bug: 6191885 Change-Id: I0de3f550cc7c6cdf79b291399785ad31b205d2ac Jean Chalard2012-03-211-0/+3
* Split Utils class to StringUtils, SubtypeUtils, and JniUtils•••Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144 Tadashi G. Takaoka2012-03-081-1/+1
* Activate bigram predictions from the binary dictionary•••Change-Id: If1cc50539d7677b854b1cd3bea3423c8c0865de5 Jean Chalard2012-02-151-9/+6
* Convert an internal enum into an int of same underlying value.•••Goes together with Id4f4e066 Bug: 5922118 Change-Id: I1e39dd01c67e9284d9d7fe008d868847e69986d7 Jean Chalard2012-01-261-2/+2
* Move auto correction thresthold to the native code•••bug: 5858137 Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d satok2012-01-121-0/+14
* Fix JNI as 64bit ready•••Change-Id: I7a3ed2cee3b20744869aa5cf89ff9fd95f5ab8fe Tadashi G. Takaoka2011-10-311-6/+6
* Cleanup unused import•••This change also gets rid of several compiler warnings. Change-Id: I23962edaadad18a6e0395d528af17b909dcf5dad Tadashi G. Takaoka2011-10-041-7/+2
* Make use of the FULL_EDIT_DISTANCE flag.•••In effect, this stops the spell checker from suggesting overly long words. More precisely, it takes advantage of the new facility that takes into account the whole length of the dictionary word when computing scores, so words much longer than the input word will see their score demoted accordingly. Bug: 5384578 Change-Id: I326cd7c87c3080e7fa8729f78517f8ba13672a9b Jean Chalard2011-09-301-2/+12
* Add a flag to demote completed suggestions•••Bug: 5390063 Change-Id: I0ef4fbcc705539624269fd2f8c4e782679fc44b3 satok2011-09-291-0/+2
* Create a way to pass the proximity info to the dictionary•••This is a preparative change for inserting the spell checker. Change-Id: Ie441879cac4f67078ec27a95f1fcbbf3ef373df7 Jean Chalard2011-08-041-7/+8
* 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 Jean Chalard2011-06-021-1/+2
* Create a dictionary collection and a dictionary factory.•••The dictionary collection is a class complying to the Dictionary interface that acts as a front end to a collection of arbitrarily many dictionaries of any type. The dictionary factory is a helper class for creating various dictionaries and get some meta information about them. At the same time, this change makes the BinaryDictionary class not a singleton any more. This also needs I9afe61a9 to not break the build. Change-Id: I61fdcc4867fcda18342807bf1865e6e46979e5d5 Jean Chalard2011-04-271-93/+19
* Fix Eclipse warnings.•••This change is only there to fix warning issued by Eclipse. It should have absolutely no impact on the program logic. Change-Id: Ie0e242ac6c167297d33de19902340b0f6ecae9e1 Jean Chalard2011-04-261-1/+1
* Use user-history bigrams when no input if available.•••This also fixes a small inconsistency upon clicking on whitespace twice in a row. Also add some unit tests for an introduced and an existing method. Change-Id: I1be2fb53c9624f4d0f5299009632cb4384fdfc15 Jean Chalard2011-04-221-0/+5
* Move language-specific keyboard setting to resources.•••Some flag settings used to be stored in a keyboard layout extravalue setting. This change: - Introduces the capability of setting such specific flags in values/config.xml - Retains the ability to use extravalues (for layout-specific settings), though there is no more any such setting at the moment. - Fixes a bug where loading a dictionary from outside does not initialize the flags. - Moves Flag to another class. Note: this needs I705ec68c to avoid breaking the build Change-Id: Ia7703aae3215b06c0b3cb792821649806e8998c1 Jean Chalard2011-04-201-24/+10
* 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 Jean Chalard2011-03-181-3/+39
* 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 Tadashi G. Takaoka2011-03-161-22/+26
* 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 Tadashi G. Takaoka2011-03-161-15/+15
* Use translation of fallback umlauts digraphs for German.•••For German : handle "ae", "oe" and "ue" to be alternate forms for umlaut-bearing versions of "a", "o" and "u". Issue: 3275926 Change-Id: I056c707cdacc464ceab63be56c016c7f8439196c Jean Chalard2011-03-031-2/+32
* Add output variables to BinaryDictionary's test entry•••Bug: 3414081 Change-Id: I1d11710476ffadcef67b0dbfbde309e7f8344d8a Tadashi G. Takaoka2011-02-281-6/+8
* Add test entry for BinaryDictionary class•••Bug: 3414081 Change-Id: I1a3d60698795bf28c477086838e726d498fb6de0 Tadashi G. Takaoka2011-02-281-19/+27
* Change how to load native lib to be on the safe side•••Change-Id: If170d4821b8dbc187f29137ea99d10e30c20955f Ken Wakasa2011-02-251-0/+3
* Add proximity info to native•••Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b satok2011-02-231-19/+19
* Remove next letters frequency handling•••Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2 Tadashi G. Takaoka2011-02-171-8/+5
* Add unit test helper method to BinaryDictionary and Suggest•••Bug: 3414081 Change-Id: Idee64010f2f423d3c7c548d0279c7bf287088762 Tadashi G. Takaoka2011-02-081-16/+37
* Fixes in close() in BinaryDictionary.•••Avoid using 'synchronized' in finalizer as well. bug: 3340837 Change-Id: I9b28f54e4490ecb844ba33a379f71b625e4246a2 Ken Wakasa2011-01-171-7/+27
* Clean up: Update variable names to comply with spec of ApplicationInfo.•••ApplicationInfo.sourceDir may or may not be apk file name. It can be a directory as well. The spec just says it's "Full path to the location of this package". Also, added error handling in loadDictionary(). Change-Id: I5e64d0aba4b1ec7634f4b3ac5537e7a774433ece Ken Wakasa2011-01-091-9/+18
* Load main dic in native•••Follow up to Id57dce51 bug: 3219819 Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66 Ken Wakasa2011-01-071-63/+16
* Consolidate main dictionary files.•••This change is a preparation for upcoming optimizations on dictionary file loading. * We can consolidate dictionary files because we are no longer relying on Asset Manager. * Stopping compressing dictionary files as planning to use mmap() on the region in the apk file. * Probably we won't rely on Asset Manager. Instead we'll probably use offset and size obtained from AssetFileDescriptor. Change-Id: Id57dce512fd3d2397a58628f8264bd824194da76 Ken Wakasa2011-01-051-22/+9
* Fix a crash when MAX_WORD_LENGTH is too short.•••Change-Id: Idcb5aa2685321b8d0ac7d846caecbd1c79e4dd77 satok2010-12-061-8/+8
* Fix parameters of native functions and refactor Dictionary•••- created bigram/unigram dictionary classes Change-Id: I233a28ed8d611870db3f4cf8f25fc45b5d41529b satok2010-12-021-13/+14
* Move a logic for finding words with a missing character to the native code.•••Change-Id: I58338643830ff4f9708f78a9c26f75c8bf2ebf45 satok2010-12-011-19/+2
* Cleanup unused Java import•••This change also fixes wrong file mode. Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f Tadashi G. Takaoka2010-11-291-4/+4
* Clean up LatinIME java•••- remove unused code - add @Override - change the inappropriate cast Change-Id: Ib25b4939e5b4273794ab0f6349776b5b62d89894 satok2010-08-241-1/+0
* DO NOT MERGE. Backport LatinIME from master to Gingerbread•••TODO: Cleanup will follow. Change-Id: I4a68ba9f2f55760aa24187f1f13fdfa8a0b70963 satok2010-08-201-17/+128
* Clarify licensing•••-use AOSP copyright instead of Google -add NOTICE and tag file Bug: 2548782 Change-Id: If50b2e9e9cc4b4876b0d047fc9f34e2d537a6da4 Jean-Baptiste Queru2010-04-051-1/+1
* Don't let the native code target be included twice when unbundling.•••Move java code to a different directory so that the unbundled version doesn't try to compile the native code again. Change-Id: I05cf9e643824ddc448821f69805ccb0240c5b986 Amith Yamasani2010-03-091-0/+151