Replace emoji with opensource versions#64
Conversation
|
Twitter has also open sourced their version of emoji. today. I think it is a good move to move to open source versions, or to at least give a choice (like Slack does, see this screenshot). Coincidentally also found Emoji One through that setting just now. |
|
It also appears Discourse, Jeff Atwood's forum system, is using either the On Fri, Nov 7, 2014, 2:42 AM Dennis Paagman notifications@github.com
|
|
It's great that there are so many alternatives to Apple's emoji today that can be freely used. Personally I only like Emoji One out of available ones, but other people might like different sets. This is why I think that the direction which we should be going with this library is removing all the images from it, and just shipping scripts (e.g. rake tasks) that help you install the emoji assets. The scripts can handle downloading, extracting, and consistently naming the assets, and allow you to pick from one of the open sets or even Apple emoji if you want to take the legal risk. |
|
I think that's probably the best approach. I'd be happy to help with On Fri, Dec 12, 2014, 12:25 AM Mislav Marohnić notifications@github.com
|
|
I'm also up to help. I was thinking about the best way to implement the downloading of the emoji sets. We can use git to clone the relevant repo, copy the images and remove the clone. But this has quite some overhead (for example, twemoji has all the An alternative may be to set up separate repos that have the assets clearly cut and ready, so for example What do you think? |
|
Splitting the gem up into component gems is certainly simpler. Alternatively we can use submodules, but thats fairly complex and brittle On Mon, Dec 15, 2014, 5:18 AM Dennis Paagman notifications@github.com
|
|
On Mon, Dec 15, 2014 at 5:18 AM, Dennis Paagman notifications@github.com
How about setting up our own tarballs that have the assets clearly cut, ran |
|
Doesn’t even have to be tarballs. A bunch of github repos full of SVGs isn’t all that big. Hell, even going up to 4x png isn’t that big |
|
On Mon, Dec 15, 2014 at 3:06 PM, Jeff Sandberg notifications@github.com
Sure, except that it makes no sense for something to be a git repo if it's |
|
Well, the icon packages may be updated with revisions and future icons, as has happened with Google Noto recently (they change some icons to be race agnostic, changed the “hairy heart” to be a colored heart, and added a few missing emoji, such as flags). But even then, might just make sense to distribute binary blobs of the changes, as you said |
|
On Mon, Dec 15, 2014 at 3:26 PM, Jeff Sandberg notifications@github.com
whew so glad that they did that! :) |
|
Same here. Wonder why it was ever a hairy heart to begin with. |
|
Perhaps |
|
Something else I just thought of. There is an eventual plan for the unicode emoji space to support combining characters, as a means of displaying different skin tones. So, where 👦 is white/yellow in most sets now, it would eventually be 2 characters, the emoji, and a modifier for race. That might be something interesting to have to support, although I suspect its several years down the road. Probably a case of premature optimization |
|
Whoops. That "several years down the road" turned into months, I guess... |
|
Just to let everyone know that I have plans to change this library sometime in May (when I return from vacation) to allow picking between different emoji sets. Support for Fitzpatrick modifiers for skin color may also be coming as a 2nd step. Note that none of the opensource sets currently support skin color modifiers. The goal is that gemoji stops shipping with PNG images, and to offer scripts to download/extract an image set in a size and to a directory of your choice. |
|
Since we won't accept this PR, because it adds images, this feature is now tracked as #72. Thanks for the discussion! |

As outlined in #61, the images from AppleColorEmoji are ©️ by Apple, and as such, their distribution is a violation of copyright law.
There is, however, a complete opensource emoji font, that actually includes 27 more emoji than the Apple emoji, within the unicode ranges of
1f1e6...20e3.That font is Noto, which is developed by Google. It is also used in several of Google's products, such as Google+, Gmail, Hangouts, and Android. Yes, its the android Emoji font set.
Interestingly enough, the color emoji from Noto are available as both PNG and as SVG, as can be seen here. The SVG option is of particular interest, because it may allow for the replacement of images with inline SVG or at least SVG symbols.
Noto is licensed under Apache, which is compatible with the MIT license Gemoji uses.
For this PR, I just converted all the SVGs from Noto to PNGs at the appropriate size, renamed them, and overwrote the existing icons. I then deleted the surplus icons, wich have no equivalent in Apple color emoji.
Unfortunately, by doing it this way, I managed to break almost all the tests 😞. This means that this PR probably shouldn't be merged.
If there is interest in fixing gemoji to be fully opensource, a good solution would probably be:
Switching, wholesale, to SVG, is a little more complicated, but is also an option.
Thoughts?