-
-
Notifications
You must be signed in to change notification settings - Fork 42
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 the IndexUnicodeProperties Joining_Type #657
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clever approach. A few items:
The UcdProperty and UcdProperty values are generated by GenerateEnums, so that needs to be modified to produce the right values. Otherwise the next time it is run, the changes will be overridden.
Short term, I think making the derived property "occupy" field 1 is a clever hack. Longer term I think we need to add a better mechanism for derived IndexUnicodeProperties.
I ran GenerateEnums already (a CI check tests that it does not change anything).
We have plenty of those in IndexUnicodeProperties.txt already, see e.g. unicodetools/unicodetools/src/main/resources/org/unicode/props/IndexUnicodeProperties.txt Lines 124 to 143 in 77e3ce6
|
You may have misread that line of IndexUnicodeProperties.txt, it is DerivedJoiningType; Joining_Type; 1 that is, we are getting it from the derived file (like the other derived properties), where it actually does reside in field 1. |
Ah, got it. Ok, will approve
…On Thu, Jan 18, 2024 at 8:41 AM Robin Leroy ***@***.***> wrote:
making the derived property "occupy" field 1 is a clever hack
You may have misread that line of IndexUnicodeProperties.txt, it is
*DerivedJoiningType*; Joining_Type; 1
that is, we are getting it from the derived file (like the other derived
properties), where it actually does reside in field 1.
—
Reply to this email directly, view it on GitHub
<#657 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEMEQPIW2DAJH4O7OPPDYPFGB5AVCNFSM6AAAAABB77BMWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJYHAZTMMBVG4>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Treat column 2 of ArabicShaping.txt as an unofficial contributory property and Joining_Type as a derived property in IndexUnicodePropertySource. When retiring ToolUnicodePropertySource, we should switch to using that derivation.
See the test failure prior to the fix.