Coder Social home page Coder Social logo

Comments (8)

jgm avatar jgm commented on July 21, 2024

Is the information somewhere in emoji.json in the repository?
That is taken directly from gemoji source, but I don't see these things there.

from emojis.

Xitian9 avatar Xitian9 commented on July 21, 2024

It doesn't seem to be in the emoji.json in this repository, but it is in the emoji.json in the gemoji repository: https://github.com/github/gemoji/blob/master/db/emoji.json. See that some of them have the field "skin_tones": true.

Edit: It seems that the Makefile will throw out all fields from gemoji's emoji.json except for emoji and alias, which is why it's not showing up in this repository.

from emojis.

Xitian9 avatar Xitian9 commented on July 21, 2024

It's a bit unclear how to get a list of all emoji from gemoji's library, as a simple boolean flag stating that it ‘accepts skin tones’ doesn't actually tell you in what position it accepts skin tones or how many. As far as I know, only the unicode spec is definitive.

https://unicode.org/Public/emoji/14.0/emoji-sequences.txt
https://unicode.org/Public/emoji/14.0/emoji-zwj-sequences.txt

from emojis.

jgm avatar jgm commented on July 21, 2024

The main use I make of this library is to support pandoc's handling of GitHub emoji aliases, so if there aren't aliases for the skin tone variants, it may be out of scope.

from emojis.

Xitian9 avatar Xitian9 commented on July 21, 2024

The reason I'm interested is that we're looking for a library code to properly calculate the widths of text in monospace font, including wide characters, combining characters, and emoji. If it's out of scope for this library, perhaps that functionality can be broken out into a separate library.

from emojis.

jgm avatar jgm commented on July 21, 2024

I'm open to extending the functionality of this library. That seems better than yet another emoji library.

from emojis.

jgm avatar jgm commented on July 21, 2024

Perhaps we could generate data from the unicode emoji tables, and use gemoji's emoji.json just for the GitHub aliases.

from emojis.

Xitian9 avatar Xitian9 commented on July 21, 2024

That sounds like a good idea.

from emojis.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.