Skip to content

Commit

Permalink
Editorial: Define ILD and ILND in exactly one place (4.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-allen committed Sep 17, 2024
1 parent 60eda81 commit c800445
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/locale-sensitive-functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h1>
</h1>
<dl class="header">
<dt>description</dt>
<dd>It interprets _S_ as a sequence of UTF-16 encoded code points, as described in es2024, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>, and returns the result of implementation- and locale-dependent (ILD) transformation into _targetCase_ as a new String value.</dd>
<dd>It interprets _S_ as a sequence of UTF-16 encoded code points, as described in es2024, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>, and returns the result of ILD transformation into _targetCase_ as a new String value.</dd>
</dl>
<emu-alg>
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
Expand Down
8 changes: 4 additions & 4 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ <h1>
<emu-alg>
1. Let _exponent_ be 0.
1. If _x_ is ~not-a-number~, then
1. Let _n_ be an implementation- and locale-dependent (ILD) String value indicating the *NaN* value.
1. Let _n_ be an ILD String value indicating the *NaN* value.
1. Else if _x_ is ~positive-infinity~, then
1. Let _n_ be an ILD String value indicating positive infinity.
1. Else if _x_ is ~negative-infinity~, then
Expand Down Expand Up @@ -910,7 +910,7 @@ <h1>
1. If the _numberFormat_.[[UseGrouping]] is *false*, then
1. Append the Record { [[Type]]: *"integer"*, [[Value]]: _integer_ } to _result_.
1. Else,
1. Let _groupSepSymbol_ be the implementation-, locale-, and numbering system-dependent (ILND) String representing the grouping separator.
1. Let _groupSepSymbol_ be the ILND String representing the grouping separator.
1. Let _groups_ be a List whose elements are, in left to right order, the substrings defined by ILND set of locations within the _integer_, which may depend on the value of _numberFormat_.[[UseGrouping]].
1. Assert: The number of elements in _groups_ List is greater than 0.
1. Repeat, while _groups_ List is not empty,
Expand Down Expand Up @@ -1233,7 +1233,7 @@ <h1>
</emu-table>

<emu-note>
The computations rely on String values and locations within numeric strings that are dependent upon the implementation and the effective locale of _numberFormat_ ("ILD") or upon the implementation, the effective locale, and the numbering system of _numberFormat_ ("ILND"). The ILD and ILND Strings mentioned, other than those for currency names, must not contain any code points in the General Category "Number, decimal digit" as specified by the Unicode Standard.
The computations rely on ILD and ILND String values and locations within numeric strings that depend on the effective locale of _numberFormat_, or upon the effective locale and numbering system of _numberFormat_. The ILD and ILND String values mentioned, other than those for currency names, must not contain any code points in the General Category "Number, decimal digit" as specified by the Unicode Standard.
</emu-note>

<emu-note>
Expand Down Expand Up @@ -1592,7 +1592,7 @@ <h1>
1. Return _thousands_ × 3.
1. Else,
1. Assert: _notation_ is *"compact"*.
1. Let _exponent_ be an implementation- and locale-dependent (ILD) integer by which to scale a number of the given magnitude in compact notation for the current locale.
1. Let _exponent_ be an ILD integer by which to scale a number of the given magnitude in compact notation for the current locale.
1. Return _exponent_.
</emu-alg>
</emu-clause>
Expand Down
4 changes: 4 additions & 0 deletions spec/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ <h1>Implementation Dependencies</h1>
</li>
</ul>

<p>
Throughout this specification, behaviour that is dependent on implementation and locale is referred to as ILD. Behaviour that is dependent on implementation, locale, and numbering system is referred to as ILND.
</p>

<emu-clause id="sec-compatibility">
<h1>Compatibility across implementations</h1>

Expand Down

0 comments on commit c800445

Please sign in to comment.