Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2727a5a

Browse files
authored
Drop the notation, compactDisplay, & numberingSystem options (#1015)
1 parent 4dbdc35 commit 2727a5a

File tree

4 files changed

+5
-47
lines changed

4 files changed

+5
-47
lines changed

spec/formatting.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ which makes it available for use in later _expressions_ and _markup_ _options_.
116116
> For example, in
117117
> ```
118118
> .input {$a :number minimumFractionDigits=3}
119-
> .local $b = {$a :integer notation=compact}
119+
> .local $b = {$a :integer useGrouping=never}
120120
> .match $a
121121
> 0 {{The value is zero.}}
122-
> * {{In compact form, the value {$a} is rendered as {$b}.}}
122+
> * {{Without grouping separators, the value {$a} is rendered as {$b}.}}
123123
> ```
124124
> the _resolved value_ bound to `$a` is used as the _operand_
125125
> of the `:integer` _function_ when resolving the value of the _variable_ `$b`,
@@ -992,5 +992,3 @@ The _Default Bidi Strategy_ is defined as follows:
992992
> the character sequence in the formatted string representation
993993
> of `resval`.
994994
995-
996-

spec/functions/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ Such values can be useful to users in cases where local usage and support exists
7373
> for currency amounts as the _operand_ in the _function_ `:currency`.
7474
> - A Java implementation might _accept_ a `java.time.chrono.Chronology` object
7575
> as a value for the _date/time override option_ `calendar`
76-
> - ICU4J's implementation might _accept_ a `com.ibm.icu.text.NumberingSystem` object
77-
> instead of using a [Unicode Numbering System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier)
78-
> for the option `numberingSystem` in _functions_ such as `:number` or `:integer`.
7976
8077
Future versions of this specification MAY define additional _options_ and _option_ values,
8178
subject to the rules in the [Stability Policy](#stability-policy),

spec/functions/datetime.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,11 @@ the functions `:datetime` and `:time`:
272272
- `true`
273273
- `false`
274274
275-
The following _options_ and their values are RECOMMENDED to be available on
275+
The following _option_ and its values are RECOMMENDED to be available on
276276
the functions `:datetime`, `:date`, and `:time`.
277277
278278
- `calendar`
279279
- valid [Unicode Calendar Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeCalendarIdentifier)
280-
- `numberingSystem`
281-
- valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier)
282280
283281
The following _option_ and its values are **Proposed** for
284282
inclusion in the next release of this specification but have not yet been

spec/functions/number.md

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ The following options and their values are REQUIRED to be available on the funct
2626
- `plural` (default)
2727
- `ordinal`
2828
- `exact`
29-
- `compactDisplay` (this option only has meaning when combined with the option `notation=compact`)
30-
- `short` (default)
31-
- `long`
32-
- `notation`
33-
- `standard` (default)
34-
- `scientific`
35-
- `engineering`
36-
- `compact`
37-
- `numberingSystem`
38-
- valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier)
39-
(default is locale-specific)
4029
- `signDisplay`
4130
- `auto` (default)
4231
- `always`
@@ -87,12 +76,12 @@ with _options_ on the _expression_ taking priority over any option values of the
8776
> For example, the _placeholder_ in this _message_:
8877
>
8978
> ```
90-
> .input {$n :number notation=scientific minimumFractionDigits=2}
79+
> .input {$n :number minimumFractionDigits=2 signDisplay=always}
9180
> {{{$n :number minimumFractionDigits=1}}}
9281
> ```
9382
>
9483
> would be formatted with the resolved options
95-
> `{ notation: 'scientific', minimumFractionDigits: '1' }`.
84+
> `{ minimumFractionDigits: '1', signDisplay: 'always' }`.
9685
9786
#### Resolved Value
9887
@@ -132,9 +121,6 @@ The following options and their values are REQUIRED to be available on the funct
132121
- `plural` (default)
133122
- `ordinal`
134123
- `exact`
135-
- `numberingSystem`
136-
- valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier)
137-
(default is locale-specific)
138124
- `signDisplay`
139125
- `auto` (default)
140126
- `always`
@@ -158,8 +144,6 @@ In general, these are included in the resolved option values of the _expression_
158144
with _options_ on the _expression_ taking priority over any option values of the _operand_.
159145
Option values with the following names are however discarded if included in the _operand_:
160146
161-
- `compactDisplay`
162-
- `notation`
163147
- `minimumFractionDigits`
164148
- `maximumFractionDigits`
165149
- `minimumSignificantDigits`
@@ -355,15 +339,6 @@ The following options and their values are REQUIRED to be available on the funct
355339
- `currency`
356340
- well-formed [Unicode Currency Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeCurrencyIdentifier)
357341
(no default)
358-
- `compactDisplay` (this option only has meaning when combined with the option `notation=compact`)
359-
- `short` (default)
360-
- `long`
361-
- `notation`
362-
- `standard` (default)
363-
- `compact`
364-
- `numberingSystem`
365-
- valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier)
366-
(default is locale-specific)
367342
- `currencySign`
368343
- `accounting`
369344
- `standard` (default)
@@ -492,15 +467,6 @@ unless otherwise indicated:
492467
- `short` (default)
493468
- `narrow`
494469
- `long`
495-
- `compactDisplay` (this option only has meaning when combined with the option `notation=compact`)
496-
- `short` (default)
497-
- `long`
498-
- `notation`
499-
- `standard` (default)
500-
- `compact`
501-
- `numberingSystem`
502-
- valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier)
503-
(default is locale-specific)
504470
- `signDisplay`
505471
- `auto` (default)
506472
- `always`
@@ -791,7 +757,6 @@ representing its decimal value:
791757
- `minimumIntegerDigits`
792758
- `minimumSignificantDigits`
793759
- `maximumSignificantDigits`
794-
- `notation`
795760
796761
```abnf
797762
integer = "0" / ["-"] ("1"-"9") *DIGIT

0 commit comments

Comments
 (0)