Skip to content

Commit

Permalink
CLDR-18318 kbd: update spec and EBNF for escaping
Browse files Browse the repository at this point in the history
- review comments

Co-authored-by: Marc Durdin <[email protected]>
  • Loading branch information
srl295 and mcdurdin authored Feb 20, 2025
1 parent 21ff721 commit 3d571fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docs/ldml/tr35-keyboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -2213,8 +2213,9 @@ _Attribute:_ `from` (required)
However, they are required to be escaped in keyboard transforms, to avoid confusion or problems with characters which are syntax in regular expressions.

Sequences not listed here as **Fixed Character Classes** nor as **Escapes** are disallowed.
For example, `\0` (octal escape) and `\1` (backreference) are not allowed.
`\a` is not defined as a character class and is also disallowed.
For example:
* `\0` (octal escape) and `\1` (backreference) are not allowed.
* `\a` is not defined as a character class and is also disallowed.

- **Character classes**

Expand All @@ -2232,7 +2233,7 @@ _Attribute:_ `from` (required)

`{x,y}`

`x` and `y` are required single digits (`1` to `9`) representing the minimum and maximum number of occurrences.
`x` and `y` are required single digits (`0` to `9`) representing the minimum and maximum number of occurrences.

`x` must be ≥ 0, `y` must be ≥ x and ≥ 1.

Expand Down
2 changes: 1 addition & 1 deletion docs/ldml/tr35.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ The LDML specification is divided into the following parts:

## <a name="Introduction" href="#Introduction">Introduction</a>

Not long ago, computer systems were like separate worlds, isolated from one another. The internet and related events have changed all that. A single system can be built of many different compFonents, hardware and software, all needing to work together. Many different technologies have been important in bridging the gaps; in the internationalization arena, Unicode has provided a lingua franca for communicating textual data. However, there remain differences in the locale data used by different systems.
Not long ago, computer systems were like separate worlds, isolated from one another. The internet and related events have changed all that. A single system can be built of many different components, hardware and software, all needing to work together. Many different technologies have been important in bridging the gaps; in the internationalization arena, Unicode has provided a lingua franca for communicating textual data. However, there remain differences in the locale data used by different systems.

The best practice for internationalization is to store and communicate language-neutral data, and format that data for the client. This formatting can take place on any of a number of the components in a system; a server might format data based on the user's locale, or it could be that a client machine does the formatting. The same goes for parsing data, and locale-sensitive analysis of data.

Expand Down

0 comments on commit 3d571fa

Please sign in to comment.