How mohsen-niksirat/ravaan works
Ravaan is a Windows bilingual typing assistant. Its main workflow captures keyboard input, dispatches typing actions, transforms or predicts text, and injects results into the focused app; overlays and tray UI expose related tools. The README also describes AI, voice, snippets/Hub, clipboard history, and synchronization. Several subsystem implementations were not sampled, so those capabilities are represented without guessed internal call paths; dashed links mark unverified runtime wiring.
Main entry points: key_handler.py Key handling · app.py Application runtime · predictor.py Word prediction · hook.py Keyboard hook
Components 23
Windows interaction
- Application runtime
ravan/ui/app.py - Keyboard hook
ravan/platform/hook.py - Key handling
ravan/ui/key_handler.py - Caret detection
ravan/platform/caret.py - Text injection
ravan/platform/inject.py
Typing and language
- Layout conversion
ravan/core/layout.py - Word prediction
ravan/core/predictor.py - Lexicon search
ravan/core/dict.py - Typing adaptation
ravan/core/learning.py - Persian normalization
ravan/core/normalizer.py - ZWNJ handling
ravan/core/zwnj.py - Finglish typing
ravan/core/translit.py
Productivity tools
- AI commands
ravan/core/ai.py - Voice dictation
ravan/core/voice.py - Snippets and Hub
ravan/core/snippet.py - Clipboard history
ravan/core/cliphistory.py - Cloud sync
ravan/core/sync.py - Emoji search
ravan/core/emoji_search.py
UI and settings
- Preferences
ravan/core/config.py - Studio and overlays
ravan/ui/overlay.py - Settings UI
ravan/ui/settings.py - Theme system
ravan/ui/theme_palettes.py
Other components
- Windows typist
Connections 24
- Windows typist → Application runtime: uses
README.md - Application runtime → Keyboard hook: starts
ravan/ui/app.py - Keyboard hook → Key handling: dispatches keys
ravan/ui/key_handler.py - Key handling → Layout conversion: converts layout
ravan/ui/key_handler.py - Key handling → Word prediction: requests candidates
ravan/ui/key_handler.py - Key handling → Persian normalization: normalizes text
ravan/ui/key_handler.py - Key handling → ZWNJ handling: handles ZWNJ
ravan/ui/key_handler.py - Key handling → Text injection: replaces text
ravan/ui/key_handler.py - Application runtime → Word prediction: creates
ravan/ui/app.py - Word prediction → Lexicon search: searches
ravan/core/predictor.py - Word prediction → Typing adaptation: scores and learns
ravan/core/predictor.py - Persian normalization → ZWNJ handling: uses
ravan/core/normalizer.py - Application runtime → Snippets and Hub: creates
ravan/ui/app.py - Settings UI → Preferences: configures
- Application runtime → Studio and overlays: shows tools
ravan/ui/app.py - Studio and overlays → Theme system: uses styling
- Key handling → Emoji search: searches
ravan/ui/key_handler.py - Windows typist → AI commands: requests rewrites
README.md - Windows typist → Voice dictation: dictates
README.md - Windows typist → Snippets and Hub: expands snippets
README.md - Windows typist → Clipboard history: opens history
README.md - Windows typist → Cloud sync: syncs preferences
README.md - Application runtime → Caret detection: queries position
ravan/ui/app.py - Key handling → Finglish typing: transliterates