magefree / magefree/mage

Add emoji support in chats

Open
#5,387 0 comments 0 reactions 1 assignee Claimed by @JayDi85 View on GitHub
enhancement GUI
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

There are two methods possible:
* By emoji's font like [notocolor emoji font](https://github.com/DeeDeeG/noto-color-emoji-font) (system font + additional font). It's OS dependency (Windows, OS will replace by system font, linux can use it -- e.g. Windows 7 with black and white icons instead colors);
* By custom png icons generated from svg and inserted to html (like current xmage's mana icons). Compatible and looks same on any systems.

All emoji codes is unicode and can be stored/received by string. There are [emoji lib](https://github.com/vdurmont/emoji-java) to parse string and convert special aliases to unicode. Like `:grinning:` to code (useful to parse texts before send).

Basic TODO:
* [ ] add emoji font for chat panels (game, global) -- for display unicode emojis (font from resources);
* [ ] convert emoji aliases to unicode before send;
* [ ] convert unicode to html links before show (missing icons must be shown as unicode char);
* [ ] add emoji downloader to symbols (unpack zip from resources and generate png icons, 2300+ files);
* [ ] check emoji works in different OS (with symbols, without symbols):
* [ ] Windows 7, Windows 10;
* [ ] Any Linux;
* [ ] OSX.

Extra TODO:
* [ ] add emoji support for game names in tables list;
* [ ] add emoji picker (popup window for search and select from emojis list);
* [ ] add copy-paste support for chat (copy text from chat with emoji's unicode chars);
* [ ] fix bad html images quality (need anti-aliases images drawing in `TextPane` controls):
* java (bad): ![shot_181015_004817](https://user-images.githubusercontent.com/8344157/46922590-6d869b80-d01c-11e8-9cd5-503876e8146b.png)
* IE (bad): ![shot_181015_004738](https://user-images.githubusercontent.com/8344157/46922591-6d869b80-d01c-11e8-96fe-9bd11c86b471.png)
* Firefox (good): ![shot_181015_004700](https://user-images.githubusercontent.com/8344157/46922592-6d869b80-d01c-11e8-8c23-7d40e641a8f2.png)

P.S. old related tasks: #4688

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.