Files
koreader/frontend/ui/data/keyboardlayouts/ja_keyboard.lua
yparitcher 5e8d1227ef [feat, UX] Pick keyboard layout from keyboard (#5583)
* Tap goes to next activated keyboard.
* Hold opens a selection popup.
2019-11-18 17:16:06 +01:00

111 lines
10 KiB
Lua
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

return {
min_layer = 1,
max_layer = 12,
shiftmode_keys = {[""] = true},
symbolmode_keys = {["記号"] = true, ["かな"] = true},
utf8mode_keys = {[""] = true},
umlautmode_keys = {[""] = true},
keys = {
-- first row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ "", "", "~", "`", "", "", "~", "`", "", "", "~", "`", },
{ "", "", "!", "1", "", "", "!", "1", "", "", "!", "1", },
{ "", "", "@", "2", "", "", "@", "2", "", "", "@", "2", },
{ "", "", "#", "3", "", "", "#", "3", "", "", "#", "3", },
{ "", "", "$", "4", "", "", "$", "4", "", "", "$", "4", },
{ "", "", "%", "5", "", "", "%", "5", "", "", "%", "5", },
{ "", "", "^", "6", "", "", "^", "6", "", "", "^", "6", },
{ "", "", "&", "7", "", "", "&", "7", "", "", "&", "7", },
{ "", "", "*", "8", "", "", "*", "8", "", "", "*", "8", },
{ "", "", "(", "9", "", "", "(", "9", "", "", "(", "9", },
{ "", "", ")", "0", "", "", ")", "0", "", "", ")", "0", },
{ "", "", "_", "-", "", "", "_", "-", "", "", "_", "-", },
{ "", "", "+", "=", "", "", "+", "=", "", "", "+", "=", },
},
-- second row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ "", "", "Q", "q", "", "", "Q", "q", "", "", "Q", "q", },
{ "", "", "W", "w", "", "", "W", "w", "", "", "W", "w", },
{ "", "", "E", "e", "", "", "E", "e", "", "", "E", "e", },
{ "", "", "R", "r", "", "", "R", "r", "", "", "R", "r", },
{ "", "", "T", "t", "", "", "T", "t", "", "", "T", "t", },
{ "", "", "Y", "y", "", "", "Y", "y", "", "", "Y", "y", },
{ "", "", "U", "u", "", "", "U", "u", "", "", "U", "u", },
{ " ", " ", "I", "i", " ", " ", "I", "i", " ", " ", "I", "i", },
{ "", "", "O", "o", "", "", "O", "o", "", "", "O", "o", },
{ " ", " ", "P", "p", " ", " ", "P", "p", " ", " ", "P", "p", },
{ "", "", "{", "[", "", "", "{", "[", "", "", "{", "[", },
{ "", "", "}", "]", "", "", "}", "]", "", "", "}", "]", },
{ "", "", "|", "\\", "", "", "|", "\\", "", "", "|", "\\", },
},
-- third row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ "", "", "A", "a", "", "", "A", "a", "", "", "A", "a", },
{ "", "", "S", "s", "", "", "S", "s", "", "", "S", "s", },
{ "", "", "D", "d", "", "", "D", "d", "", "", "D", "d", },
{ "", "", "F", "f", "", "", "F", "f", "", "", "F", "f", },
{ "", "", "G", "g", "", "", "G", "g", "", "", "G", "g", },
{ "", "", "H", "h", "", "", "H", "h", "", "", "H", "h", },
{ "", "", "J", "j", "", "", "J", "j", "", "", "J", "j", },
{ "", "", "K", "k", "", "", "K", "k", "", "", "K", "k", },
{ "", "", "L", "l", "", "", "L", "l", "", "", "L", "l", },
{ "", "", ":", ";", "", "", ":", ";", "", "", ":", ";", },
{ "", "", "\"", "'", "", "", "\"", "'", "", "", "\"", "'", },
{ "", "", "", "", "", "", "", "", "", "", "", "", },
{ "", "", "", "", "", "", "", "", "", "", "", "", },
},
-- fourth row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ "", "", "Z", "z", "", "", "Z", "z", "", "", "Z", "z", },
{ "", "", "X", "x", "", "", "X", "x", "", "", "X", "x", },
{ "", "", "C", "c", "", "", "C", "c", "", "", "C", "c", },
{ "", "", "V", "v", "", "", "V", "v", "", "", "V", "v", },
{ "", "", "B", "b", "", "", "B", "b", "", "", "B", "b", },
{ "", "", "N", "n", "", "", "N", "n", "", "", "N", "n", },
{ "", "", "M", "m", "", "", "M", "m", "", "", "M", "m", },
{ " ", " ", "<", ",", " ", " ", "<", ",", " ", " ", "<", ",", },
{ "", "", ">", ".", "", "", ">", ".", "", "", ">", ".", },
{ " ", " ", "?", "/", " ", " ", "?", "/", " ", " ", "?", "/", },
{ "", "", "", "", "", "", "", "", "", "", "", "", },
{ "", "", "", "", "", "", "", "", "", "", "", "", },
{ "", "", "", "", "", "", "", "", "", "", "", "", },
},
-- fifth row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ "", "", "Á", "á", "", "", "Á", "á", "", "", "Á", "á", },
{ "", "", "É", "é", "", "", "É", "é", "", "", "É", "é", },
{ "", "", "Í", "í", "", "", "Í", "í", "", "", "Í", "í", },
{ "", "", "Ó", "ó", "", "", "Ó", "ó", "", "", "Ó", "ó", },
{ "", "", "Ú", "ú", "", "", "Ú", "ú", "", "", "Ú", "ú", },
{ "", "", "Ñ", "ñ", "", "", "Ñ", "ñ", "", "", "Ñ", "ñ", },
{ "", "", "Ü", "ü", "", "", "Ü", "ü", "", "", "Ü", "ü", },
{ "", "", "¿", "ç", "", "", "¿", "ç", "", "", "¿", "ç", },
{ "", "", "¡", "ß", "", "", "¡", "ß", "", "", "¡", "ß", },
{ "", "", "Æ", "æ", "", "", "Æ", "æ", "", "", "Æ", "æ", },
{ "", "", "", "£", "", "", "", "£", "", "", "", "£", },
{ " ", " ", "«", "", " ", " ", "«", "", " ", " ", "«", "", },
{ "", "", "»", "", "", "", "", "", "", "", "»", "", },
},
-- sixth row
{
{ label = "",
width = 1.5
},
{ "記号", "記号", "かな", "かな", "記号", "記号", "かな", "かな", "記号", "記号", "かな", "かな",
width = 1.5},
{ label = "空白",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
width = 7.0},
{ label = "Enter",
"\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n",
icon = "resources/icons/appbar.arrow.enter.png",
width = 1.5,
},
{ label = "Backspace",
icon = "resources/icons/appbar.clear.reflect.horizontal.png",
width = 1.5
},
},
},
}