From 0f37f4b48f15b0fa4768f4545c8138335d460453 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 17 Aug 2014 17:48:00 +0200 Subject: add swedish keyboards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- res/keyboard/layout/common/base | 1 + res/keyboard/layout/common/dvorak | 39 ++++++++ res/keyboard/layout/common/qwerty | 39 ++++++++ res/keyboard/layout/sv | 178 ++++++++++++++++++++++++++++++++++ res/keyboard/layout/sv_dvorak | 144 ++++++++++++++++++++++++++++ res/keyboard/layout/sv_pure | 194 ++++++++++++++++++++++++++++++++++++++ res/keyboard/layout/sv_svdvorak | 129 +++++++++++++++++++++++++ 7 files changed, 724 insertions(+) create mode 100644 res/keyboard/layout/common/dvorak create mode 100644 res/keyboard/layout/common/qwerty create mode 100644 res/keyboard/layout/sv create mode 100644 res/keyboard/layout/sv_dvorak create mode 100644 res/keyboard/layout/sv_pure create mode 100644 res/keyboard/layout/sv_svdvorak (limited to 'res') diff --git a/res/keyboard/layout/common/base b/res/keyboard/layout/common/base index 07f03e6..60f4323 100644 --- a/res/keyboard/layout/common/base +++ b/res/keyboard/layout/common/base @@ -1,4 +1,5 @@ include "control_keys" include "keypad" include "control" +include "../../compose/dead" diff --git a/res/keyboard/layout/common/dvorak b/res/keyboard/layout/common/dvorak new file mode 100644 index 0000000..249ad68 --- /dev/null +++ b/res/keyboard/layout/common/dvorak @@ -0,0 +1,39 @@ +include "latin" + +<-ctrl keycode 2> : +<-ctrl keycode 3> : +<-ctrl keycode 4> : +<-ctrl keycode 5> : +<-ctrl keycode 6> : +<-ctrl keycode 7> : +<-ctrl keycode 8> : +<-ctrl keycode 9> : +<-ctrl keycode 10> : +<-ctrl keycode 11> : +<-ctrl keycode 19> : +<-ctrl keycode 20> : +<-ctrl keycode 21> : +<-ctrl keycode 22> : +<-ctrl keycode 23> : +<-ctrl keycode 24> : +<-ctrl keycode 25> : +<-ctrl keycode 30> : +<-ctrl keycode 31> : +<-ctrl keycode 32> : +<-ctrl keycode 33> : +<-ctrl keycode 34> : +<-ctrl keycode 35> : +<-ctrl keycode 36> : +<-ctrl keycode 37> : +<-ctrl keycode 38> : +<-ctrl keycode 39> : +<-ctrl keycode 45> : +<-ctrl keycode 46> : +<-ctrl keycode 47> : +<-ctrl keycode 48> : +<-ctrl keycode 49> : +<-ctrl keycode 50> : +<-ctrl keycode 51> : +<-ctrl keycode 52> : +<-ctrl keycode 53> : + diff --git a/res/keyboard/layout/common/qwerty b/res/keyboard/layout/common/qwerty new file mode 100644 index 0000000..c144294 --- /dev/null +++ b/res/keyboard/layout/common/qwerty @@ -0,0 +1,39 @@ +include "latin" + +<-ctrl keycode 2> : +<-ctrl keycode 3> : +<-ctrl keycode 4> : +<-ctrl keycode 5> : +<-ctrl keycode 6> : +<-ctrl keycode 7> : +<-ctrl keycode 8> : +<-ctrl keycode 9> : +<-ctrl keycode 10> : +<-ctrl keycode 11> : +<-ctrl keycode 16> : +<-ctrl keycode 17> : +<-ctrl keycode 18> : +<-ctrl keycode 19> : +<-ctrl keycode 20> : +<-ctrl keycode 21> : +<-ctrl keycode 22> : +<-ctrl keycode 23> : +<-ctrl keycode 24> : +<-ctrl keycode 25> : +<-ctrl keycode 30> : +<-ctrl keycode 31> : +<-ctrl keycode 32> : +<-ctrl keycode 33> : +<-ctrl keycode 34> : +<-ctrl keycode 35> : +<-ctrl keycode 36> : +<-ctrl keycode 37> : +<-ctrl keycode 38> : +<-ctrl keycode 44> : +<-ctrl keycode 45> : +<-ctrl keycode 46> : +<-ctrl keycode 47> : +<-ctrl keycode 48> : +<-ctrl keycode 49> : +<-ctrl keycode 50> : + diff --git a/res/keyboard/layout/sv b/res/keyboard/layout/sv new file mode 100644 index 0000000..d87b4a8 --- /dev/null +++ b/res/keyboard/layout/sv @@ -0,0 +1,178 @@ +information + language "Swedish" + country "Sweden" + variant "QWERTY" +end information + +include "common/qwerty" +include "common/base" + + +function comma/0 + "," +end function +function altcomma/0 + "." +end function + +macro mod_letter/2 + : "\1" + : "\2" + : "\2" + : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + + : + : + : + : + : + : + : + : + : + : + : + : + + +macro key/4 + : "\1" + : "\2" + : "\3" + : "\4" +end macro + + +key("§" "½" "¶" "¾") +key("1" "!" "¡" "¹") +key("2" "\"" "@" "²") +key("3" "#" "£" "³") +key("4" "¤" "$" "¼") +key("5" "%" "€" "¢") +key("6" "&" "¥" "⅝") +key("7" "/" "{" "÷") +key("8" "(" "[" "«") +key("9" ")" "]" "»") +key("0" "=" "}" "°") +key("+" "?" "\\" "¿") + : + : "±" + : "¬" + + : + : + : + +key("'" "*" "`" "×") +key("<" ">" "|" "¦") + + : "," + : ";" + : + : + + : "." + : ":" + : "·" + : + + : "-" + : "_" + : + : + + + : "Ω" + : + + : "ł" + : "Ł" + + : + : + + : "®" + : + + : "þ" + : "Þ" + + : "←" + : + + : "↓" + : "↑" + + : "→" + : "ı" + + : "œ" + : "Œ" + + : + : + + : + : + + + : "æ" + : "Æ" + + : "ß" + : + + : "ð" + : "Ð" + + : "đ" + : "ª" + + : "ŋ" + : "Ŋ" + + : "ħ" + : "Ħ" + + : + : + + : "ĸ" + : + + : + : + + : "ø" + : "Ø" + + : + : + + + : + : + + : + : + + : "©" + : + + : "‘" + : "“" + + : "’" + : "”" + + : + : + + : "µ" + : "º" + diff --git a/res/keyboard/layout/sv_dvorak b/res/keyboard/layout/sv_dvorak new file mode 100644 index 0000000..09aaced --- /dev/null +++ b/res/keyboard/layout/sv_dvorak @@ -0,0 +1,144 @@ +information + language "Swedish" + country "Sweden" + variant "Dvorak" +end information + +include "common/dvorak" +include "common/base" + + +function comma/0 + "," +end function +function altcomma/0 + "." +end function + +macro mod_letter/2 + : "\1" + : "\2" + : "\2" + : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + + : + : + : + : + : + : + : + : + : + : + : + : + + +macro key/4 + : "\1" + : "\2" + : "\3" + : "\4" +end macro + + +key("§" "½" "¶" "¾") +key("1" "!" "¡" "¹") +key("2" "\"" "@" "²") +key("3" "#" "£" "³") +key("4" "¤" "$" "¼") +key("5" "%" "€" "¢") +key("6" "&" "¥" "⅝") +key("7" "/" "{" "÷") +key("8" "(" "[" "«") +key("9" ")" "]" "»") +key("0" "=" "}" "°") +key("+" "?" "\\" "¿") + : + : "±" + : "¬" + + : "," + : ";" + : + : + + : + : + : + + : "-" + : "_" + : + : + + : "'" + : "*" + : "`" + : + +key("<" ">" "|" "¦") + + : "." + : ":" + : "·" + : + + +macro nocaps/3 + : "\2" + : "\3" +end macro + +macro caps/3 + : "\2" + : "\3" + : "\3" + : "\2" +end macro + + +nocaps("å" "\\" "Ω") +nocaps("ä" "{" "[") +nocaps("ö" "}" "]") +caps("p" "þ" "Þ") +nocaps("y" "←" "¥") +caps("f" "đ" "ª") +caps("g" "ŋ" "Ŋ") + : "©" + : + : "®" + : +caps("l" "ł" "Ł") + +caps("a" "æ" "Æ") +caps("o" "œ" "Œ") +nocaps("e" "€" "¢") +nocaps("u" "↓" "↑") +nocaps("i" "→" "ı") +caps("d" "ð" "Ð") +caps("h" "ħ" "Ħ") +caps("t" "ŧ" "Ŧ") +caps("n" "ł" "Ł") + : "ß" + : + + : + : "Ω" + : "©" + : + : "ĸ" + : +nocaps("x" "»" ">") +nocaps("b" "’" "”") +caps("m" "µ" "º") +caps("w" "ł" "Ł") +nocaps("v" "\"" "`") +nocaps("z" "«" "<") + diff --git a/res/keyboard/layout/sv_pure b/res/keyboard/layout/sv_pure new file mode 100644 index 0000000..b514a86 --- /dev/null +++ b/res/keyboard/layout/sv_pure @@ -0,0 +1,194 @@ +information + language "Swedish" + country "Sweden" + variant "WERTY, pure" +end information + +# This variant is intended to increase the +# type speed when writing purely Swedish text. + + +include "common/qwerty" +include "common/base" + + +function comma/0 + "," +end function +function altcomma/0 + "." +end function + +macro mod_letter/2 + : "\1" + : "\2" + : "\2" + : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + + : + : + : + : + : + : + : + : + : + : + : + : + + +macro key/2 + : "\1" + : "\2" + : + : +end macro + +macro key/3 + : "\1" + : "\2" + : "\3" + : +end macro + +macro key/4 + : "\1" + : "\2" + : "\3" + : "\4" +end macro + + +key("§" "½" "¶") +key("1" "!" "‽") +key("2" "\"" "@" "”") +key("3" "#" "¾") +key("4" "¤" "¼") +key("5" "%" "‰") +key("6" "&") +key("7" "/" "{" "÷") +key("8" "(" "[" "»") +key("9" ")" "]" "»") +key("0" "=" "}" "°") +key("+" "?" "\\" "⸮") + : "´" + : "`" + : "±" + : "¬" + + : "¨" + : "^" + : "~" + +key("'" "*" "’" "×") +key("<" ">" "|" "¦") + + : "," + : ";" + + : "." + : ":" + : "»" + + : "-" + : "_" + : "–" + : "—" + + + : "©" + : "©" + : "®" + : "®" + + : "é" + : "É" + + : "ü" + : "Ü" + + : "↓" + : "↑" + + : "→" + : "←" + + + : "à" + : "À" + + : "z" + : "Z" + + : "ng" + : "gn" + + : "q" + : "Q" + + + : "’" + : "’" + : "»" + : "»" + : "”" + : + + : "w" + : "W" + + : "µ" + : "Ω" + + + : "ː" + : "ˑ" + : "˘" + : "." + : "ˈ" + : "ˌ" + : "ɑː" + : "a" + : "eː" + : "e" + : "iː" + : "ɪ" + : "uː" + : "ʊ" + : "yː" + : "ʏ" + : "ʉ̟ː" + : "ɵ" + : "oː" + : "ɔ" + : "æː" + : "æ" + : "ɛː" + : "ɛ" + : "œ̞ː" + : "œ̞" + : "øː" + : "œ" + : + : "ə" + : "ŋ" + : "ŋ" + : "ɧ" + : "ʝ" + : "ɕ" + : "ʀ" + : "ʃ" + : "ʂ" + : "ɖ" + : "ʈ" + : "ɳ" + : "ɭ" + : "̥" + diff --git a/res/keyboard/layout/sv_svdvorak b/res/keyboard/layout/sv_svdvorak new file mode 100644 index 0000000..6ad7b7b --- /dev/null +++ b/res/keyboard/layout/sv_svdvorak @@ -0,0 +1,129 @@ +information + language "Swedish" + country "Sweden" + variant "Svdvorak" +end information + +include "common/dvorak" +include "common/base" + + +function comma/0 + "," +end function +function altcomma/0 + "." +end function + +macro mod_letter/2 + : "\1" + : "\2" + : "\2" + : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + + : + : + : + : + : + : + : + : + : + : + : + : + + +macro key/4 + : "\1" + : "\2" + : "\3" + : "\4" +end macro + + +key("§" "½" "¶" "¾") +key("1" "!" "¡" "¹") +key("2" "\"" "@" "²") +key("3" "#" "£" "³") +key("4" "¤" "$" "¼") +key("5" "%" "€" "¢") +key("6" "&" "¥" "⅝") +key("7" "/" "{" "÷") +key("8" "(" "[" "«") +key("9" ")" "]" "»") +key("0" "=" "}" "°") +key("+" "?" "\\" "¿") + : + : "±" + : "¬" + + : + : + : + + : "'" + : "*" + : "`" + : +key("<" ">" "|" "×") + + +macro nocaps/3 + : "\2" + : "\3" +end macro + +macro caps/3 + : "\2" + : "\3" + : "\3" + : "\2" +end macro + +nocaps("å" "{" "Ω") +key("," ";" "[" "€") +key("." ":" "]" "¢") +nocaps("p" "}" "®") +caps("y" "þ" "Þ") +nocaps("f" "←" "¥") +nocaps("g" "↓" "↑") +nocaps("c" "→" "ı") +caps("l" "œ" "Œ") + +caps("a" "æ" "Æ") +nocaps("o" "(" "«") +nocaps("e" ")" "»") +caps("u" "đ" "Ð") +caps("d" "ð" "Ð") +caps("h" "ħ" "Ħ") +caps("t" "ŧ" "Ŧ") +caps("n" "ł" "Ł") + : "ß" + : + : "_" +caps("-" "ø" "Ø") + +nocaps("ö" "|" "¦") +nocaps("ä" "«" "ª") +nocaps("q" "»" "º") + : "©" + : + : "ĸ" + : +nocaps("x" "‘" "“") +nocaps("b" "’" "”") +caps("m" "µ" "º") + : + : + : "·" + : + : + : + -- cgit v1.2.3-70-g09d2