Skip to content

Instantly share code, notes, and snippets.

@r-malon
Created November 27, 2025 19:30
Show Gist options
  • Select an option

  • Save r-malon/11b24f121f3f2dd97bcd9982671c2fe9 to your computer and use it in GitHub Desktop.

Select an option

Save r-malon/11b24f121f3f2dd97bcd9982671c2fe9 to your computer and use it in GitHub Desktop.
Kana learning layout for Unexpected Keyboard
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<keyboard name="Kana" script="kana" lang="ja" locale_extra_keys="false">
<!-- Shift to Katakana -->
<modmap>
<shift a="あ" b="ア"/> <shift a="い" b="イ"/> <shift a="う" b="ウ"/> <shift a="え" b="エ"/> <shift a="お" b="オ"/>
<shift a="か" b="カ"/> <shift a="き" b="キ"/> <shift a="く" b="ク"/> <shift a="け" b="ケ"/> <shift a="こ" b="コ"/>
<shift a="さ" b="サ"/> <shift a="し" b="シ"/> <shift a="す" b="ス"/> <shift a="せ" b="セ"/> <shift a="そ" b="ソ"/>
<shift a="た" b="タ"/> <shift a="ち" b="チ"/> <shift a="つ" b="ツ"/> <shift a="て" b="テ"/> <shift a="と" b="ト"/>
<shift a="な" b="ナ"/> <shift a="に" b="ニ"/> <shift a="ぬ" b="ヌ"/> <shift a="ね" b="ネ"/> <shift a="の" b="ノ"/>
<shift a="は" b="ハ"/> <shift a="ひ" b="ヒ"/> <shift a="ふ" b="フ"/> <shift a="へ" b="ヘ"/> <shift a="ほ" b="ホ"/>
<shift a="ま" b="マ"/> <shift a="み" b="ミ"/> <shift a="む" b="ム"/> <shift a="め" b="メ"/> <shift a="も" b="モ"/>
<shift a="や" b="ヤ"/> <shift a="ゆ" b="ユ"/> <shift a="よ" b="ヨ"/>
<shift a="ら" b="ラ"/> <shift a="り" b="リ"/> <shift a="る" b="ル"/> <shift a="れ" b="レ"/> <shift a="ろ" b="ロ"/>
<shift a="わ" b="ワ"/> <shift a="を" b="ヲ"/> <shift a="ん" b="ン"/>
<shift a="っ" b="ッ"/> <shift a="ゃ" b="ャ"/> <shift a="ゅ" b="ュ"/> <shift a="ょ" b="ョ"/>
<shift a="が" b="ガ"/> <shift a="ざ" b="ザ"/> <shift a="だ" b="ダ"/> <shift a="ば" b="バ"/> <shift a="ぱ" b="パ"/>
</modmap>
<!-- Gojūon core -->
<row height="0.7">
<key shift="1.5" c="あ" s="a" nw="ぁ"/>
<key c="い" s="i" nw="ぃ"/>
<key c="う" s="u" nw="ぅ"/>
<key c="え" s="e" nw="ぇ"/>
<key c="お" s="o" nw="ぉ"/>
<key c="か" s="ka"/>
<key c="き" s="ki"/>
<key c="く" s="ku"/>
<key c="け" s="ke"/>
<key c="こ" s="ko" n="゜" e="accent_macron"/>
</row>
<row height="0.7">
<key shift="1" c="さ" n="sa"/>
<key c="し" n="shi"/>
<key c="す" n="su"/>
<key c="せ" n="se"/>
<key c="そ" s="so"/>
<key c="た" s="ta"/>
<key c="ち" s="chi"/>
<key c="つ" s="tsu" nw="っ"/>
<key c="て" s="te"/>
<key c="と" s="to"/>
<key c="ん" s="n" n="゛"/>
</row>
<row height="0.7">
<key shift="1.5" c="は" s="ha"/>
<key c="ひ" s="hi"/>
<key c="ふ" s="fu"/>
<key c="へ" s="he"/>
<key c="ほ" s="ho"/>
<key c="ま" s="ma"/>
<key c="み" s="mi"/>
<key c="む" s="mu"/>
<key c="め" s="me"/>
<key c="も" s="mo"/>
</row>
<row height="0.7">
<key c="shift" width="1.5"/>
<key c="や" s="ya" nw="ゃ"/>
<key c="ゆ" s="yu" nw="ゅ"/>
<key c="よ" s="yo" nw="ょ"/>
<key c="ら" s="ra"/>
<key c="り" s="ri"/>
<key c="る" s="ru"/>
<key c="れ" s="re"/>
<key c="ろ" s="ro"/>
<key c="わ" s="wa" nw="ゎ"/>
<key c="を" s="wo"/>
<key c="backspace" ne="delete" width="1.5"/>
</row>
<!-- Small kana + voiced + yōon -->
<row height="0.7">
<key shift="0.5" c="っ" s="tsu"/>
<key c="が" s="ga"/>
<key c="ざ" s="za"/>
<key c="だ" s="da"/>
<key c="ば" s="ba"/>
<key c="ぱ" s="pa"/>
<key c="じゃ" s="ja"/>
<key c="じゅ" s="ju"/>
<key c="じょ" s="jo"/>
</row>
</keyboard>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment