feat(desktop): built-in Han/Eng layout auto-switching, terminal/Vim support, and Unicode input

This commit is contained in:
Yun Chan 2026-10-27 10:48:07 +09:00
parent 1da04b9e46
commit a3ac44da2b
109 changed files with 8234 additions and 242 deletions

View file

@ -12,6 +12,61 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Additional Whisper model management UI
- Plugin system for custom pipelines
## [1.11.0] - 2026-10-27
> Published from an annotated tag. Installer and update metadata are served by the
> canonical Forgejo feed; no binaries are committed to this repository.
### Added
- **Built-in instant Korean/English keyboard layout auto-switching (한영 자판 자동 전환 기본 탑재).**
Words typed while the IME is in the wrong layout are converted in place as soon as you
press Space or pause — even when input telemetry collection and sentence suggestions
are turned off:
- English keys → Korean (`dkssudgktpdy` → `안녕하세요`, `rkatkgkqslek` → `감사합니다`).
- Korean jamo → English (`ㅗ디ㅣㅐ 재깅` → `hello world`, `내ㅡㄷ샤ㅡㄷ` → `sometime`,
`내ㅡㄷ유ㅐ요` → `somebody`, `ㅑㄹ ㅑ 쇼ㅔㄷ ㅗ디ㅣㅐ` → `if I type hello`).
- Mixed English/Acronym/CamelCase + Korean particles & compound nouns (`githubdp` →
`github에`, `ㅎ샤ㅗㅕㅠ에` → `github에`, `ㅠㅕㅎ가` → `bug가`, `PDFvkdlf` / `ㅖㅇㄹ파일` →
`PDF파일`, `Reactzjavhsjsxm` → `React컴포넌트`, `dhsmfdmsgoogledptj` → `오늘은google에서`,
`1:1ansdml` → `1:1문의`, batchim-aware 2-letter acronyms `TMdms` → `TM은` vs
`TMsms` → `쓰는`, single-letter + particle `ㄴ가` → `s가`, `ㄴ은` → `s은`).
- Lingering Shift on double consonants (`djEJs` → `어떤`, `qkRNjTdj` → `바꿨어`) and
sentence-context Hangul conversion (`Stay hungry, stay foolishsms wkqtmdml akfdlek.`
→ `Stay hungry, stay foolish는 잡스의 말이다.`).
- **Terminal, Vim / Neovim, and xterm.js support (터미널·Vim·xterm.js 한영 전환 지원).**
- Converts wrong-layout shell commands (`퍄ㅡ ` → `vim `, `ㅜ퍄ㅡ ` → `nvim `, `ㅎ샤 ` →
`git `, `ㅣㄴ ` → `ls `, `채ㅜㄴㅅ ` → `const `) and Vim ex-commands (`:ㅈㅂ` → `:wq`,
`:ㅈㅂ!` → `:wq!`, `:ㅂ!` → `:q!`, `:ㅈ` → `:w`, `:ㅂ` → `:q`) across Windows Terminal,
PowerShell, cmd, Neovide, Kitedesk, WezTerm, Alacritty, and xterm.js terminals
(Agent Switchboard, VS Code, Cursor).
- Suppresses auto-correction in Vim Normal mode (`vimMode === 'normal'`) so motions
(`hjkl`, `dd`, `ciw`) are never altered, and tracks Korean IME conversion state on
Windows TSF (`IMC_GETCONVERSIONMODE`).
- **Word-by-word suggestion acceptance & instant personal n-gram candidate.**
- Press `Ctrl+Alt+Space` to insert only the first word of the active suggestion and
keep the remainder visible.
### Changed
- **Direct Unicode typing (`SendInput` `KEYEVENTF_UNICODE`) instead of clipboard paste.**
Typo replacements and text insertion on Windows now type Unicode characters directly
without touching your `Win+V` clipboard history or colliding with background clipboard
locks (`ClipboardSvcGroup`).
- **No mid-word interruption while typing.** Boundary keys (Space, punctuation) trigger
layout conversion immediately (`25–40 ms`), while mid-word pauses wait `650 ms` so
compound words (`some` → `sometime` / `somebody`) are never split or swallowed.
### Fixed
- **Characters are no longer dropped, duplicated, or preceded by phantom spaces during fast typing.**
- Synthetic `KEYEVENTF_UNICODE` key events (`keycode=0`) are ignored by the global input
hook, and programmatic key suppression only matches synthetic `Backspace`/`Space`/`Ctrl+V`
so physical letter keys pressed during async replacement are never swallowed.
- `commitComposition` (`Space` before `Backspace`) is sent only when the character before
the caret is a composed Hangul syllable (`[가-힣]`), never on a single compatibility
jamo (`ㅎ` in `ㅠㅕㅎ`, `ㄷ` in `내ㅡㄷ`, `ㅂ` in `:ㅈㅂ`).
- `TerminalKeystrokeTracker.applyReplacement` preserves keys typed after replacement
started (`baseLength`) and reconciles `xterm-helper-textarea` buffers without
re-correcting previously replaced tokens.
## [1.10.1] - 2026-10-24
> Urgent fix release. Installs older than 1.10.1 receive this update automatically.