Support alternate time formats for different number systems

Description

Deleted Component: design

From an internal report: "I ... found that the time separator for Arabic is ":" which should only be used for English digits IMHO (0, 1, 2, 3), but not for native numerals (٠‎ - ١‎ - ٢‎)
I had a look at one newspaper (http://www.ahram.org.eg/) and found they use a comma to separate times when using native numerals, which sounds like the right spearator to me."

What we have in CLDR is the following.

<timeFormatLength type="full">
<timeFormat>
<pattern>zzzz h:mm:ss a</pattern>
</timeFormat>
</timeFormatLength>

I see two options:

1. Have alternate time patterns for different numbering systems. I see this as messy.

2. Interpret ":" in the patterns as a special symbol, like "." in numbers, that is replaced according to the number system being used for the digits. Add a new field <timeSeparator>٫</timeSeparator> to <numbers><symbols>, as below.

<symbols numberSystem="arab">
<decimal>٫</decimal>
<group>٬</group>
<list>؛</list>
<percentSign>٪</percentSign>
<plusSign>+</plusSign>
<minusSign>-</minusSign>
<exponential>اس</exponential>
<perMille>؉</perMille>
<infinity>∞</infinity>
<nan>ليس رقم</nan>
<timeSeparator>٫</timeSeparator> <!-- NEW -->
</symbols>

xpath

None

locale

None

Activity

Show:
TracBot
May 10, 2019, 5:15 AM
Trac Comment 14 by —2014-01-02T23:45:15.641Z

Not a priority for us at this time, if someone wants to pursue this, then go for it.

TracBot
May 10, 2019, 5:15 AM
Trac Comment 17 by —2014-04-28T12:42:20.178Z

There's no description of the alternative idea, so reviving the proposal:

<timeSeparator>٫</timeSeparator>

I think the main concern was that some locales use different time separators between different fields. We would just document that if they are different, timeSeparator only applies to the hours/minutes separator. The only issue we'd have would then be if a locale
a. supported different numbering systems, *and*
b. had different time separators in the same string.
This is either nonexistent or rare. (— Il meglio è l’inimico del bene —)

TracBot
May 10, 2019, 5:15 AM
Trac Comment 18 by —2014-04-28T18:05:32.544Z

I am OK with the formulation in comment:17

TracBot
May 10, 2019, 5:15 AM
Trac Comment 19 by —2014-04-29T15:41:23.317Z

Added the structure. TODO: add an example Generator instance

TracBot
May 10, 2019, 5:15 AM
Trac Comment 20 by —2014-04-30T13:51:38.062Z

Some questions came up:

Where should it be in the LDML structure.

I looked at this, and the problem is that the separator varies with the numberSystem, not with the calendar. So while it seems a bit odd, that may be the best place for it.

How it would be used?

If (and only if) it is different than ":" in the locale/numberSystem used to format a date/time pattern, then it is substituted for : when formatting.

In other words, it functions in that case like the "," in a number pattern, which is a variable whose value is replaced by the grouping separator for the language.

Priority

minor

Assignee

Mark Davis

Reporter

Mark Davis

Reviewer

John Emmons

Labels

None

Components

None

Fix versions

phase

dsub
Configure