๐Ÿ”” Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Unicoder.js is a small javascript library, which converts letters of a given text to some of the more artistic unicode alphabets.Unicoder.js is a stand alone, vanilla javascript library, so usage is pretty straight forward. Its a matter of creating a new instance of Unicoder, and calling translate.

Core Java Script Text Effect

Documentation

Unicoder.js

Unicoder.js is a small javascript library, which converts letters of a given text to some of the more artistic unicode alphabets โ“›โ“˜โ“šโ“” โ“ฃโ“—โ“˜โ“ข, ๐Ÿ…ฐ๐Ÿ…ฝ๐Ÿ…ณ ๐Ÿ†ƒ๐Ÿ…ท๐Ÿ…ธ๐Ÿ†‚. You can try it out live, here.

Instructions

Unicoder.js is a stand alone, vanilla javascript library, so usage is pretty straight forward. Its a matter of creating a new instance of Unicoder, and calling translate.

JS

Unicoder.js is built with a single purpose in mind, so there aren't really a whole lot of different things that can be need to be done with it. It translates the text, that is all.

The most basic example, would be below, translating some text, using a dictionary. (examples above) The dictionary defines the type of unicode characters to be returned.

// Unicoder.js file referenced somewhere above... var unicoder = new Unicoder();  console.log( unicoder.translate('Hello, how are you.', 'fraktur') ); // returns: ๐•ณ๐–Š๐–‘๐–‘๐–”, ๐–๐–”๐–œ ๐–†๐–—๐–Š ๐–ž๐–”๐–š.

In the first example, the dictionary is hard coded. Unicoder.js also provides a function to get the list of current dictionaries available.

// Unicoder.js file referenced somewhere above... var unicoder = new Unicoder();  console.log( unicoder.getDictionaryKeys() ); // returns: ["circled", "negative-circled", "squared", "negative-squared", "script", "fraktur", "parenthesized", "monospace"]

Demo & Examples

You can play around with a small demo here... but just for fun, here are some live samples of the results.

