mathiasbynens / esrever

A Unicode-aware string reverser written in JavaScript.
https://git.io/esrever
MIT License
890 stars 31 forks source link

Myanmar vowel signs #7

Open mapmeld opened 8 years ago

mapmeld commented 8 years ago

hi, I'm trying to look through this for a way to detect diacritics and modifiers in Myanmar. I could write a regex for my own use, but I'd like to be consistent with other languages (similar to how this library uses node-unicode-data to list all combining marks)

For example the Myanmar string နေပြည်တော် currently looks like ်ာေတ်ညြပေန when reversed, with lots of misplaced and orphaned diacritics, but it should be တော်ည်ပြနေ

In the Unicode spec these are called "vowel signs" and not "combining characters". Should these be included in esrever?