Skip to content

Add Unicode text entry via clipboard (emoji / CJK)#332

Merged
JE-Chen merged 2 commits into
devfrom
feat/text-unicode-batch
Jun 22, 2026
Merged

Add Unicode text entry via clipboard (emoji / CJK)#332
JE-Chen merged 2 commits into
devfrom
feat/text-unicode-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

Round-11, automation-core. write types through the platform virtual-key table and raises on any character outside it (emoji, CJK, many accented letters), so non-ASCII text entry was impossible. The reliable cross-platform way is clipboard + paste.

Layers

  • Headless core: je_auto_control/utils/text_unicode/text_unicode.pytype_unicode (set clipboard + paste hotkey, any Unicode), plan_paste (the op-plan), unicode_code_units (UTF-16 split incl. surrogate pairs, for KEYEVENTF_UNICODE backends). Injectable sink; no PySide6.
  • Facade: all three re-exported + __all__.
  • Executor: AC_type_unicode.
  • MCP: ac_type_unicode (SIDE_EFFECT_ONLY).
  • Script Builder: one CommandSpec under Keyboard.

Tests / docs

  • test/unit_test/headless/test_text_unicode_batch.py — 7 headless tests (ASCII/BMP/astral surrogate pairs, paste plan, dispatch via sink + wiring + facade). No real clipboard.
  • EN/Zh feature docs v122_features_doc.rst + toctrees; 3 WHATS_NEW entries.

Note: Codacy may show action_required from its coverage gate only (issues=0); SonarCloud + all GitHub Actions are the substantive gates.

@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit fcee74e into dev Jun 22, 2026
15 of 16 checks passed
@JE-Chen JE-Chen deleted the feat/text-unicode-batch branch June 22, 2026 17:46
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant