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

support customization of emoji appearance [use case: add hover text with keyword when shown in browser] #4

Open
pietroppeter opened this issue Sep 30, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@pietroppeter
Copy link
Owner

(optional) provide emoji keyword as alt text (as inline html)

@pietroppeter pietroppeter added the enhancement New feature or request label Sep 30, 2020
@pietroppeter
Copy link
Owner Author

trying to find out what would be the appropriate html element I realized alt text is not it (supported on very little tags and not standard compliant, see https://en.wikipedia.org/wiki/Alt_attribute). Instead it is title attribute that should be used, and I guess that tag should be a simple span.

@pietroppeter pietroppeter changed the title alt text when rendering in HTML, having option for tooltip to show emoji keyword when hovering Oct 2, 2020
@pietroppeter
Copy link
Owner Author

as far as nimoji api is concerned, since this is a feature that is probably used consistently in a codebase, it could be implemented as a compile time symbol. Name of compile time symbol? nimojiHtml? nimojiTooltip? nimojiAddTitleAttribute?

default of course is not having it.

@pietroppeter
Copy link
Owner Author

my confusion was probably tied to this post: https://www.reddit.com/r/firefox/comments/5wxgwl/alttext_for_emoji/ which produces title effect with markdown link and alt text. This is another option (also interesting if you want to add a link. I am actually thinking that probably the best way is to have an alternative emojize proc that also returns positions of emojis in text. This could be useful for many things including adding any html inline or markdown element that ones want.

@pietroppeter pietroppeter changed the title when rendering in HTML, having option for tooltip to show emoji keyword when hovering how to support customizing appearance of emoji? use case: add hover text when shown in browser Oct 2, 2020
@pietroppeter pietroppeter changed the title how to support customizing appearance of emoji? use case: add hover text when shown in browser support customization of emoji appearance [use case: add hover text with keyword when shown in browser] Oct 2, 2020
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