How futo-org/android-keyboard works
FUTO Keyboard is an Android input method focused on offline, privacy-conscious typing. A user selects it for an editor; LatinIME coordinates the keyboard UI and input logic, which routes key and gesture events through language-specific IME engines and commits text to the editor. In parallel, dictionary-backed prediction supplies suggestions to the UI. The tree documents broader capabilities including configurable layouts, voice input, spellchecking, settings/actions, and model management. Several of these branches are represented by their exact enclosing source paths because their implementation was not sampled.
Main entry points: InputLogic.java Input logic · InputView.java Keyboard view · LatinIME.kt LatinIME service · Suggest.java Prediction and dictionaries
Components 21
Keyboard UI
- Keyboard view
java/src/org/futo/inputmethod/latin/InputView.java - Layout manager
java/src/org/futo/inputmethod/v2keyboard/LayoutManager.kt - Layout engine
java/src/org/futo/inputmethod/v2keyboard/LayoutEngine.kt - Suggestion strip
java/src/org/futo/inputmethod/latin/suggestions/SuggestionStrip.kt
Input Processing
- LatinIME service
java/src/org/futo/inputmethod/latin/LatinIME.kt - Key and gesture events
java/src/org/futo/inputmethod/event/EventDecoder.java - Input logic
java/src/org/futo/inputmethod/latin/inputlogic/InputLogic.java - IME manager
java/src/org/futo/inputmethod/engine/IMEManager.kt - Language IME engines
java/src/org/futo/inputmethod/engine/general/GeneralIME.kt
Language Services
- Prediction and dictionaries
java/src/org/futo/inputmethod/latin/Suggest.java - Dictionary facilitator
java/src/org/futo/inputmethod/latin/DictionaryFacilitatorImpl.java - Spellchecker service
java/src/org/futo/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
Settings and Actions
- Action and UI manager
java/src/org/futo/inputmethod/latin/uix/UixManager.kt - Settings screens
java/src/org/futo/inputmethod/latin/uix/settings/SettingsActivity.kt - Update checker
java/src/org/futo/inputmethod/updates/UpdateCheckingService.kt
Voice and Models
- Voice input action
java/src/org/futo/inputmethod/latin/uix/actions/VoiceInputAction.kt - Voice model manager
voiceinput-shared/src/main/java/org/futo/voiceinput/shared/whisper/ModelManager.kt
Other components
- Keyboard user
- Android editor
- Contacts provider
- Update service
Connections 20
- Keyboard user → LatinIME service: selects and types
- LatinIME service → Keyboard view: shows keyboard
- Keyboard view → Layout manager: requests layout
- Layout manager → Layout engine: provides keyboard
- Keyboard view → Key and gesture events: decodes input
- Key and gesture events → Input logic: dispatches events
- Input logic → IME manager: routes input
- IME manager → Language IME engines: selects engine
- Language IME engines → Android editor: commits text
- Input logic → Prediction and dictionaries: requests predictions
- Prediction and dictionaries → Dictionary facilitator: queries words
- Prediction and dictionaries → Suggestion strip: provides candidates
- Suggestion strip → Input logic: selects candidate
- Spellchecker service → Dictionary facilitator: checks spelling
- Dictionary facilitator → Contacts provider: may read names
- LatinIME service → Action and UI manager: coordinates interface
- Action and UI manager → Settings screens: opens settings
- Action and UI manager → Voice input action: dispatches action
- Voice input action → Voice model manager: obtains model
- Update checker → Update service: checks releases