Skip to content

Conversation

roozbehp
Copy link
Contributor

@roozbehp roozbehp commented Sep 12, 2025

Also fix a typo in the name of the method

This fixes problems described in the following issue.
Rephrased from simple "This fixes (issue)" to prevent GitHub from auto-closing the issue.

Also fix a typo in the name of the method

This fixes unicode-org/properties#459
@roozbehp
Copy link
Contributor Author

This is ready for review so please take a look.

(I didn't git restore the various text files, because their header needs to be updated for Unicode 18 at some time anyways, and it could as well be now. Please tell me if you want those reverted.)

@macchiati
Copy link
Member

I'll look at it next week. (I'd replied to a github email, but that seems to have bounced.)

@markusicu
Copy link
Member

@macchiati: We verified that some of the output changes are correct/desirable, such as the change from caron to breve for U+01C6. Mark please review.

@roozbehp
Copy link
Contributor Author

Ping @macchiati

@markusicu
Copy link
Member

@roozbehp FYI -- I rephrased the PR description from simple "This fixes (issue)" to prevent GitHub from auto-closing the issue.

Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

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

I can kind-of-rubber-stamp but have an optional code improvement.

@roozbehp
Copy link
Contributor Author

roozbehp commented Oct 7, 2025

PTAL.

@roozbehp roozbehp requested a review from markusicu October 7, 2025 02:23
@roozbehp
Copy link
Contributor Author

roozbehp commented Oct 8, 2025

@eggrobin Why does GitHub think I'm changing the repertoire?!

Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

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

I think you can ignore the CI check failures here.

Comment on lines 2641 to 2646
private static Normalizer INSTANCE;
static String normalize(String cf) {
if (INSTANCE == null) {
INSTANCE = new Normalizer(UCD_Types.NFKD, Default.ucdVersion());
INSTANCE.setSpacingSubstitute();
}
Copy link
Member

Choose a reason for hiding this comment

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

It should work to have the constructor unconditionally create the instance...
I probably misled you with suggesting normalize() as a static method.
Anyway, nicer than before, and we can revisit later.

@roozbehp roozbehp merged commit 1732c6e into main Oct 8, 2025
21 of 24 checks passed
@roozbehp roozbehp deleted the roozbeh-nfkd branch October 8, 2025 21:26
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