erming / shout

Deprecated. See fork @ https://github.com/thelounge
MIT License
3.62k stars 272 forks source link

Add client side emoji. #572

Closed AlMcKinlay closed 8 years ago

AlMcKinlay commented 8 years ago

This replaces all emoji unicode characters with an image of the emoji itself.

Example showing the emoji: screenshot from 2016-01-09 16-57-46

AlMcKinlay commented 8 years ago

So, github seems to be hiding some of the files, because this adds so many files (all the emoji). It's hiding the important ones as well. You seem to be able to view them in the plaintext patch view but not sure how helpful that is.

astorije commented 8 years ago

Holy moly that's a lot of files! I'm sure you can understand I'm a bit defensive on this PR. Here are a few ideas to discuss/think about:

At the moment, I am still opposed to the feature, but if we can make it a plugin (our first plugin?) then I would totally be happy to see this happening!!!

AlMcKinlay commented 8 years ago

Yep, I understand totally about that. It's not an ideal situation, but it's the best I could come up with in the current situation.

Having said all these things, obviously it's not my code base :-P these are just my opinions.

Xe commented 8 years ago

:+1:

dgw commented 8 years ago

I'm for making this a plugin, simply because it's becoming more and more likely that emoji support will be available on a client. AFAIK iOS, Android, and Mac all have solid emoji support. Windows support is described here: http://caniemoji.com/microsoft-windows/ (site also has compatibility matrices for the other OSes discussed)

Obviously including the actual Unicode emoji characters is the most bandwidth-friendly option of all, for both the server administrator and the users.

AlMcKinlay commented 8 years ago

As said before, totally happy to make this a plugin.

With regards to what this would require from a plugin system, it would essentially just need access to all messages (both at the beginning, when we get the list of initial messages) and also any new messages that come in.

Of course, in it's current implementation, it would require to be able to put tags in the messages and have them render correctly, and not be escaped.

As soon as there's something to play around with in a plugin system, I'll get a plugin written :-)

astorije commented 8 years ago

Hey @YaManicKill, very sorry we couldn't make this a reality. Feel free to edit the wiki page about the package system to add what you think is missing. I'll happily work with you on the package system and an emoji package! I really want to make packages a reality, but I don't want to start without some more design achieved :-)

AlMcKinlay commented 8 years ago

Yeah, that's cool. I'm using it in my fork just now, so happy to just add a package when we get them done. I've added more details to the wiki page.

astorije commented 8 years ago

Great, thanks!