@@ -16,7 +16,7 @@ Formatting of a _message_ is defined by the following operations:
1616 with reference to the current _ formatting context_ .
1717 This can include multiple steps,
1818 such as looking up the value of a variable and calling formatting functions.
19- The form of the resolved value is implementation defined and the
19+ The form of the _ resolved value _ is implementation defined and the
2020 value might not be evaluated or formatted yet.
2121 However, it needs to be "formattable", i.e. it contains everything required
2222 by the eventual formatting.
@@ -47,7 +47,7 @@ Formatting of a _message_ is defined by the following operations:
4747 if the _ message_ contains any _ reserved statements_ ,
4848 emit an _ Unsupported Statement_ error.
4949
50- - ** _ <dfn >Formatting</dfn >_ ** takes the resolved values of the selected _ pattern_ ,
50+ - ** _ <dfn >Formatting</dfn >_ ** takes the _ resolved values _ of the selected _ pattern_ ,
5151 and produces the formatted result for the _ message_ .
5252 Depending on the implementation, this result could be a single concatenated string,
5353 an array of objects, an attributed string, or some other locally appropriate data type.
@@ -96,20 +96,20 @@ This specification allows for the same value to be used for:
9696To support this, the _ ** resolved value** _ of each _ expression_
9797is an implementation-dependent value that supports some or all of the above use cases.
9898
99- In a _ declaration_ , the resolved value of the _ expression_ is bound to a _ variable_ ,
99+ In a _ declaration_ , the _ resolved value _ of the _ expression_ is bound to a _ variable_ ,
100100which is available for use by later _ expressions_ .
101101Since a _ variable_ can be referenced in different ways later,
102102implementations SHOULD NOT immediately fully format the value for output.
103103
104104In an _ input-declaration_ , the _ variable_ operand of the _ variable-expression_
105105identifies not only the name of the external input value,
106- but also the _ variable_ to which the resolved value of the _ variable-expression_ is bound.
106+ but also the _ variable_ to which the _ resolved value _ of the _ variable-expression_ is bound.
107107
108- In _ selectors_ , the resolved value of an _ expression_ is used for _ pattern selection_ .
108+ In _ selectors_ , the _ resolved value _ of an _ expression_ is used for _ pattern selection_ .
109109
110- In a _ pattern_ , the resolved value of an _ expression_ or _ markup_ is used in its _ formatting_ .
110+ In a _ pattern_ , the _ resolved value _ of an _ expression_ or _ markup_ is used in its _ formatting_ .
111111
112- The form that resolved values take is implementation-dependent,
112+ The form that _ resolved values _ take is implementation-dependent,
113113and different implementations MAY choose to perform different levels of resolution.
114114
115115> While this specification does not require it,
@@ -133,7 +133,7 @@ and different implementations MAY choose to perform different levels of resoluti
133133> - An _expression_ could be used as a _selector_ _expression_ if
134134> calling the ` selectKeys (keys )` method of its _resolved value_
135135> did not throw an error.
136- > - Using a _variable reference_, the resolved value of an _expression_
136+ > - Using a _variable reference_, the _resolved value_ of an _expression_
137137> could be used as an _operand_ or _option_ value if
138138> calling the ` getValue ()` method of its _resolved value_ did not throw an error.
139139> In this use case, the ` resolvedOptions ()` method could also
@@ -155,20 +155,20 @@ _Markup_ is only used in _patterns_.
155155
156156Depending on the presence or absence of a _variable_ or _literal_ operand
157157and a _function_, _private-use annotation_, or _reserved annotation_,
158- the resolved value of the _expression_ is determined as follows:
158+ the _resolved value_ of an _expression_ is determined as follows:
159159
160160If the _expression_ contains a _reserved annotation_,
161161an _Unsupported Expression_ error is emitted and
162- a _fallback value_ is used as the resolved value of the _expression_.
162+ a _fallback value_ is used as the _resolved value_ of the _expression_.
163163
164164Else, if the _expression_ contains a _private-use annotation_,
165- its resolved value is defined according to the implementation's specification.
165+ its _resolved value_ is defined according to the implementation's specification.
166166
167167Else, if the _expression_ contains an _annotation_,
168- its resolved value is defined by _function resolution_.
168+ its _resolved value_ is defined by _function resolution_.
169169
170170Else, if the _expression_ consists of a _variable_,
171- its resolved value is defined by _variable resolution_.
171+ its _resolved value_ is defined by _variable resolution_.
172172An implementation MAY perform additional processing
173173when resolving the value of an _expression_
174174that consists only of a _variable_.
@@ -187,9 +187,9 @@ that consists only of a _variable_.
187187> the pattern included the function ` :datetime ` with some set of default options.
188188
189189Else, the _expression_ consists of a _literal_.
190- Its resolved value is defined by _literal resolution_.
190+ Its _resolved value_ is defined by _literal resolution_.
191191
192- > **Note**
192+ > [!NOTE]
193193> This means that a _literal_ value with no _annotation_
194194> is always treated as a string.
195195> To represent values that are not strings as a _literal_,
@@ -204,13 +204,13 @@ Its resolved value is defined by _literal resolution_.
204204
205205### Literal Resolution
206206
207- The resolved value of a _text_ or a _literal_ is
207+ The _resolved value_ of a _text_ or a _literal_ contains
208208the character sequence of the _text_ or _literal_
209209after any character escape has been converted to the escaped character.
210210
211211When a _literal_ is used as an _operand_
212212or on the right-hand side of an _option_,
213- the formatting function MUST treat its resolved value the same
213+ the formatting function MUST treat its _resolved value_ the same
214214whether its value was originally _quoted_ or _unquoted_.
215215
216216> For example,
@@ -222,7 +222,7 @@ The resolution of a _text_ or _literal_ MUST resolve to a string.
222222
223223To resolve the value of a _variable_,
224224its _name_ is used to identify either a local variable or an input variable.
225- If a _declaration_ exists for the _variable_, its resolved value is used.
225+ If a _declaration_ exists for the _variable_, its _resolved value_ is used.
226226Otherwise, the _variable_ is an implicit reference to an input value,
227227and its value is looked up from the _formatting context_ _input mapping_.
228228
@@ -254,11 +254,11 @@ the following steps are taken:
254254
255255 - The current _locale_.
256256 - The resolved mapping of _options_.
257- - If the _expression_ includes an _operand_, its resolved value .
257+ - If the _expression_ includes an _operand_, its _resolved value_ .
258258
259259 The form that resolved _operand_ and _option_ values take is implementation-defined.
260260
261- A _declaration_ binds the resolved value of an _expression_
261+ A _declaration_ binds the _resolved value_ of an _expression_
262262 to a _variable_.
263263 Thus, the result of one _function_ is potentially the _operand_
264264 of another _function_,
@@ -269,7 +269,7 @@ the following steps are taken:
269269 .local $n1 = {$n :number maximumFractionDigits = 3 }
270270 ```
271271 the value bound to ` $n ` is the
272- resolved value used as the _ operand_
272+ _ resolved value _ used as the _ operand_
273273 of the ` :number ` _ function_
274274 when resolving the value of the _ variable_ ` $n1 ` .
275275
@@ -287,7 +287,7 @@ the following steps are taken:
287287 for implementations of functions
288288 such that ` U ` can be coerced to ` T ` .
289289 Implementations of a _ function_ SHOULD emit a
290- _ Bad Operand_ error for _ operands_ whose resolved value
290+ _ Bad Operand_ error for _ operands_ whose _ resolved value _
291291 or type is not supported.
292292
293293> [ !NOTE]
@@ -351,7 +351,7 @@ the following steps are taken:
351351 _operand_ did not match that expected by the _function_,
352352 the _function_ might cause a _Bad Operand_ error to be emitted.
353353
354- In all failure cases, use the _fallback value_ for the _expression_ as the resolved value .
354+ In all failure cases, use the _fallback value_ for the _expression_ as its _resolved value_ .
355355
356356#### Option Resolution
357357
@@ -361,7 +361,7 @@ For each _option_:
361361
362362- Resolve the _identifier_ of the _option_.
363363- If the _option_'s right-hand side successfully resolves to a value,
364- bind the _identifier_ of the _option_ to the resolved value in the mapping.
364+ bind the _identifier_ of the _option_ to the _resolved value_ in the mapping.
365365- Otherwise, bind the _identifier_ of the _option_ to an unresolved value in the mapping.
366366 Implementations MAY later remove this value before calling the _function_.
367367 (Note that an _Unresolved Variable_ error will have been emitted.)
@@ -374,7 +374,7 @@ This mapping can be empty.
374374
375375Unlike _functions_, the resolution of _markup_ is not customizable.
376376
377- The resolved value of _markup_ includes the following fields:
377+ The _resolved value_ of _markup_ includes the following fields:
378378
379379- The type of the markup: open, standalone, or close
380380- The _identifier_ of the _markup_
@@ -384,7 +384,7 @@ The resolution of _markup_ MUST always succeed.
384384
385385### Fallback Resolution
386386
387- A **_<dfn>fallback value</dfn>_** is the resolved value for an _expression_ that fails to resolve.
387+ A **_<dfn>fallback value</dfn>_** is the _resolved value_ for an _expression_ that fails to resolve.
388388
389389An _expression_ fails to resolve when:
390390
@@ -547,17 +547,17 @@ or if this is not available or empty, the U+FFFD REPLACEMENT CHARACTER `�`.
547547
548548First, resolve the values of each _selector_:
549549
550- 1. Let `res` be a new empty list of resolved values that support selection.
550+ 1. Let `res` be a new empty list of _resolved values_ that support selection.
5515511. For each _selector_ `sel`, in source order,
552- 1. Let `rv` be the resolved value of `sel`.
552+ 1. Let `rv` be the _resolved value_ of `sel`.
553553 1. If selection is supported for `rv`:
554554 1. Append `rv` as the last element of the list `res`.
555555 1. Else:
556- 1. Let `nomatch` be a resolved value for which selection always fails.
556+ 1. Let `nomatch` be a _resolved value_ for which selection always fails.
557557 1. Append `nomatch` as the last element of the list `res`.
558558 1. Emit a _Bad Selector_ error.
559559
560- The form of the resolved values is determined by each implementation,
560+ The form of the _resolved values_ is determined by each implementation,
561561along with the manner of determining their support for selection.
562562
563563### Resolve Preferences
@@ -571,9 +571,9 @@ Next, using `res`, resolve the preferential order for all message keys:
571571 1. Let `key` be the `var` key at position `i`.
572572 1. If `key` is not the catch-all key `'*'`:
573573 1. Assert that `key` is a _literal_.
574- 1. Let `ks` be the resolved value of `key`.
574+ 1. Let `ks` be the _resolved value_ of `key`.
575575 1. Append `ks` as the last element of the list `keys`.
576- 1. Let `rv` be the resolved value at index `i` of `res`.
576+ 1. Let `rv` be the _resolved value_ at index `i` of `res`.
577577 1. Let `matches` be the result of calling the method MatchSelectorKeys(`rv`, `keys`)
578578 1. Append `matches` as the last element of the list `pref`.
579579
@@ -597,7 +597,7 @@ filter the list of _variants_ to the ones that match with some preference:
597597 1. If `key` is the catch-all key `'*'`:
598598 1. Continue the inner loop on `pref`.
599599 1. Assert that `key` is a _literal_.
600- 1. Let `ks` be the resolved value of `key`.
600+ 1. Let `ks` be the _resolved value_ of `key`.
601601 1. Let `matches` be the list of strings at index `i` of `pref`.
602602 1. If `matches` includes `ks`:
603603 1. Continue the inner loop on `pref`.
@@ -623,7 +623,7 @@ Finally, sort the list of variants `vars` and select the _pattern_:
623623 1. Let `key` be the `tuple` _variant_ key at position `i`.
624624 1. If `key` is not the catch-all key `'*'`:
625625 1. Assert that `key` is a _literal_.
626- 1. Let `ks` be the resolved value of `key`.
626+ 1. Let `ks` be the _resolved value_ of `key`.
627627 1. Let `matchpref` be the integer position of `ks` in `matches`.
628628 1. Set the `tuple` integer value as `matchpref`.
629629 1. Set `sortable` to be the result of calling the method `SortVariants(sortable)`.
@@ -769,7 +769,7 @@ one {{Category match for {$count}}}
769769After _pattern selection_,
770770each _text_ and _placeholder_ part of the selected _pattern_ is resolved and formatted.
771771
772- Resolved values cannot always be formatted by a given implementation.
772+ _Resolved values_ cannot always be formatted by a given implementation.
773773When such an error occurs during _formatting_,
774774an implementation SHOULD emit an appropriate _Message Function Error_ and produce a
775775_fallback value_ for the _placeholder_ that produced the error.
@@ -780,8 +780,8 @@ appropriate data type or structure. Some examples of these include:
780780
781781- A single string concatenated from the parts of the resolved _pattern_.
782782- A string with associated attributes for portions of its text.
783- - A flat sequence of objects corresponding to each resolved value .
784- - A hierarchical structure of objects that group spans of resolved values ,
783+ - A flat sequence of objects corresponding to each _resolved value_ .
784+ - A hierarchical structure of objects that group spans of _resolved values_ ,
785785 such as sequences delimited by _markup-open_ and _markup-close_ _placeholders_.
786786
787787Implementations SHOULD provide _formatting_ result types that match user needs,
@@ -890,7 +890,7 @@ The _Default Bidi Strategy_ is defined as follows:
890890 These correspond to the message having left-to-right directionality,
891891 right-to-left directionality, and to the message's directionality not being known.
8928921. For each _expression_ `exp` in _pattern_:
893- 1. Let `fmt` be the formatted string representation of the resolved value of `exp`.
893+ 1. Let `fmt` be the formatted string representation of the _resolved value_ of `exp`.
894894 1. Let `dir` be the directionality of `fmt`,
895895 one of « `'LTR'`, `'RTL'`, `'unknown'` », with the same meanings as for `msgdir`.
896896 1. If `dir` is `'LTR'`:
0 commit comments