emacs-emojify
emacs-emojify copied to clipboard
Export emojis as inline images png or svg
When you export the org file (like to a PDF or HTML, e.g.) the emojis are exported in pure text, not as an image.
I'll give @iqbalansari the final word on this, but as far as I know this package doesn't offer any support for exporting things in org, markdown, latex, etc. It changes how certain sequences are displayed inside Emacs, but as far as export is concerned the sequences aren't really emoji.
I know that. That's why I am making this feature request. Thank you!
Thanks for the bug report @felipelalli, this sounds like a useful addition, though I am not sure if org-mode has enough hooks to do this cleanly, will give this a shot
Everything is possible on Emacs, even if we need to send a PR to Emacs itself! :smiley: :+1: If something is missing on Emacs tell me and I can fix it to the next release.
@iqbalansari maybe this: 12.17 Advanced configuration could help?
Hello @felipelalli, I gave this a shot by replacing the emojis with inline images in the org-export-before-parsing-hook
hook and it works but I realized that org mode does not allow controlling the size of the images exported as a result the exported image ends up larger than the surrounding text which looks really bad.
I think at this point the only option is to replace use unicode characters instead of images, that way fenced and ascii emojis will be exported as unicode characters and would be rendered properly in exports. Let me know your thoughts
This could help https://stackoverflow.com/questions/36233605/how-to-customize-org-mode-html-output-to-replace-emojis
I have tried both answers but they don't work for me. Can someone else please try them?
This could help https://stackoverflow.com/questions/36233605/how-to-customize-org-mode-html-output-to-replace-emojis
I have tried both answers but they don't work for me. Can someone else please try them?
This works.
(setq org-html-protect-char-alist
'(("&" . "&")
("<" . "<")
(">" . ">")
(":turtle:" . "🐢")
(":dash:" . "💨")
(":-)" . "😊")
(":-(" . "😞")))