I just published unidecode package to hex:
Unidecode was initially a perl module to transliterate unicode characters to ascii, then it became a widespread library throughout several languages(python, java, ruby, c#, rust). Everyone that already integrated with old systems know that it’s necessary pain.
I published a implementation with a simple approach, that only includes latin code charts. My idea is to gradually add all charts. Right know I’m on documenting/testing step. Basically its a very small application(needs to be added to
extra_applications) that expose a simple api,
Unidecode.decode/1, both do the same thing, receives a string and transliterate the chars that it knows. Why 2 functions that do the same? Perl and Python implementations exposes only
unidecode/1 that supposedly is imported everywhere you need it(since rarely you will have a conflit with a function called unidecode). I added
decode/1 just in case you dont want to import the function and want to call it refering to the module.
I want to ask that anyone that needs something like that, please take a look at the library, send suggestions on changes to improve it, I published on
0.0.1 and very raw material like that, to see what fits better the community need.