abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorbokidori2024-07-25 23:21:39 +0200
committerGitHub2024-07-25 23:21:39 +0200
commit6e1364b5c26af814a304b3f6a7e8fbc8722b4c57 (patch)
tree6a1b3f0e56e422f17144945c14ee9f9acdc73c1b
parentacddd70435175c9e7ac33ef63fc5917a1f0bb3e9 (diff)
downloadunexpected-keyboard-6e1364b5c26af814a304b3f6a7e8fbc8722b4c57.tar.gz
unexpected-keyboard-6e1364b5c26af814a304b3f6a7e8fbc8722b4c57.zip
Add Serbian Latin QWERTY layout (#720)
Adds Serbian Latin QWERTY layout. Serbian language uses both Latin and Cyrillic as its official scripts, and this variant should cover anyone from Serbo-Croatian speaking group that uses Latin script.
-rw-r--r--check_layout.output3
-rw-r--r--res/values/layouts.xml3
-rw-r--r--srcs/layouts/latn_qwerty_sr.xml46
3 files changed, 52 insertions, 0 deletions
diff --git a/check_layout.output b/check_layout.output
index 1bd9d9b..2aeb768 100644
--- a/check_layout.output
+++ b/check_layout.output
@@ -101,6 +101,9 @@ Duplicate keys: !, ', ,, -, ., ?
1 warnings
# latn_qwerty_sk
0 warnings
+# latn_qwerty_sr
+Layout doesn't define some important keys, missing: delete, loc esc, loc tab
+1 warnings
# latn_qwerty_tly
Duplicate keys: a, c, j, q
Layout doesn't define some important keys, missing: loc esc, loc tab
diff --git a/res/values/layouts.xml b/res/values/layouts.xml
index dac86d9..980182f 100644
--- a/res/values/layouts.xml
+++ b/res/values/layouts.xml
@@ -43,6 +43,7 @@
<item>latn_qwerty_ro</item>
<item>latn_qwerty_se</item>
<item>latn_qwerty_sk</item>
+ <item>latn_qwerty_sr</item>
<item>latn_qwerty_tly</item>
<item>latn_qwerty_tr</item>
<item>latn_qwerty_vi</item>
@@ -99,6 +100,7 @@
<item>QWERTY (Română)</item>
<item>QWERTY (Swedish)</item>
<item>QWERTY (Slovak)</item>
+ <item>QWERTY (Srpski, latinica)</item>
<item>QWERTY (Talysh New Latin)</item>
<item>QWERTY (Türkçe)</item>
<item>QWERTY (Vietnamese)</item>
@@ -155,6 +157,7 @@
<item>@xml/latn_qwerty_ro</item>
<item>@xml/latn_qwerty_se</item>
<item>@xml/latn_qwerty_sk</item>
+ <item>@xml/latn_qwerty_sr</item>
<item>@xml/latn_qwerty_tly</item>
<item>@xml/latn_qwerty_tr</item>
<item>@xml/latn_qwerty_vi</item>
diff --git a/srcs/layouts/latn_qwerty_sr.xml b/srcs/layouts/latn_qwerty_sr.xml
new file mode 100644
index 0000000..41f2b3a
--- /dev/null
+++ b/srcs/layouts/latn_qwerty_sr.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<keyboard name="QWERTY (Srpski, latinica)" script="latin">
+ <modmap>
+ <fn a="a" b="â" />
+ <fn a="o" b="ô" />
+ <fn a="e" b="æ" />
+ <fn a="€" b="œ" />
+ <fn a="cursor_left" b="home" />
+ <fn a="cursor_right" b="end" />
+ </modmap>
+ <row>
+ <key key0="q" ne="1" se="loc esc"/>
+ <key key0="w" nw="~" ne="2" sw="\@"/>
+ <key key0="e" ne="3" sw="\#" se="€"/>
+ <key key0="r" ne="4" sw="$" se="loc £"/>
+ <key key0="t" ne="5" sw="%"/>
+ <key key0="y" ne="6" sw="^"/>
+ <key key0="u" ne="7" sw="&amp;"/>
+ <key key0="i" ne="8" sw="*"/>
+ <key key0="o" ne="9" sw="(" se=")"/>
+ <key key0="p" ne="0" sw="[" se="]"/>
+ </row>
+ <row>
+ <key key0="a" nw="loc tab" ne="loc selectAll"/>
+ <key key0="s" nw="loc §" ne="š"/>
+ <key key0="d" ne="đ"/>
+ <key key0="f"/>
+ <key key0="g"/>
+ <key key0="h" ne="loc accent_circonflexe" sw="{" se="}"/>
+ <key key0="j" ne="-" sw="_"/>
+ <key key0="k" ne="=" sw="+"/>
+ <key key0="l" 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="z" nw="loc undo" ne="ž"/>
+ <key key0="x" nw="loc cut"/>
+ <key key0="c" nw="loc copy" ne="ć"/>
+ <key key0="v" nw="loc paste" ne="&lt;" se="&gt;"/>
+ <key key0="b" nw="!" ne="\?" sw="/"/>
+ <key key0="n" ne=";" sw=","/>
+ <key key0="m" ne=":" sw="."/>
+ <key width="1.5" key0="backspace" ne="delete"/>
+ </row>
+</keyboard> \ No newline at end of file