Skip to content

Commit 227f33c

Browse files
authored
CLDR-19000 json: update again for rational patterns (unicode-org#5087)
1 parent 30b2973 commit 227f33c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tools/cldr-code/src/main/java/org/unicode/cldr/json/LdmlConvertRules.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class LdmlConvertRules {
3737
"currency:displayName:count",
3838
"numbers:symbols:numberSystem",
3939
"numbers:decimalFormats:numberSystem",
40+
"numbers:rationalFormats:numberSystem",
4041
"numbers:currencyFormats:numberSystem",
4142
"numbers:percentFormats:numberSystem",
4243
"numbers:scientificFormats:numberSystem",

tools/cldr-code/src/main/resources/org/unicode/cldr/json/pathTransforms.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,17 @@
7979
> $1/$3
8080

8181
# add type=standard
82-
< (.*/numbers/(decimal|scientific|percent|currency|rational)Formats\[@numberSystem="([^"]*)"\])/(decimal|scientific|percent|currency|rational)FormatLength/(decimal|scientific|percent|currency|rational)Format\[@type="standard"]/pattern.*$
82+
< (.*/numbers/(decimal|scientific|percent|currency)Formats\[@numberSystem="([^"]*)"\])/(decimal|scientific|percent|currency)FormatLength/(decimal|scientific|percent|currency|rational)Format\[@type="standard"]/pattern.*$
8383
> $1/standard
8484

8585
# Add "type" attribute with value "standard" if there is no "type" in "decimalFormatLength".
86-
< (.*/numbers/(decimal|scientific|percent|rational)Formats\[@numberSystem="([^"]*)"\]/(decimal|scientific|percent|rational)FormatLength)/(.*)$
86+
< (.*/numbers/(decimal|scientific|percent)Formats\[@numberSystem="([^"]*)"\]/(decimal|scientific|percent)FormatLength)/(.*)$
8787
> $1[@type="standard"]/$5
8888

89+
# Add "type" attribute with value "standard" if there is no "type".
90+
< (.*/numbers/(rationalFormats)\[@numberSystem="([^"]*)"\])/(.*)$
91+
> $1[@type="$2"]/$4
92+
8993
#
9094
< (.*/listPattern)/(.*)$
9195
> $1[@type="standard"]/$2

0 commit comments

Comments
 (0)