简体   繁体   English

如何在emojione库中对表情符号进行分类?

[英]How can I categorize emojis in emojione library?

I am trying to display all emojis available in emojione library without doing it by hand like: 我试图在emojione库中显示所有可用的emojis,而不用手工完成:

<img class="emojione" src="//cdnjs.cloudflare.com/ajax/libs/emojione/1.5.0/assets/png/1F601.png">

I have looked at the emojione.js and I see that there is a emojioneList there which contains an array of all available emojis with their codes. 我看了emojione.js,我看到有一个emojioneList,其中包含一个包含所有可用emojis及其代码的数组。 However there is no info on category. 但是没有关于类别的信息。

On the other hand when I look at the emojione website you can clearly see that they managed to categorize them: 另一方面,当我查看emojione网站时,您可以清楚地看到他们设法对它们进行分类:

http://emoji.codes/family http://emoji.codes/family

I seriously doubt that they did this by hand or that they have a database for this. 我非常怀疑他们是手工制作的,还是他们有一个数据库。 So what am I missing? 那我错过了什么?

emojione包还包含一个json文件'emojiione.json',它将每个表情符号作为一个对象及其所有相关信息(包括类别)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM