Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinguishing attribute numberSystem is ignored. #79

Open
movermeyer opened this issue Oct 5, 2021 · 0 comments
Open

Distinguishing attribute numberSystem is ignored. #79

movermeyer opened this issue Oct 5, 2021 · 0 comments

Comments

@movermeyer
Copy link
Collaborator

movermeyer commented Oct 5, 2021

Cldr::Export::Data::Numbers#symbols ignores the distinguishing attribute numberSystem:

Example

In the bn locale, there are data for two number systems. However, Cldr::Export::Data::Numbers#symbols merges them all together:

(byebug) select('numbers/symbols/*').size
23

23 = 11 from the beng numberSystem, and 12 from the latn numberSystem (CLDR v34)

The result is a set of symbols that combine bits of both numberSystems.

bn:
  numbers:
    symbols:
      alias: ''
      decimal: "."
      group: ","
      list: ";"
      percent_sign: "%"
      plus_sign: "+"
      minus_sign: "-"
      exponential: E
      superscripting_exponent: "×"
      per_mille: ""
      infinity: ""
      nan: NaN
      time_separator: ":"

Distinguishing attributes are used to distinguish multiple elements at the same level.

I expected different numberSystem elements to be kept separate during the export, since that's what the spec calls for. Something like:

bn:
  numbers:
    symbols:
      beng:
          ....
      latn:
          ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant