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.
This commit is contained in:
bokidori 2024-07-25 23:14:30 +02:00 committed by GitHub
parent 6c786f2a1a
commit acddd70435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 62 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -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="&lt;" b="undo" />
<fn a="&gt;" 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="&amp;"/>
<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="&quot;" 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="&lt;" se="&gt;"/>
<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>