Distinguishing attribute `numberSystem` is ignored.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- localization
Research direction
Start with Cldr::Export::Data::Numbers#symbols and compare its output for the bn locale against the CLDR numberSystem distinction described in the issue. The work is complete when beng and latn symbols remain separate in the exported YAML instead of being merged.
Written by the indexing model from the issue text.
Description
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:
....
- Dominant language
- Ruby
- Stars
- 78
- Forks
- 18
- Avg merge
- 9d 8h
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby-i18n/ruby-cldr
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in ruby-i18n/ruby-cldr
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100