From a1bd207f0f8beec6ae1bd7ad86bc4885cf846201 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Wed, 13 May 2026 16:56:35 +0200 Subject: [PATCH] Fix two emoji --- src/lib.rs | 6 +++++- src/modules/emoji.txt | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0ad21d77..429184c9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -242,8 +242,12 @@ mod test { let sequences = get_valid_presentation_sequences(); assert!( are_all_variants_valid(ROOT, |c| { + // FIXME: Some emoji consist of many characters and contain an + // emoji presentation sequence in the middle, but are not listed + // in emoji-variation-sequences.txt. + // See: https://github.com/typst/codex/issues/166. if c.contains(TEXT_PRESENTATION_SELECTOR) - || c.contains(EMOJI_PRESENTATION_SELECTOR) + || c.ends_with(EMOJI_PRESENTATION_SELECTOR) { sequences.contains(c) } else { diff --git a/src/modules/emoji.txt b/src/modules/emoji.txt index 5e2528dc..44970d8d 100644 --- a/src/modules/emoji.txt +++ b/src/modules/emoji.txt @@ -45,7 +45,7 @@ arrow .tr ↗\vs{emoji} arrows .cycle 🔄 -ast *\vs{emoji} +ast *\vs{emoji}\u{20E3} .box ✳\vs{emoji} atm 🏧 atom ⚛\vs{emoji} @@ -720,7 +720,7 @@ hands .raised 🙌 .shake 🤝 harp 🪉 -hash #\vs{emoji} +hash #\vs{emoji}\u{20E3} hat .ribbon 👒 .top 🎩