Skip to content

Commit

Permalink
CLDR-17141 kbd: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Durdin <[email protected]>
(cherry picked from commit 85e182e in #3335)
  • Loading branch information
srl295 committed Oct 11, 2023
1 parent 1a52361 commit 5ac7c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ldml/tr35-keyboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ One strategy would be to use a marker, which won’t be visible in the output, b
</keys>
<transforms>
<!-- this wouldn't match the key X output because of the marker -->
<!-- this wouldn't match the key caret output because of the marker -->
<transform from="^e" output="ê"/>
</transforms>
```
Expand All @@ -1754,7 +1754,7 @@ Another strategy might be to use a marker to indicate where transforms are desir
</transforms>
```

In this way, only the `X`, `e` keys will produce `^e` with a _transform_ marker (again, any name could be used) which will cause the transform to be applied. One benefit is that clicking or using the arrow key to navigate existing text with `^e` will never be affected by the transform, because the marker is not or no longer present.
In this way, only the `X`, `e` keys will produce `^e` with a _transform_ marker (again, any name could be used) which will cause the transform to be applied. One benefit is that navigating to an existing `^` in a document and adding an `e` will result in `^e`, and this output will not be affected by the transform, because there will be no marker present there (remember that markers are not stored with the document but only recorded in memory temporarily during text input).

**Effect of markers on final text**

Expand Down

0 comments on commit 5ac7c53

Please sign in to comment.