Skip to content

Instantly share code, notes, and snippets.

@hanya
Created February 3, 2019 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanya/fa2d37807eb475d45acf057f25491a22 to your computer and use it in GitHub Desktop.
Save hanya/fa2d37807eb475d45acf057f25491a22 to your computer and use it in GitHub Desktop.
Japanese 108 keys layout for Haiku OS
name = JP 108
# Place in /boot/home/config/non-packaged/data/KeyboardLayouts
# Size shortcuts
default-size = 10,10
$b = 5,10
$c = 20,10
$d = 15,10
$e = l15,20,11
$f = 10,20
$g = 13,10
# Key rows
[ 0,0; d:0x01; :-; :+4; $b:-; d:+4; $b:-; :+4; $b:-; d:+3; $b:-;
$g:led-num; $g:led-caps; $g:led-scroll ]
[ 0,20; d:0xf3; :0x12+11; :0x6a; d:0x1e; $b:-; d:0x1f+2; $b:-; d:+4 ]
[ 0,30; d$d:0x26; :+12; d$e:0x47; $b:-; d:0x34-0x36; $b:-; :+3;
d$f:+1 ]
[ 0,40; d18,10:0x3b; :+11; :0x33; 52,10:-; :0x48-0x4a ]
[ 0,50; d23,10:0x4b; :0x4c+9; :0x6b; d17,10:0x56; 15,10:-; d:+1;
15,10:-; :+3; d$f:+1 ]
[ 0,60; d$d:0x5c; d:0x66; d$d:0x5d; d$d:0x6c; 25,10:0x5e; d$d:0x6d; d$d:0xf2; d$d:0x7f;
d:0x68; d$d:0x60; $b:-; d:+3; $b:-; $c:+1; :+1 ]
# 0xf3: B_HANKAKU_ZENKAKU
# 0x6c: Muhenkan
# 0x6d: Henkan
# 0xf2: B_KATAKANA_HIRAGANA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment