Skip to content

Commit

Permalink
CLDR-12026 kbd: fr: currency layer working
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Mar 23, 2024
1 parent 527447a commit fba0936
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions keyboards/3.0/fr-t-k0-optimise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
<key id="dagger" output="" />
<key id="asym-equal" output="" />
<key id="Ss" output="" />
<!-- interestingly, this key has no output by itself, but is U+00A4 when preceded by the currency mark. -->
<key id="altshifte" output="\m{altshifte}"/>
</keys>

<layers formId="iso">
Expand Down Expand Up @@ -155,7 +157,7 @@
<layer modifiers="ctrl alt shift">
<row
keys="mark-circumflex A-grave E-acute E-grave E-caret mark-doubleacute mark-doublegrave gap em-dash open-angle-quote close-angle-quote mark-ring gap" />
<row keys="Ae gap gap gap tm gap U-grave mark-dotbelow Oe permille nb-hyphen dbl-dagger" />
<row keys="Ae gap altshifte gap tm gap U-grave mark-dotbelow Oe permille nb-hyphen dbl-dagger" />
<row keys="Theta Ss gap gap gap mark-submacron gap gap gap gap radix vulgar-quarter" />
<row
keys="greater-equal Ezh gap C-cedilla mark-ogonek gap gap gap mark-comma gap not-equal" />
Expand All @@ -177,8 +179,13 @@
<set id="vowel" value="a e i o u A E I O U" />

<!-- currency key from/to -->
<set id="currfrom" value="y"/> <!-- TODO: others -->
<set id="currto" value="¥"/>
<!-- currency key from/to -->
<set id="currfrom" value="e r t y p s d f g h k l m w c b n A R T P S D F L M C B"/>
<set id="currto" value="₠ ₽ ₸ ¥ ₱ ₪ ₫ ƒ ₲ ₴ ₭ ₺ ₥ ₩ ¢ ₿ ₦ ₳ ₹ ₮ ₧ ₷ ₯ ₣ ₤ ℳ ₡ ﺀ"/>

<!-- <row keys="a z e r t y u i o p hyphen plus" />
<row keys="q s d f g h j k l m slash asterisk" />
<row keys="open-angle w x c v b n period comma colon semi-colon" /> -->

<!-- greek from/to: deviating from spec, uppercase final sigma (X) is encoded as another Σ -->
<set id="greekfrom" value="a z e r u i o p s d g h j k l m x b n A Z E R U I O P S D G H J K L M X B N" />
Expand All @@ -200,6 +207,15 @@
<transform from="\m{greek}($[greekfrom])" to="$[1:greekto]" />
<transform from="\m{euro}($[eurofrom])" to="$[1:euroto]" />

<!-- these are harder to see because they are from AltGr and AltGr+Shift layers -->
<transform from="\m{currency}®" to=""/> <!-- AltGr-R -->
<transform from="\m{currency}%" to=""/> <!-- AltGr-P -->
<transform from="\m{currency}\|" to=""/> <!-- AltGr-L -->
<transform from="\m{currency}∞" to=""/> <!-- AltGr-M -->
<transform from="\m{currency}ç" to=""/> <!-- AltGr-C -->
<transform from="\m{currency}\m{altshifte}" to="¤"/> <!-- AltGr-Shift-E -->
<transform from="\m{currency}Ç" to=""/> <!-- AltGr-Shift-C -->

<!-- tilde is on a subset, not all vowels, + n -->
<transform from="\m{tilde}a" to="ã" />
<transform from="\m{tilde}A" to="Ã" />
Expand Down

0 comments on commit fba0936

Please sign in to comment.