Files
koreader-mirror/frontend/ui/data/keyboardlayouts/ro_keyboard.lua
Mihai Vasiliu 2541440bb8 [UX] Add Romanian keyboard layout (#5660)
This adds a new separate Romanian keyboard layout, with popup support.

- Functional buttons are translated.
- Pages 5&6 contain 3 groups of characters (I tried my best to group them logically):
  - On the left: traditional Romanian cyrillic pre-1850s
  - On the middle latinised forms from 1850s onwards
  - On the right modern diacritics from 1900s to today
- Pages 7&8 add only large double quotes and section/paragraph mark.
- Popups are only avalable for most common diacritics. Swipe up for circumflex, swipe down for breve.

I can really call this the most complete though-the-ages Romanian keyboard. :)
2019-11-30 17:35:39 +01:00

87 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 ro_popup = require("ui/data/keyboardlayouts/keypopup/ro_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 _A_ = ro_popup._A_
local _a_ = ro_popup._a_
local _I_ = ro_popup._I_
local _i_ = ro_popup._i_
local _S_ = ro_popup._S_
local _s_ = ro_popup._s_
local _T_ = ro_popup._T_
local _t_ = ro_popup._t_
local _U_ = ro_popup._U_
local _u_ = ro_popup._u_
return {
min_layer = 1,
max_layer = 8,
shiftmode_keys = {[""] = true},
symbolmode_keys = {["123"] = true, ["ABC"] = true, ["alt"] = true},
utf8mode_keys = {["🌐"] = true},
umlautmode_keys = {["Îșț"] = true},
keys = {
-- first row
{ -- 1 2 3 4 5 6 7 8
{ "Q", "q", "", "0", "Ӂ", "ӂ", "1", "ª", },
{ "W", "w", "!", "1", "Џ", "џ", "2", "º", },
{ "E", "e", _at, "2", "Ѫ", "ѫ", "3", "¡", },
{ "R", "r", "#", "3", "", "", "4", "¿", },
{ _T_, _t_, "+", _eq, "Ѧ", "ѧ", "5", "¼", },
{ "Y", "y", "", "(", "Ô", "ô", "6", "½", },
{ _U_, _u_, "", ")", "", "", "7", "¾", },
{ _I_, _i_, "|", "\\", "Ĕ", "ĕ", "8", "©", },
{ "O", "o", "?", "/", "Ă", "ă", "9", "®", },
{ "P", "p", "~", "`", "Î", "î", "0", "", },
},
-- second row
{ -- 1 2 3 4 5 6 7 8
{ _A_, _a_, "", _at, "Ї", "ї", "«", "«", },
{ _S_, _s_, "$", "4", "Ѡ", "ѡ", "»", "»", },
{ "D", "d", "%", "5", "Є", "є", "Ǧ", "ǧ", },
{ "F", "f", "^", "6", "", "", "Ć", "ć", },
{ "G", "g", ":", ";", "Û", "û", "Č", "č", },
{ "H", "h", '"', "'", "Ê", "ê", "Đ", "đ", },
{ "J", "j", "{", "[", "Ș", "ș", "Š", "š", },
{ "K", "k", "}", "]", "Ț", "ț", "Ž", "ž", },
{ "L", "l", "_", "-", "Â", "â", "§", "§", },
},
-- third row
{ -- 1 2 3 4 5 6 7 8
{ label = "",
width = 1.5
},
{ "Z", "z", "&", "7", "Ѣ", "ѣ", "Ű", "ű", },
{ "X", "x", "*", "8", "Ѩ", "ѩ", "Ã", "ã", },
{ "C", "c", "£", "9", "Ѥ", "ѥ", "Þ", "þ", },
{ "V", "v", "<", com, "Ó", "ó", "Ý", "ý", },
{ "B", "b", ">", prd, "É", "é", "", "", },
{ "N", "n", "", "", "Ŭ", "ŭ", "", "", },
{ "M", "m", "", "", "Ĭ", "ĭ", "", "¨", },
{ label = "",
width = 1.5,
bold = false
},
},
-- fourth row
{
{ "123", "123", "ABC", "ABC", "alt", "alt", "ABC", "ABC",
width = 1.5},
{ label = "🌐", },
{ "Îșț", "Îșț", "Îșț", "Îșț", "Îșț", "Îșț", "Îșț", "Îșț", },
{ label = "spațiu",
" ", " ", " ", " ", " ", " ", " ", " ",
width = 3.0},
{ com, com, "", "", "Ç", "ç", com, com, },
{ prd, prd, "", "", "Ŏ", "ŏ", prd, prd, },
{ label = "",
"\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n",
width = 1.5,
bold = true
},
},
},
}