Dictionary Output
Circled โ“‰โ“—โ“”โ“ขโ“” โ“โ“กโ“” โ““โ“˜โ“•โ“•โ“”โ“กโ“”โ“โ“ฃ โ“”โ“งโ“โ“œโ“Ÿโ“›โ“”โ“ข โ“žโ“• โ“คโ“โ“˜โ“’โ“žโ““โ“”โ“ก.โ“™โ“ข โ“žโ“คโ“ฃโ“Ÿโ“คโ“ฃโ“ข.
Negative-Circled ๐Ÿ…ฃ๐Ÿ…—๐Ÿ…”๐Ÿ…ข๐Ÿ…” ๐Ÿ…๐Ÿ…ก๐Ÿ…” ๐Ÿ…“๐Ÿ…˜๐Ÿ…•๐Ÿ…•๐Ÿ…”๐Ÿ…ก๐Ÿ…”๐Ÿ…๐Ÿ…ฃ ๐Ÿ…”๐Ÿ…ง๐Ÿ…๐Ÿ…œ๐Ÿ…Ÿ๐Ÿ…›๐Ÿ…”๐Ÿ…ข ๐Ÿ…ž๐Ÿ…• ๐Ÿ…ค๐Ÿ…๐Ÿ…˜๐Ÿ…’๐Ÿ…ž๐Ÿ…“๐Ÿ…”๐Ÿ…ก.๐Ÿ…™๐Ÿ…ข ๐Ÿ…ž๐Ÿ…ค๐Ÿ…ฃ๐Ÿ…Ÿ๐Ÿ…ค๐Ÿ…ฃ๐Ÿ…ข.
Squared ๐Ÿ…ƒ๐Ÿ„ท๐Ÿ„ด๐Ÿ…‚๐Ÿ„ด ๐Ÿ„ฐ๐Ÿ…๐Ÿ„ด ๐Ÿ„ณ๐Ÿ„ธ๐Ÿ„ต๐Ÿ„ต๐Ÿ„ด๐Ÿ…๐Ÿ„ด๐Ÿ„ฝ๐Ÿ…ƒ ๐Ÿ„ด๐Ÿ…‡๐Ÿ„ฐ๐Ÿ„ผ๐Ÿ„ฟ๐Ÿ„ป๐Ÿ„ด๐Ÿ…‚ ๐Ÿ„พ๐Ÿ„ต ๐Ÿ…„๐Ÿ„ฝ๐Ÿ„ธ๐Ÿ„ฒ๐Ÿ„พ๐Ÿ„ณ๐Ÿ„ด๐Ÿ….๐Ÿ„น๐Ÿ…‚
Negative-Squared ๐Ÿ†ƒ๐Ÿ…ท๐Ÿ…ด๐Ÿ†‚๐Ÿ…ด ๐Ÿ…ฐ๐Ÿ†๐Ÿ…ด ๐Ÿ…ณ๐Ÿ…ธ๐Ÿ…ต๐Ÿ…ต๐Ÿ…ด๐Ÿ†๐Ÿ…ด๐Ÿ…ฝ๐Ÿ†ƒ ๐Ÿ…ด๐Ÿ†‡๐Ÿ…ฐ๐Ÿ…ผ๐Ÿ…ฟ๐Ÿ…ป๐Ÿ…ด๐Ÿ†‚ ๐Ÿ…พ๐Ÿ…ต ๐Ÿ†„๐Ÿ…ฝ๐Ÿ…ธ๐Ÿ…ฒ๐Ÿ…พ๐Ÿ…ณ๐Ÿ…ด๐Ÿ†.๐Ÿ…น๐Ÿ†‚
Script ๐“ฃ๐“ฑ๐“ฎ๐“ผ๐“ฎ ๐“ช๐“ป๐“ฎ ๐“ญ๐“ฒ๐“ฏ๐“ฏ๐“ฎ๐“ป๐“ฎ๐“ท๐“ฝ ๐“ฎ๐”๐“ช๐“ถ๐“น๐“ต๐“ฎ๐“ผ ๐“ธ๐“ฏ ๐“พ๐“ท๐“ฒ๐“ฌ๐“ธ๐“ญ๐“ฎ๐“ป.๐“ณ๐“ผ ๐“ธ๐“พ๐“ฝ๐“น๐“พ๐“ฝ๐“ผ.
Fraktur ๐•ฟ๐–๐–Š๐–˜๐–Š ๐–†๐–—๐–Š ๐–‰๐–Ž๐–‹๐–‹๐–Š๐–—๐–Š๐–“๐–™ ๐–Š๐–๐–†๐–’๐–•๐–‘๐–Š๐–˜ ๐–”๐–‹ ๐–š๐–“๐–Ž๐–ˆ๐–”๐–‰๐–Š๐–—.๐–๐–˜ ๐–”๐–š๐–™๐–•๐–š๐–™๐–˜.
Parenthesized โ’ฏโ’ฃโ’ โ’ฎโ’  โ’œโ’ญโ’  โ’Ÿโ’คโ’กโ’กโ’ โ’ญโ’ โ’ฉโ’ฏ โ’ โ’ณโ’œโ’จโ’ซโ’งโ’ โ’ฎ โ’ชโ’ก โ’ฐโ’ฉโ’คโ’žโ’ชโ’Ÿโ’ โ’ญ.โ’ฅโ’ฎ โ’ชโ’ฐโ’ฏโ’ซโ’ฐโ’ฏโ’ฎ.
Monospace ๐šƒ๐š‘๐šŽ๐šœ๐šŽ ๐šŠ๐š›๐šŽ ๐š๐š’๐š๐š๐šŽ๐š›๐šŽ๐š—๐š ๐šŽ๐šก๐šŠ๐š–๐š™๐š•๐šŽ๐šœ ๐š˜๐š ๐šž๐š—๐š’๐šŒ๐š˜๐š๐šŽ๐š›.๐š“๐šœ ๐š˜๐šž๐š๐š™๐šž๐š๐šœ.

In the wild

The fun part about this, is that almost all platforms accept unicode text, so next time you can add a little more spice to your social with the demo, or work it into your site for some insane reason!

Twitter works. Unicode on twitter

Tumblr too... Unicode on tumblr

Most of everything does.

License & Acknowledgements

The main goal here was to make an open source, js version of this unicode toy, its awesome. Also this little tool and this dictionary where super useful in helping to understand the unicode system & structure.

The MIT License (MIT)

Copyright (C) 2015 ~ Tim Holman ~ [email protected]


You May Also Like