Files
vectorcraft/apps
mohamedwithaiandClaude Opus 5.5 ce5af98dd5 Fix #6929: NHM Writer's legacy Tamil keymaps (symbol fonts) type their characters on Windows (#6930)
* Type: NHM Writer's legacy Tamil keymaps (symbol fonts) type their characters on Windows

NHM Writer's legacy Tamil keymaps (e.g. "Tamil Phonetic StmzhRgb" for
SR-Tamil fonts) post each byte as a WM_CHAR of U+F000 + byte, Windows'
symbol-font convention. egui-winit's is_printable_char rejects the
Private Use Area, so the Type tool got nothing (only the tool's
Backspace presses arrived).

windows_symbol_chars notes U+F020..=U+F0FF characters in winit's message
hook, in order with Backspace presses, and hands them to the frame as
Event::Text, unchanged (symbol fonts map exactly these code points),
each before the Backspace press that followed it. Unchanged matters:
as Latin-1, byte 0xAD (SR-Tamil's ஷ) would become U+00AD, a soft hyphen
the text engine never draws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2

* Contributors: add my display name (HASAN CGI)

* Type: symbol-font characters keep their order among all typed text and keys; no new unsafe

Review of #6930: windows_symbol_chars now notes every character and key
press the window gets, not only Backspace, and places each symbol-font
character before the text or key press that followed it (a symbol then
an ordinary character, or a symbol then a navigation key, no longer
swap). It no longer has a message hook of its own: windows_alt_codes's
existing msg_hook, which already reads each MSG, hands it the message,
so the module has no unsafe code. Tests cover symbol/ordinary-text and
symbol/navigation sequences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2

* Revert "Contributors: add my display name (HASAN CGI)"

This reverts commit 78ff9cbb2a.

* Type: rustfmt order for mod windows_symbol_chars

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:22:04 -06:00
..