Skip to content

Commit 087bd0d

Browse files
committed
Call it a namespace
1 parent 6c20950 commit 087bd0d

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

spec/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
1. [Data Model Errors](errors.md#data-model-errors)
1717
1. [Resolution Errors](errors.md#resolution-errors)
1818
1. [Message Function Errors](errors.md#message-function-errors)
19-
1. [Default Function Registry](registry/default.md)
20-
1. [`u:` Unicode Registry](registry/unicode.md)
19+
1. [Default Function Registry](registry.md)
20+
1. [`u:` Namespace](u-namespace.md)
2121
1. [Formatting](formatting.md)
2222
1. [Interchange data model](data-model/README.md)
2323

spec/formatting.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,8 @@ the following steps are taken:
267267
potentially including a fallback chain of locales.
268268
- The base directionality of the _message_ and its _text_ tokens.
269269
270-
If the resolved mapping of _options_ includes any `u:` options
271-
supported by the implementation,
272-
process them as specified in the [Unicode Registry](/spec/registry/unicode.md).
270+
If the resolved mapping of _options_ includes any _`u:` options_
271+
supported by the implementation, process them as specified.
273272
Such `u:` options MAY be removed from the resolved mapping of _options_.
274273
275274
5. Call the function implementation with the following arguments:
@@ -357,9 +356,8 @@ The _resolved value_ of _markup_ includes the following fields:
357356
- The _identifier_ of the _markup_
358357
- The resolved _options_ values after _option resolution_.
359358
360-
If the resolved mapping of _options_ includes any `u:` options
361-
supported by the implementation,
362-
process them as specified in the [Unicode Registry](/spec/registry/unicode.md).
359+
If the resolved mapping of _options_ includes any _`u:` options_
360+
supported by the implementation, process them as specified.
363361
Such `u:` options MAY be removed from the resolved mapping of _options_.
364362
365363
The resolution of _markup_ MUST always succeed.
File renamed without changes.

spec/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ whether an _operand_ is required,
525525
what form the values of an _operand_ can take,
526526
what _options_ and _option_ values are acceptable,
527527
and what outputs might result.
528-
See [function registry](/spec/registry/default.md) for more information.
528+
See [function registry](./registry.md) for more information.
529529
530530
A _function_ starts with a prefix sigil `:` followed by an _identifier_.
531531
The _identifier_ MAY be followed by one or more _options_.

spec/registry/unicode.md renamed to spec/u-namespace.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# MessageFormat 2.0 Unicode Registry
1+
# MessageFormat 2.0 Unicode Namespace
22

33
The `u:` namespace is reserved for use by the Unicode Consortium.
44

55
## Options
66

7-
This section describes common options which each implementation SHOULD support
7+
This section describes common **_<dfn>`u:` options</dfn>_** which each implementation SHOULD support
88
for all _functions_ and _markup_.
99

1010
### `u:id`

test/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ These test files are intended to be useful for testing multiple different messag
1010
- `data-model-errors.json` - Strings that should produce a Data Model Error when processed.
1111
Error names are defined in ["MessageFormat 2.0 Errors"](../spec/errors.md) in the spec.
1212

13-
- `unicode.md` — Test cases for the `u:` Unicode Registry, using built-in functions.
13+
- `u-options.md` — Test cases for the `u:` options, using built-in functions.
1414

1515
- `functions/` — Test cases that correspond to built-in functions.
1616
The behaviour of the built-in formatters is implementation-specific so the `exp` field is often
@@ -23,6 +23,7 @@ Some examples of test harnesses using these tests, from the source repository:
2323
- [Formatting tests](https://github.com/messageformat/messageformat/blob/11c95dab2b25db8454e49ff4daadb817e1d5b770/packages/mf2-messageformat/src/messageformat.test.ts)
2424

2525
A [JSON schema](./schemas/) is included for the test files in this repository.
26+
2627
## Error Codes
2728

2829
The following table relates the error names used in the [JSON schema](./schemas/)

test/tests/unicode.json renamed to test/tests/u-options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/unicode-org/message-format-wg/main/test/schemas/v0/tests.schema.json",
3-
"scenario": "Unicode u: Registry",
3+
"scenario": "u: Options",
44
"description": "Common options affecting the function context",
55
"defaultTestProperties": {
66
"locale": "en-US"

0 commit comments

Comments
 (0)