Skip to content

Commit d83b098

Browse files
authored
Fix formatting (LDML45 cleanup) (#764)
* Fix formatting * Fix @srl295's name * Missing 'dfn' for bidi strategy * Add 'dfn' to dynamic message * Minor formatting fix * Add missing 'dfn'
1 parent f41c7d7 commit d83b098

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

spec/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
## Introduction
2626

2727
One of the challenges in adapting software to work for
28-
users with different languages and cultures is the need for **_dynamic messages_**.
28+
users with different languages and cultures is the need for **_<dfn>dynamic messages</dfn>_**.
2929
Whenever a user interface needs to present data as part of a larger string,
3030
that data needs to be formatted (and the message may need to be altered)
3131
to make it culturally accepted and grammatically correct.

spec/appendices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Tim Chevalier,
6060
Mihai Niță,
6161
Shane F. Carr,
6262
Mark Davis,
63-
Stephen R. Loomis,
63+
Steven R. Loomis,
6464
Caleb Maclennan,
6565
David Filip,
6666
Daniel Minor,

spec/formatting.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ an appropriate error MUST be emitted and a _fallback value_ MAY be used as the f
1212

1313
Formatting of a _message_ is defined by the following operations:
1414

15-
- **_Expression and Markup Resolution_** determines the value of an _expression_ or _markup_,
15+
- **_<dfn>Expression and Markup Resolution</dfn>_** determines the value of an _expression_ or _markup_,
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.
@@ -39,15 +39,15 @@ Formatting of a _message_ is defined by the following operations:
3939
> have already been evaluated in the order in which the relevant _declarations_
4040
> and _selectors_ appear in the _message_.
4141
42-
- **_Pattern Selection_** determines which of a message's _patterns_ is formatted.
42+
- **_<dfn>Pattern Selection</dfn>_** determines which of a message's _patterns_ is formatted.
4343
For a message with no _selectors_, this is simple as there is only one _pattern_.
4444
With _selectors_, this will depend on their resolution.
4545

4646
At the start of _pattern selection_,
4747
if the _message_ contains any _reserved statements_,
4848
emit an _Unsupported Statement_ error.
4949

50-
- **_Formatting_** 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.
@@ -60,7 +60,7 @@ and the observable behavior of the formatter matches that described here.
6060

6161
## Formatting Context
6262

63-
A message's **_formatting context_** represents the data and procedures that are required
63+
A message's **_<dfn>formatting context</dfn>_** represents the data and procedures that are required
6464
for the message's _expression resolution_, _pattern selection_ and _formatting_.
6565

6666
At a minimum, it includes:
@@ -348,7 +348,7 @@ The resolution of _markup_ MUST always succeed.
348348
349349
### Fallback Resolution
350350
351-
A **_fallback value_** is the resolved value for an _expression_ that fails to resolve.
351+
A **_<dfn>fallback value</dfn>_** is the resolved value for an _expression_ that fails to resolve.
352352
353353
An _expression_ fails to resolve when:
354354
@@ -833,10 +833,10 @@ isolating such parts to ensure that the formatted value displays correctly in a
833833
>
834834
> ![image](https://github.com/unicode-org/message-format-wg/assets/69082/6cc7f16f-8d9b-400b-a333-ae2ddb316edb)
835835
836-
A **_bidirectional isolation strategy_** is functionality in the formatter's
836+
A **_<dfn>bidirectional isolation strategy<dfn>_** is functionality in the formatter's
837837
processing of a _message_ that produces bidirectional output text that is ready for display.
838838
839-
The **_Default Bidi Strategy_** is a _bidirectional isolation strategy_ that uses
839+
The **_<dfn>Default Bidi Strategy<dfn>_** is a _bidirectional isolation strategy_ that uses
840840
isolating Unicode control characters around _placeholder_'s formatted values.
841841
It is primarily intended for use in plain-text strings, where markup or other mechanisms
842842
are not available.

spec/syntax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ _Duplicate Declaration_ error during processing:
197197
A _local-declaration_ MAY overwrite an external input value as long as the
198198
external input value does not appear in a previous _declaration_.
199199

200-
> [!Note]
200+
> [!NOTE]
201201
> These restrictions only apply to _declarations_.
202202
> A _placeholder_ or _selector_ can apply a different annotation to a _variable_
203203
> than one applied to the same _variable_ named in a _declaration_.
@@ -226,7 +226,7 @@ reserved-statement = reserved-keyword [s reserved-body] 1*([s] expression)
226226
reserved-keyword = "." name
227227
```
228228
229-
> [!Note]
229+
> [!NOTE]
230230
> The `reserved-keyword` ABNF rule is a simplification,
231231
> as it MUST NOT be considered to match any of the existing keywords
232232
> `.input`, `.local`, or `.match`.
@@ -619,7 +619,7 @@ private-use-annotation = private-start [[s] reserved-body]
619619
private-start = "^" / "&"
620620
```
621621
622-
> [!Note]
622+
> [!NOTE]
623623
> Users are cautioned that _private-use annotations_ cannot be reliably exchanged
624624
> and can result in errors during formatting.
625625
> It is generally a better idea to use the function registry
@@ -719,7 +719,7 @@ on the pairing, ordering, or contents of _markup_ during _formatting_.
719719
720720
## Attributes
721721
722-
**_Attributes_ are reserved for standardization by future versions of this specification.**
722+
**_Attributes_ are reserved for standardization by future versions of this specification._**
723723
Examples in this section are meant to be illustrative and
724724
might not match future requirements or usage.
725725

0 commit comments

Comments
 (0)