present icon indicating copy to clipboard operation
present copied to clipboard

Add emoji support

Open vinayak-mehta opened this issue 5 years ago • 4 comments
trafficstars

vinayak-mehta avatar Aug 19 '20 13:08 vinayak-mehta

You should already be able to do this. Assuming you are using UTF-8 for your markdown (and a unicode aware Screen), you can use the unicode glyphs for emojis (https://unicode.org/emoji/charts/full-emoji-list.html).

peterbrittain avatar Aug 23 '20 09:08 peterbrittain

Yes, unicode emojis work fine but they don't show up nicely even after increasing the terminal font size. I think ColourImageFile could be used to render emojis instead, while also supporting the GitHub flavored markdown emoji syntax.

vinayak-mehta avatar Aug 23 '20 10:08 vinayak-mehta

Ah. I see. Makes sense.

peterbrittain avatar Aug 23 '20 12:08 peterbrittain

Just wanted to point out that Unicode Support in Windows-based consoles is very troublesome right now. For example, the current print line to console

click.secho("All done! ✨ 🍰 ✨", bold=True)

prints

All done! ✨ �🍰✨✨

In some versions of the console, no unicode output can be seen.

However, https://github.com/microsoft/terminal is set to be shipped as the default terminal for all windows systems sometime soon, which delivers expected outputs for Unicodes. But until then, only *nix based systems could have this feature.

roopeshvs avatar Aug 31 '20 16:08 roopeshvs