-
-
Notifications
You must be signed in to change notification settings - Fork 48
Propertiness #1064
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
Merged
Merged
Propertiness #1064
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9bef019
Disallow and remove duplicates in ExtraPropertyAliases.txt
eggrobin 54876f2
Add derived status
eggrobin 881f337
group by derived status in character.jsp
eggrobin 01dd587
Try to generate code that compiles
eggrobin 1413d86
Java floundering
eggrobin eada496
Merge remote-tracking branch 'la-vache/main' into propertiness
eggrobin a4808a1
Better formatting
eggrobin da9e633
Spotless and logic
eggrobin 0d57194
That one is enumerated
eggrobin 8281b03
Remove more redundant ICU-based properties
eggrobin b69a9f1
Actually add the source file
eggrobin b5809ae
More ICU cleanup
eggrobin ff2b657
Misclassified
eggrobin 6ede68f
The Emoji properties are properties
eggrobin 61249ff
Merge remote-tracking branch 'la-vache/main' into propertiness
eggrobin c13450c
Factor conditionals
eggrobin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
unicodetools/src/main/java/org/unicode/props/DerivedPropertyStatus.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.unicode.props; | ||
|
||
/** | ||
* A property status that can be derived from the data files defining the properties. Contrary to | ||
* PropertyStatus.java, this does not reflect distinctions such as Normative vs. Informative vs. | ||
* Contributory vs. Deprecated etc., as all of those are equal in the eyes of PropertyAliases.txt. | ||
* It does distinguish Provisional properties | ||
*/ | ||
public enum DerivedPropertyStatus { | ||
/** | ||
* Properties that are part of the UCD and subject to UTC decisions. These are the ones in | ||
* PropertyAliases.txt. Their actual status may be Normative, Informative, or Contributory. | ||
*/ | ||
Approved, | ||
/** | ||
* Provisional properties. These are actual UCD properties, but not in PropertyAliases.txt, and | ||
* changes to them need not be approved by the UTC. They may be removed entirely from the UCD | ||
* (though they remain in the tools, as the tools have history). | ||
*/ | ||
Provisional, | ||
/** | ||
* Data in UCD files that do not specify character properties. Some of this data is exposed in | ||
* the form of properties in the tools, because all we have is a hammer. | ||
*/ | ||
UCDNonProperty, | ||
/** | ||
* Properties defined outside the UCD, e.g., in UTS #39 or UTS #51. These are explicitly | ||
* described as properties in these documents. | ||
*/ | ||
NonUCDProperty, | ||
/** Non-property data defined outside the UCD. */ | ||
NonUCDNonProperty, | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
optional -- might simplify something:
How about, rather than just building separate lists of properties, you add an
enum PropCategory { UCD, NON_UCD, ... CJK, ...}
, and create aMap<PropCategory, List<UcdProperty>>
?You could then also use maps from PropCategory to table headings and such.
Does it matter if these lists are List's? Or do you just need Collection's?
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.
Not really, I convert them to lists of String below anyway (because one of them is not a list of UcdProperty, namely the list of stuff that gets added in the tools).
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.
I will merge this now to unblock John and see if I can come up with something cleaner in a subsequent PR.