rodrigopolo / minEmoji

minEmoji - A little library to replace Unicode emojis into a CSS span images.
MIT License
183 stars 20 forks source link

Determining codepoints from extracted apple emoji #1

Closed mroth closed 10 years ago

mroth commented 10 years ago

This isn't actually an issue but it seemed like the easiest way to ask a question about the code.

Re this: https://github.com/rodrigopolo/minEmoji/blob/master/sprite_gen/apple_gen/sprite_gen.js#L1 How are you determining the proper order of those files? I'd previously looked at making emojistatic not dependent on gemoji by utilizing emoji-extractor instead (as you've done here), but I got stuck on the fact that it created files with sequential-ish filenames whereas I needed to map them to unicode codepoint IDs.

rodrigopolo commented 10 years ago

Tale a look on to the Twitter sprite generator: https://github.com/rodrigopolo/minEmoji/blob/master/sprite_gen/twitter_gen/sprite_gen.js