How attajak/latinime works
This repository implements an Android Latin keyboard/input method, with related spell-checking and downloadable dictionary support. The principal workflow is a user entering text through the keyboard, which is processed by input logic and can use dictionary-based suggestions before text is committed to the editor. The tree also shows gesture input, emoji, settings, personalization, and setup capabilities. The excerpts and index establish some subsystem references, but do not expose the main input-view dispatch path; those workflow links are therefore dashed and unverified.
Main entry points: LatinIME.java Latin IME · DictionaryFacilitatorImpl.java Dictionary manager · KeyboardView.java Keyboard UI · DictionaryService.java Dictionary downloads
Components 23
Keyboard input
- Latin IME
java/src/com/android/inputmethod/latin/LatinIME.java - Keyboard UI
java/src/com/android/inputmethod/keyboard/KeyboardView.java - Keyboard layouts
java/src/com/android/inputmethod/keyboard/KeyboardLayoutSet.java - Input logic
java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java - Gesture input
java/src/com/android/inputmethod/latin/touchinputconsumer/GestureConsumer.java - Emoji keyboard
java/src/com/android/inputmethod/keyboard/emoji/EmojiPalettesView.java
Language services
- Suggestion engine
java/src/com/android/inputmethod/latin/Suggest.java - Suggestion strip
java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java - Spell checker
java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
Dictionary support
- Dictionary manager
java/src/com/android/inputmethod/latin/DictionaryFacilitatorImpl.java - Binary dictionaries
java/src/com/android/inputmethod/latin/BinaryDictionary.java - Native traversal
native/jni/src/suggest/core/session/dic_traverse_session.h - Dictionary downloads
java/src/com/android/inputmethod/dictionarypack/DictionaryService.java - Dictionary metadata
java/src/com/android/inputmethod/dictionarypack/MetadataDbHelper.java - Contact words
java/src/com/android/inputmethod/latin/ContactsManager.java - User history
java/src/com/android/inputmethod/latin/personalization/UserHistoryDictionary.java
IME configuration
- IME subtypes
java/src/com/android/inputmethod/latin/RichInputMethodManager.java - Subtype storage
java/src/com/android/inputmethod/latin/utils/AdditionalSubtypeUtils.java - Settings
java/src/com/android/inputmethod/latin/settings/Settings.java
User features
- Setup wizard
java/src/com/android/inputmethod/latin/setup/SetupWizardActivity.java - Accessibility
java/src/com/android/inputmethod/accessibility/KeyboardAccessibilityDelegate.java
Other components
- Keyboard user
- Text editor
Connections 22
- Keyboard user → Keyboard UI: touches
- Keyboard UI → Latin IME: dispatches input
- Latin IME → Input logic: processes input
- Latin IME → Text editor: commits text
- Latin IME → Keyboard layouts: builds keyboard
- Latin IME → Suggestion engine: requests suggestions
- Suggestion engine → Dictionary manager: queries words
- Suggestion engine → Suggestion strip: provides candidates
- Spell checker → Dictionary manager: uses dictionaries
java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java - Spell checker → Keyboard layouts: creates keyboard
java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java - Native traversal → Dictionary manager: traverses dictionary
- Dictionary downloads → Dictionary metadata: updates metadata
java/src/com/android/inputmethod/dictionarypack/DictionaryService.java - Dictionary downloads → Binary dictionaries: prepares downloads
java/src/com/android/inputmethod/dictionarypack/DictionaryService.java - Dictionary downloads → Keyboard user: serves IME clients
- IME subtypes → Subtype storage: loads subtype data
java/src/com/android/inputmethod/latin/RichInputMethodManager.java - IME subtypes → Settings: reads settings
java/src/com/android/inputmethod/latin/RichInputMethodManager.java - Contact words → Dictionary manager: supplies contact words
- User history → Dictionary manager: personalizes words
- Gesture input → Input logic: provides gesture input
- Emoji keyboard → Keyboard UI: extends keyboard
- Accessibility → Keyboard UI: supports access
- Setup wizard → Settings: configures preferences