-
-
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
VersionedProperty support in the JSPs #432
Comments
I'll talk a look.
For the beta, the idea is that you have multiple release versions plus 1
dev version. Do you think we need multiple?
…On Wed, Apr 5, 2023, 19:16 Robin Leroy ***@***.***> wrote:
The invariant test have a versioned property syntax, *e.g.*,
\p{U4.1:XID_Continue}, implemented in VersionedProperty.
https://github.com/unicode-org/unicodetools/blob/70dce2c89f185c65b436c28404ae5b7bdb32c2d1/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java#L1033-L1072
Something like that would be useful for list-unicodeset.jsp.
It sounds like there is limited support for multiple versions with the β
syntax, but I cannot figure out how that one is implemented.
—
Reply to this email directly, view it on GitHub
<#432>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEMD5PBSPDU3QAEXYX5TW7YRQLANCNFSM6AAAAAAWUZZAPA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
So, matching the subfolders of
Multiple different βs? That sounds like it would confuse things rather than help. |
When I read "limited support for multiple versions with the β syntax", I
thought you were asking for multiple betas. Glad you're not!
…On Thu, Apr 6, 2023 at 7:48 AM Robin Leroy ***@***.***> wrote:
For the beta, the idea is that you have multiple release versions plus 1
dev version.
So, matching the subfolders of ucd? That was what I had in mind.
Do you think we need multiple?
Multiple different βs? That sounds like it would confuse things rather
than help.
—
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEMAQFLWLTKFPEM75DGTW73JSTANCNFSM6AAAAAAWUZZAPA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@macchiati It seems like unicodetools has (at least) two ways to look at versioned properties:
IndexUnicodeProperties seems more modern (compare the pre-2013 histories of IndexUnicodeProperties and ToolUnicodePropertySource), and since it does not have the derivations, it might have a better chance of being correct for older versions than ToolUnicodePropertySource. Should the invariants use it instead of ToolUnicodePropertySource? |
Wait, they currently use both, with a preference for ToolUnicodePropertySource. So I guess the question is whether this should be inverted. propSource = getProperties(version); // ToolUnicodePropertySource.
property = propSource.getProperty(xPropertyName);
if (property == null) {
propSource = getIndexedProperties(version); // IndexUnicodeProperties.
property = propSource.getProperty(xPropertyName); |
I agree, it should be inverted. There are a few constructed properties
(non-UCD) that are only available via Tool... That is, the extra
normalization properties. So those should fallback to the Tool
…On Thu, May 25, 2023 at 5:18 AM Robin Leroy ***@***.***> wrote:
Should the invariants use it instead of ToolUnicodePropertySource?
Wait, they currently use *both*, with a preference for
ToolUnicodePropertySource. So I guess the question is whether this should
be inverted.
propSource = getProperties(version); // ToolUnicodePropertySource.
property = propSource.getProperty(xPropertyName);
if (property == null) {
propSource = getIndexedProperties(version); // IndexUnicodeProperties.
property = propSource.getProperty(xPropertyName);
—
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEMEJW2FASG5YN2NRKRLXH5E3DANCNFSM6AAAAAAWUZZAPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ah, that doesn’t work, because IndexUnicodeProperties, while closer to the truth for non-default values, it has issues with default values (I think it relies on @missing lines that are not always there). At a glance, it is missing defaults at least for:
(The failings of IndexUnicodeProperties should probably turn into their own issue, but I am on a train with spotty internet, so I will be happy if this comment goes through.) |
The failings of IndexUnicodeProperties should probably turn into their
own issue
Agreed, and thanks for tracking this down
…On Thu, May 25, 2023 at 9:55 AM Robin Leroy ***@***.***> wrote:
it should be inverted
Ah, that doesn’t work, because IndexUnicodeProperties, while closer to the
truth for non-default values, it has issues with default values (I think it
relies on @missing lines that are not always there).
At a glance, it is missing defaults at least for:
1. CCC,
2. the non-special values of the properties in SpecialCasing (those
used to have @missing lines, which IndexUnicodeProperties.txt knows how to
read, but they got removed in 7.0),
3. the case foldings.
(The failings of IndexUnicodeProperties should probably turn into their
own issue, but I am on a train with spotty internet, so I will be happy if
this comment goes through.)
—
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEMEY236EVLDNDCS6QYDXH6FJRANCNFSM6AAAAAAWUZZAPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The invariant test have a versioned property syntax, e.g.,
\p{U4.1:XID_Continue}
, implemented inVersionedProperty
.unicodetools/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java
Lines 1033 to 1072 in 70dce2c
Something like that would be useful for list-unicodeset.jsp.
It sounds like there is limited support for multiple versions with the β syntax, but I cannot figure out how that one is implemented.
The text was updated successfully, but these errors were encountered: