Add formatting for sequence and arbitrary compound units

Description

ICU supports full unit identifiers in MeasureUnit, but only supports formatting of sanctioned ones. NumberFormatter should be changed to support the formatting of full unit identifiers, including adding code for loading the additional patterns such as the multiplication and list patterns.

Activity

Show:
Hugo van der Merwe
March 10, 2021, 6:42 PM

(Sent for review - this is done.)

Hugo van der Merwe
February 24, 2021, 8:37 AM
Edited

Fixed in ICU4C; port to ICU4J coming very soon.

Hugo van der Merwe
September 20, 2020, 11:45 PM

Rephrased:

  • we now have formatting for mixed units, added as part of ICU-20568.

  • we support units that are of the form BUILTIN-per-BUILTIN.

  • arbitrary compound units beyond that are not yet supported.

  • This ticket number hasn’t been used in an upstream/master commit, so the ticket can stick around for ICU 69.

Hugo van der Merwe
September 16, 2020, 11:08 PM

It looks like this will have to wait for 69.

Shane Carr
March 26, 2020, 5:17 AM

Too disruptive to squeeze into 67.

Fixed

Assignee

Hugo van der Merwe

Reporter

Shane Carr

Components

Labels

None

Reviewer

Shane Carr

Priority

medium

Time Needed

Days

Fix versions