Skip to content

Commit

Permalink
CLDR-17113 kbd display output= and display= should support variables
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Oct 9, 2023
1 parent e9c3971 commit c386a76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/ldml/tr35-keyboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ _Attribute:_ `output` (optional)
> Specifies the character or character sequence from the `keys/key` element that is to have a special display.
> This attribute may be escaped with `\u` notation, see [Escaping](#Escaping).
> The `output` attribute may also contain the `\m{…}` syntax to reference a marker. See [Markers](#markers). Implementations may highlight a displayed marker, such as with a lighter text color, or a yellow highlight.
> String variables may be substituted. See [String variables](#element-string)
_Attribute:_ `id` (optional)

Expand All @@ -1083,6 +1084,8 @@ _Attribute:_ `display` (required)

> Required and specifies the character sequence that should be displayed on the keytop for any key that generates the `@output` sequence or has the `@id`. (It is an error if the value of the `display` attribute is the same as the value of the `output` attribute, this would be an extraneous entry.)
> String variables may be substituted. See [String variables](#element-string)
This attribute may be escaped with `\u` notation, see [Escaping](#Escaping).

**Example**
Expand Down Expand Up @@ -1470,6 +1473,7 @@ _Attribute:_ `value` (required)
<string id="cluster_hi" value="हि" /> <!-- a string -->
<string id="zwnj" value="\u{200C}"/> <!-- single codepoint -->
<string id="acute" value="\m{acute}"/> <!-- refer to a marker -->
<string id="backquote" value="`"/>
<string id="zwnj_acute" value="${zwnj}${acute}" /> <!-- Combine two variables -->
<string id="zwnj_sp_acute" value="${zwnj}\u{0020}${acute}" /> <!-- Combine two variables -->
</variables>
Expand All @@ -1487,7 +1491,7 @@ These may be then used in multiple contexts:
<key id="acute_key" output="${acute}" />
<!-- Display ´ instead of the non-displayable marker -->
<display output="${acute}" display="´" />
<display output="${acute}" display="${backquote}" />
```

* * *
Expand Down

0 comments on commit c386a76

Please sign in to comment.