Skip to content

Commit

Permalink
Add Serbian Cyrillic layout (#718)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bokidori authored Jul 25, 2024
1 parent 6c786f2 commit acddd70
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
3 changes: 3 additions & 0 deletions check_layout.output
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions res/values/layouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -72,6 +73,7 @@
<item>বাংলা (প্রভাত)</item>
<item>ЙЦУКЕН (Русский)</item>
<item>ЙЦУКЕН (Українська)</item>
<item>ЉЊЕРТЗ (Српски)</item>
<item>УЕИШЩ (Български, БДС)</item>
<item>ЯВЕРТЪ</item>
<item>देवनागरी (हिंदी)-2</item>
Expand Down Expand Up @@ -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>
Expand Down
56 changes: 56 additions & 0 deletions srcs/layouts/cyrl_lynyertz_sr.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit acddd70

Please sign in to comment.