deltachat / message-parser

Parsing of Links, Email adresses, simple text formatting (markdown subset), user mentions, hashtags and more in DeltaChat messages.
https://deltachat.github.io/message-parser/
Other
12 stars 2 forks source link

Idea: mode where emojis get an emoji element #58

Open Simon-Laux opened 9 months ago

Simon-Laux commented 9 months ago

Some older platforms (older android and older ubuntu touch, possibly also kaiOS) have problems with unicode emoji rendering even when updating the emoji fonts.

To solve that we should add a mode (not do it by default) where the emojis are parsed into their own element, so the platforms can display via a custom function that renders the emoji from a sprite map for example.

The emoji elements should include the whole grapheme cluster (“user-perceived character”) in a single emoji element:

https://github.com/deltachat/message-parser/pull/56 already adds correct emoji parsing of those clusters, so we should take it's code as base for this.

@lk108 might need this for proper emoji support on ubuntu touch

lk108 commented 9 months ago

sounds great