cldr
cldr copied to clipboard
CLDR-16668 Revise order of units
CLDR-16668
Still draft because I'd like to discuss with Tom.
tools/cldr-code/src/main/java/org/unicode/cldr/tool/ChartUnitConversions.java
- Use the new collator in charts
tools/cldr-code/src/main/java/org/unicode/cldr/util/DtdData.java
- Use the new collator in XML paths
tools/cldr-code/src/main/java/org/unicode/cldr/util/UnitConverter.java
- add information to UnitSystem enum to make comparision easier.
- can use int for sort key.
- add QuantityGroup for more natural ordering of quantities; also intended as utility for ST (which could subdivide further)
tools/cldr-code/src/main/java/org/unicode/cldr/util/UnitPathType.java
- add simple utility for displayName
tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestUnits.java
-
enhance one of the tests to also print information about the quantities, standard units, current ST Pages, ordering information, systems, etc.
-
[ ] This PR completes the ticket.
ALLOW_MANY_COMMITS=true
Still draft, but feedback is useful. A commit message needs fixing, will do that when everything else is ok.
Notice: the branch changed across the force-push!
- tools/cldr-code/src/main/java/org/unicode/cldr/util/UnitConverter.java is different
- tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestUnits.java is different
~ Your Friendly Jira-GitHub PR Checker Bot