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

Is it possible to convert windows emoji to apple emoji using your library? #100

Closed
VadimChorrny opened this issue Sep 19, 2022 · 3 comments

Comments

@VadimChorrny
Copy link

I work on Windows, I write posts in the project through markdown,

I insert Windows emoji there,

I would like to convert emoji to apple style at the output in markdown files,

as Telegram does

GIF how it works in Telegram
https://imgur.com/a/dq2fzTq

My code where I convert markdown to html
https://github.com/1alexvash/AlexCodeBlog/blob/master/helpers/markdownToHtml.ts

@enzoferey
Copy link
Collaborator

Hey @VadimChorrny ! Very good question, I actually have no idea how Telegram implemented that feature. Emojis unicodes display based on your OS, so my first thought is that they are transforming Windows emojis to images of the Apple's ones. However, I just had a look at https://web.telegram.org/ and I can see plain emojis in the source HTML. Maybe it's because I'm on MacOS so they don't need to do the conversion, I don't know.

Please check on your side how the HTML code looks like and we will see if there is any possible way of doing so.

@VadimChorrny
Copy link
Author

I checked on macOS and Windows.
On macOS, I got emojis from Apple.
And on Windows, I got emojis from Windows.

Unfortunately, I didn't get the result I wanted (

@enzoferey
Copy link
Collaborator

That's the expected behaviour @VadimChorrny as I wrote above:

Emojis unicodes display based on your OS

Please check on Windows the Telegram web HTML elements to see how the Windows emojis you write are being displayed as Apple emojis. We might be able to take some hints from that.

@tommoor tommoor closed this as completed Jan 12, 2023
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

3 participants