Skip to content

Instantly share code, notes, and snippets.

@JavaScript-Packer
Created May 3, 2015 11:06
Show Gist options
  • Select an option

  • Save JavaScript-Packer/c4851c654a4d77c27358 to your computer and use it in GitHub Desktop.

Select an option

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/
//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̨̥̫͎̭ͯ̿̔̀ͅ"));
@JavaScript-Packer

Copy link
Copy Markdown
Author

For those annoying times you find something like

กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ กิิิิิิิิิิิิิิิิิิิิ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment