<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!-- French (Qwerty-Lafayette)
  File          : qwerty-l.keylayout
  Project page  : https://github.com/fabi1cazenave/qwerty-lafayette
  Author        : Fabien Cazenave
  Version       : 0.8.0
  Last change   : 2023-01-22
  License       : WTFPL - Do What The Fuck You Want Public License
  Reference     : http://developer.apple.com/library/mac/#technotes/tn2002/tn2056.html

  Logical layer (Apple keycodes)
  ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━━┓
  │ `   │ 1   │ 2   │ 3   │ 4   │ 5   │ 6   │ 7   │ 8   │ 9   │ 0   │ -   │ =   ┃          ┃
  │  50 │  18 │  19 │  20 │  21 │  23 │  22 │  26 │  28 │  25 │  29 │  27 │  24 ┃ ⌫        ┃
  ┢━━━━━┷━━┱──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┺━━┳━━━━━━━┫
  ┃        ┃ Q   │ W   │ E   │ R   │ T   │ Y   │ U   │ I   │ O   │ P   │ [   │ ]   ┃       ┃
  ┃ ↹      ┃  12 │  13 │  14 │  15 │  17 │  16 │  32 │  34 │  31 │  35 │  33 │  30 ┃       ┃
  ┣━━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓  ⏎   ┃
  ┃         ┃ A   │ S   │ D   │ F   │ G   │ H   │ J   │ K   │ L   │ ;   │ '   │ \   ┃      ┃
  ┃ ⇬       ┃   0 │   1 │   2 │   3 │   5 │   4 │  38 │  40 │  37 │  41 │  39 │  42 ┃      ┃
  ┣━━━━━━┳━━┹──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┲━━┷━━━━━┻━━━━━━┫
  ┃      ┃ <   │ Z   │ X   │ C   │ V   │ B   │ N   │ M   │ ,   │ .   │ /   ┃               ┃
  ┃ ⇧    ┃  10 │   6 │   7 │   8 │   9 │  11 │  45 │  46 │  43 │  47 │  44 ┃ ⇧             ┃
  ┣━━━━━━┻┳━━━━┷━━┳━━┷━━━━┱┴─────┴─────┴─────┴─────┴─────┴─┲━━━┷━━━┳━┷━━━━━╋━━━━━━━┳━━━━━━━┫
  ┃       ┃       ┃       ┃                                ┃       ┃       ┃       ┃       ┃
  ┃ Ctrl  ┃ super ┃ Alt   ┃                             49 ┃ AltGr ┃ super ┃ menu  ┃ Ctrl  ┃
  ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┻━━━━━━━┛

  Base+Option layers
  ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━━┓
  │ ~*~ │ !   │ @ ⁽ │ # ⁾ │ $*´ │ %*¨ │ ^*^ │ & ⁷ │ * ⁸ │ ( ⁹ │ ) ÷ │ _   │ +   ┃          ┃
  │ `*` │ 1 ! │ 2 ( │ 3 ) │ 4 ' │ 5 " │ 6*¤ │ 7 7 │ 8 8 │ 9 9 │ 0 / │ -   │ =   ┃ ⌫        ┃
  ┢━━━━━┷━━┱──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┺━━┳━━━━━━━┫
  ┃        ┃ Q ≠ │ W   │ E   │ R — │ T ± │ Y   │ U ⁴ │ I ⁵ │ O ⁶ │ P × │ «   │ »   ┃       ┃
  ┃ ↹      ┃   = │   < │   > │   - │   + │     │   4 │   5 │   6 │   * │*^*ˇ │*¨   ┃       ┃
  ┣━━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓  ⏎   ┃
  ┃         ┃ A   │ S   │ D   │ F   │ G   │ H   │ J ¹ │ K ² │ L ³ │** − │ "*˙ │ |   ┃      ┃
  ┃ ⇬       ┃   { │   [ │   ] │   } │   / │     │   1 │   2 │   3 │** - │ '*´ │ \   ┃      ┃
  ┣━━━━━━┳━━┹──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┲━━┷━━━━━┻━━━━━━┫
  ┃      ┃ >   │ Z*~ │ X*` │ C   │ V – │ B   │ N   │ M ⁰ │ ;*¸ │ :   │ ? ¬ ┃               ┃
  ┃ ⇧    ┃ <   │   ~ │   ` │   | │   _ │   \ │     │   0 │ , , │ . . │ / + ┃ ⇧             ┃
  ┣━━━━━━┻┳━━━━┷━━┳━━┷━━━━┱┴─────┴─────┴─────┴─────┴─────┴─┲━━━┷━━━┳━┷━━━━━╋━━━━━━━┳━━━━━━━┫
  ┃       ┃       ┃       ┃                                ┃       ┃       ┃       ┃       ┃
  ┃ Ctrl  ┃ super ┃ Alt   ┃ ␣                              ┃ AltGr ┃ super ┃ menu  ┃ Ctrl  ┃
  ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┻━━━━━━━┛
  -->
<keyboard group="0" id="0" name="French (Qwerty-Lafayette)" maxout="1">
  <layouts>
    <layout first="0" last="17" modifiers="commonModifiers" mapSet="ANSI" />
  </layouts>

  <modifierMap id="commonModifiers" defaultIndex="7">
    <keyMapSelect mapIndex="0">
      <modifier keys="" />
    </keyMapSelect>
    <keyMapSelect mapIndex="1"> <!-- shift -->
      <modifier keys="anyShift caps?" />
    </keyMapSelect>
    <keyMapSelect mapIndex="2"> <!-- caps -->
      <modifier keys="caps" />
    </keyMapSelect>
    <keyMapSelect mapIndex="3"> <!-- option -->
      <modifier keys="anyOption caps?" />
    </keyMapSelect>
    <keyMapSelect mapIndex="4"> <!-- option + shift -->
      <modifier keys="anyShift caps? anyOption command?" />
    </keyMapSelect>
    <keyMapSelect mapIndex="5"> <!-- command (copied from US-Qwerty) -->
      <modifier keys="anyShift? caps? command" />
    </keyMapSelect>
    <keyMapSelect mapIndex="6"> <!-- option + command (copied from US-Qwerty) -->
      <modifier keys="caps? anyOption command" />
    </keyMapSelect>
    <keyMapSelect mapIndex="7"> <!-- control -->
      <modifier keys="anyShift? anyOption? anyControl command? caps?" />
    </keyMapSelect>
  </modifierMap>

  <keyMapSet id="ANSI">
    <keyMap index="0">
      <!-- Digits -->
      <key code="18"  action="1" />
      <key code="19"  action="2" />
      <key code="20"  action="3" />
      <key code="21"  action="4" />
      <key code="23"  action="5" />
      <key code="22"  action="6" />
      <key code="26"  action="7" />
      <key code="28"  action="8" />
      <key code="25"  action="9" />
      <key code="29"  action="0" />

      <!-- Letters, first row -->
      <key code="12"  action="q" />
      <key code="13"  action="w" />
      <key code="14"  action="e" />
      <key code="15"  action="r" />
      <key code="17"  action="t" />
      <key code="16"  action="y" />
      <key code="32"  action="u" />
      <key code="34"  action="i" />
      <key code="31"  action="o" />
      <key code="35"  action="p" />

      <!-- Letters, second row -->
      <key code="0"   action="a" />
      <key code="1"   action="s" />
      <key code="2"   action="d" />
      <key code="3"   action="f" />
      <key code="5"   action="g" />
      <key code="4"   action="h" />
      <key code="38"  action="j" />
      <key code="40"  action="k" />
      <key code="37"  action="l" />
      <key code="41"  action="dead_1dk" />

      <!-- Letters, third row -->
      <key code="6"   action="z" />
      <key code="7"   action="x" />
      <key code="8"   action="c" />
      <key code="9"   action="v" />
      <key code="11"  action="b" />
      <key code="45"  action="n" />
      <key code="46"  action="m" />
      <key code="43"  action="," />
      <key code="47"  action="." />
      <key code="44"  action="/" />

      <!-- Pinky keys -->
      <key code="27"  action="-" />
      <key code="24"  action="=" />
      <key code="33"  action="dead_circumflex" />
      <key code="30"  action="dead_diaeresis" />
      <key code="39"  output="'" />
      <key code="50"  output="`" />
      <key code="42"  output="\" />
      <key code="10"  action="x003c" />

      <!-- Space bar -->
      <key code="49"  action="x0020" />

      <!-- Other keys -->
      <key code="36"  output="&#x000D;" />
      <key code="48"  output="&#x0009;" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="&#x001D;" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="&#x001C;" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="&#x001F;" />
      <key code="75"  output="/" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="&#x001E;" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>

    <!-- Shift -->
    <keyMap index="1">
      <!-- Digits -->
      <key code="18"  action="!" />
      <key code="19"  action="@" />
      <key code="20"  action="#" />
      <key code="21"  action="$" />
      <key code="23"  action="%" />
      <key code="22"  output="^" />
      <key code="26"  output="&#x0026;" />
      <key code="28"  action="*" />
      <key code="25"  action="(" />
      <key code="29"  action=")" />

      <!-- Letters, first row -->
      <key code="12"  action="Q" />
      <key code="13"  action="W" />
      <key code="14"  action="E" />
      <key code="15"  action="R" />
      <key code="17"  action="T" />
      <key code="16"  action="Y" />
      <key code="32"  action="U" />
      <key code="34"  action="I" />
      <key code="31"  action="O" />
      <key code="35"  action="P" />

      <!-- Letters, second row -->
      <key code="0"   action="A" />
      <key code="1"   action="S" />
      <key code="2"   action="D" />
      <key code="3"   action="F" />
      <key code="5"   action="G" />
      <key code="4"   action="H" />
      <key code="38"  action="J" />
      <key code="40"  action="K" />
      <key code="37"  action="L" />
      <key code="41"  action="dead_1dk" />

      <!-- Letters, third row -->
      <key code="6"   action="Z" />
      <key code="7"   action="X" />
      <key code="8"   action="C" />
      <key code="9"   action="V" />
      <key code="11"  action="B" />
      <key code="45"  action="N" />
      <key code="46"  action="M" />
      <key code="43"  action=";" />
      <key code="47"  output=":" />
      <key code="44"  action="?" />

      <!-- Pinky keys -->
      <key code="27"  action="_" />
      <key code="24"  action="+" />
      <key code="33"  output="«" />
      <key code="30"  output="»" />
      <key code="39"  output="&#x0022;" />
      <key code="50"  output="~" />
      <key code="42"  output="|" />
      <key code="10"  action="x003e" />

      <!-- Space bar -->
      <key code="49"  action="x202f" />

      <!-- Other keys -->
      <key code="36"  output="&#x000D;" />
      <key code="48"  output="&#x0009;" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="*" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="+" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="=" />
      <key code="75"  output="/" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="/" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>

    <!-- Caps -->
    <keyMap index="2">
      <!-- Digits -->
      <key code="18"  action="1" />
      <key code="19"  action="2" />
      <key code="20"  action="3" />
      <key code="21"  action="4" />
      <key code="23"  action="5" />
      <key code="22"  action="6" />
      <key code="26"  action="7" />
      <key code="28"  action="8" />
      <key code="25"  action="9" />
      <key code="29"  action="0" />

      <!-- Letters, first row -->
      <key code="12"  action="Q" />
      <key code="13"  action="W" />
      <key code="14"  action="E" />
      <key code="15"  action="R" />
      <key code="17"  action="T" />
      <key code="16"  action="Y" />
      <key code="32"  action="U" />
      <key code="34"  action="I" />
      <key code="31"  action="O" />
      <key code="35"  action="P" />

      <!-- Letters, second row -->
      <key code="0"   action="A" />
      <key code="1"   action="S" />
      <key code="2"   action="D" />
      <key code="3"   action="F" />
      <key code="5"   action="G" />
      <key code="4"   action="H" />
      <key code="38"  action="J" />
      <key code="40"  action="K" />
      <key code="37"  action="L" />
      <key code="41"  action="dead_1dk" />

      <!-- Letters, third row -->
      <key code="6"   action="Z" />
      <key code="7"   action="X" />
      <key code="8"   action="C" />
      <key code="9"   action="V" />
      <key code="11"  action="B" />
      <key code="45"  action="N" />
      <key code="46"  action="M" />
      <key code="43"  action="," />
      <key code="47"  action="." />
      <key code="44"  action="/" />

      <!-- Pinky keys -->
      <key code="27"  action="-" />
      <key code="24"  action="=" />
      <key code="33"  action="dead_circumflex" />
      <key code="30"  action="dead_diaeresis" />
      <key code="39"  output="'" />
      <key code="50"  output="`" />
      <key code="42"  output="\" />
      <key code="10"  action="x003c" />

      <!-- Space bar -->
      <key code="49"  action="x0020" />

      <!-- Other keys -->
      <key code="36"  output="&#x000D;" />
      <key code="48"  output="&#x0009;" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="&#x001D;" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="&#x001C;" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="&#x001F;" />
      <key code="75"  output="/" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="&#x001E;" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>

    <!-- Option -->
    <keyMap index="3">
      <!-- Digits -->
      <key code="18"  action="!" />
      <key code="19"  action="(" />
      <key code="20"  action=")" />
      <key code="21"  output="'" />
      <key code="23"  output="&#x0022;" />
      <key code="22"  action="dead_currency" />
      <key code="26"  action="7" />
      <key code="28"  action="8" />
      <key code="25"  action="9" />
      <key code="29"  action="/" />

      <!-- Letters, first row -->
      <key code="12"  action="=" />
      <key code="13"  action="x003c" />
      <key code="14"  action="x003e" />
      <key code="15"  action="-" />
      <key code="17"  action="+" />
      <key code="16"  output="&#x0010;" />
      <key code="32"  action="4" />
      <key code="34"  action="5" />
      <key code="31"  action="6" />
      <key code="35"  action="*" />

      <!-- Letters, second row -->
      <key code="0"   output="{" />
      <key code="1"   output="[" />
      <key code="2"   output="]" />
      <key code="3"   output="}" />
      <key code="5"   action="/" />
      <key code="4"   output="&#x0010;" />
      <key code="38"  action="1" />
      <key code="40"  action="2" />
      <key code="37"  action="3" />
      <key code="41"  action="-" />

      <!-- Letters, third row -->
      <key code="6"   output="~" />
      <key code="7"   output="`" />
      <key code="8"   output="|" />
      <key code="9"   action="_" />
      <key code="11"  output="\" />
      <key code="45"  output="&#x0010;" />
      <key code="46"  action="0" />
      <key code="43"  action="," />
      <key code="47"  action="." />
      <key code="44"  action="+" />

      <!-- Pinky keys -->
      <key code="27"  output="&#x0010;" />
      <key code="24"  output="&#x0010;" />
      <key code="33"  action="dead_caron" />
      <key code="30"  output="&#x0010;" />
      <key code="39"  action="dead_acute" />
      <key code="50"  action="dead_grave" />
      <key code="42"  output="&#x0010;" />
      <key code="10"  output="&#x0010;" />

      <!-- Space bar -->
      <key code="49"  action="x0020" />

      <!-- Other keys -->
      <key code="36"  output="&#x000D;" />
      <key code="48"  output="&#x0009;" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="&#x001D;" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="&#x001C;" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="&#x001F;" />
      <key code="75"  output="+" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="&#x001E;" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>

    <!-- Option + Shift -->
    <keyMap index="4">
      <!-- Digits -->
      <key code="18"  output="&#x0010;" />
      <key code="19"  output="⁽" />
      <key code="20"  output="⁾" />
      <key code="21"  action="dead_acute" />
      <key code="23"  action="dead_diaeresis" />
      <key code="22"  action="dead_circumflex" />
      <key code="26"  output="⁷" />
      <key code="28"  output="⁸" />
      <key code="25"  output="⁹" />
      <key code="29"  output="÷" />

      <!-- Letters, first row -->
      <key code="12"  output="≠" />
      <key code="13"  output="≤" />
      <key code="14"  output="≥" />
      <key code="15"  output="—" />
      <key code="17"  output="±" />
      <key code="16"  output="&#x0010;" />
      <key code="32"  output="⁴" />
      <key code="34"  output="⁵" />
      <key code="31"  output="⁶" />
      <key code="35"  output="×" />

      <!-- Letters, second row -->
      <key code="0"   output="&#x0010;" />
      <key code="1"   output="&#x0010;" />
      <key code="2"   output="&#x0010;" />
      <key code="3"   output="&#x0010;" />
      <key code="5"   output="&#x0010;" />
      <key code="4"   output="&#x0010;" />
      <key code="38"  output="¹" />
      <key code="40"  output="²" />
      <key code="37"  output="³" />
      <key code="41"  output="−" />

      <!-- Letters, third row -->
      <key code="6"   action="dead_tilde" />
      <key code="7"   action="dead_grave" />
      <key code="8"   output="¦" />
      <key code="9"   output="–" />
      <key code="11"  output="&#x0010;" />
      <key code="45"  output="&#x0010;" />
      <key code="46"  output="⁰" />
      <key code="43"  action="dead_cedilla" />
      <key code="47"  output="&#x0010;" />
      <key code="44"  output="¬" />

      <!-- Pinky keys -->
      <key code="27"  output="&#x0010;" />
      <key code="24"  output="&#x0010;" />
      <key code="33"  output="&#x0010;" />
      <key code="30"  output="&#x0010;" />
      <key code="39"  action="dead_abovedot" />
      <key code="50"  action="dead_tilde" />
      <key code="42"  output="&#x0010;" />
      <key code="10"  output="&#x0010;" />

      <!-- Space bar -->
      <key code="49"  action="x00a0" />

      <!-- Other keys -->
      <key code="36"  output="&#x000D;" />
      <key code="48"  output="&#x0009;" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="*" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="+" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="=" />
      <key code="75"  output="/" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="/" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>

    <!-- Command (copied from US-Qwerty) -->
    <keyMap index="5">
      <key code="0"   output="a" />
      <key code="1"   output="s" />
      <key code="2"   output="d" />
      <key code="3"   output="f" />
      <key code="4"   output="h" />
      <key code="5"   output="g" />
      <key code="6"   output="z" />
      <key code="7"   output="x" />
      <key code="8"   output="c" />
      <key code="9"   output="v" />
      <key code="10"  output="&#x003c;" />
      <key code="11"  output="b" />
      <key code="12"  output="q" />
      <key code="13"  output="w" />
      <key code="14"  output="e" />
      <key code="15"  output="r" />
      <key code="16"  output="y" />
      <key code="17"  output="t" />
      <key code="18"  output="1" />
      <key code="19"  output="2" />
      <key code="20"  output="3" />
      <key code="21"  output="4" />
      <key code="22"  output="6" />
      <key code="23"  output="5" />
      <key code="24"  output="=" />
      <key code="25"  output="9" />
      <key code="26"  output="7" />
      <key code="27"  output="-" />
      <key code="28"  output="8" />
      <key code="29"  output="0" />
      <key code="30"  output="]" />
      <key code="31"  output="o" />
      <key code="32"  output="u" />
      <key code="33"  output="[" />
      <key code="34"  output="i" />
      <key code="35"  output="p" />
      <key code="36"  output="&#x000D;" />
      <key code="37"  output="l" />
      <key code="38"  output="j" />
      <key code="39"  output="&#x0027;" />
      <key code="40"  output="k" />
      <key code="41"  output=";" />
      <key code="42"  output="\" />
      <key code="43"  output="," />
      <key code="44"  output="/" />
      <key code="45"  output="n" />
      <key code="46"  output="m" />
      <key code="47"  output="." />
      <key code="48"  output="&#x0009;" />
      <key code="49"  output=" " />
      <key code="50"  output="`" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="&#x001D;" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="&#x001C;" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="&#x001F;" />
      <key code="75"  output="/" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="&#x001E;" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>

    <!-- Option + Command (copied from US-Qwerty) -->
    <keyMap index="6">
      <key code="0"   output="å" />
      <key code="1"   output="ß" />
      <key code="2"   output="∂" />
      <key code="3"   output="ƒ" />
      <key code="4"   output="˙" />
      <key code="5"   output="©" />
      <key code="6"   output="Ω" />
      <key code="7"   output="≈" />
      <key code="8"   output="ç" />
      <key code="9"   output="√" />
      <key code="10"  output="§" />
      <key code="11"  output="∫" />
      <key code="12"  output="œ" />
      <key code="13"  output="∑" />
      <key code="14"  output="´" />
      <key code="15"  output="®" />
      <key code="16"  output="¥" />
      <key code="17"  output="†" />
      <key code="18"  output="¡" />
      <key code="19"  output="™" />
      <key code="20"  output="£" />
      <key code="21"  output="¢" />
      <key code="22"  output="§" />
      <key code="23"  output="∞" />
      <key code="24"  output="≠" />
      <key code="25"  output="ª" />
      <key code="26"  output="¶" />
      <key code="27"  output="–" />
      <key code="28"  output="•" />
      <key code="29"  output="º" />
      <key code="30"  output="‘" />
      <key code="31"  output="ø" />
      <key code="32"  output="¨" />
      <key code="33"  output="“" />
      <key code="34"  output="^" />
      <key code="35"  output="π" />
      <key code="36"  output="&#x000D;" />
      <key code="37"  output="¬" />
      <key code="38"  output="∆" />
      <key code="39"  output="æ" />
      <key code="40"  output="˚" />
      <key code="41"  output="…" />
      <key code="42"  output="«" />
      <key code="43"  output="≤" />
      <key code="44"  output="÷" />
      <key code="45"  output="~" />
      <key code="46"  output="µ" />
      <key code="47"  output="≥" />
      <key code="48"  output="&#x0009;" />
      <key code="49"  output=" " />
      <key code="50"  output="`" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="&#x001D;" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="&#x001C;" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="&#x001F;" />
      <key code="75"  output="/" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="&#x001E;" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>

    <!-- Control (copied from US-Qwerty) -->
    <keyMap index="7">
      <key code="0"   output="&#x0001;" />
      <key code="1"   output="&#x0013;" />
      <key code="2"   output="&#x0004;" />
      <key code="3"   output="&#x0006;" />
      <key code="4"   output="&#x0008;" />
      <key code="5"   output="&#x0007;" />
      <key code="6"   output="&#x001A;" />
      <key code="7"   output="&#x0018;" />
      <key code="8"   output="&#x0003;" />
      <key code="9"   output="&#x0016;" />
      <key code="10"  output="0" />
      <key code="11"  output="&#x0002;" />
      <key code="12"  output="&#x0011;" />
      <key code="13"  output="&#x0017;" />
      <key code="14"  output="&#x0005;" />
      <key code="15"  output="&#x0012;" />
      <key code="16"  output="&#x0019;" />
      <key code="17"  output="&#x0014;" />
      <key code="18"  output="1" />
      <key code="19"  output="2" />
      <key code="20"  output="3" />
      <key code="21"  output="4" />
      <key code="22"  output="6" />
      <key code="23"  output="5" />
      <key code="24"  output="=" />
      <key code="25"  output="9" />
      <key code="26"  output="7" />
      <key code="27"  output="&#x001F;" />
      <key code="28"  output="8" />
      <key code="29"  output="0" />
      <key code="30"  output="&#x001D;" />
      <key code="31"  output="&#x000F;" />
      <key code="32"  output="&#x0015;" />
      <key code="33"  output="&#x001B;" />
      <key code="34"  output="&#x0009;" />
      <key code="35"  output="&#x0010;" />
      <key code="36"  output="&#x000D;" />
      <key code="37"  output="&#x000C;" />
      <key code="38"  output="&#x000A;" />
      <key code="39"  output="&#x0027;" />
      <key code="40"  output="&#x000B;" />
      <key code="41"  output=";" />
      <key code="42"  output="&#x001C;" />
      <key code="43"  output="," />
      <key code="44"  output="/" />
      <key code="45"  output="&#x000E;" />
      <key code="46"  output="&#x000D;" />
      <key code="47"  output="." />
      <key code="48"  output="&#x0009;" />
      <key code="49"  output=" " />
      <key code="50"  output="`" />
      <key code="51"  output="&#x0008;" />
      <key code="52"  output="&#x0003;" />
      <key code="53"  output="&#x001B;" />
      <key code="64"  output="&#x0010;" />
      <key code="65"  output="." />
      <key code="66"  output="&#x001D;" />
      <key code="67"  output="*" />
      <key code="69"  output="+" />
      <key code="70"  output="&#x001C;" />
      <key code="71"  output="&#x001B;" />
      <key code="72"  output="&#x001F;" />
      <key code="75"  output="/" />
      <key code="76"  output="&#x0003;" />
      <key code="77"  output="&#x001E;" />
      <key code="78"  output="-" />
      <key code="79"  output="&#x0010;" />
      <key code="80"  output="&#x0010;" />
      <key code="81"  output="=" />
      <key code="82"  output="0" />
      <key code="83"  output="1" />
      <key code="84"  output="2" />
      <key code="85"  output="3" />
      <key code="86"  output="4" />
      <key code="87"  output="5" />
      <key code="88"  output="6" />
      <key code="89"  output="7" />
      <key code="91"  output="8" />
      <key code="92"  output="9" />
      <key code="96"  output="&#x0010;" />
      <key code="97"  output="&#x0010;" />
      <key code="98"  output="&#x0010;" />
      <key code="99"  output="&#x0010;" />
      <key code="100" output="&#x0010;" />
      <key code="101" output="&#x0010;" />
      <key code="102" output="&#x0010;" />
      <key code="103" output="&#x0010;" />
      <key code="104" output="&#x0010;" />
      <key code="105" output="&#x0010;" />
      <key code="106" output="&#x0010;" />
      <key code="107" output="&#x0010;" />
      <key code="108" output="&#x0010;" />
      <key code="109" output="&#x0010;" />
      <key code="110" output="&#x0010;" />
      <key code="111" output="&#x0010;" />
      <key code="112" output="&#x0010;" />
      <key code="113" output="&#x0010;" />
      <key code="114" output="&#x0005;" />
      <key code="115" output="&#x0001;" />
      <key code="116" output="&#x000B;" />
      <key code="117" output="&#x007F;" />
      <key code="118" output="&#x0010;" />
      <key code="119" output="&#x0004;" />
      <key code="120" output="&#x0010;" />
      <key code="121" output="&#x000C;" />
      <key code="122" output="&#x0010;" />
      <key code="123" output="&#x001C;" />
      <key code="124" output="&#x001D;" />
      <key code="125" output="&#x001F;" />
      <key code="126" output="&#x001E;" />
    </keyMap>
  </keyMapSet>

  <actions>
    <action id="dead_circumflex">
      <when state="none" next="circumflex" />
    </action>
    <action id="dead_diaeresis">
      <when state="none" next="diaeresis" />
    </action>
    <action id="dead_1dk">
      <when state="none" next="1dk" />
    </action>
    <action id="dead_grave">
      <when state="none" next="grave" />
    </action>
    <action id="dead_tilde">
      <when state="none" next="tilde" />
    </action>
    <action id="dead_acute">
      <when state="none" next="acute" />
    </action>
    <action id="dead_currency">
      <when state="none" next="currency" />
    </action>
    <action id="dead_caron">
      <when state="none" next="caron" />
    </action>
    <action id="dead_abovedot">
      <when state="none" next="abovedot" />
    </action>
    <action id="dead_cedilla">
      <when state="none" next="cedilla" />
    </action>

    <!-- Digits -->
    <action id="1">
      <when state="none"       output="1" />
      <when state="1dk"        output="„" />
      <when state="circumflex" output="¹" />
      <when state="caron"      output="₁" />
    </action>
    <action id="!">
      <when state="none"       output="!" />
      <when state="1dk"        output="¡" />
    </action>
    <action id="2">
      <when state="none"       output="2" />
      <when state="1dk"        output="“" />
      <when state="circumflex" output="²" />
      <when state="caron"      output="₂" />
    </action>
    <action id="@">
      <when state="none"       output="@" />
      <when state="1dk"        output="‘" />
    </action>
    <action id="3">
      <when state="none"       output="3" />
      <when state="1dk"        output="”" />
      <when state="circumflex" output="³" />
      <when state="caron"      output="₃" />
    </action>
    <action id="#">
      <when state="none"       output="#" />
      <when state="1dk"        output="’" />
    </action>
    <action id="4">
      <when state="none"       output="4" />
      <when state="1dk"        output="£" />
      <when state="circumflex" output="⁴" />
      <when state="caron"      output="₄" />
    </action>
    <action id="$">
      <when state="none"       output="$" />
      <when state="1dk"        output="¢" />
    </action>
    <action id="5">
      <when state="none"       output="5" />
      <when state="1dk"        output="€" />
      <when state="circumflex" output="⁵" />
      <when state="caron"      output="₅" />
    </action>
    <action id="%">
      <when state="none"       output="%" />
      <when state="1dk"        output="‰" />
    </action>
    <action id="6">
      <when state="none"       output="6" />
      <when state="1dk"        output="¤" />
      <when state="circumflex" output="⁶" />
      <when state="caron"      output="₆" />
    </action>
    <action id="7">
      <when state="none"       output="7" />
      <when state="circumflex" output="⁷" />
      <when state="caron"      output="₇" />
    </action>
    <action id="8">
      <when state="none"       output="8" />
      <when state="1dk"        output="§" />
      <when state="circumflex" output="⁸" />
      <when state="caron"      output="₈" />
    </action>
    <action id="*">
      <when state="none"       output="*" />
      <when state="1dk"        output="★" />
    </action>
    <action id="9">
      <when state="none"       output="9" />
      <when state="1dk"        output="¶" />
      <when state="circumflex" output="⁹" />
      <when state="caron"      output="₉" />
    </action>
    <action id="(">
      <when state="none"       output="(" />
      <when state="circumflex" output="⁽" />
      <when state="caron"      output="₍" />
    </action>
    <action id="0">
      <when state="none"       output="0" />
      <when state="1dk"        output="°" />
      <when state="circumflex" output="⁰" />
      <when state="caron"      output="₀" />
    </action>
    <action id=")">
      <when state="none"       output=")" />
      <when state="circumflex" output="⁾" />
      <when state="caron"      output="₎" />
    </action>

    <!-- Letters, first row -->
    <action id="q">
      <when state="none"       output="q" />
      <when state="1dk"        output="æ" />
    </action>
    <action id="Q">
      <when state="none"       output="Q" />
      <when state="1dk"        output="Æ" />
    </action>
    <action id="w">
      <when state="none"       output="w" />
      <when state="1dk"        output="é" />
      <when state="grave"      output="ẁ" />
      <when state="acute"      output="ẃ" />
      <when state="circumflex" output="ŵ" />
      <when state="diaeresis"  output="ẅ" />
      <when state="abovedot"   output="ẇ" />
      <when state="currency"   output="₩" />
    </action>
    <action id="W">
      <when state="none"       output="W" />
      <when state="1dk"        output="É" />
      <when state="grave"      output="Ẁ" />
      <when state="acute"      output="Ẃ" />
      <when state="circumflex" output="Ŵ" />
      <when state="diaeresis"  output="Ẅ" />
      <when state="abovedot"   output="Ẇ" />
      <when state="currency"   output="₩" />
    </action>
    <action id="e">
      <when state="none"       output="e" />
      <when state="1dk"        output="è" />
      <when state="grave"      output="è" />
      <when state="acute"      output="é" />
      <when state="circumflex" output="ê" />
      <when state="caron"      output="ě" />
      <when state="tilde"      output="ẽ" />
      <when state="diaeresis"  output="ë" />
      <when state="cedilla"    output="ȩ" />
      <when state="abovedot"   output="ė" />
      <when state="currency"   output="€" />
    </action>
    <action id="E">
      <when state="none"       output="E" />
      <when state="1dk"        output="È" />
      <when state="grave"      output="È" />
      <when state="acute"      output="É" />
      <when state="circumflex" output="Ê" />
      <when state="caron"      output="Ě" />
      <when state="tilde"      output="Ẽ" />
      <when state="diaeresis"  output="Ë" />
      <when state="cedilla"    output="Ȩ" />
      <when state="abovedot"   output="Ė" />
      <when state="currency"   output="₠" />
    </action>
    <action id="r">
      <when state="none"       output="r" />
      <when state="1dk"        output="®" />
      <when state="acute"      output="ŕ" />
      <when state="caron"      output="ř" />
      <when state="cedilla"    output="ŗ" />
      <when state="abovedot"   output="ṙ" />
      <when state="currency"   output="₢" />
    </action>
    <action id="R">
      <when state="none"       output="R" />
      <when state="1dk"        output="™" />
      <when state="acute"      output="Ŕ" />
      <when state="caron"      output="Ř" />
      <when state="cedilla"    output="Ŗ" />
      <when state="abovedot"   output="Ṙ" />
      <when state="currency"   output="₨" />
    </action>
    <action id="t">
      <when state="none"       output="t" />
      <when state="1dk"        output="þ" />
      <when state="caron"      output="ť" />
      <when state="diaeresis"  output="ẗ" />
      <when state="cedilla"    output="ţ" />
      <when state="abovedot"   output="ṫ" />
      <when state="currency"   output="৳" />
    </action>
    <action id="T">
      <when state="none"       output="T" />
      <when state="1dk"        output="Þ" />
      <when state="caron"      output="Ť" />
      <when state="cedilla"    output="Ţ" />
      <when state="abovedot"   output="Ṫ" />
      <when state="currency"   output="₮" />
    </action>
    <action id="y">
      <when state="none"       output="y" />
      <when state="grave"      output="ỳ" />
      <when state="acute"      output="ý" />
      <when state="circumflex" output="ŷ" />
      <when state="tilde"      output="ỹ" />
      <when state="diaeresis"  output="ÿ" />
      <when state="abovedot"   output="ẏ" />
      <when state="currency"   output="¥" />
    </action>
    <action id="Y">
      <when state="none"       output="Y" />
      <when state="grave"      output="Ỳ" />
      <when state="acute"      output="Ý" />
      <when state="circumflex" output="Ŷ" />
      <when state="tilde"      output="Ỹ" />
      <when state="diaeresis"  output="Ÿ" />
      <when state="abovedot"   output="Ẏ" />
      <when state="currency"   output="円" />
    </action>
    <action id="u">
      <when state="none"       output="u" />
      <when state="1dk"        output="ù" />
      <when state="grave"      output="ù" />
      <when state="acute"      output="ú" />
      <when state="circumflex" output="û" />
      <when state="caron"      output="ǔ" />
      <when state="tilde"      output="ũ" />
      <when state="diaeresis"  output="ü" />
      <when state="currency"   output="元" />
    </action>
    <action id="U">
      <when state="none"       output="U" />
      <when state="1dk"        output="Ù" />
      <when state="grave"      output="Ù" />
      <when state="acute"      output="Ú" />
      <when state="circumflex" output="Û" />
      <when state="caron"      output="Ǔ" />
      <when state="tilde"      output="Ũ" />
      <when state="diaeresis"  output="Ü" />
      <when state="currency"   output="圓" />
    </action>
    <action id="i">
      <when state="none"       output="i" />
      <when state="1dk"        output="ĳ" />
      <when state="grave"      output="ì" />
      <when state="acute"      output="í" />
      <when state="circumflex" output="î" />
      <when state="caron"      output="ǐ" />
      <when state="tilde"      output="ĩ" />
      <when state="diaeresis"  output="ï" />
      <when state="abovedot"   output="ı" />
      <when state="currency"   output="﷼" />
    </action>
    <action id="I">
      <when state="none"       output="I" />
      <when state="1dk"        output="Ĳ" />
      <when state="grave"      output="Ì" />
      <when state="acute"      output="Í" />
      <when state="circumflex" output="Î" />
      <when state="caron"      output="Ǐ" />
      <when state="tilde"      output="Ĩ" />
      <when state="diaeresis"  output="Ï" />
      <when state="abovedot"   output="İ" />
      <when state="currency"   output="៛" />
    </action>
    <action id="o">
      <when state="none"       output="o" />
      <when state="1dk"        output="œ" />
      <when state="grave"      output="ò" />
      <when state="acute"      output="ó" />
      <when state="circumflex" output="ô" />
      <when state="caron"      output="ǒ" />
      <when state="tilde"      output="õ" />
      <when state="diaeresis"  output="ö" />
      <when state="abovedot"   output="ȯ" />
      <when state="currency"   output="௹" />
    </action>
    <action id="O">
      <when state="none"       output="O" />
      <when state="1dk"        output="Œ" />
      <when state="grave"      output="Ò" />
      <when state="acute"      output="Ó" />
      <when state="circumflex" output="Ô" />
      <when state="caron"      output="Ǒ" />
      <when state="tilde"      output="Õ" />
      <when state="diaeresis"  output="Ö" />
      <when state="abovedot"   output="Ȯ" />
      <when state="currency"   output="૱" />
    </action>
    <action id="p">
      <when state="none"       output="p" />
      <when state="acute"      output="ṕ" />
      <when state="abovedot"   output="ṗ" />
      <when state="currency"   output="₰" />
    </action>
    <action id="P">
      <when state="none"       output="P" />
      <when state="acute"      output="Ṕ" />
      <when state="abovedot"   output="Ṗ" />
      <when state="currency"   output="₧" />
    </action>

    <!-- Letters, second row -->
    <action id="a">
      <when state="none"       output="a" />
      <when state="1dk"        output="à" />
      <when state="grave"      output="à" />
      <when state="acute"      output="á" />
      <when state="circumflex" output="â" />
      <when state="caron"      output="ǎ" />
      <when state="tilde"      output="ã" />
      <when state="diaeresis"  output="ä" />
      <when state="abovedot"   output="ȧ" />
      <when state="currency"   output="؋" />
    </action>
    <action id="A">
      <when state="none"       output="A" />
      <when state="1dk"        output="À" />
      <when state="grave"      output="À" />
      <when state="acute"      output="Á" />
      <when state="circumflex" output="Â" />
      <when state="caron"      output="Ǎ" />
      <when state="tilde"      output="Ã" />
      <when state="diaeresis"  output="Ä" />
      <when state="abovedot"   output="Ȧ" />
      <when state="currency"   output="₳" />
    </action>
    <action id="s">
      <when state="none"       output="s" />
      <when state="1dk"        output="ß" />
      <when state="acute"      output="ś" />
      <when state="circumflex" output="ŝ" />
      <when state="caron"      output="š" />
      <when state="cedilla"    output="ş" />
      <when state="abovedot"   output="ṡ" />
      <when state="currency"   output="₪" />
    </action>
    <action id="S">
      <when state="none"       output="S" />
      <when state="1dk"        output="ẞ" />
      <when state="acute"      output="Ś" />
      <when state="circumflex" output="Ŝ" />
      <when state="caron"      output="Š" />
      <when state="cedilla"    output="Ş" />
      <when state="abovedot"   output="Ṡ" />
      <when state="currency"   output="$" />
    </action>
    <action id="d">
      <when state="none"       output="d" />
      <when state="1dk"        output="ð" />
      <when state="caron"      output="ď" />
      <when state="cedilla"    output="ḑ" />
      <when state="abovedot"   output="ḋ" />
      <when state="currency"   output="₫" />
    </action>
    <action id="D">
      <when state="none"       output="D" />
      <when state="1dk"        output="Ð" />
      <when state="caron"      output="Ď" />
      <when state="cedilla"    output="Ḑ" />
      <when state="abovedot"   output="Ḋ" />
      <when state="currency"   output="₯" />
    </action>
    <action id="f">
      <when state="none"       output="f" />
      <when state="1dk"        output="ſ" />
      <when state="abovedot"   output="ḟ" />
      <when state="currency"   output="ƒ" />
    </action>
    <action id="F">
      <when state="none"       output="F" />
      <when state="1dk"        output="ª" />
      <when state="abovedot"   output="Ḟ" />
      <when state="currency"   output="₣" />
    </action>
    <action id="g">
      <when state="none"       output="g" />
      <when state="1dk"        output="©" />
      <when state="acute"      output="ǵ" />
      <when state="circumflex" output="ĝ" />
      <when state="caron"      output="ǧ" />
      <when state="cedilla"    output="ģ" />
      <when state="abovedot"   output="ġ" />
      <when state="currency"   output="₲" />
    </action>
    <action id="G">
      <when state="none"       output="G" />
      <when state="acute"      output="Ǵ" />
      <when state="circumflex" output="Ĝ" />
      <when state="caron"      output="Ǧ" />
      <when state="cedilla"    output="Ģ" />
      <when state="abovedot"   output="Ġ" />
      <when state="currency"   output="₲" />
    </action>
    <action id="h">
      <when state="none"       output="h" />
      <when state="1dk"        output="←" />
      <when state="circumflex" output="ĥ" />
      <when state="caron"      output="ȟ" />
      <when state="diaeresis"  output="ḧ" />
      <when state="cedilla"    output="ḩ" />
      <when state="abovedot"   output="ḣ" />
      <when state="currency"   output="₴" />
    </action>
    <action id="H">
      <when state="none"       output="H" />
      <when state="1dk"        output="⇐" />
      <when state="circumflex" output="Ĥ" />
      <when state="caron"      output="Ȟ" />
      <when state="diaeresis"  output="Ḧ" />
      <when state="cedilla"    output="Ḩ" />
      <when state="abovedot"   output="Ḣ" />
      <when state="currency"   output="₴" />
    </action>
    <action id="j">
      <when state="none"       output="j" />
      <when state="1dk"        output="↓" />
      <when state="circumflex" output="ĵ" />
      <when state="abovedot"   output="ȷ" />
    </action>
    <action id="J">
      <when state="none"       output="J" />
      <when state="1dk"        output="⇓" />
      <when state="circumflex" output="Ĵ" />
    </action>
    <action id="k">
      <when state="none"       output="k" />
      <when state="1dk"        output="↑" />
      <when state="acute"      output="ḱ" />
      <when state="caron"      output="ǩ" />
      <when state="cedilla"    output="ķ" />
      <when state="currency"   output="₭" />
    </action>
    <action id="K">
      <when state="none"       output="K" />
      <when state="1dk"        output="⇑" />
      <when state="acute"      output="Ḱ" />
      <when state="caron"      output="Ǩ" />
      <when state="cedilla"    output="Ķ" />
      <when state="currency"   output="₭" />
    </action>
    <action id="l">
      <when state="none"       output="l" />
      <when state="1dk"        output="→" />
      <when state="acute"      output="ĺ" />
      <when state="caron"      output="ľ" />
      <when state="cedilla"    output="ļ" />
      <when state="abovedot"   output="ŀ" />
      <when state="currency"   output="£" />
    </action>
    <action id="L">
      <when state="none"       output="L" />
      <when state="1dk"        output="⇒" />
      <when state="acute"      output="Ĺ" />
      <when state="caron"      output="Ľ" />
      <when state="cedilla"    output="Ļ" />
      <when state="abovedot"   output="Ŀ" />
      <when state="currency"   output="₤" />
    </action>

    <!-- Letters, third row -->
    <action id="z">
      <when state="none"       output="z" />
      <when state="acute"      output="ź" />
      <when state="circumflex" output="ẑ" />
      <when state="caron"      output="ž" />
      <when state="abovedot"   output="ż" />
    </action>
    <action id="Z">
      <when state="none"       output="Z" />
      <when state="acute"      output="Ź" />
      <when state="circumflex" output="Ẑ" />
      <when state="caron"      output="Ž" />
      <when state="abovedot"   output="Ż" />
    </action>
    <action id="x">
      <when state="none"       output="x" />
      <when state="1dk"        output="×" />
      <when state="diaeresis"  output="ẍ" />
      <when state="abovedot"   output="ẋ" />
    </action>
    <action id="X">
      <when state="none"       output="X" />
      <when state="diaeresis"  output="Ẍ" />
      <when state="abovedot"   output="Ẋ" />
    </action>
    <action id="c">
      <when state="none"       output="c" />
      <when state="1dk"        output="ç" />
      <when state="acute"      output="ć" />
      <when state="circumflex" output="ĉ" />
      <when state="caron"      output="č" />
      <when state="cedilla"    output="ç" />
      <when state="abovedot"   output="ċ" />
      <when state="currency"   output="¢" />
    </action>
    <action id="C">
      <when state="none"       output="C" />
      <when state="1dk"        output="Ç" />
      <when state="acute"      output="Ć" />
      <when state="circumflex" output="Ĉ" />
      <when state="caron"      output="Č" />
      <when state="cedilla"    output="Ç" />
      <when state="abovedot"   output="Ċ" />
      <when state="currency"   output="₡" />
    </action>
    <action id="v">
      <when state="none"       output="v" />
      <when state="1dk"        output="ŭ" />
      <when state="tilde"      output="ṽ" />
    </action>
    <action id="V">
      <when state="none"       output="V" />
      <when state="1dk"        output="Ŭ" />
      <when state="tilde"      output="Ṽ" />
    </action>
    <action id="b">
      <when state="none"       output="b" />
      <when state="1dk"        output="†" />
      <when state="abovedot"   output="ḃ" />
      <when state="currency"   output="฿" />
    </action>
    <action id="B">
      <when state="none"       output="B" />
      <when state="1dk"        output="‡" />
      <when state="abovedot"   output="Ḃ" />
      <when state="currency"   output="₱" />
    </action>
    <action id="n">
      <when state="none"       output="n" />
      <when state="1dk"        output="ñ" />
      <when state="grave"      output="ǹ" />
      <when state="acute"      output="ń" />
      <when state="caron"      output="ň" />
      <when state="tilde"      output="ñ" />
      <when state="cedilla"    output="ņ" />
      <when state="abovedot"   output="ṅ" />
      <when state="currency"   output="₦" />
    </action>
    <action id="N">
      <when state="none"       output="N" />
      <when state="1dk"        output="Ñ" />
      <when state="grave"      output="Ǹ" />
      <when state="acute"      output="Ń" />
      <when state="caron"      output="Ň" />
      <when state="tilde"      output="Ñ" />
      <when state="cedilla"    output="Ņ" />
      <when state="abovedot"   output="Ṅ" />
      <when state="currency"   output="₦" />
    </action>
    <action id="m">
      <when state="none"       output="m" />
      <when state="1dk"        output="µ" />
      <when state="acute"      output="ḿ" />
      <when state="abovedot"   output="ṁ" />
      <when state="currency"   output="₥" />
    </action>
    <action id="M">
      <when state="none"       output="M" />
      <when state="1dk"        output="º" />
      <when state="acute"      output="Ḿ" />
      <when state="abovedot"   output="Ṁ" />
      <when state="currency"   output="ℳ" />
    </action>
    <action id=",">
      <when state="none"       output="," />
      <when state="1dk"        output="·" />
    </action>
    <action id=";">
      <when state="none"       output=";" />
      <when state="1dk"        output="•" />
    </action>
    <action id=".">
      <when state="none"       output="." />
      <when state="1dk"        output="…" />
    </action>
    <action id="/">
      <when state="none"       output="/" />
      <when state="1dk"        output="÷" />
    </action>
    <action id="?">
      <when state="none"       output="?" />
      <when state="1dk"        output="¿" />
    </action>

    <!-- Pinky keys -->
    <action id="-">
      <when state="none"       output="-" />
      <when state="1dk"        output="—" />
      <when state="circumflex" output="⁻" />
      <when state="caron"      output="₋" />
    </action>
    <action id="_">
      <when state="none"       output="_" />
      <when state="1dk"        output="–" />
    </action>
    <action id="=">
      <when state="none"       output="=" />
      <when state="1dk"        output="≠" />
      <when state="circumflex" output="⁼" />
      <when state="caron"      output="₌" />
      <when state="tilde"      output="≃" />
    </action>
    <action id="+">
      <when state="none"       output="+" />
      <when state="1dk"        output="±" />
      <when state="circumflex" output="⁺" />
      <when state="caron"      output="₊" />
    </action>
    <action id="x003c">
      <when state="none"       output="&#x003c;" />
      <when state="1dk"        output="≤" />
      <when state="tilde"      output="≲" />
    </action>
    <action id="x003e">
      <when state="none"       output="&#x003e;" />
      <when state="1dk"        output="≥" />
      <when state="tilde"      output="≳" />
    </action>

    <!-- Space bar -->
    <action id="x0020">
      <when state="none"       output="&#x0020;" />
      <when state="1dk"        output="’" />
      <when state="grave"      output="`" />
      <when state="acute"      output="'" />
      <when state="circumflex" output="^" />
      <when state="caron"      output="ˇ" />
      <when state="tilde"      output="~" />
      <when state="diaeresis"  output="&#x0022;" />
      <when state="cedilla"    output="¸" />
      <when state="abovedot"   output="˙" />
      <when state="currency"   output="¤" />
    </action>
    <action id="x00a0">
      <when state="none"       output="&#x00a0;" />
      <when state="1dk"        output="’" />
      <when state="grave"      output="`" />
      <when state="acute"      output="'" />
      <when state="circumflex" output="^" />
      <when state="caron"      output="ˇ" />
      <when state="tilde"      output="~" />
      <when state="diaeresis"  output="&#x0022;" />
      <when state="cedilla"    output="¸" />
      <when state="abovedot"   output="˙" />
      <when state="currency"   output="¤" />
    </action>
    <action id="x202f">
      <when state="none"       output="&#x202f;" />
      <when state="1dk"        output="’" />
      <when state="grave"      output="`" />
      <when state="acute"      output="'" />
      <when state="circumflex" output="^" />
      <when state="caron"      output="ˇ" />
      <when state="tilde"      output="~" />
      <when state="diaeresis"  output="&#x0022;" />
      <when state="cedilla"    output="¸" />
      <when state="abovedot"   output="˙" />
      <when state="currency"   output="¤" />
    </action>
  </actions>

  <terminators>
    <when state="1dk"        output="`" />
    <when state="grave"      output="`" />
    <when state="acute"      output="´" />
    <when state="circumflex" output="^" />
    <when state="caron"      output="ˇ" />
    <when state="tilde"      output="~" />
    <when state="diaeresis"  output="¨" />
    <when state="cedilla"    output="¸" />
    <when state="abovedot"   output="˙" />
    <when state="currency"   output="¤" />
  </terminators>
</keyboard>
