Skip to content

FrenchW/FrwTwemoji

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

FrwTwemoji

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

The main purpose of FrwTwemoji project is to have twitter emojis hosted in any .net or mono project.

Twemoji is the twitter initiative to open source emoji pictures and javascript parser : twitter/twemoji)

The goal is to include those pictures as resources (and WebResources) and also to have a .net parser to detect emoji caracters and display the right pictures at the right place.

Video presentation on YouTube (Subtitled in english)

Click here to watch the introduction oabout FrwTwemoji on YouTube

Informations

Current version 13.0.1.0 (updated nov 21, 2020)

See changelog for more information

Downloads

You can download the latest FrwTwemoji assemblies for a direct use here :

What's new in version 13.0.1

FrwTwemoji now refers to twemoji 13.0.1.

It includes all new unicode V.13 Emojis. It allows you to use all the new emojis, complex associations gender and skin tones variants like these:

alt text

EmojiDisplay WebControl

Usage

Simply drop EmojiDisplay control on your web Page, set rendering options and add some text containing emojis :

<h2>Emoji Display</h2>
<cc1:EmojiDisplay ID="EmojiDisplay1"
    runat="server"
    Text="Today, Twitter is open sourcing their emoji 
        to share with everyone  ?? ?? ?? ?? ?? ?? ?? ?? ?? ?" />

You can easily set it to use MaxCdn (version 2) or your embeded ressources (all is in the Dll file)

and it displays like this : alt text alt text alt text

Simple parser

Anywhere, use the Parser function to get the string converted with string + images

Usage

MyHtmlSpanElement.InnerHtml = 
    FrwTwemoji.Parser.ParseEmoji(SomeStringContainingEmojiCaracters);

Twitter Original javascript

The original twitter javascript twemoji is also included as a WebResource : the minified one (set the argument to true) or not (false)

// Easy way, get simply the url and use it in your code :
LitJavascriptUrl.Value = Javascript.GetJavascriptRessourceUrl(false);
// wich outputs : [ Literal "LitJavascriptUrl" ]

// Or the full way
Javascript.AddJavascriptToPageClientScript(true); 
// wich adds the ClientScript block to the page. 

<script> (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-5683856818165673", enable_page_level_ads: true }); </script>

About

Get emojis (twemoji from Twitter) embed and parsed in any .net project

Resources

License

MIT, CC-BY-4.0 licenses found

Licenses found

MIT
LICENSE
CC-BY-4.0
LICENSE-GRAPHICS

Stars

Watchers

Forks

Packages

No packages published