Skip to content

feat(ime): emoji toggle in the editing toolbar (#61, option 2) - #65

Merged
willwade merged 1 commit into
mainfrom
feat/emoji-toggle
Sep 18, 2026
Merged

willwade merged 1 commit into
mainfrom
feat/emoji-toggle

Conversation

@willwade

Copy link
Copy Markdown
Contributor

What

😀 button in the RFC 0019 editing toolbar: switches the engine to the Emoji alphabet (DasherCore#96 — pure data asset, 9 topical groups, multi-codepoint nodes). Tap Abc to return to the remembered alphabet.

Behaviour

  • Toggle remembers the previous alphabet, persisted in dasher_ime prefs (engine restarts in Emoji mode still know the way back)
  • On return: reanchorEngineToTarget() re-seeds from the target field so predictions continue mid-sentence
  • Button hidden until the engine reports the Emoji alphabet — this PR is UI-only until the DasherCore submodule bumps past the emoji-alphabet release; then it lights up with no further changes
  • EditingToolbar.onToggleEmoji is optional; default null hides the button (no other call-site changes)

Testing

  • compileDebugKotlin + unit tests + lint clean
  • Manual after submodule bump: toggle switches tree, 😀 commits emoji, Abc restores + re-anchors

Closes #61 (option 2). Option 3 (English+emoji trained variant) tracked as follow-up in the issue.

A 😀 button in the editing toolbar switches the engine to the Emoji
alphabet; tapping Abc switches back to the remembered alphabet and
re-anchors from the target field so predictions continue mid-sentence.

- Button hidden until the engine's data bundle ships the Emoji alphabet
  (DasherCore#96 lands the data; next submodule bump lights this up)
- Return alphabet persisted in dasher_ime prefs — engine restarts in
  Emoji mode (its own setting) still know the way back
- EditingToolbar gains an optional onToggleEmoji constructor param;
  null (other call sites) hides the button entirely

Refs Dasher-Android#61, DasherCore#96.

Signed-off-by: will wade <willwade@gmail.com>
@willwade
willwade merged commit 1800b72 into main Sep 18, 2026
2 checks passed
@willwade
willwade deleted the feat/emoji-toggle branch September 18, 2026 16:22
willwade added a commit that referenced this pull request Sep 19, 2026
Bumps the DasherCore submodule to the Emoji-alphabet merge
(DasherCore#96). The app bundles the submodule's Data dir directly, so
this is what lights up the 😀/Abc toggle from #65 — no Kotlin changes
needed.

**To test after merge:** install the debug build, open any text field
with the Dasher IME → the editing strip (←/→/⌫/Sel/Cp/Ps) now shows **😀
at the right end**. Tap it → the tree switches to 9 emoji groups
(smileys, gestures, hearts, people, animals, food, travel, objects,
communication + separators). Tap **Abc** → back to your previous
alphabet, predictions re-anchored mid-sentence.

Note: a fresh install (or clearing app data) forces DataInstaller to
re-extract the new assets — an upgrade install over v0.1.20 may keep the
old extracted data dir. If the button doesn't appear on upgrade, clear
Dasher's storage once.

Signed-off-by: will wade <willwade@gmail.com>
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.

Emoji alphabet (alphabet choice, not toolbar)

1 participant