Created
May 3, 2015 11:06
-
-
Save JavaScript-Packer/c4851c654a4d77c27358 to your computer and use it in GitHub Desktop.
Seperate combining characters, break out to individual characters. Demo on http://jsfiddle.net/j91k1x46/
This file contains hidden or 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
//uncombine combined combiners | |
function Δ(n, t, r, o) { | |
for (o = [], t = 0, r = n.length; r > t; ++t) { | |
o.push(n.charAt(t)); | |
} | |
return o.join(" "); | |
} | |
alert(Δ("S̨̥̫͎̭ͯ̿̔̀ͅ")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For those annoying times you find something like
กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ กิิิิิิิิิิิิิิิิิิิิ