How to use Emoji everywhere through the Open Source library of Twitter

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.