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

Safely transliterate international characters for aliases #181

Merged
merged 1 commit into from
Jul 31, 2020
Merged

Safely transliterate international characters for aliases #181

merged 1 commit into from
Jul 31, 2020

Conversation

PurpleBooth
Copy link
Contributor

@PurpleBooth PurpleBooth commented Jul 30, 2020

Currently when we encounter an international character (from the perspective of someone in the USA, or UK), we replace it with an underscore (_)

This isn't ideal because it means words like piñata become pi_ata. There's a good way to transliterate these characters into their ASCII character range representation using the i18n library.

This will take the excellent detective work done by @stone-zeng and use that to create a fix.

Relates to: #180

@PurpleBooth
Copy link
Contributor Author

PurpleBooth commented Jul 30, 2020

This is failing because of lack of support of end of life ruby versions before 2.3 from the i18n library (2.2. was EOL more than 2 years ago now, so not an unreasonable policy).

I can probably fix this, but it'll be a less than ideal solution. Give me a shout if you'd like to continue maintaining support for the older versions, and I'll see what I can do.

Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is failing because of lack of support of end of life ruby versions before 2.3 from the i18n library (2.2. was EOL more than 2 years ago now, so not an unreasonable policy).

I think it's reasonable to not support ruby versions < 2.3 given that they are all EOL. Interested in hearing what @mislav thinks.

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thank you for fixing this 🙇

@mislav mislav merged commit 2eb30ab into github:master Jul 31, 2020
@PurpleBooth PurpleBooth deleted the piñata-to-pinata branch July 31, 2020 15:27
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

Successfully merging this pull request may close these issues.

3 participants