|
2 | 2 |
|
3 | 3 | ## Introduction
|
4 | 4 |
|
5 |
| -This document defines the behaviour of a MessageFormat 2.0 implementation |
| 5 | +This document defines the behavior of a MessageFormat 2.0 implementation |
6 | 6 | when formatting a message for display in a user interface, or for some later processing.
|
7 | 7 |
|
8 |
| -To start, we presume that a _message_ has either been parsed from its syntax |
9 |
| -or created from a data model description. |
10 |
| -If this construction has encountered any _Syntax Errors_ or _Data Model Errors_, |
11 |
| -an appropriate error MUST be emitted and a _fallback value_ MAY be used as the formatting result. |
| 8 | +To start, parse the _message_ from its syntax or create it from a data model description. |
| 9 | + |
| 10 | +If the message being formatted has any _Syntax Errors_ or _Data Model Errors_, |
| 11 | +the result of formatting the _message_ MUST be a pattern resolving to a single _fallback value_ |
| 12 | +using the message's fallback string defined in the _formatting context_ |
| 13 | +or if this is not available or empty, the U+FFFD REPLACEMENT CHARACTER `�`. |
12 | 14 |
|
13 | 15 | Formatting of a _message_ is defined by the following operations:
|
14 | 16 |
|
@@ -495,11 +497,6 @@ This selection method is defined in more detail below.
|
495 | 497 | An implementation MAY use any pattern selection method,
|
496 | 498 | as long as its observable behavior matches the results of the method defined here.
|
497 | 499 |
|
498 |
| -If the message being formatted has any _Syntax Errors_ or _Data Model Errors_, |
499 |
| -the result of pattern selection MUST be a pattern resolving to a single _fallback value_ |
500 |
| -using the message's fallback string defined in the _formatting context_ |
501 |
| -or if this is not available or empty, the U+FFFD REPLACEMENT CHARACTER `�`. |
502 |
| -
|
503 | 500 | ### Resolve Selectors
|
504 | 501 |
|
505 | 502 | First, resolve the values of each _selector_:
|
|
0 commit comments