How chewing/ibus-chewing works
Main Components
a) Core Components:
• IBus Framework Interface
• Chewing Engine Core
• Setup/Configuration UI
• Input Processing Pipeline
• Translation/Localization System
b) Key Relationships:
• IBus Framework ↔ Chewing Engine
• Engine ↔ Configuration System
• User Interface ↔ Engine Settings
┌─────────────────────────────────────┐
• IBus Framework │
• ┘
• ↕
┌─────────────────────────────────────┐
• IBus-Chewing Engine │
• ┬───────────────┤
• PreEdit Handler │ Lookup Table │
• Input Process │ Handler │
• ┴───────────────┘
• ↕
┌─────────────────────────────────────┐
• Configuration Layer │
• ┬───────────────┤
• Settings UI │ GSettings │
• (GTK Interface) │ Storage │
• ┴───────────────┘
Component Details
a) Engine Core (src/ibus-chewing-engine.c):
• Connections to IBus framework
• PreEdit and LookupTable components
b) Setup Interface (src/setup/*):
• As a separate module
• Connection to GSettings storage
• Configuration UI elements
c) Utility Layer (src/IBusChewingUtil.*):
• Connections to both engine and setup components
Important Implementation Details to Highlight
• Interaction between IBusChewingPreEdit and IBusChewingLookupTable
• GSettings configuration storage system
• Translation/localization system integration
• Debug interfaces for development purposes
External Dependencies
Connections to:
• IBus system
• Chewing library
• GTK framework (for setup UI)
• GSettings system
Data Flow Indicators
• Input text flow
• Configuration data flow
• User interaction flow
• Event handling paths