diff options
| author | bokidori | 2024-07-25 23:14:30 +0200 |
|---|---|---|
| committer | GitHub | 2024-07-25 23:14:30 +0200 |
| commit | acddd70435175c9e7ac33ef63fc5917a1f0bb3e9 (patch) | |
| tree | 5579296662438e4688359303b2ca45c11840fa82 | |
| parent | 6c786f2a1a54bf68ac99f858bc486c9509cac8ab (diff) | |
| download | unexpected-keyboard-acddd70435175c9e7ac33ef63fc5917a1f0bb3e9.tar.gz unexpected-keyboard-acddd70435175c9e7ac33ef63fc5917a1f0bb3e9.zip | |
Add Serbian Cyrillic layout (#718)
Adds Serbian Cyrillic layout. Modmap of Fn key allows for desktop-like easier access to actions such as selectAll, copy, paste, etc. This is because, unlike desktop systems, on mobile ctrl does not combine with cyrillic keys to perform actions.
| -rw-r--r-- | check_layout.output | 3 | ||||
| -rw-r--r-- | res/values/layouts.xml | 3 | ||||
| -rw-r--r-- | srcs/layouts/cyrl_lynyertz_sr.xml | 56 |
3 files changed, 62 insertions, 0 deletions
diff --git a/check_layout.output b/check_layout.output index d6aa54a..1bd9d9b 100644 --- a/check_layout.output +++ b/check_layout.output @@ -29,6 +29,9 @@ Layout includes some ASCII punctuation but not all, missing: $, &, *, ., /, <, > 0 warnings # cyrl_jcuken_uk 0 warnings +# cyrl_lynyertz_sr +Layout doesn't define some important keys, missing: delete, loc esc, loc tab +1 warnings # cyrl_ueishsht 0 warnings # cyrl_yaverti diff --git a/res/values/layouts.xml b/res/values/layouts.xml index 4bab9da..dac86d9 100644 --- a/res/values/layouts.xml +++ b/res/values/layouts.xml @@ -17,6 +17,7 @@ <item>beng_provat</item> <item>cyrl_jcuken_ru</item> <item>cyrl_jcuken_uk</item> + <item>cyrl_lynyertz_sr</item> <item>cyrl_ueishsht</item> <item>cyrl_yaverti</item> <item>deva_alt</item> @@ -72,6 +73,7 @@ <item>বাংলা (প্রভাত)</item> <item>ЙЦУКЕН (Русский)</item> <item>ЙЦУКЕН (Українська)</item> + <item>ЉЊЕРТЗ (Српски)</item> <item>УЕИШЩ (Български, БДС)</item> <item>ЯВЕРТЪ</item> <item>देवनागरी (हिंदी)-2</item> @@ -127,6 +129,7 @@ <item>@xml/beng_provat</item> <item>@xml/cyrl_jcuken_ru</item> <item>@xml/cyrl_jcuken_uk</item> + <item>@xml/cyrl_lynyertz_sr</item> <item>@xml/cyrl_ueishsht</item> <item>@xml/cyrl_yaverti</item> <item>@xml/deva_alt</item> diff --git a/srcs/layouts/cyrl_lynyertz_sr.xml b/srcs/layouts/cyrl_lynyertz_sr.xml new file mode 100644 index 0000000..fe33b39 --- /dev/null +++ b/srcs/layouts/cyrl_lynyertz_sr.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<keyboard name="ЉЊЕРТЗ (Српски)" script="cyrillic"> + <modmap> + <fn a="а" b="а̂" /> + <fn a="е" b="е̂" /> + <fn a="и" b="и̂" /> + <fn a="о" b="о̂" /> + <fn a="у" b="у̂" /> + <fn a="ж" b="selectAll" /> + <fn a="<" b="undo" /> + <fn a=">" b="redo" /> + <fn a="џ" b="cut" /> + <fn a="ц" b="copy" /> + <fn a="в" b="paste" /> + <fn a="cursor_left" b="home" /> + <fn a="cursor_right" b="end" /> + </modmap> + <row> + <key key0="љ" ne="1" se="loc esc"/> + <key key0="њ" nw="~" ne="2" sw="\@"/> + <key key0="е" ne="3" sw="\#" se="€"/> + <key key0="р" ne="4" sw="$" se="loc £"/> + <key key0="т" ne="5" sw="%"/> + <key key0="з" ne="6" sw="^"/> + <key key0="у" ne="7" sw="&"/> + <key key0="и" ne="8" sw="*"/> + <key key0="о" ne="9" sw="(" se=")"/> + <key key0="п" ne="0" sw="[" se="]"/> + <key key0="ш"/> + </row> + <row> + <key key0="а" nw="loc tab" ne="loc selectAll"/> + <key key0="с" nw="loc §" ne="loc shareText"/> + <key key0="д"/> + <key key0="ф"/> + <key key0="г"/> + <key key0="х"/> + <key key0="ј" ne="loc accent_circonflexe" sw="{" se="}"/> + <key key0="к" ne="-" sw="_"/> + <key key0="л" ne="=" sw="+"/> + <key key0="ч" nw="'" ne=""" sw="\\"/> + <key key0="ћ" ne="`" sw="|"/> + </row> + <row> + <key width="1.5" key0="shift" nw="loc superscript" ne="loc capslock" sw="loc subscript"/> + <key key0="ж" nw="loc undo" ne="loc redo" sw="<" se=">"/> + <key key0="џ" ne="loc cut"/> + <key key0="ц" ne="loc copy"/> + <key key0="в" ne="loc paste"/> + <key key0="б" ne="loc pasteAsPlainText"/> + <key key0="н" nw="!" ne="\?" sw="/"/> + <key key0="м" ne=";" sw=","/> + <key key0="ђ" ne=":" sw="."/> + <key width="1.5" key0="backspace" ne="delete"/> + </row> +</keyboard>
\ No newline at end of file |
