Carlos Garnacho 99ab1988d2 keyboard: Refer to levels by name instead of index
And drop some more guesswork in the code, since some layouts have
less than 4 levels. This also allows for having OSK maps with more
than 4 levels. Let us hope that the sanity of our future kin will
remain below that threshold.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>
2024-02-29 16:34:21 +01:00

801 lines
14 KiB
JSON
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.

{
"levels": [
{
"level": "default",
"mode": "default",
"rows": [
[
{
"strings": [
"ض"
]
},
{
"strings": [
"ص"
]
},
{
"strings": [
"ث"
]
},
{
"strings": [
"ق",
"ڨ"
]
},
{
"strings": [
"ف",
"ڤ",
"ڢ",
"ڥ"
]
},
{
"strings": [
"غ"
]
},
{
"strings": [
"ع"
]
},
{
"strings": [
"ه",
"ه"
]
},
{
"strings": [
"خ"
]
},
{
"strings": [
"ح"
]
},
{
"strings": [
"ج",
"چ"
]
},
{
"action": "delete",
"iconName": "edit-clear-symbolic",
"width": 1.5
}
],
[
{
"strings": [
"ش",
"ڜ"
]
},
{
"strings": [
"س"
]
},
{
"strings": [
"ي",
"ئ",
"ى"
]
},
{
"strings": [
"ب",
"پ"
]
},
{
"strings": [
"ل",
"لا",
"لأ",
"لإ",
"لآ"
]
},
{
"strings": [
"ا",
"آ",
"ء",
"أ",
"إ",
"ٱ"
]
},
{
"strings": [
"ت"
]
},
{
"strings": [
"ن"
]
},
{
"strings": [
"م"
]
},
{
"strings": [
"ك",
"گ",
"ک"
]
},
{
"strings": [
"ط"
]
},
{
"iconName": "keyboard-enter-symbolic",
"keyval": "0xff0d",
"width": 1.5
}
],
[
{
"leftOffset": 1,
"strings": [
"ذ"
]
},
{
"strings": [
"ء"
]
},
{
"strings": [
"ؤ"
]
},
{
"strings": [
"ر"
]
},
{
"strings": [
"ى",
"ئ"
]
},
{
"strings": [
"ة"
]
},
{
"strings": [
"و"
]
},
{
"strings": [
"ز",
"ژ"
]
},
{
"strings": [
"ظ"
]
},
{
"strings": [
"د"
]
}
],
[
{
"action": "levelSwitch",
"label": "?123",
"level": "opt",
"width": 1.5
},
{
"strings": [
"،"
]
},
{
"strings": [
" "
],
"width": 6
},
{
"strings": [
".",
"\"",
"'",
"#",
"-",
":",
"!",
"،",
"؟",
"@",
"&",
"%",
"+",
"؛",
"/",
")",
"("
]
},
{
"action": "emoji",
"iconName": "face-smile-symbolic"
},
{
"action": "languageMenu",
"iconName": "keyboard-layout-symbolic"
},
{
"action": "hide",
"iconName": "keyboard-hide-symbolic"
}
]
]
},
{
"level": "opt",
"mode": "locked",
"rows": [
[
{
"strings": [
"۱",
"¹",
"½",
"⅓",
"¼",
"⅛"
]
},
{
"strings": [
"۲",
"²",
"⅔"
]
},
{
"strings": [
"۳",
"³",
"¾",
"⅜"
]
},
{
"strings": [
"۴",
"⁴"
]
},
{
"strings": [
"۵",
"⅝"
]
},
{
"strings": [
"۶"
]
},
{
"strings": [
"۷",
"⅞"
]
},
{
"strings": [
"۸"
]
},
{
"strings": [
"۹"
]
},
{
"strings": [
"۰",
"ⁿ",
"∅"
]
},
{
"action": "delete",
"iconName": "edit-clear-symbolic",
"width": 1.5
}
],
[
{
"leftOffset": 0.5,
"strings": [
"٬",
"@"
]
},
{
"strings": [
"٫",
"#"
]
},
{
"strings": [
"﷼",
"$",
"¢",
"€",
"£",
"¥",
"₱"
]
},
{
"strings": [
"٪",
"%",
"‰"
]
},
{
"strings": [
"&"
]
},
{
"strings": [
"-",
"_",
"",
"—",
"·"
]
},
{
"strings": [
"+",
"±"
]
},
{
"strings": [
"(",
"﴿",
">",
"}",
"]"
]
},
{
"strings": [
")",
"",
"<",
"{",
"["
]
},
{
"iconName": "keyboard-enter-symbolic",
"keyval": "0xff0d",
"width": 2
}
],
[
{
"action": "levelSwitch",
"label": "=/<",
"level": "opt+shift",
"width": 1.5
},
{
"strings": [
"*",
"★",
"٭"
]
},
{
"strings": [
"«",
"“",
"”",
"«",
"»"
]
},
{
"strings": [
"»",
"",
"",
"",
""
]
},
{
"strings": [
":"
]
},
{
"strings": [
"؛",
";"
]
},
{
"strings": [
"!",
"¡"
]
},
{
"strings": [
"؟",
"?"
]
},
{
"action": "levelSwitch",
"label": "=/<",
"level": "opt+shift",
"width": 3
}
],
[
{
"action": "levelSwitch",
"label": "ABC",
"level": "default",
"width": 1.5
},
{
"strings": [
"_"
]
},
{
"strings": [
"/"
]
},
{
"strings": [
" "
],
"width": 3
},
{
"strings": [
"،",
":",
"!",
"؟",
"؛",
"-",
"/",
"»",
"«"
]
},
{
"strings": [
".",
"ٕ",
"ٔ",
"ْ",
"ٍ",
"ٌ",
"ً",
"ّ",
"ٖ",
"ٰ",
"ٓ",
"ِ",
"ُ",
"َ",
"ـ"
]
},
{
"action": "emoji",
"iconName": "face-smile-symbolic"
},
{
"action": "languageMenu",
"iconName": "keyboard-layout-symbolic"
},
{
"action": "hide",
"iconName": "keyboard-hide-symbolic"
}
]
]
},
{
"level": "opt+shift",
"mode": "locked",
"rows": [
[
{
"strings": [
"~"
]
},
{
"strings": [
"`"
]
},
{
"strings": [
"|"
]
},
{
"strings": [
"•",
"♪"
]
},
{
"strings": [
"√"
]
},
{
"strings": [
"Π",
"π"
]
},
{
"strings": [
"÷"
]
},
{
"strings": [
"×"
]
},
{
"strings": [
"¶",
"§"
]
},
{
"strings": [
"∆"
]
},
{
"action": "delete",
"iconName": "edit-clear-symbolic",
"width": 1.5
}
],
[
{
"leftOffset": 0.5,
"strings": [
"£"
]
},
{
"strings": [
"€"
]
},
{
"strings": [
"$",
"¢"
]
},
{
"strings": [
"¢"
]
},
{
"strings": [
"^",
"↑",
"↓",
"←",
"→"
]
},
{
"strings": [
"°",
"",
"″"
]
},
{
"strings": [
"=",
"≠",
"≈",
"∞"
]
},
{
"strings": [
"{"
]
},
{
"strings": [
"}"
]
},
{
"iconName": "keyboard-enter-symbolic",
"keyval": "0xff0d",
"width": 2
}
],
[
{
"action": "levelSwitch",
"label": "?123",
"level": "opt",
"width": 1.5
},
{
"strings": [
"\\"
]
},
{
"strings": [
"©"
]
},
{
"strings": [
"®"
]
},
{
"strings": [
"™"
]
},
{
"strings": [
"℅"
]
},
{
"strings": [
"["
]
},
{
"strings": [
"]"
]
},
{
"action": "levelSwitch",
"label": "?123",
"level": "opt",
"width": 3
}
],
[
{
"action": "levelSwitch",
"label": "ABC",
"level": "default",
"width": 1.5
},
{
"strings": [
"«",
"",
"≥",
">"
]
},
{
"strings": [
"»",
"",
"≤",
"<"
]
},
{
"strings": [
" "
],
"width": 3
},
{
"strings": [
"،",
":",
"!",
"؟",
"؛",
"-",
"/",
"»",
"«"
]
},
{
"strings": [
".",
"ٕ",
"ٔ",
"ْ",
"ٍ",
"ٌ",
"ً",
"ّ",
"ٖ",
"ٰ",
"ٓ",
"ِ",
"ُ",
"َ",
"ـ"
]
},
{
"action": "emoji",
"iconName": "face-smile-symbolic"
},
{
"action": "languageMenu",
"iconName": "keyboard-layout-symbolic"
},
{
"action": "hide",
"iconName": "keyboard-hide-symbolic"
}
]
]
}
],
"locale": "fa",
"name": "Persian"
}