[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search

CLDR Ticket #9992(closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Flesh out <fields> data

Reported by: pedberg Owned by: pedberg
Component: datetime Data Locale:
Phase: dsub Review: mark
Weeks: Data Xpath:


Description (last modified by pedberg) (diff)

There are some issues with the <fields> data that have come to light as a result of examining what would be needed to address http://bugs.icu-project.org/trac/ticket/12740.

In particular:

  1. The fields data has width variants for certain fields (year, quarter, month, week, day, hour, minute, second) but not others (era, weekday, dayperiod, zone). The variants were added based on the needs of the ICU class RelativeDateTimeFormatter which did not care about era, dayperiod, etc. However, since the width variants affect the display names and it is useful to have the display name width variants for era, weekday, dayperiod, zone, it would be useful to add the width variants for these as well.
  2. Currently, field display names are used in ICU mainly to name the appendFields in DateTimePatternGenerator. However, while there are <field> types corresponding to most of the UDateTimePatternField enum values that might be used in appendFields, some are missing: There are no <field> types for the enum values WEEK_OF_MONTH ('W'), DAY_OF_YEAR ('D'), DAY_OF_WEEK_IN_MONTH ('F', i.e. ordinal for weekday occurrence in a month such as 2nd Wednesday), or FRACTIONAL_SECOND ('S'). It would be useful to add field types for these as well. .


Change History

comment:1 Changed 2 years ago by pedberg

  • Owner changed from anybody to pedberg
  • Status changed from new to accepted
  • Description modified (diff)
  • Milestone changed from UNSCH to 31

Mark agrees with #1, and #2 for all except fractional seconds.

In the long run we should switch <fields> over to using first a <fieldLength> element and then then individual categories, but we need a public review and feedback on that first, so not for CLDR 31. I filed cldrbug 9995: for this restructuring.

Last edited 2 years ago by pedberg (previous) (diff)

comment:2 Changed 2 years ago by pedberg

  • Status changed from accepted to reviewing
  • Xref set to 9995
  • Review set to mark

comment:3 Changed 2 years ago by mark

  • Status changed from reviewing to closed
  • Resolution set to fixed

Add a comment

Modify Ticket

as closed
Next status will be 'new'
Next status will be 'closed'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.