Re: [csswg-drafts] [css‑fonts‑4] Add `emoji` as a keyword to `unicode‑range` (#4573)

> From [Use CSS to boost the font size of emoji with no extra markup](https://shkspr.mobi/blog/2024/04/use-css-to-boost-the-font-size-of-emoji-with-no-extra-markup/) by Terence Eden @edent
> 
> > Emoji codepoints are complicated - especially when it comes to combining characters. You can see [a full list of every sequence in Unicode 15.1](https://unicode.org/Public/emoji/15.1/emoji-sequences.txt). There are currently [3,782 different emoji](https://en.wikipedia.org/wiki/List_of_emojis).
> 
> > There was [some talk of using named ranges](https://github.com/w3c/csswg-drafts/issues/7921) but that doesn't seem to have gone anywhere. So, instead, I've extracted all the Emoji codepoints and manually grouped them. It's a pretty long sequence, and I'm sure I've made a few mistakes.

Neat, though it's difficult to make it really comprehensive because of dual-use characters that might or might not be part of an emoji, depending on context. E.g. 👨‍❤️‍👨 doesn't currently work in the example because it uses U+2764 HEAVY BLACK HEART to connect the two people emojis, but U+2764 is also a non-emoji dingbat in its own right, so didn't get listed in the emoji unicode-range. Adding it there should make 👨‍❤️‍👨 work, but could also disrupt any non-emoji use of the symbol. Similarly for the U+2620 SKULL AND CROSSBONES used in 🏴‍☠️.

So exactly what "unicode-range: emoji" ought to encompass is tricky -- and maybe not really solvable within a unicode-range model that simply partitions codepoints into "included" vs "excluded".

(@edent fyi, you might like to include U+E0060-E007F in your unicode-range, to make more of the flags work in Chrome.)

-- 
GitHub Notification of comment by jfkthame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4573#issuecomment-2057622981 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 15 April 2024 19:12:03 UTC