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