Files
koreader/frontend/ui/data/keyboardlayouts/ru_keyboard.lua
Mihai Vasiliu e8f91ab399 [UX] ru keyboard ё popup and translation (#5662)
Changes in this commit:
- Fix arrays to large (10 elements instead of 8) copied from the old keyboard system.  Issue introduced in #5610 
- Add ё popup.
- Change shift key as per #5659 (for both ro and ru keyboards)
- Translate Russian space and symbol keys.
- Rename Sym key to 123
2019-12-03 15:09:06 +01:00

81 lines
4.1 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

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.

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
},
},
},
}