You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui/data/keyboardlayouts/ru_keyboard.lua

81 lines
4.1 KiB
Lua

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

local en_popup = require("ui/data/keyboardlayouts/keypopup/en_popup")
local ru_popup = require("ui/data/keyboardlayouts/keypopup/ru_popup")
local com = en_popup.com -- comma (,)
local prd = en_popup.prd -- period (.)
local _at = en_popup._at
local _eq = en_popup._eq -- equals sign (=)
local _Je_ = ru_popup._Je_
local _je_ = ru_popup._je_
local _Ye_ = ru_popup._Ye_
local _ye_ = ru_popup._ye_
return {
min_layer = 1,
max_layer = 8,
shiftmode_keys = {[""] = true, ["1/2"] = true, ["2/2"] = true},
symbolmode_keys = {["123"] = true, ["АБВ"] = true, ["ещё"] = true},
utf8mode_keys = {["🌐"] = true},
umlautmode_keys = {["Жбъ"] = true},
keys = {
-- first row
{ -- 1 2 3 4 5 6 7 8
{ "Й", "й", "", "0", "?", "!", "1", "ª", },
{ "Ц", "ц", "!", "1", "(", "1", "2", "º", },
{ "У", "у", _at, "2", ")", "2", "3", "¡", },
{ "К", "к", "#", "3", "~", "3", "4", "¿", },
{ _Ye_, _ye_, "+", _eq, "Ә", "ә", "5", "¼", },
{ "Н", "н", "", "(", "І", "і", "6", "½", },
{ "Г", "г", "", ")", "Ң", "ң", "7", "¾", },
{ "Ш", "ш", "|", "\\", "Ғ", "ғ", "8", "©", },
{ "Щ", "щ", "?", "/", "Х", "х", "9", "®", },
{ "З", "з", "~", "`", "Ъ", "ъ", "0", "", },
},
-- second row
{ -- 1 2 3 4 5 6 7 8
{ "Ф", "ф", "", _at, "*", "0", "«", "«", },
{ "Ы", "ы", "$", "4", "+", "4", "»", "»", },
{ "В", "в", "%", "5", "-", "5", "Ğ", "ğ", },
{ "А", "а", "^", "6", _eq, "6", "Ć", "ć", },
{ "П", "п", ":", ";", "Ү", "ү", "Č", "č", },
{ "Р", "р", '"', "'", "Ұ", "ұ", "Đ", "đ", },
{ "О", "о", "{", "[", "Қ", "қ", "Š", "š", },
{ "Л", "л", "}", "]", _Je_, _je_, "Ž", "ž", },
{ "Д", "д", "_", "-", "Э", "э", "§", "§", },
},
-- third row
{ -- 1 2 3 4 5 6 7 8
{ "", "", "2/2", "1/2", "", "", "", "",
width = 1.5
},
{ "Я", "я", "&", "7", ":", "7", "Ű", "ű", },
{ "Ч", "ч", "*", "8", ";", "8", "Ã", "ã", },
{ "С", "с", "£", "9", "'", "9", "Þ", "þ", },
{ "М", "м", "<", com, "Ө", "ө", "Ý", "ý", },
{ "И", "и", ">", prd, "Һ", "һ", "", "", },
{ "Т", "т", "", "", "Б", "б", "", "", },
{ "Ь", "ь", "", "", "Ю", "ю", "", "¨", },
{ label = "",
width = 1.5,
bold = false
},
},
-- fourth row
{
{ "123", "123", "АБВ", "АБВ", "ещё", "ещё", "АБВ", "АБВ",
width = 1.5},
{ label = "🌐", },
{ "Жбъ", "Жбъ", "Жбъ", "Жбъ", "Жбъ", "Жбъ", "Жбъ", "Жбъ", },
{ label = "пробел",
" ", " ", " ", " ", " ", " ", " ", " ",
width = 3.0},
{ com, com, "", "", "Ё", "ё", com, com, },
{ prd, prd, "", "", prd, prd, prd, prd, },
{ label = "",
"\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n",
width = 1.5,
bold = true
},
},
},
}