Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Czech uppercase "Ý" is replaced by "U" instead of "Y" #107

Open
panstromek opened this issue Jul 1, 2019 · 1 comment
Open

[BUG] Czech uppercase "Ý" is replaced by "U" instead of "Y" #107

panstromek opened this issue Jul 1, 2019 · 1 comment

Comments

@panstromek
Copy link

This code

console.log(transliterate('ýÝ'))

prints yU instead of yY

I tried to look at the code where to fix this but I couldn't figure it out, so here is at least bug report 😄 Thx for the great package.

@dzcpy
Copy link
Owner

dzcpy commented Dec 20, 2019

Thanks for raising the issue. I think the problem is that these characters are in a Cyrillic alphabet which shared with different langueages (I'm not excactly sure). One solution is that you can set a custom character map for these individual characters like this:

transliterate.setData({
  'Ý': 'Y'
});
transliterate('ýÝ')

In the next major version I may consider to find a better way to handle it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants