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

Improve: properly size unicode 13 and 14 emojis #5915

Merged
merged 6 commits into from
Apr 11, 2022
Merged

Conversation

vadi2
Copy link
Member

@vadi2 vadi2 commented Jan 22, 2022

Brief overview of PR changes/additions

Start on support for unicode 13 and 14 emojis - start because this will just make them be drawn not squished, but we still depend on the right fonts to be available on the system to actually draw them.

Also re-enable widechar width updates now that we have a solution for it, see ridiculousfish/widecharwidth#11.

Motivation for adding to Mudlet

Keep up with the emojis.

Other info

widechar_non_character property was added that needs handling - haven't dove into what it means for us just yet.

Closes #5910.

@add-deployment-links
Copy link

add-deployment-links bot commented Jan 22, 2022

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2022

Messages
✔️

PR type: Improvement

Generated by 🚫 dangerJS against e1e4f09

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/widechar_width.h Show resolved Hide resolved
src/widechar_width.h Show resolved Hide resolved
src/widechar_width.h Show resolved Hide resolved
src/widechar_width.h Show resolved Hide resolved
src/widechar_width.h Show resolved Hide resolved
src/widechar_width.h Show resolved Hide resolved
src/widechar_width.h Show resolved Hide resolved
src/widechar_width.h Show resolved Hide resolved
@faho
Copy link

faho commented Jan 24, 2022

Note: widecharwidth added a new return value widechar_non_character. You probably want to return 0 for those, too.

See ridiculousfish/widecharwidth#10.

@SlySven
Copy link
Member

SlySven commented Jan 24, 2022

Note: widecharwidth added a new return value widechar_non_character. You probably want to return 0 for those, too.

See ridiculousfish/widecharwidth#10.

Well, yeah, I was the one who asked for it...!

@vadi2
Copy link
Member Author

vadi2 commented Jan 24, 2022

Thanks for the reminder @faho! Never hurts to double-check on this.

@mudlet-machine-account mudlet-machine-account added this to the 4.16.0 milestone Apr 9, 2022
@vadi2
Copy link
Member Author

vadi2 commented Apr 9, 2022

Current release, doesn't know how wide the unicode 13 emoji 🤌 should be:

image

This PR, knows how wide it should be:

image

@vadi2 vadi2 marked this pull request as ready for review April 9, 2022 08:48
@vadi2 vadi2 requested review from a team as code owners April 9, 2022 08:48
@vadi2 vadi2 changed the title Improve: start on support for unicode 13 and 14 emojis Improve: properly size unicode 13 and 14 emojis Apr 9, 2022
Co-authored-by: Stephen Lyons <slysven@virginmedia.com>
Copy link
Member

@SlySven SlySven left a comment

Choose a reason for hiding this comment

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

LGTM!

@vadi2 vadi2 merged commit ab2ebdf into development Apr 11, 2022
@vadi2 vadi2 deleted the emoji-updates branch April 11, 2022 07:48
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.

Update to latest widechar_width for Unicode 14
6 participants