This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(ns){ | |
ns.MAX_EMOJI_LENGTH = 7; | |
ns.IMAGE_PREFIX = '<img src="images/'; | |
ns.IMAGE_POSTFIX = '.svgz" class="emoji">'; | |
ns.emojiMapping = {s:{"0034":{e:1,s:{"20e3":null}},"2b1b":null,"0039":{e:1,s:{"20e3":null}},"00ae":null,"0037":{e:1,s:{"20e3":null}},"0038":{e:1,s:{"20e3":null}},"0031":{e:1,s:{"20e3":null}},"0036":{e:1,s:{"20e3":null}},"0030":{e:1,s:{"20e3":null}},"3030":null,"303d":null,"002a":{e:1,s:{"20e3":null}},"3297":null,"0035":{e:1,s:{"20e3":null}},"2b55":null,"2b07":null,"0032":{e:1,s:{"20e3":null}},"2b06":null,"2b50":null,"2b05":null,"0033":{e:1,s:{"20e3":null}},"2935":null,"2b1c":null,"00a9":null,"26ab":null,"203c":null,"2692":null,"3299":null,"2122":null,"267f":null,"2049":null,"2194":null,"2139":null,"2196":null,"2195":null,"2198":null,"2197":null,"21a9":null,"2199":null,"231a":null,"21aa":null,"231b":null,"2753":null,"274e":null,"2755":null,"2754":null,"2763":null,"2757":null,"2795":null,"2744":null,"2797":null,"2796":null,"27a1":null,"27b0":null,"27bf":null,"274c":null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This php script generates a simplified javascript library that translates unicode emojis to their emojione graphics. | |
* It uses a space-efficient tree structure. For emojione 4.0 the library has ~38kb / ~5kb gzip compressed. | |
* | |
* | |
* USAGE: | |
* - create a subdirectory containing all emojione images in code point name scheme | |
* - change config in this file (image folder path, file extension, etc.) | |
* - php generate.php > emojione_light.js |