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

Add is_valid_letter() to TextServer #81639

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

MJacred
Copy link
Contributor

@MJacred MJacred commented Sep 14, 2023

@MJacred MJacred marked this pull request as ready for review September 14, 2023 15:44
@MJacred MJacred requested review from a team as code owners September 14, 2023 15:44
@MJacred MJacred requested a review from a team as a code owner September 14, 2023 17:08
@Calinou Calinou added this to the 4.x milestone Sep 14, 2023
@MJacred MJacred force-pushed the is_letter branch 2 times, most recently from d903546 to 6eb4d86 Compare February 27, 2024 20:46
@MJacred MJacred marked this pull request as draft February 27, 2024 21:25
@MJacred
Copy link
Contributor Author

MJacred commented Feb 27, 2024

The code works, but the list of ranges is not complete. I used https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt, but it's only a subset. https://unicode.org/Public/UNIDATA/DerivedCoreProperties.txt seems to be the correct file for this…

@MJacred MJacred force-pushed the is_letter branch 2 times, most recently from 65101e8 to e293f71 Compare February 28, 2024 11:04
@MJacred MJacred marked this pull request as ready for review February 28, 2024 11:05
@MJacred MJacred requested a review from a team as a code owner February 28, 2024 11:05
@MJacred
Copy link
Contributor Author

MJacred commented Feb 28, 2024

I'm auto-creating these ranges using a little program I wrote. What it currently doesn't do: further range merging, if the unicode values inbetween are unprintable/undefined, e.g. 0x1ee8a.

@MJacred MJacred changed the title Implement is_valid_letter() Add is_valid_letter() to TextServer Feb 28, 2024
@adamscott adamscott self-requested a review March 9, 2024 17:57
@adamscott adamscott changed the title Add is_valid_letter() to TextServer Add is_valid_letter() to TextServer Mar 9, 2024
@MJacred
Copy link
Contributor Author

MJacred commented Apr 2, 2024

@adamscott: ping! you wanted to review this PR?

@MJacred
Copy link
Contributor Author

MJacred commented Apr 19, 2024

@adamscott: reminder of this PR

Copy link
Member

@dalexeev dalexeev left a comment

Choose a reason for hiding this comment

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

Overall looks good to me, but I'm not a Unicode expert. @bruvzg Could you please double check?

@akien-mga akien-mga modified the milestones: 4.x, 4.3 May 2, 2024
@MJacred MJacred force-pushed the is_letter branch 2 times, most recently from c91e55f to 6edee45 Compare May 2, 2024 17:45
@MJacred MJacred force-pushed the is_letter branch 2 times, most recently from ab54e3d to 0ea6ac2 Compare May 2, 2024 18:39
@akien-mga akien-mga merged commit 25fe3d4 into godotengine:master May 2, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@MJacred MJacred deleted the is_letter branch March 12, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add TextServer.is_valid_letter(unicode:int)
6 participants