From df7c4b22df218774d6d6365f86d8070dbd7747d1 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 17 Feb 2025 16:06:30 +0200 Subject: [PATCH] Drop the notation, compactDisplay, & numberingSystem options --- spec/formatting.md | 6 ++---- spec/functions/README.md | 3 --- spec/functions/datetime.md | 4 +--- spec/functions/number.md | 39 ++------------------------------------ 4 files changed, 5 insertions(+), 47 deletions(-) diff --git a/spec/formatting.md b/spec/formatting.md index cebe71d048..b6f8043815 100644 --- a/spec/formatting.md +++ b/spec/formatting.md @@ -116,10 +116,10 @@ which makes it available for use in later _expressions_ and _markup_ _options_. > For example, in > ``` > .input {$a :number minimumFractionDigits=3} -> .local $b = {$a :integer notation=compact} +> .local $b = {$a :integer useGrouping=never} > .match $a > 0 {{The value is zero.}} -> * {{In compact form, the value {$a} is rendered as {$b}.}} +> * {{Without grouping separators, the value {$a} is rendered as {$b}.}} > ``` > the _resolved value_ bound to `$a` is used as the _operand_ > of the `:integer` _function_ when resolving the value of the _variable_ `$b`, @@ -992,5 +992,3 @@ The _Default Bidi Strategy_ is defined as follows: > the character sequence in the formatted string representation > of `resval`. - - diff --git a/spec/functions/README.md b/spec/functions/README.md index 234d7b00c4..f828e2969c 100644 --- a/spec/functions/README.md +++ b/spec/functions/README.md @@ -73,9 +73,6 @@ Such values can be useful to users in cases where local usage and support exists > for currency amounts as the _operand_ in the _function_ `:currency`. > - A Java implementation might _accept_ a `java.time.chrono.Chronology` object > as a value for the _date/time override option_ `calendar` -> - ICU4J's implementation might _accept_ a `com.ibm.icu.text.NumberingSystem` object -> instead of using a [Unicode Numbering System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier) -> for the option `numberingSystem` in _functions_ such as `:number` or `:integer`. Future versions of this specification MAY define additional _options_ and _option_ values, subject to the rules in the [Stability Policy](#stability-policy), diff --git a/spec/functions/datetime.md b/spec/functions/datetime.md index 1e93062d91..1bf33e9f69 100644 --- a/spec/functions/datetime.md +++ b/spec/functions/datetime.md @@ -272,13 +272,11 @@ the functions `:datetime` and `:time`: - `true` - `false` -The following _options_ and their values are RECOMMENDED to be available on +The following _option_ and its values are RECOMMENDED to be available on the functions `:datetime`, `:date`, and `:time`. - `calendar` - valid [Unicode Calendar Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeCalendarIdentifier) -- `numberingSystem` - - valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier) The following _option_ and its values are **Proposed** for inclusion in the next release of this specification but have not yet been diff --git a/spec/functions/number.md b/spec/functions/number.md index 6462e87b08..698eb559d0 100644 --- a/spec/functions/number.md +++ b/spec/functions/number.md @@ -26,17 +26,6 @@ The following options and their values are REQUIRED to be available on the funct - `plural` (default; see [Default Value of `select` Option](#default-value-of-select-option) below) - `ordinal` - `exact` -- `compactDisplay` (this option only has meaning when combined with the option `notation=compact`) - - `short` (default) - - `long` -- `notation` - - `standard` (default) - - `scientific` - - `engineering` - - `compact` -- `numberingSystem` - - valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier) - (default is locale-specific) - `signDisplay` - `auto` (default) - `always` @@ -87,12 +76,12 @@ with _options_ on the _expression_ taking priority over any option values of the > For example, the _placeholder_ in this _message_: > > ``` -> .input {$n :number notation=scientific minimumFractionDigits=2} +> .input {$n :number minimumFractionDigits=2 signDisplay=always} > {{{$n :number minimumFractionDigits=1}}} > ``` > > would be formatted with the resolved options -> `{ notation: 'scientific', minimumFractionDigits: '1' }`. +> `{ minimumFractionDigits: '1', signDisplay: 'always' }`. #### Resolved Value @@ -132,9 +121,6 @@ The following options and their values are REQUIRED to be available on the funct - `plural` (default; see [Default Value of `select` Option](#default-value-of-select-option) below) - `ordinal` - `exact` -- `numberingSystem` - - valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier) - (default is locale-specific) - `signDisplay` - `auto` (default) - `always` @@ -158,8 +144,6 @@ In general, these are included in the resolved option values of the _expression_ with _options_ on the _expression_ taking priority over any option values of the _operand_. Option values with the following names are however discarded if included in the _operand_: -- `compactDisplay` -- `notation` - `minimumFractionDigits` - `maximumFractionDigits` - `minimumSignificantDigits` @@ -355,15 +339,6 @@ The following options and their values are REQUIRED to be available on the funct - `currency` - well-formed [Unicode Currency Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeCurrencyIdentifier) (no default) -- `compactDisplay` (this option only has meaning when combined with the option `notation=compact`) - - `short` (default) - - `long` -- `notation` - - `standard` (default) - - `compact` -- `numberingSystem` - - valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier) - (default is locale-specific) - `currencySign` - `accounting` - `standard` (default) @@ -492,15 +467,6 @@ unless otherwise indicated: - `short` (default) - `narrow` - `long` -- `compactDisplay` (this option only has meaning when combined with the option `notation=compact`) - - `short` (default) - - `long` -- `notation` - - `standard` (default) - - `compact` -- `numberingSystem` - - valid [Unicode Number System Identifier](https://unicode.org/reports/tr35/tr35.html#UnicodeNumberSystemIdentifier) - (default is locale-specific) - `signDisplay` - `auto` (default) - `always` @@ -783,7 +749,6 @@ representing its decimal value: - `minimumIntegerDigits` - `minimumSignificantDigits` - `maximumSignificantDigits` -- `notation` ```abnf integer = "0" / ["-"] ("1"-"9") *DIGIT