How to use Emoji everywhere through the Open Source library of Twitter
Use GitHub to embed them into webpages and other projects.
Emoji, a small symbol from Japan, expresses feelings through images and has conquered the information world of the mobile Internet.
Now, you can use them everywhere in the virtual world. Twitter has recently opened up their emoji symbol library, allowing you to use them on your own websites, applications, and projects.
However, this requires a little physical activity. Unicode has recognized or even standardized the emoji alphabet, but emoji is still not fully compatible with all Web browsers, which means that in most cases, they are displayed as blocks or blank boxes ". When Twitter wanted to make emoji available everywhere, the social network joined a company named Icon Factory to render a browser to mimic text information symbols. Twiter believes that people have a great demand for their emoji library.
Now, you can clone the entire Twitter library from GitHub to use them in your development project. The following describes how to achieve the above purpose and How to Make emoji easier to use.
Unicode support for Emoji
Unicode is an international encoding standard that configures a string of encodings for any symbol, letter, or number that people want to use on the network. In other words, it is a missing link between how you read text on a computer and how the computer reads text. For example, if you see spaces in these sentences (LCTT: space in the middle of the English word segmentation), the computer reads "& nbsp ".
Unicode even has its own original emoji, which can be read in the browser without any effort. For example, when you see a symbol, your computer is decoding the string "2665 ".
To use the Twitter emoji library in most cases, you only need to add the following script to the
<Scriptsrc = "// twemoji.maxcdn.com/twemoji.min.js"> </script>
This allows your project to access a JavaScript library containing hundreds of Emoji symbols that can be used on Twitter. However, creating a document that only contains this script does not present emoji characters on your website. In fact, you still need to embed these emoji symbols!
In the <body> block, paste some emoji strings that can be found in the source code of the preview.html file on Twitter. I used
Reference: how-to-use-emoji-in-the-browser-window
This article permanently updates the link address: