How phuongviencac/nomime works
NomIME is a Windows Hán-Nôm input method based on Rime. Its principal workflow receives keystrokes through the TSF text service, sends commands over IPC to the server, runs Rime sessions, then returns composition and candidate data for text insertion and panel rendering. The repository also includes installation, user settings, dictionary management, and service/tray operation. Arrows are limited to relationships visible in excerpts or explicitly described in the README; unsampled subsystems are retained where their capabilities are documented or clear from the tree.
Main entry points: RimeWithNomIME.cpp Rime handler · Composition.cpp TSF text service · NomIMEClientImpl.cpp IPC client · SettingsDialog.cpp Settings and dictionaries
Components 21
Text input
- TSF text service
NomIMETSF/Composition.cpp - Text edit sessions
NomIMETSF/EditSession.cpp
Rime and IPC
- IPC client
NomIMEIPC/NomIMEClientImpl.cpp - Named-pipe channel
NomIMEIPC/PipeChannel.cpp - IPC server
NomIMEIPCServer/NomIMEServerImpl.cpp - Rime handler
RimeWithNomIME/RimeWithNomIME.cpp - Response deserializer
NomIMEIPC/Deserializer.h - Response parser
NomIMEIPC/ResponseParser.cpp - Rime engine
Composition UI
- Candidate panel
NomIMEUI/NomIMEPanel.cpp - Panel layouts
NomIMEUI/VHorizontalLayout.cpp - Display styling
NomIMETSF/DisplayAttribute.cpp
User operations
- Server application
NomIMEServer/NomIMEServerApp.cpp - Windows service
NomIMEServer/NomIMEService.cpp - Tray controls
NomIMEServer/NomIMETrayIcon.cpp - Settings and dictionaries
NomIMEDeployer/SettingsDialog.cpp - Dictionary management
NomIMEDeployer/DictManagementDialog.cpp - Installer options
NomIMESetup/InstallOptionsDlg.cpp - Install and registration
NomIMESetup/imesetup.cpp - User configuration
Other components
- Input user
Connections 23
- Input user → TSF text service: types into
- TSF text service → IPC client: sends key events
- IPC client → Named-pipe channel: transacts commands
NomIMEIPC/NomIMEClientImpl.cpp - IPC server → Named-pipe channel: serves commands
- IPC server → Rime handler: dispatches requests
- Rime handler → Rime engine: runs sessions
RimeWithNomIME/RimeWithNomIME.cpp - Rime handler → User configuration: uses configuration
RimeWithNomIME/RimeWithNomIME.cpp - Rime handler → IPC server: responds to clients
- IPC client → Response parser: parses response
- Response parser → Response deserializer: delegates decoding
- Text edit sessions → IPC client: requests response data
NomIMETSF/EditSession.cpp - Text edit sessions → TSF text service: applies text edits
- Rime handler → Candidate panel: updates composition
- Candidate panel → Panel layouts: uses layout
NomIMEUI/NomIMEPanel.cpp - TSF text service → Display styling: provides display attributes
- Windows service → Server application: runs application
NomIMEServer/NomIMEService.cpp - Server application → Tray controls: exposes tray controls
- Input user → Settings and dictionaries: configures input
- Settings and dictionaries → Dictionary management: manages dictionaries
NomIMEDeployer/DictManagementDialog.cpp - Settings and dictionaries → User configuration: updates settings
- Input user → Installer options: chooses install options
- Installer options → Install and registration: configures installation
NomIMESetup/imesetup.cpp - Install and registration → TSF text service: registers text service
NomIMESetup/imesetup.cpp