Emoji picker (Super+.): search, tabs, skin tones, recents, text-input-v3 insertion
CI / test (push) Canceled after 0s

Compositor-drawn Win+. style picker. The focused app keeps keyboard focus so
its text-input-v3 field stays enabled; the emoji goes in with commit_string,
or onto the clipboard with a visible notice when the app has no text field.
Shortcut lives in the shortcut table (rebindable in Settings > Shortcuts).

- compositor/wayland/text_input.mbt: zwp_text_input_manager_v3 (global 12)
- compositor/emoji: Emoji 18.0 + CLDR 49 data (Unicode License), search,
  picker model, CBDT/CBLC + GSUB reader for Noto Color Emoji
- Chandra's own pinned bitmap Noto Color Emoji (scripts/fetch-emoji-font.sh,
  just emoji-font); Fedora's COLRv1 copy can't be drawn. Missing font shows
  an error panel.
- raster WIT: emoji-font, emoji-has, emoji-image; served by wasmhost
- state.edn :emoji {:recent [...] :skin-tone n}
- tests incl. a fake text-input client; docs/emoji-picker.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkABDGJixotaqFv2X2
This commit is contained in:
Claude committed 2026-11-26 07:00:22 +00:00
1 parent 738928352e
commit 27252a97ab
39 files changed
+4942 -41

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# Fetch Chandra's colour emoji font: Noto Color Emoji 2.051, the bitmap (CBDT) edition, into
# assets/fonts/NotoColorEmoji.ttf (SIL Open Font License 1.1, see assets/fonts/LICENSE-NotoColorEmoji).
#
# Chandra reads its own copy rather than the system's: distributions ship different editions, and
# Fedora's is COLRv1 (vector paint graphs), which Chandra's emoji picker can't draw. `just install`,
# `just run*` and `just test` run this; it downloads only when the file is missing or different.
set -euo pipefail
cd "$(dirname "$0")/.."
version=v2.051
sha=72a635cb3d2f3524c51620cdde406b217204e8a6a06c6a096ff8ed4b5fd6e27b
url=https://raw.githubusercontent.com/googlefonts/noto-emoji/$version/fonts/NotoColorEmoji.ttf
dst=assets/fonts/NotoColorEmoji.ttf
if [ -f "$dst" ] && echo "$sha $dst" | sha256sum --check --status; then
exit 0
fi
echo "fetching Noto Color Emoji $version (10 MB) from $url" >&2
tmp=$(mktemp "$dst.XXXXXX")
trap 'rm -f "$tmp"' EXIT
if ! curl -fL --retry 3 -o "$tmp" "$url"; then
echo "error: couldn't download Noto Color Emoji from $url; the emoji picker (Super+.) needs it at $dst" >&2
exit 1
fi
if ! echo "$sha $tmp" | sha256sum --check --status; then
echo "error: $url is not the expected Noto Color Emoji $version (sha256 differs: $(sha256sum "$tmp" | cut -d' ' -f1))" >&2
exit 1
fi
mv "$tmp" "$dst"
trap - EXIT
echo "installed $dst" >&2