diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/keyboard/layout/common/base | 1 | ||||
-rw-r--r-- | res/keyboard/layout/common/dvorak | 39 | ||||
-rw-r--r-- | res/keyboard/layout/common/qwerty | 39 | ||||
-rw-r--r-- | res/keyboard/layout/sv | 178 | ||||
-rw-r--r-- | res/keyboard/layout/sv_dvorak | 144 | ||||
-rw-r--r-- | res/keyboard/layout/sv_pure | 194 | ||||
-rw-r--r-- | res/keyboard/layout/sv_svdvorak | 129 |
7 files changed, 724 insertions, 0 deletions
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> : <letter 1> +<-ctrl keycode 3> : <letter 2> +<-ctrl keycode 4> : <letter 3> +<-ctrl keycode 5> : <letter 4> +<-ctrl keycode 6> : <letter 5> +<-ctrl keycode 7> : <letter 6> +<-ctrl keycode 8> : <letter 7> +<-ctrl keycode 9> : <letter 8> +<-ctrl keycode 10> : <letter 9> +<-ctrl keycode 11> : <letter 0> +<-ctrl keycode 19> : <letter p> +<-ctrl keycode 20> : <letter y> +<-ctrl keycode 21> : <letter f> +<-ctrl keycode 22> : <letter g> +<-ctrl keycode 23> : <letter c> +<-ctrl keycode 24> : <letter r> +<-ctrl keycode 25> : <letter l> +<-ctrl keycode 30> : <letter a> +<-ctrl keycode 31> : <letter o> +<-ctrl keycode 32> : <letter e> +<-ctrl keycode 33> : <letter u> +<-ctrl keycode 34> : <letter i> +<-ctrl keycode 35> : <letter d> +<-ctrl keycode 36> : <letter h> +<-ctrl keycode 37> : <letter t> +<-ctrl keycode 38> : <letter n> +<-ctrl keycode 39> : <letter s> +<-ctrl keycode 45> : <letter q> +<-ctrl keycode 46> : <letter j> +<-ctrl keycode 47> : <letter k> +<-ctrl keycode 48> : <letter x> +<-ctrl keycode 49> : <letter b> +<-ctrl keycode 50> : <letter m> +<-ctrl keycode 51> : <letter w> +<-ctrl keycode 52> : <letter v> +<-ctrl keycode 53> : <letter z> + 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> : <letter 1> +<-ctrl keycode 3> : <letter 2> +<-ctrl keycode 4> : <letter 3> +<-ctrl keycode 5> : <letter 4> +<-ctrl keycode 6> : <letter 5> +<-ctrl keycode 7> : <letter 6> +<-ctrl keycode 8> : <letter 7> +<-ctrl keycode 9> : <letter 8> +<-ctrl keycode 10> : <letter 9> +<-ctrl keycode 11> : <letter 0> +<-ctrl keycode 16> : <letter q> +<-ctrl keycode 17> : <letter w> +<-ctrl keycode 18> : <letter e> +<-ctrl keycode 19> : <letter r> +<-ctrl keycode 20> : <letter t> +<-ctrl keycode 21> : <letter y> +<-ctrl keycode 22> : <letter u> +<-ctrl keycode 23> : <letter i> +<-ctrl keycode 24> : <letter o> +<-ctrl keycode 25> : <letter p> +<-ctrl keycode 30> : <letter a> +<-ctrl keycode 31> : <letter s> +<-ctrl keycode 32> : <letter d> +<-ctrl keycode 33> : <letter f> +<-ctrl keycode 34> : <letter g> +<-ctrl keycode 35> : <letter h> +<-ctrl keycode 36> : <letter j> +<-ctrl keycode 37> : <letter k> +<-ctrl keycode 38> : <letter l> +<-ctrl keycode 44> : <letter z> +<-ctrl keycode 45> : <letter x> +<-ctrl keycode 46> : <letter c> +<-ctrl keycode 47> : <letter v> +<-ctrl keycode 48> : <letter b> +<-ctrl keycode 49> : <letter n> +<-ctrl keycode 50> : <letter m> + 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 + <letter \1> : "\1" + <shift letter \1> : "\2" + <caps letter \1> : "\2" + <shift caps letter \1> : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + +<keycode 41> : <letter §> +<keycode 12> : <letter +> +<keycode 13> : <dead letter ´> +<keycode 26> : <letter å> +<keycode 27> : <dead letter ¨> +<keycode 39> : <letter ö> +<keycode 40> : <letter ä> +<keycode 43> : <letter '> +<keycode 86> : <letter <> +<keycode 51> : <letter ,> +<keycode 52> : <letter .> +<keycode 53> : <letter -> + + +macro key/4 + <letter \1> : "\1" + <shift letter \1> : "\2" + <altgr letter \1> : "\3" + <altgr shift letter \1> : "\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("+" "?" "\\" "¿") +<shift dead letter ´> : <dead letter `> +<altgr dead letter ´> : "±" +<altgr shift dead letter ´> : "¬" + +<shift dead letter ¨> : <dead letter ^> +<altgr dead letter ¨> : <dead letter ~> +<altgr shift dead letter ¨> : <dead letter ˇ> + +key("'" "*" "`" "×") +key("<" ">" "|" "¦") + +<letter ,> : "," +<shift letter ,> : ";" +<altgr letter ,> : <dead letter ¸> +<altgr shift letter ,> : <dead letter ˛> + +<letter .> : "." +<shift letter .> : ":" +<altgr letter .> : "·" +<altgr shift letter .> : <dead letter ˙> + +<letter -> : "-" +<shift letter -> : "_" +<altgr letter -> : <dead letter \u0323> +<altgr shift letter -> : <dead letter ¯> + + +<altgr letter q> : "Ω" +<altgr shift letter q> : <void> + +<altgr "w"> : "ł" +<altgr "W"> : "Ł" + +<altgr letter e> : <void> +<altgr shift letter e> : <void> + +<altgr letter r> : "®" +<altgr shift letter r> : <void> + +<altgr "t"> : "þ" +<altgr "T"> : "Þ" + +<altgr letter y> : "←" +<altgr shift letter y> : <void> + +<altgr letter u> : "↓" +<altgr shift letter u> : "↑" + +<altgr letter i> : "→" +<altgr shift letter i> : "ı" + +<altgr "o"> : "œ" +<altgr "O"> : "Œ" + +<altgr letter p> : <void> +<altgr shift letter p> : <void> + +<altgr letter å> : <dead letter °> +<altgr shift letter å> : <void> + + +<altgr "a"> : "æ" +<altgr "A"> : "Æ" + +<altgr "s"> : "ß" +<altgr "S"> : <void> + +<altgr "d"> : "ð" +<altgr "D"> : "Ð" + +<altgr "f"> : "đ" +<altgr "F"> : "ª" + +<altgr "g"> : "ŋ" +<altgr "G"> : "Ŋ" + +<altgr "h"> : "ħ" +<altgr "H"> : "Ħ" + +<altgr letter j> : <void> +<altgr shift letter j> : <void> + +<altgr letter k> : "ĸ" +<altgr shift letter k> : <void> + +<altgr letter l> : <void> +<altgr shift letter l> : <void> + +<altgr "ö"> : "ø" +<altgr "Ö"> : "Ø" + +<altgr letter ä> : <void> +<altgr shift letter ä> : <void> + + +<altgr letter z> : <void> +<altgr shift letter z> : <void> + +<altgr letter x> : <void> +<altgr shift letter x> : <void> + +<altgr letter c> : "©" +<altgr shift letter c> : <void> + +<altgr letter v> : "‘" +<altgr shift letter v> : "“" + +<altgr letter b> : "’" +<altgr shift letter b> : "”" + +<altgr letter n> : <void> +<altgr shift letter N> : <void> + +<altgr "m"> : "µ" +<altgr "M"> : "º" + 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 + <letter \1> : "\1" + <shift letter \1> : "\2" + <caps letter \1> : "\2" + <shift caps letter \1> : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + +<keycode 41> : <letter §> +<keycode 12> : <letter +> +<keycode 13> : <dead letter ´> +<keycode 16> : <letter å> +<keycode 17> : <letter ä> +<keycode 18> : <letter ö> +<keycode 26> : <letter ,> +<keycode 27> : <dead letter ¨> +<keycode 40> : <letter -> +<keycode 43> : <letter '> +<keycode 86> : <letter <> +<keycode 44> : <letter .> + + +macro key/4 + <letter \1> : "\1" + <shift letter \1> : "\2" + <altgr letter \1> : "\3" + <altgr shift letter \1> : "\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("+" "?" "\\" "¿") +<shift dead letter ´> : <dead letter `> +<altgr dead letter ´> : "±" +<altgr shift dead letter ´> : "¬" + +<letter ,> : "," +<shift letter ,> : ";" +<altgr letter ,> : <dead letter ¸> +<altgr shift letter ,> : <dead letter ˛> + +<shift dead letter ¨> : <dead letter ^> +<altgr dead letter ¨> : <dead letter ~> +<altgr shift dead letter ¨> : <dead letter ˇ> + +<letter -> : "-" +<shift letter -> : "_" +<altgr letter -> : <dead letter \u0323> +<altgr shift letter -> : <dead letter ¯> + +<letter '> : "'" +<shift letter '> : "*" +<altgr letter '> : "`" +<altgr shift letter '> : <dead letter ×> + +key("<" ">" "|" "¦") + +<letter .> : "." +<shift letter .> : ":" +<altgr letter .> : "·" +<altgr shift letter .> : <dead letter ˙> + + +macro nocaps/3 + <altgr letter \1> : "\2" + <altgr shift letter \1> : "\3" +end macro + +macro caps/3 + <altgr letter \1> : "\2" + <altgr shift letter \1> : "\3" + <altgr caps letter \1> : "\3" + <altgr caps shift letter \1> : "\2" +end macro + + +nocaps("å" "\\" "Ω") +nocaps("ä" "{" "[") +nocaps("ö" "}" "]") +caps("p" "þ" "Þ") +nocaps("y" "←" "¥") +caps("f" "đ" "ª") +caps("g" "ŋ" "Ŋ") +<altgr letter c> : "©" +<altgr shift letter c> : <void> +<altgr letter r> : "®" +<altgr shift letter r> : <void> +caps("l" "ł" "Ł") + +caps("a" "æ" "Æ") +caps("o" "œ" "Œ") +nocaps("e" "€" "¢") +nocaps("u" "↓" "↑") +nocaps("i" "→" "ı") +caps("d" "ð" "Ð") +caps("h" "ħ" "Ħ") +caps("t" "ŧ" "Ŧ") +caps("n" "ł" "Ł") +<altgr letter s> : "ß" +<altgr shift letter s> : <void> + +<altgr letter q> : <void> +<altgr shift letter q> : "Ω" +<altgr letter j> : "©" +<altgr shift letter j> : <void> +<altgr letter k> : "ĸ" +<altgr shift letter k> : <void> +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 + <letter \1> : "\1" + <shift letter \1> : "\2" + <caps letter \1> : "\2" + <shift caps letter \1> : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + +<keycode 41> : <letter §> +<keycode 12> : <letter +> +<keycode 13> : <letter ´> +<keycode 26> : <letter å> +<keycode 27> : <letter ¨> +<keycode 39> : <letter ö> +<keycode 40> : <letter ä> +<keycode 43> : <letter '> +<keycode 86> : <letter <> +<keycode 51> : <letter ,> +<keycode 52> : <letter .> +<keycode 53> : <letter -> + + +macro key/2 + <letter \1> : "\1" + <shift letter \1> : "\2" + <altgr letter \1> : <void> + <altgr shift letter \1> : <void> +end macro + +macro key/3 + <letter \1> : "\1" + <shift letter \1> : "\2" + <altgr letter \1> : "\3" + <altgr shift letter \1> : <void> +end macro + +macro key/4 + <letter \1> : "\1" + <shift letter \1> : "\2" + <altgr letter \1> : "\3" + <altgr shift letter \1> : "\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("+" "?" "\\" "⸮") +<letter ´> : "´" +<shift letter ´> : "`" +<altgr letter ´> : "±" +<altgr shift letter ´> : "¬" + +<letter ¨> : "¨" +<shift letter ¨> : "^" +<altgr letter ¨> : "~" + +key("'" "*" "’" "×") +key("<" ">" "|" "¦") + +<letter ,> : "," +<shift letter ,> : ";" + +<letter .> : "." +<shift letter .> : ":" +<altgr letter .> : "»" + +<letter -> : "-" +<shift letter -> : "_" +<altgr letter -> : "–" +<altgr shift letter -> : "—" + + +<letter q> : "©" +<caps letter q> : "©" +<shift letter q> : "®" +<caps shift letter q> : "®" + +<altgr "e"> : "é" +<altgr "E"> : "É" + +<altgr "y"> : "ü" +<altgr "Y"> : "Ü" + +<altgr letter u> : "↓" +<altgr shift letter u> : "↑" + +<altgr letter i> : "→" +<altgr shift letter i> : "←" + + +<altgr "a"> : "à" +<altgr "A"> : "À" + +<altgr "s"> : "z" +<altgr "S"> : "Z" + +<altgr "g"> : "ng" +<altgr "G"> : "gn" + +<altgr "k"> : "q" +<altgr "K"> : "Q" + + +<letter z> : "’" +<caps letter z> : "’" +<shift letter z> : "»" +<caps shift letter z> : "»" +<altgr letter z> : "”" +<altgr shift letter z> : <void> + +<altgr "v"> : "w" +<altgr "V"> : "W" + +<altgr letter m> : "µ" +<shift altgr letter m> : "Ω" + + +<hyper ":"> : "ː" +<hyper altgr ":"> : "ˑ" +<hyper altgr "."> : "˘" +<hyper "."> : "." +<hyper "'"> : "ˈ" +<hyper ","> : "ˌ" +<hyper "A"> : "ɑː" +<hyper "a"> : "a" +<hyper "E"> : "eː" +<hyper "e"> : "e" +<hyper "I"> : "iː" +<hyper "i"> : "ɪ" +<hyper "O"> : "uː" +<hyper "o"> : "ʊ" +<hyper "Y"> : "yː" +<hyper "y"> : "ʏ" +<hyper "U"> : "ʉ̟ː" +<hyper "u"> : "ɵ" +<hyper "Å"> : "oː" +<hyper "å"> : "ɔ" +<hyper "Ä"> : "æː" +<hyper "ä"> : "æ" +<hyper "Ä"> : "ɛː" +<hyper "ä"> : "ɛ" +<hyper "Ö"> : "œ̞ː" +<hyper "ö"> : "œ̞" +<hyper "Ö"> : "øː" +<hyper "ö"> : "œ" +<hyper "E"> : <void> +<hyper "e"> : "ə" +<hyper "g"> : "ŋ" +<hyper "n"> : "ŋ" +<hyper "h"> : "ɧ" +<hyper "j"> : "ʝ" +<hyper "c"> : "ɕ" +<hyper "r"> : "ʀ" +<hyper "s"> : "ʃ" +<hyper "S"> : "ʂ" +<hyper "D"> : "ɖ" +<hyper "T"> : "ʈ" +<hyper "N"> : "ɳ" +<hyper "L"> : "ɭ" +<hyper altgr "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 + <letter \1> : "\1" + <shift letter \1> : "\2" + <caps letter \1> : "\2" + <shift caps letter \1> : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + +<keycode 41> : <letter §> +<keycode 12> : <letter +> +<keycode 13> : <dead letter ´> +<keycode 16> : <letter å> +<keycode 17> : <letter ,> +<keycode 18> : <letter .> +<keycode 26> : <letter '> +<keycode 27> : <dead letter ¨> +<keycode 40> : <letter -> +<keycode 43> : <letter <> +<keycode 86> : <letter ö> +<keycode 44> : <letter ä> + + +macro key/4 + <letter \1> : "\1" + <shift letter \1> : "\2" + <altgr letter \1> : "\3" + <altgr shift letter \1> : "\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("+" "?" "\\" "¿") +<shift dead letter ´> : <dead letter `> +<altgr dead letter ´> : "±" +<altgr shift dead letter ´> : "¬" + +<shift dead letter ¨> : <dead letter ^> +<altgr dead letter ¨> : <dead letter ~> +<altgr shift dead letter ¨> : <dead letter ˇ> + +<letter '> : "'" +<shift letter '> : "*" +<altgr letter '> : "`" +<altgr shift letter '> : <dead letter °> +key("<" ">" "|" "×") + + +macro nocaps/3 + <altgr letter \1> : "\2" + <altgr shift letter \1> : "\3" +end macro + +macro caps/3 + <altgr letter \1> : "\2" + <altgr shift letter \1> : "\3" + <altgr caps letter \1> : "\3" + <altgr caps shift letter \1> : "\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" "ł" "Ł") +<altgr letter s> : "ß" +<altgr shift letter s> : <void> +<shift letter -> : "_" +caps("-" "ø" "Ø") + +nocaps("ö" "|" "¦") +nocaps("ä" "«" "ª") +nocaps("q" "»" "º") +<altgr letter j> : "©" +<altgr shift letter j> : <void> +<altgr letter k> : "ĸ" +<altgr shift letter k> : <void> +nocaps("x" "‘" "“") +nocaps("b" "’" "”") +caps("m" "µ" "º") +<altgr letter w> : <dead letter ¸> +<altgr shift letter w> : <dead letter ˛> +<altgr letter v> : "·" +<altgr shift letter v> : <dead letter ˙> +<altgr letter z> : <dead letter \u0323> +<altgr shift letter z> : <dead letter ¯> + |