Skip to content

Commit

Permalink
CLDR-12026 remove irrelevant stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Sep 7, 2023
1 parent db577d0 commit dadb65c
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions keyboards/3.0/fr-t-k0-optimise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,46 +165,18 @@
<string id="umlaut" value="¨" />
<string id="tilde" value="~" />

<!-- sets representing vowels and accented vowels. -->
<!-- There's an extra space between the lower and upper case for visual separation -->
<!-- but, there are only 10 items in the following four sets -->
<set id="vowel" value="a e i o u A E I O U" />
<set id="graveVowel" value="à è ì ò ù À È Ì Ò Ù" />
<set id="caretVowel" value="â ê î ô û Â Ê Î Ô Û" />
<set id="umlautVowel" value="ä ë ï ö ü Ä Ë Ï Ö Ü" />

<!-- a set containing all spacing accents -->
<set id="spacing_accent" value="${grave} ${caret} ${umlaut} ${tilde}" />
</variables>

<transforms type="simple">
<transformGroup>
<!-- use sets for those that fit neatly into sets -->
<transform from="${grave}($[vowel])" to="$[1:graveVowel]" />
<transform from="${caret}($[vowel])" to="$[1:caretVowel]" />
<transform from="${umlaut}($[vowel])" to="$[1:umlautVowel]" />

<!-- y also takes umlaut (in this sample) -->
<transform from="${umlaut}y" to="ÿ" />

<!-- tilde is on a subset, not all vowels, + n -->
<transform from="${tilde}a" to="ã" />
<transform from="${tilde}A" to="Ã" />
<transform from="${tilde}n" to="ñ" />
<transform from="${tilde}N" to="Ñ" />
<transform from="${tilde}o" to="õ" />
<transform from="${tilde}O" to="Õ" />

<!-- accent + space = spacing accent -->
<transform from="($[spacing_accent]) " to="$1" />
</transformGroup>
<transformGroup>
<!-- this is a reorder group -->
<!-- nod-Lana partial example -->
<reorder from="\u1A60" order="127" />
<reorder from="\u1A6B" order="42" />
<reorder from="[\u1A75-\u1A79]" order="55" />
<!-- ... partial example ... -->
<transform from="\m{grave}($[vowel])" to="$[1:graveVowel]" />
<transform from="\m{caret}($[vowel])" to="$[1:caretVowel]" />
<transform from="\m{umlaut}($[vowel])" to="$[1:umlautVowel]" />
</transformGroup>
</transforms>
</keyboard>

0 comments on commit dadb65c

Please sign in to comment.