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

Adding functions to compute the visual width of east asian characters #8

Merged
merged 6 commits into from
Jun 25, 2024

Conversation

DilsonHiga
Copy link
Contributor

Implement function to compute the East Asian Width Property of codepoints as decribed in issue 6.

I am new not only to roc but to functional programming in general, so I expect this code to be unidiomatic. I am open to criticism and to fix any issues.

The results of the function have been tested against other open source libraries.

Copy link
Collaborator

@lukewilliamboswell lukewilliamboswell 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 looking good 😍 Thank you very much for tackling this.

Next I think we should add the EAW module to the package, and an example which uses the EAW, which a test script for CI.

Also, can you please sign your commits?

@DilsonHiga
Copy link
Contributor Author

Thank you for your review!

I added a commit in which I incorporated the functions for getting the EAW property and the width of code points into the CodePoint module, but I'm not sure if that is the way to do it.

I have also added some tests to both the generated module and it's generator.

@lukewilliamboswell lukewilliamboswell merged commit 2e390ff into roc-lang:main Jun 25, 2024
1 check passed
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