Several problems with list patterns: Docs, DTD…

Description

http://cldr.unicode.org/translation/lists does not mention Regular vs Duration/Unit
PathHeader also has //ldml/listPatterns/listPattern/listPatternPart[@type="%A"] ; Misc ; Displaying Lists ; Regular Lists ; &listOrder($1) - but “Regular Lists” doesn’t appear as such in the spec.

Should “Regular Lists” be renamed to “Standard Lists” or “Other Lists” ?

From path header:

../../tools/java/org/unicode/cldr/util/data/PathHeader.txt://ldml/listPatterns/listPattern[@type="unit-short"]/listPatternPart[@type="%A"] ; Misc ; Displaying Lists ; Short Duration Lists ; &listOrder($1)

So the type “unit-short” is named “Short Duration List”.

What is this list and what is it for? It’s not documented.

A question that arises is how CLDR lists map to the following four use cases:

• separating numbers: “4, 5, 6” or “4;5;6"
• separating units: “5months 3days” or “5 lb 8 oz”
• separating “regular” things - “Monday, Tuesday, and Wednesday”
• separating “regular" in short form - “Monday, Tuesday, Wednesday”

xpath

None

locale

None

Activity

Show:
TracBot
May 9, 2019, 11:21 PM
Trac Comment 7.8 by —2016-07-05T17:33:35.325Z

Replying to (Comment 7 zbraniecki@…):

is that targeting CLDR 30?

Yes, that's the `Milestone: 30` in the header.

TracBot
May 9, 2019, 11:21 PM
Trac Comment 7 by zbraniecki@a2a00e84ce1378d6—2016-05-25T20:50:43.790Z

is that targeting CLDR 30?

TracBot
May 9, 2019, 11:21 PM
Trac Comment 6 by —2016-05-03T03:58:23.334Z

Seems OK in smoketest

TracBot
May 9, 2019, 11:21 PM
Trac Comment 5 by —2016-05-03T03:50:28.509Z
  • In root, add listPattern[@type="standard-short"], aliased to listPattern with no type (i.e. to the standard long style)

  • Update coverage to include this

  • Update PathHeader/PathDescription so that unit list patterns are called that, instead of being called "duration" list patterns

Note:

  • No dtd changes necessary, the listPattern type attribute is just NMTOKEN

  • No changes necessary to tools/java/org/unicode/cldr/icu/ldml2icu_locale.txt, it can already handle this for ICU conversion

TracBot
May 9, 2019, 11:21 PM
Trac Comment 4 by —2016-04-27T16:08:52.566Z
  • Rename in the ST from Duration to Unit.

  • Add <listPattern type="short">. Fallback to long. Question about “narrrow”? Root change for fallback. Add coverage for this.

Priority

major

Assignee

Peter Edberg

Reporter

Steven R. Loomis

Reviewer

Mark Davis

Components

Fix versions

Phase

dsub