cldr icon indicating copy to clipboard operation
cldr copied to clipboard

CLDR-16668 Revise order of units

Open macchiati opened this issue 9 months ago • 2 comments

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

macchiati avatar May 08 '24 04:05 macchiati

Still draft, but feedback is useful. A commit message needs fixing, will do that when everything else is ok.

macchiati avatar May 08 '24 04:05 macchiati

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

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot