<?xml version="1.0" encoding="UTF-8"?>
<!--
@@keys: [SHIFT K_B][K_O][K_N][K_LBRKT][K_U][K_SPACE][K_S][K_A][K_RBRKT][K_RBRKT][K_A]
@@expected: \u0042\u006f\u006e\u0121\u0075\u0020\u0073\u0061\u0127\u0127\u0061

Note:
    "Bonġu saħħa".split('').map(s=>`\\u${s.codePointAt(0).toString(16)}`).join('')
Gets part of the way,

    Based on mt.xml from CLDR.  'TODO-LDML' denotes modifications.
    Note this is the 47-key version.
-->
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt-t-k0-47key" conformsTo="45">
    <locales>
        <!-- English is also an official language in Malta.-->
        <locale id="en" />
    </locales>
    <info author="Steven R. Loomis" layout="QWERTY" indicator="MT" name="Maltese 47-key" />

    <keys>
        <!-- imports -->
        <import base="cldr" path="45/keys-Zyyy-punctuation.xml" />
        <import base="cldr" path="45/keys-Zyyy-currency.xml" />

        <!-- accent grave -->
        <key id="a-grave" output="à" />
        <key id="A-grave" output="À" />
        <key id="e-grave" output="è" />
        <key id="E-grave" output="È" />
        <key id="i-grave" output="ì" />
        <key id="I-grave" output="Ì" />
        <key id="o-grave" output="ò" />
        <key id="O-grave" output="Ò" />
        <key id="u-grave" output="ù" />
        <key id="U-grave" output="Ù" />

        <!-- tikka and maqtugha -->
        <key id="c-tikka" output="ċ" /> <!-- tikka is a dot -->
        <key id="C-tikka" output="Ċ" />
        <key id="g-tikka" output="ġ" />
        <key id="G-tikka" output="Ġ" />
        <key id="h-maqtugha" output="ħ" /> <!-- maqtugħa, i.e. cut -->
        <key id="H-maqtugha" output="Ħ" /> <!-- maqtugħa, i.e. cut -->
        <key id="z-tikka" output="ż" />
        <key id="Z-tikka" output="Ż" />

        <!-- Cedilla -->
        <key id="c-cedilla" output="ç" />

        <!-- gaps -->
        <key id="gap" gap="true" width="1" />
    </keys>

    <!-- 47-key: MSA 100:2002, Appendix, figure A.1 -->
    <layers formId="us">
        <layer modifiers="none">
            <row keys="c-tikka 1 2 3 4 5 6 7 8 9 0 hyphen equal" />
            <row keys="q w e r t y u i o p g-tikka h-maqtugha z-tikka" />
            <row keys="a s d f g h j k l semi-colon apos" />
            <row keys="z x c v b n m comma period slash" />
            <row keys="space" />
        </layer>

        <layer modifiers="shift">
            <row keys="C-tikka bang at euro dollar percent caret amp asterisk open-paren close-paren underscore plus" />
            <row keys="Q W E R T Y U I O P G-tikka H-maqtugha Z-tikka" />
            <row keys="A S D F G H J K L colon double-quote" />
            <row keys="Z X C V B N M open-angle close-angle question" />
            <row keys="space" />
        </layer>

        <layer modifiers="altR">
            <row keys="grave gap gap pound gap gap gap gap gap gap gap gap gap" />
            <row keys="gap gap e-grave gap gap gap u-grave i-grave o-grave gap open-square close-square backslash" />
            <row keys="a-grave gap gap gap gap gap gap gap gap gap gap" />
            <row keys="gap gap gap gap gap gap gap gap gap gap" />
            <row keys="space" />
        </layer>

        <layer modifiers="altR shift">
            <row keys="tilde gap gap gap gap gap gap gap gap gap gap gap gap" />
            <row keys="gap gap E-grave gap gap gap U-grave I-grave O-grave gap open-curly close-curly pipe" />
            <row keys="A-grave gap gap gap gap gap gap gap gap gap gap" />
            <row keys="gap gap gap gap gap gap gap gap gap gap" />
            <row keys="space" />
        </layer>
    </layers>

</keyboard3>
