Create .replaceDiacritic(str) function
A function that replaces special characters with their "closest-looking" characters would be great. Here are some working examples about how to do it: http://stackoverflow.com/questions/863800/replacing-diacritics-in-javascript
The problem with solutions mentioned in this Stack Overflow thread is that all of them are incomplete. The whole replace map is too huge to put into library directly and i honesty have no idea how to generate one.
And i see no point adding half-working code.
Check out diacritics branch of this repo. This is the initial attempt to implement such method. It fails even on the simplest tests.
Ah, I see. Anyways, you don't need a full map. Just the most common ones. A map of 300-500 chars should be more than enough for the vast majority of languages on earth.
Also, that won't be a 'half-working' code. Think about it more like a fully-working code in most cases.
Anyways, I'd like to help implement that if you have another idea about how could it be done.
After thinking about this one for a while I ended up creating a plugin for the project that I needed this functionality into ( https://github.com/addyosmani/backbone.paginator ) Maybe you could do the same. This way you can add as many chars in the map as you wish without worrying for the size, as that'd be an optional plugin. Just use some kind of _.extend in the plugin to add the method to the library itself.
Regards!