How ytl001g/hanyeong-converter works
HanYeong is a Windows tray utility that corrects text typed with the wrong Korean/English keyboard layout. A user types in another app; the global hook and Controller track the input, then either convert the tracked segment on Ctrl+Space or ask the frequency-based detector whether to correct a completed word. The Controller replaces text through synthetic input, or reads and replaces a selected region. Tray and settings manage automatic mode and exceptions. The README documents further behaviors, including per-app rules and password-field protection; unsampled implementation details are not expanded beyond documented capabilities.
Main entry points: Controller.cs Input controller · TrayContext.cs Tray controls · Native.cs Windows interop · AutoDetector.cs Auto detector
Components 25
Tray application
- Program startup
src/HanYeong/Program.cs - Tray controls
src/HanYeong/TrayContext.cs
Input handling
- Input controller
src/HanYeong/Controller.cs - Global hooks
src/HanYeong/GlobalHooks.cs - Focus tracker
src/HanYeong/FocusTracker.cs - Hotkey model
src/HanYeong/Hotkey.cs - Selection reader
src/HanYeong/SelectionReader.cs - Synthetic input
src/HanYeong/InputSender.cs - IME control
src/HanYeong/Ime.cs - Windows interop
src/HanYeong/Native.cs
Conversion engine
- Typed segment
src/HanYeong.Core/TypedSegment.cs - Auto detector
src/HanYeong.Core/AutoDetector.cs - Word frequencies
src/HanYeong.Core/WordFrequency.cs - Layout converter
src/HanYeong.Core/LayoutConverter.cs - Hangul composer
src/HanYeong.Core/HangulComposer.cs - Hangul decomposer
src/HanYeong.Core/HangulDecomposer.cs - Jamo operations
src/HanYeong.Core/Jamo.cs - Common syllables
src/HanYeong.Core/CommonSyllables.cs - Dubeolsik mapping
src/HanYeong.Core/Dubeolsik.cs
Preferences and diagnostics
- Settings dialog
src/HanYeong/SettingsForm.cs - User settings
src/HanYeong/Settings.cs - Diagnostic log
src/HanYeong/Log.cs
Other components
- User
- Text app
- Windows
Connections 40
- User → Text app: types text
README.md - Program startup → Tray controls: starts
src/HanYeong/Program.cs - Tray controls → Input controller: creates
src/HanYeong/TrayContext.cs - Tray controls → Settings dialog: opens
src/HanYeong/TrayContext.cs - Tray controls → User settings: updates
src/HanYeong/TrayContext.cs - Tray controls → Focus tracker: checks app
src/HanYeong/TrayContext.cs - Input controller → Global hooks: registers callbacks
src/HanYeong/Controller.cs - Input controller → Focus tracker: checks focus
src/HanYeong/Controller.cs - Input controller → User settings: reads rules
src/HanYeong/Controller.cs - Input controller → Auto detector: judges words
src/HanYeong/Controller.cs - Input controller → Typed segment: tracks typing
src/HanYeong/Controller.cs - Input controller → Layout converter: converts selection
src/HanYeong/Controller.cs - Input controller → Selection reader: reads selection
src/HanYeong/Controller.cs - Input controller → Synthetic input: replaces text
src/HanYeong/Controller.cs - Input controller → IME control: checks layout
src/HanYeong/Controller.cs - Input controller → Hotkey model: matches shortcuts
src/HanYeong/Controller.cs - Input controller → Diagnostic log: records events
src/HanYeong/Controller.cs - Global hooks → Windows interop: installs hooks
src/HanYeong/GlobalHooks.cs - Global hooks → Synthetic input: filters injected keys
src/HanYeong/GlobalHooks.cs - Global hooks → Diagnostic log: records events
src/HanYeong/GlobalHooks.cs - Focus tracker → Windows interop: queries windows
src/HanYeong/FocusTracker.cs - Focus tracker → IME control: checks focused control
src/HanYeong/FocusTracker.cs - Selection reader → Windows interop: queries focus
src/HanYeong/SelectionReader.cs - Selection reader → Synthetic input: requests copy
src/HanYeong/SelectionReader.cs - Selection reader → Diagnostic log: records failures
src/HanYeong/SelectionReader.cs - Synthetic input → Windows interop: sends keystrokes
src/HanYeong/InputSender.cs - IME control → Windows interop: queries IME
src/HanYeong/Ime.cs - Auto detector → Word frequencies: scores words
src/HanYeong.Core/AutoDetector.cs - Auto detector → Layout converter: tests conversions
src/HanYeong.Core/AutoDetector.cs - Auto detector → Jamo operations: checks Hangul
src/HanYeong.Core/AutoDetector.cs - Auto detector → Common syllables: checks common forms
src/HanYeong.Core/AutoDetector.cs - Layout converter → Hangul composer: composes Korean
src/HanYeong.Core/LayoutConverter.cs - Layout converter → Hangul decomposer: decomposes Korean
src/HanYeong.Core/LayoutConverter.cs - Hangul composer → Jamo operations: composes syllables
src/HanYeong.Core/HangulComposer.cs - Hangul composer → Dubeolsik mapping: maps keys
src/HanYeong.Core/HangulComposer.cs - Hangul decomposer → Jamo operations: splits syllables
src/HanYeong.Core/HangulDecomposer.cs - Hangul decomposer → Dubeolsik mapping: maps keys
src/HanYeong.Core/HangulDecomposer.cs - User → Tray controls: configures
README.md - Windows interop → Windows: calls APIs
src/HanYeong/Native.cs - Synthetic input → Text app: types replacement