Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare design doc ahead of balloting #506

Merged
merged 4 commits into from
Oct 30, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Status: **Proposed**
<dd>2023-09-13</dd>
<dt>Pull Request</dt>
<dd><a href="https://github.com/unicode-org/message-format-wg/pull/474">#474</a></dd>
<dd><a href="https://github.com/unicode-org/message-format-wg/pull/503">#503</a></dd>
</dl>
</details>

Expand Down Expand Up @@ -150,10 +151,10 @@ Currently the syntax uses the first alternative below.
There are five candidates for handling the boundaries between code and patterns:

1. Always quote non-simple patterns (current design)
2. Never quote patterns (all whitespace is significant)
2. ~~Never quote patterns (all whitespace is significant)~~
3. Permit non-simple patterns to be quoted and trim unquoted whitespace
4. Trim all unquoted whitespace, but do not permit quoting non-simple patterns
5. Selectively trim patterns (all whitespace is otherwise significant)
5. ~~Selectively trim patterns (all whitespace is otherwise significant)~~

### Always Quote

Expand Down Expand Up @@ -183,6 +184,9 @@ Cons:

### Never Quote Patterns

> [!IMPORTANT]
> This option was rejected by the working group in the 2023-10-30 call.

In this alternative, all non-code whitespace is significant.
We have to use a slightly different syntax in the example, so that
the boundary between code and pattern works.
Expand Down Expand Up @@ -264,6 +268,9 @@ Cons:

### Selective Trimming

> [!IMPORTANT]
> This option was rejected by the working group in the 2023-10-30 call.

In this alternative, only specific whitespace is automatically trimmed
and the whitespace can be omitted.
This is similar to "Never Quote Patterns" in that all whitespace
Expand Down Expand Up @@ -536,4 +543,4 @@ characters (including line breaks, control characters, etc.) and rely upon escap
in those outer formats to aid human comprehension (e.g., depending upon container
format, a U+000A LINE FEED might be represented as `\n`, `\012`, `\x0A`, `\u000A`,
`\U0000000A`, `&#xA;`, `&NewLine;`, `%0A`, `<LF>`, or something else entirely).
</details>
</details>