How matsuokajuri/ziliu-ime works
Ziliu is a native Windows Chinese input method. The main workflow runs from text entry in a Windows app through the TSF service and local named-pipe broker to a Rime-backed session; the candidate window presents composition and selection. Settings and theme import form a separate customization branch. The graph follows README statements and shown source references; unsampled implementation details are not expanded.
Main entry points: MainWindow.xaml.cpp Settings app · pipe_server.cpp Named-pipe server · text_service.cpp TSF text service · pipe_client.cpp Pipe client
Components 17
Windows input
- TSF text service
src/tsf/src/text_service.cpp - Pipe client
src/ipc/src/pipe_client.cpp
Engine broker
- Named-pipe server
src/ipc/src/pipe_server.cpp - Broker process
src/broker/src/broker_main.cpp - Session host
src/core/src/session_host.cpp - Rime engine
src/broker/src/rime_engine.cpp - Development engine
src/core/src/stub_engine.cpp - IPC protocol
src/core/src/ipc_protocol.cpp
Candidates and themes
- Candidate window
src/ui/src/candidate_window.cpp
Settings and themes
- Settings app
src/settings/MainWindow.xaml.cpp - Input settings
src/core/src/settings.cpp - Theme catalog
src/core/src/theme_catalog.cpp - Theme manifest
src/core/src/theme_manifest.cpp - SSF importer
src/settings/sogou_theme_import.cpp - SSF container reader
src/settings/sogou_ssf_container.cpp
Other components
- Windows user
- Windows app
Connections 19
- Windows user → Windows app: types in
README.md - Windows app → TSF text service: receives input
README.md - TSF text service → Pipe client: sends requests
src/tsf/src/text_service.cpp - Pipe client → Named-pipe server: exchanges messages
README.md - Broker process → Named-pipe server: starts server
src/broker/src/broker_main.cpp - Named-pipe server → Session host: dispatches requests
- Session host → Rime engine: creates sessions
- Session host → Development engine: creates fallback
src/core/src/session_host.cpp - Pipe client → IPC protocol: encodes requests
- Named-pipe server → IPC protocol: handles messages
- TSF text service → Candidate window: presents candidates
src/tsf/src/text_service.cpp - Settings app → Input settings: reads and saves
src/settings/MainWindow.xaml.cpp - Settings app → Theme catalog: manages themes
- Theme catalog → Theme manifest: loads manifests
- Settings app → SSF importer: imports skins
src/settings/MainWindow.xaml.cpp - SSF importer → Theme manifest: produces theme data
- SSF importer → SSF container reader: reads packages
- Candidate window → Theme catalog: loads theme resources
src/ui/src/candidate_window.cpp - Settings app → Candidate window: previews appearance