docs: update CHANGELOG for PR #5 merge — ua-horn, spacing, clipboard

This commit is contained in:
Khoa Vo 2026-06-26 19:22:39 +07:00
parent 01ba0c7dde
commit be8943bf52

View file

@ -2,52 +2,52 @@
## v0.1.2 (2026-06-26) ## v0.1.2 (2026-06-26)
### Telex & Spacing Fixes
- **ua-horn cluster fix** — Correct tone placement for `ưa` clusters (mưa, lửa).
- **Word-spacing fix** — Clipboard operations now properly preserve user's clipboard content during injection by saving and restoring via `clipboard_context`.
- **Control-key consumption fix** — VNI/Telex control keys properly consumed across all code paths.
- **Clipboard preservation** — User's clipboard is saved before daemon injection and restored after, preventing Ctrl+C/V conflicts.
### Flush & Spacing ### Flush & Spacing
- **Flush char forwarded as raw key** — Engine no longer includes flush char (space, enter, punctuation) in Replace insert text. Daemon forwards it as a raw keycode after injection, preventing clipboard paste from trimming trailing spaces. - **Flush char forwarded as raw key** — Engine no longer includes flush char in Replace insert. Daemon forwards it as raw keycode after injection.
- **Stop retyping finished word on flush** — Flush no longer erases and retypes the entire word. Characters already on screen stay, only the flush key is typed. - **Stop retyping finished word on flush** — Characters already on screen stay, only the flush key is typed.
- **Auto-restore English words** — Recognizes common English words and invalid Vietnamese syllables. When typing `hello` followed by space, the word is restored if the engine incorrectly applied Vietnamese marks. - **Auto-restore English words**Common English words and invalid Vietnamese syllables are restored on space.
### Tone Placement ### Tone Placement
- **qu/gi onset glides** — Correct tone placement for `qu` (quý, quả) and `gi` (gió, giờ) clusters. - **qu/gi onset glides** — Correct tone for `qu` (quý), `gi` (gió) clusters.
- **uê/uơ clusters** — Correct tone on second vowel for `uê` (thuế) and `uơ` (thuở). - **uê/uơ clusters** — Correct tone on second vowel for `uê` (thuế), `uơ` (thuở).
### Injection Fixes ### Injection
- **Skip auto-repeat pile-up** — After each injection, skip 3 auto-repeat events (value=2) to prevent `rrrrrrrr` from flooding the output during injection delay. - **Skip auto-repeat** — Skip 3 auto-repeat events after injection to prevent key flood.
- **Enter key support** — `\n` character now sent as `KEY_ENTER` via uinput. Fixes Enter requiring double-press. - **Enter key** — `\n` sent as KEY_ENTER via uinput.
- **Removed clipboard save/restore** — The `xclip -o` read was leaking content into text. Simple clipboard write+paste is sufficient. - **Removed xdotool** — Layout-dependent; reverted to clipboard paste.
- **Removed xdotool approach** — xdotool type depends on keyboard layout and fails on US layout. Reverted to clipboard paste which is layout-independent. - **Uinput daemon** improvements for clipboard-aware injection.
### AppImage ### AppImage
- **`--quit` / `--restart` / `--update` flags** — CLI control over daemon lifecycle and self-updating from GitHub releases. - `--quit`, `--restart`, `--update` flags.
- **xdotool bundling** — Bundled in AppImage for future use (not active yet). - xdotool bundled for future use.
### Engine Tests ### Tests
- **102 total tests** — 71 engine + 13 CLI + 12 protocol + 5 auto-restore + 1 tone placement. - **106 tests** (72 engine + 16 CLI + 12 protocol + 5 auto-restore + 1 tone placement).
- New: `tone_placement.rs` (qu/gi/gio/uê/uơ clusters), `auto_restore.rs` (5 tests).
### DEB & AppImage ### Releases
- `vietc_0.1.2-1_amd64.deb` (975K), `Viet+-0.1.2-x86_64.AppImage` (2.2M) published on GitHub and Forgejo. - `vietc_0.1.2-1_amd64.deb` (975K), `Viet+-0.1.2-x86_64.AppImage` (2.2M) on GitHub + Forgejo.
--- ---
## v0.1.1 (2026-06-26) ## v0.1.1 (2026-06-26)
### Telex fixes ### Telex fixes
- **Fix `r` consumed as tone key** — Telex tone keys (`f`,`s`,`r`,`x`,`j`) now only activate when the composition has a vowel. - Fix `r` consumed as tone key — tone keys check `has_vowel` before applying.
- **Fix normal letters consumed**`is_vn_control_key` was consuming `a`,`e`,`o`,`d`,`u` in Telex mode. - Fix normal letters consumed — `is_vn_control_key` was eating `a`,`e`,`o`,`d`,`u`.
- **Tone key context check** — Tone keys check `has_vowel` before applying. - 67 engine tests.
### Injection ### Injection
- **15ms delay** between clipboard paste and trailing uinput ASCII. - 15ms delay, persistent X11 connection, Enter key support.
- **Persistent X11 connection** for Ctrl+V via `std::sync::Once`. - `--quit`, `--restart`, `--update` flags.
- **Enter key** sends `KEY_ENTER` via uinput.
### AppImage
- `--quit`, `--restart`, `--update` flags. GUI quit dialog.
- 67 engine tests.
--- ---
## v0.1.0 (2026-06-26) ## v0.1.0 (2026-06-26)
Initial release and major overhaul. Initial release — bamboo engine port, evdev capture, uinput injection.