Skip to content

juneyoung/emojihandler.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmojiHandler

by Juneyoung Oh
Writen in 12.NOV.15
KOR

DEMO VIDEO

Currently this project only supports OSX.
Please, wait for other operating systems.
It supports OSX as well as Windows.
I did not test on Linux, Unix and 32 bits system :-)

How to Use

Basic

	EMOJIHANDLER.addInputById('textinp');
	EMOJIHANDLER.start();

Advanced : refering dictionary file.

Caution : adding file system can not refer 'file:///', since javascript security policy.
(As you know native js can not access to local file system)

Requirements :
  • Dictionary file
  • A line of code A dictionary file looks like follow
:-),\ud83d\ude03
^^,\ud83d\ude03
^_^,\ud83d\ude03
:),\ud83d\ude03
:D,\ud83d\ude03

It has a ',' as a separator between key(what users are going to type) and value(unicode emoji surrogates).
I made a sample for you "Sample.dictionary".
And you put a line of code right before EMOJIHANDLER.start();. The line is below.

EMOJIHANDLER.addFileUrl('../data/sample.dictionary');

EASY!

References

Unicode byte codes and surrogates from unicode.org

History

  • 12.NOV.15 - Very first distribution by Juneyoung Oh
  • 14.NOV.15 - Patch replace logic and file refering system, Sample.dictionary by Juneyoung Oh

About

use emoji by character

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors