Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow utf8 symbol in symbol name #15

Open
tobiasBora opened this issue Apr 21, 2024 · 3 comments
Open

Feature request: allow utf8 symbol in symbol name #15

tobiasBora opened this issue Apr 21, 2024 · 3 comments

Comments

@tobiasBora
Copy link

Thanks for this great package. Would it be possible to also allow UTF-8 symbols as emoji name (they might be easier to search/insert, for instance KDE allows you to insert emoji using Win + .)? This way I could type:

\emoji{😉}

instead of

\emoji{winking-face}

Thanks!

@Ar-Kan
Copy link

Ar-Kan commented May 5, 2024

For that you can simply use the font directly, like this:

\newfontfamily\notoemoji{NotoColorEmoji}
\DeclareTextFontCommand{\textemoji}{\notoemoji}

And then use it like this:

\textemoji{🙂}

This way you can use any emoji that is available in the font.

@tobiasBora
Copy link
Author

Thanks for the nice workaround. The main issue here is that this may not share the font with the one used in this package, and I don't know if they do other tricks like resizing the image, adjusting space etc. But if not, I guess it would anyway be cool to provide this command out of the box, it still saves a few lines of typing ^^

@Ar-Kan
Copy link

Ar-Kan commented May 7, 2024

I see, well, I don't understand half of the package's code, but, as far I can see, they look the same.

image

The difference is that this package uses a lookup table to define which character to use, while here we are directly using the emoji.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants