summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/latin/utils
Commit message (Collapse)AuthorAgeFilesLines
* LatinIME: Enable spellchecker for additional languagesblunden2019-12-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We include more dictionaries than stock builds so let's also enable spell checking for languages that use only the supported unicode characters. Change-Id: Iff9aea56edde10e47a754df39682f4f72c269756 LatinIME: Enable Greek spell checking * We already ship a dictionary for Greek Change-Id: I99ee7c98a88515c4c69b654210c10696135d7560 Add support for Ukrainian spell checking Change-Id: Ie8a39c9206ec1a2e4cccc43d77890abe00080747 Add support for Polish spell checking * The script type for Polish is Latin, so no need to add it to ScriptUtils Change-Id: I5203c56858912ea53bc6069e23fa136af60361bf Add support for Czech spell checking * Czech script type is Latin so no need to add it in ScriptUtils Change-Id: I62085658ff7f7bbbca79e9895d57f1adb48592d4 Add support for Croatian spell checking * The script type for Croatian is Latin, so no need to add it to ScriptUtils Change-Id: I057ba38adf705e62b16ee9e2d2aa7d46bf3b865f Add support for Hebrew spell checking * Hebrew type is already declared in ScriptUtils Change-Id: Id420c256b298d9692d8c415dfc75bd4d3116ca29 Add support for Portuguese spell checking * Script type for Portuguese (Portugal) is Latin so no need to add it in ScriptUtils Change-Id: I2955f267a1f7d81b9180cf4c53718f72724f782d Add support for Bulgarian spell checking Change-Id: I9ff3c73979e68a7a11a657aa6e83769da6607115 Add support for Georgian spell checking * Georgian script type is already defined in ScriptUtils Change-Id: I7e1eb3e985aa44903baed918f58bb6aaace15147 Add in spellchecker.xml support for en_AU, lt, lv, nl, ro, sl, sr, tr Settings for missing dictionaries in menu. Now the xml file have the same amount of 32 (+hu_zz) languages as all .dict files. https://github.com/LineageOS/android_vendor_lineage/tree/lineage-16.0/overlay/dictionaries/packages/inputmethods/LatinIME/java/res/raw https://github.com/LineageOS/android_packages_inputmethods_LatinIME/tree/lineage-16.0/java/res/raw Change-Id: I9fa6245f57a0976d96e0dab37c2e25ef1180e899 Change-Id: I425f0163cd0b34917d6041d75c0e244526ddc268
* LatinIME: Add new type for Bulgarian scriptVasyl Gello2019-12-111-0/+2
| | | | | | | | Declaring the script type as Cyrillic leads to usage of 'east_slavic' template, which is incorrect for Bulgarian layout. Signed-Off-By: Vasyl Gello <vasek.gello@gmail.com> Change-Id: Ieec27701367f00c4b5e345cee7bf387f923da8f1
* LatinIME: Add shortcuts supportJanet Sun2019-12-111-0/+10
| | | | | | | | | | | Making sure to include unit test changes this time. Adjust for deleted files and delete references to them. This reverts commit fe674a441f0ece3d772acba01be09a0a0d8ff5ce, "am 12d80ebe: Remove shortcut support from LatinIME." Ticket-Id: CYNGNOS-3129, CYNGNOS-3267 Change-Id: I136e307f93445b353e0d798284fd0fbaee61c0d9
* LatinIME: Add fallback loader for JNI libSteve Kondik2019-12-111-3/+10
| | | | | | | | | | | | | | | | | | | | | | Prefer the JNI lib with gesture typing support. If not available / installed fall back to the standard one without geture typing. Change-Id: I70a5f43386a9c72809a70bd286f3702378d6f9be LatinIME: Only enable gesture mode if gesture lib is available * Prevents keyboard FC when gapps is not loaded. Change-Id: I0d48e1cd80534513205f61913c798b48573ea38c LatinIME: Remove gesture preference if gesture lib is unavailable Gesture typing won't work without the gesture library, so remove the preference to not mislead users into thinking that gesture typing is supported. Change-Id: I387ae83fd174b57fc48fe7bcfc37e3010ce89b12
* Merge java-overridable/ into java/ againYohei Yukawa2018-05-067-0/+355
| | | | | | | | | | | | | | | This CL a logical revert of a previous CL [1], which separated Java files into common ones and overridable ones. Now that that overriding concept is no longer used, there is no need to keep having separate directory structure. [1]: Ic734bd4d20aa050c688a3158b1a382ae0ac18991 fb74ab15c1343084740d65ef8744cad33a678e82 Fix: 79323502 Test: make -j aosp_taimen-userdebug && make -j Test: tapas LatinIME && make -j Change-Id: I2090bc25d18e6d4f24e91c2cbfe832755cbb4e8f
* [LatinIME] Support MNC permissions.Mohammadinamul Sheik2015-07-151-63/+44
| | | | | | | | | | | | | | | | | | | This build has been compiled against API 23 This build is approved to go out with the M OTA, but may NOT be released to the public until the Play Store has enabled API level 23 apps Version: 4.1.2300x.build_id 1. Replaces the personalization is on information with the suggest contacts. 2. Enables "Use Contacts" only if the app has permission to read contacts. 3. Disables the contacts dictionary in the Facilitator. 4. Do not register/read the contacts in the contact observer. Bug: 22236416 Change-Id: I9674e13d0d0f4a2014c5024fde0178de684c07e7
* Remove android.util.Log from FileUtilsJatin Matani2015-07-091-1/+4
| | | | | | | | | | FileUtils is being used for other non android projects and hence breaks when built. Instead use the log statements at caller to record Log.e messages. Hence there is no side effect here. Bug:22042371 Change-Id: Ieb100006ff38e013bc30542637465f58bfc0f2f2
* Bring back shortcuts and add to dictionary UIJatin Matani2015-07-061-0/+2
| | | | | | For JB and lower devices, the UI is surfaced by the IME. Bug: 22200135 Change-Id: Icca08500ee0683e2ceb5357b0bc430cd1712220e
* Load metadata.json from resources on DB reset.Dan Zivkovic2015-06-241-1/+8
| | | | | | | | | | | This will ensure that a new (or upgraded) keyboard instance will know which dictionaries are available for download so it requests missing dictionaries. In addition, we increment the database version number to ensure upgrades of existing Fava instances start with a clean slate. Bug 22069694. Change-Id: Id71310412682543a3931f9c5c03cb0369fa7b9ac
* Make the DictionaryService stage the downloaded filesMohammadinamul Sheik2015-05-041-1/+59
| | | | | Bug: 20641948 Change-Id: I6639c995b12c033bc30241cd219201dd483ee516
* Do not re-download the unused dictionaries.Mohammadinamul Sheik2015-04-151-21/+86
| | | | | | | | | | | Does the following 1. Uses dictionaries from the files/ directory while populating the entries into the pendingUpdates table. So that a download happens only if the metadata.json says so. 2. Delete an unusable dictionaries from the files/ directory. Bug: 20142708 Change-Id: Ibd738793585c39735868e324b8ad682dff0eba34
* Log interrupted tasks in AOSP.Dan Zivkovic2015-04-021-1/+6
| | | | | | Bug 19987461. Change-Id: Ia2714f555146f8f31a6d8c61f555d2b6fecdab7d
* Make Hebrew spellchecking spellcheck Hebrew.Chieu Nguyen2015-03-271-1/+1
| | | | | Bug: 19966676 Change-Id: I657d2989966804cc1b6e3b12670a2123b6f06127
* Use the complete Locale in generating the dictionary id.Mohammadinamul Sheik2015-03-251-25/+2
| | | | | | | - Also deleted a couple of dead methods. Bug:19929051 Change-Id: I4f88dbc2a8204d5e2a20d1ad8c205a23c6319f8d
* Force download the dictionaries after the apk package is updated.Mohammadinamul Sheik2015-03-241-6/+31
| | | | | | | | - Also display the notification when the dictionaries are auto updated Bug: 19808828 Change-Id: If5c4efb73d8bb554d812afcf7deafec3ac40a462
* Move ManagedProfileUtils to overridableJatin Matani2015-03-231-82/+0
| | | | | Bug:19532354 Change-Id: I50b3ae11b6e58f07b482353b624b1a7a73eadc99
* Disable message if personalization is disabled.Chieu Nguyen2015-03-181-1/+7
| | | | | Bug: 19087415. Change-Id: I3974f1b676aa4a9bb04ab7f609b6daf1860c64f1
* Start-of-sentence should include newlines and non-period terminators.Tom Ouyang2015-03-171-4/+10
| | | | | Bug: 19795382 Change-Id: Id6cc4a494a06de03d351aa6257632bd3b82e2ec4
* Fix NPE in AccountSettingsFragment.Dan Zivkovic2015-03-161-1/+15
| | | | | | Bug 19773815. Change-Id: Ib5eb27cdf385c81d1a3822836f424fa29c0bbaa8
* Separate executor for the Spelling decoder.Dan Zivkovic2015-03-121-12/+45
| | | | | | Bug 19710676. Change-Id: I6e66eddd507c11e424105869833fe6841b90275d
* Remove ALS from LatinIME.Dan Zivkovic2015-03-111-13/+5
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Mark method @UsedForTestingDan Zivkovic2015-03-111-0/+1
| | | | | | This prevents it from being optimized away. Change-Id: Iecd317568e23e86e4c0ece8134a4926a7a56d65b
* Make inner classes visible for testing.Dan Zivkovic2015-03-111-1/+7
| | | | | | | | We need this to assert the correct behavior in the facilitator. Bug 19695605. Change-Id: I3923d00791c99208bc72f7c4210ae1ea0a34bd0e
* Remove dead code, including tests.Dan Zivkovic2015-03-101-0/+1
| | | | Change-Id: Id88b02b74bdfe4ca05b08181ceb6b34d5652fc0c
* Restart background executor.Dan Zivkovic2015-03-101-1/+3
| | | | | | Bug 19671650. Change-Id: I1a28a53e94bdb79aeb173f6905c1035022495acc
* Kill+restart tasks before/after decoder init.Dan Zivkovic2015-03-091-1/+10
| | | | | | Bug 19625976. Change-Id: I6d8b0d2b0a77ccda1bfc914501cf568b92862980
* ExecutorUtils lets use schedule a runnable chain.Dan Zivkovic2015-03-091-25/+35
| | | | | | Bug 19625976. Change-Id: Iebbef7fed57a381498301dcf26fefa27d06802f7
* Use a single background executor.Dan Zivkovic2015-03-091-46/+9
| | | | | | Bug 19625976. Change-Id: Ia03f440a31b059b5af42d162e1145330bf7b5ddf
* Introduce DictionaryHeaderUtils to get dictionary header valuesMohammadinamul Sheik2015-03-031-16/+11
| | | | Change-Id: I86cef6c7f2f68a75428bb2b9c4d5a1dc1876b541
* Merge "Turn off cloud sync if we have managed profiles"Jatin Matani2015-03-021-0/+68
|\
| * Turn off cloud sync if we have managed profilesJatin Matani2015-03-021-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UserManager#getUserProfiles > 1 implies managed profile. Workflow: - Disable sync prefs - Execute an async task to check for managed profile; if managed profile is found, remove the sync prefs. If not, enable the preference; - Move the logging pref from Advanced to Account & Privacy. Bug:19230544 Change-Id: I4dbd1fe8433b3263ccc74c35dc0ee0bb371122b3
* | Update the MAX supported file version for downloaded static Dictionaries.Mohammadinamul Sheik2015-02-271-1/+1
|/ | | | Change-Id: I72d37cc21585b18f4a41ff32627024502f10e993
* Stop waking up to decay dynamic dictionaries.Dan Zivkovic2015-02-251-4/+1
| | | | | | Bug 19516048. Change-Id: Ibc27a792b4fa80fa8c6af4721c47a617526e9584
* Don't assume that correctable words are invalidDan Zivkovic2015-02-251-9/+6
| | | | | | | | | | | | Currently, the Delight3DictionaryFacilitator sets a boolean flag when the top suggestion score exceeds the auto-correction threshold. This flag is used to trigger auto-correction of the typed word. Also, the existing logic assumes that if allowsToBeAutoCorrected then the word is invalid, which is no longer true after we stopped using whitelists. Bug 19518376. Change-Id: Ifa7f6a09c07d25ac68c6cf3aec91f358bd88689f
* Do not crash when dictioanryInfo is NULLMohammadinamul Sheik2015-02-241-1/+5
| | | | | Bug: 19417599 Change-Id: I82174401c595b57b42fc74bc478b551869729ba6
* Use DECODER_DICT_SUFFIX on fallback to the default main dict resource.Mohammadinamul Sheik2015-02-231-1/+2
| | | | Change-Id: Icec45c364732c0aa9ac713846cad23439b9e42b5
* Sanitize the usage of executors.Dan Zivkovic2015-02-191-21/+67
| | | | | | | | There should be 1 executor each for static and dynamic language models. This prevents too many dynamic LM updates from running in parallel, competing for resources. Change-Id: I8ec439e0ea2d92fba275bc20a0b8c9193346a0c1
* Add Decoder specific dictionary suffix to resource lookupMohammadinamul Sheik2015-02-121-3/+4
| | | | Change-Id: Ia2c74acdc8ac6f7b605bb06a1078d23b32f388a1
* Switch from script to language codes.Dan Zivkovic2015-02-121-27/+29
| | | | | | | | Unfortunately, our Locale objects don't always have a script code. But we can get almost the same functionality by specifying script codes for some languages, and defaulting the rest to Latin. Change-Id: Id81ff67bf44c84f44707a2e167c2787c60c6ecee
* Map ISO 15924 codes to internal IME script codes.Dan Zivkovic2015-02-121-33/+34
| | | | | | | | This way we can support all the languages for which we define a script code. Bug 19340741. Change-Id: Ia80eca4cc2511b70f11058f73bd31746948ded19
* Refactor content provider code from ContactsDictJatin Matani2015-02-111-5/+7
| | | | | | | | | Break contacts binary dictionary into two parts - one that talks to contacts content provider and maintains local state. Includes a manager class and a content observer - other one that just manages the dict code. Change-Id: Ie8f89ac9ce174c803ff3168ee0bee5cbe7721d5b
* Remove shortcut support from LatinIME.Dan Zivkovic2015-02-112-111/+0
| | | | | | Note this change does not affect the native decoder interface. Change-Id: I73b7dc008a5acaf75a31a36a2d332b5afabd82d0
* Remove distracter filter from client.Dan Zivkovic2015-02-094-503/+5
| | | | | | Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659
* Merge "Move decoder specific constants to DecoderSpecificConstants.java"Mohammadinamul Sheik2015-02-063-7/+9
|\
| * Move decoder specific constants to DecoderSpecificConstants.javaMohammadinamul Sheik2015-02-053-7/+9
| | | | | | | | Change-Id: Ie4d325b3152e1e7e424b8b436e222e194e4d9da0
* | Cleanup in preparation of distracter change.Dan Zivkovic2015-02-061-3/+2
|/ | | | | | Bug 19296201. Change-Id: If016da2b7f4b3ecb9afd6d7aed9d19fbd4938758
* Don't check user dictionary, except for spelling.Dan Zivkovic2015-02-041-10/+9
| | | | | | | | We check different lists of dictionaries based on the use case. Bug 19270992. Change-Id: Ide69f2855978ebad32a58e9689b3a8d47e095994
* AOSP changes to use KeyboardLayout to support the new DictionaryFacilitatorMohammadinamul Sheik2015-02-042-4/+15
| | | | Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
* LatinIME portion of "green plus" feature.Dan Zivkovic2015-02-031-2/+0
| | | | | | | | | Removes the feature that adds strings to the user dictionary, aka the "green highlight with a plus sign". Bug 19237189. Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
* LatinIME portion of multi-lang option removal.Dan Zivkovic2015-01-292-4/+1
| | | | | | Bug 19188067. Change-Id: Ic9a3637f59dda30c699141222b9dcac3cd624b99