Emoji images in right-to-left paragraphs and profile bios #295

Open
opened 2026-11-12 12:49:19 +00:00 by charles · 0 comments
Owner

Deferred from Text chat 8 (#258).

widgets::inline_flow places words left to right, so rich_text draws a paragraph that contains any right-to-left character (Hebrew, Arabic, ...) with iced's rich_text instead, and its emoji as the system font's glyphs, not as Twemoji / custom emoji images. Profile bios (screens/main/profile_popout.rs) pass RenderCtx::emoji: None for the same reason of scope, so their emoji are glyphs too (custom emoji in a bio show as :name:).

To do:

  • bidi ordering in InlineFlow (reorder runs per line by the Unicode bidi algorithm), then drop the RTL check in rich_text::wants_flow;
  • pass the media images to the bio's RenderCtx and request its emoji URLs in screens::main::media::wanted (and update the two profile popout goldens).

Spike notes: docs/superpowers/research/2026-11-12-textchat-spikes.md section 1.2.

Deferred from Text chat 8 (#258). `widgets::inline_flow` places words left to right, so `rich_text` draws a paragraph that contains any right-to-left character (Hebrew, Arabic, ...) with iced's `rich_text` instead, and its emoji as the system font's glyphs, not as Twemoji / custom emoji images. Profile bios (`screens/main/profile_popout.rs`) pass `RenderCtx::emoji: None` for the same reason of scope, so their emoji are glyphs too (custom emoji in a bio show as `:name:`). To do: - bidi ordering in `InlineFlow` (reorder runs per line by the Unicode bidi algorithm), then drop the RTL check in `rich_text::wants_flow`; - pass the media images to the bio's `RenderCtx` and request its emoji URLs in `screens::main::media::wanted` (and update the two profile popout goldens). Spike notes: docs/superpowers/research/2026-11-12-textchat-spikes.md section 1.2.
charles added this to the Text chat milestone 2026-11-12 12:49:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#295
No description provided.