mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-25 11:22:20 +00:00
Added README.md to emoji module
This commit is contained in:
parent
c792651b65
commit
8307006336
1 changed files with 21 additions and 0 deletions
21
tools/make-emoji-keys/README.md
Normal file
21
tools/make-emoji-keys/README.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Emoji tools
|
||||
|
||||
This module takes care of generating emoji data bundled with Openboard.
|
||||
Basically data is generated in three steps:
|
||||
1. Unicode emoji table provides code points and grouping plus ordering.
|
||||
2. Local file lists every new emojis supported for every android version since 4.4.
|
||||
3. Emoji sequences are merged with their base version and formatted into android resource file.
|
||||
|
||||
### Generate emoji-categories.xml
|
||||
|
||||
A gradle task called 'makeEmoji' builds and runs this tool to generate android resouce file which. Path to openboard's res directory is automatically set so the file is ready to be bundled at build.
|
||||
|
||||
### Update to latest emoji version
|
||||
|
||||
* Get new emoji data from Unicode official repository located here: https://unicode.org/Public/emoji.
|
||||
* Create a new directory in (/src/main/resources/emoji/ucd)[/src/main/resources/emoji/ucd] and name it as a decimal number corresponding to Unicode's version.
|
||||
* Update (android-emoji-support.txt)[/src/main/resources/emoji/android-emoji-support.txt] with new emojis supported in latest Android versions.
|
||||
* Run :
|
||||
```sh
|
||||
./gradlew tools:make-emoji-keys:makeEmoji
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue