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

fix: unicode ve codepoints #191

Closed
wants to merge 9 commits into from
Closed

Conversation

XavierChanth
Copy link
Member

- What I did

  • appended the variant selector the hammer and wrench unicode codepoint for all of the ve atsigns.

- How I did it

- How to verify it

@cpswan can I get some help with a test build for this?

- Description for the changelog
fix: unicode ve codepoints

Copy link
Member Author

Choose a reason for hiding this comment

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

left this script in so that you can see how I migrated the assets directory

Copy link
Member Author

Choose a reason for hiding this comment

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

This was a :%s/<old emoji>/<new emoji>/g in vim

Comment on lines +6 to +12
- The reason for making this change is that shells (e.g. bash, zsh) and emoji
normalization techniques expect the variant selector to be there. Specifically
with the :hammer_and_wrench: emoji. Most shells recognize the U+1F6E0
character as a double wide character which takes up a single column. The
U+FE0F is a zero-width character which also takes up a single column. Thus
correcting the number of columns to match the width of the characters. Without
this normalization, it becomes difficult to use the characters over the shell.
Copy link
Member Author

Choose a reason for hiding this comment

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

@cpswan here is the explainer of why I did this change. I appended U+FE0F (variant selector) to every U+1F6E0 (hammer and wrench emoji) where it was missing, thus normalizing the emojis. This variant selector is automatically added by emoji pickers on most (if not all) major platforms, hence why we have had to copy paste in the past.

@XavierChanth XavierChanth marked this pull request as ready for review July 22, 2024 14:22
@XavierChanth
Copy link
Member Author

Will make a separate issue

@XavierChanth
Copy link
Member Author

I tried a build of this: https://hub.docker.com/layers/atsigncompany/virtualenv/normemojitest/images/sha256-17fe36814f9a26d81539ffbc9e7b42b0272865669dcfeed27fe0dedc665b5f94?context=explore

Wasn't able to get it running nicely... the emojis in the supervisor dashboard are still in the old format. It would be nice if this just worked, but I will not spend anymore time on 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

Successfully merging this pull request may close these issues.

2 participants