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

Emoji plugin: Allow using other emoji vendors #320

Closed
yhatt opened this issue Nov 15, 2022 · 3 comments
Closed

Emoji plugin: Allow using other emoji vendors #320

yhatt opened this issue Nov 15, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@yhatt
Copy link
Member

yhatt commented Nov 15, 2022

Marp Core's emoji plugin converts Unicode 14.0 emoji into the vector image elements provided by Twemoji (Twitter emoji), for getting better emoji rendering in PDF and printing.

In every year, we have kept update to catch up the latest Unicode as usual. However, the latest Twemoji (Unicode 15 compliant) is not yet released due to confusions around Twitter brought by Elon's acquisition. It's doubtful whether the next Twemoji update will come in this year.

Marp relys on Twemoji since 6 years, but it may be a time for getting support other emoji variants.

Plans

  • Marp class should provide helper methods, to render emoji elements and styles for them, just as like as Marp.prototype.highlighter().
    • Plugin author and engine developer can overload these (protected) methods, to swap emoji rendering into images that are provided by the other vendor.
    • Class method interfaces may be better to consider the case using emoji through Web fonts (COLRv0/v1).
      • Marp team does not take this approach by default, to avoid an initial loading of huge emoji assets.
  • Marp Core v3 is going to keep Twemoji rendering in emoji for Unicode 14.0.
@yhatt
Copy link
Member Author

yhatt commented Mar 19, 2023

The forked version of Twemoji by an original author has been updated to v14.1.1. It still has a blocker about TypeScript compatibillity (jdecked/twemoji#1), but at least we should switch Twemoji to the well-maitained version for supporting Unicode 15 emojis in future.

@yhatt
Copy link
Member Author

yhatt commented Mar 26, 2023

Unicode 15 support for a forked version of Twemoji has been announced. This proposal was created in response to concerns about the discontinuation of Twemoji's ongoing maintenance, so we may not need to worry about it for now.

@yhatt yhatt closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2023
@yhatt
Copy link
Member Author

yhatt commented Mar 29, 2024

UPDATE: The blocker about TypeScript (jdecked/twemoji#1) has been removed in Twemoji v15.1 released yesterday. 😄

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

No branches or pull requests

1 participant