Skip to content

Commit

Permalink
german terminal layout
Browse files Browse the repository at this point in the history
  • Loading branch information
a-st committed Oct 25, 2024
1 parent 67b8078 commit abd6da3
Show file tree
Hide file tree
Showing 12 changed files with 486 additions and 41 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ language_plugin(ca catalan src/overrides.csv)
language_plugin(cs czech)
language_plugin(da danish src/overrides.csv)
language_plugin(de german)
language_plugin(de@terminal germanterminal)
language_plugin(el greek)
language_plugin(en english src/overrides.csv)
language_plugin(eo esperanto)
Expand Down
99 changes: 99 additions & 0 deletions plugins/de@terminal/qml/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* Copyright 2013 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 2.4

import MaliitKeyboard 2.0

import keys 1.0

KeyPad {
anchors.fill: parent

content: c1
symbols: "languages/Keyboard_symbols.qml"

Column {
id: c1
anchors.fill: parent
spacing: 0

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

TabKey { padding: 0 }
CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; }
CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] }
CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ë", "ê", ""]; extendedShifted: ["3", "È","É", "Ë", "Ê", ""] }
CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] }
CharKey { label: "t"; shifted: "T"; extended: ["5", "þ"]; extendedShifted: ["5", "Þ"] }
CharKey { label: "z"; shifted: "Z"; extended: ["6"]; extendedShifted: ["6"] }
CharKey { label: "u"; shifted: "U"; extended: ["7", "ü","ù","ú","û"]; extendedShifted: ["7", "Ü","Ù","Ú","Û"] }
CharKey { label: "i"; shifted: "I"; extended: ["8", "ì","í","î","ï","ı"]; extendedShifted: ["8", "Ì","Í","Î","Ï","İ"] }
CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ò","ó","ô","õ","ø"]; extendedShifted: ["9", "Ö","Ò","Ó","Ô","Õ","Ø"] }
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; }
}

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

CapsLockKey { padding: 0 }
CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"] }
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["","Ş","$"] }
CharKey { label: "d"; shifted: "D"; }
CharKey { label: "f"; shifted: "F"; }
CharKey { label: "g"; shifted: "G"; extended: ["ğ"]; extendedShifted: ["Ğ"]; }
CharKey { label: "h"; shifted: "H"; }
CharKey { label: "j"; shifted: "J"; }
CharKey { label: "k"; shifted: "K"; }
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] }
CharKey { label: "ü"; shifted: "Ü"; rightSide: true; }
}

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

ShiftKey { padding: 0 }
CharKey { label: "y"; shifted: "Y"; extended: ["ÿ","¥"]; extendedShifted: ["Ÿ","¥"] }
CharKey { label: "x"; shifted: "X"; }
CharKey { label: "c"; shifted: "C"; extended: ["ç","¢"]; extendedShifted: ["Ç","¢"] }
CharKey { label: "v"; shifted: "V"; }
CharKey { label: "b"; shifted: "B"; }
CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] }
CharKey { label: "m"; shifted: "M"; }
CharKey { label: "ä"; shifted: "Ä"; }
BackspaceKey { padding: 0 }
}

Item {
anchors.left: parent.left
anchors.right: parent.right

height: panel.keyHeight + Device.row_margin;

SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
CharKey { id: commaKey; label: ","; shifted: ","; extended: ["'", "\"", ";", ":", "@", "&", "(", ")"]; extendedShifted: ["'", "\"", ";", ":", "@", "&", "(", ")"]; anchors.left: languageMenuButton.right; height: parent.height; }
SpaceKey { id: spaceKey; anchors.left: commaKey.right; anchors.right: dotKey.left; noMagnifier: true; height: parent.height; }
CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: umlaut.left; height: parent.height; }
CharKey { id: umlaut; label: "ö"; shifted: "Ö"; anchors.right: enterKey.left; height: parent.height; }
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
}
} // column
}
98 changes: 98 additions & 0 deletions plugins/de@terminal/qml/Keyboard_de@terminal_email.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* Copyright 2013 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 2.4

import MaliitKeyboard 2.0

import keys 1.0

KeyPad {
anchors.fill: parent

content: c1
symbols: "languages/Keyboard_symbols.qml"

Column {
id: c1
anchors.fill: parent
spacing: 0

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; }
CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] }
CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ë", "ê", ""]; extendedShifted: ["3", "È","É", "Ë", "Ê", ""] }
CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] }
CharKey { label: "t"; shifted: "T"; extended: ["5", "þ"]; extendedShifted: ["5", "Þ"] }
CharKey { label: "z"; shifted: "Z"; extended: ["6"]; extendedShifted: ["6"] }
CharKey { label: "u"; shifted: "U"; extended: ["7", "ü","ù","ú","û"]; extendedShifted: ["7", "Ü","Ù","Ú","Û"] }
CharKey { label: "i"; shifted: "I"; extended: ["8", "ì","í","î","ï","ı"]; extendedShifted: ["8", "Ì","Í","Î","Ï","İ"] }
CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ò","ó","ô","õ","ø"]; extendedShifted: ["9", "Ö","Ò","Ó","Ô","Õ","Ø"] }
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; }
}

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"]; leftSide: true; }
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["","Ş","$"] }
CharKey { label: "d"; shifted: "D"; }
CharKey { label: "f"; shifted: "F"; }
CharKey { label: "g"; shifted: "G"; extended: ["ğ"]; extendedShifted: ["Ğ"]; }
CharKey { label: "h"; shifted: "H"; }
CharKey { label: "j"; shifted: "J"; }
CharKey { label: "k"; shifted: "K"; }
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] }
CharKey { label: "ü"; shifted: "Ü"; rightSide: true; }
}

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

ShiftKey { padding: 0 }
CharKey { label: "y"; shifted: "Y"; extended: ["ÿ","¥"]; extendedShifted: ["Ÿ","¥"] }
CharKey { label: "x"; shifted: "X"; }
CharKey { label: "c"; shifted: "C"; extended: ["ç","¢"]; extendedShifted: ["Ç","¢"] }
CharKey { label: "v"; shifted: "V"; }
CharKey { label: "b"; shifted: "B"; }
CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] }
CharKey { label: "m"; shifted: "M"; }
CharKey { label: "ä"; shifted: "Ä"; }
BackspaceKey { padding: 0 }
}

Item {
anchors.left: parent.left
anchors.right: parent.right

height: panel.keyHeight + Device.row_margin;

SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
CharKey { id: atKey; label: "@"; shifted: "@"; anchors.left: languageMenuButton.right; height: parent.height; }
SpaceKey { id: spaceKey; anchors.left: atKey.right; anchors.right: urlKey.left; noMagnifier: true; height: parent.height; }
UrlKey { id: urlKey; label: ".de"; extended: [".com", ".at", ".ch"]; anchors.right: dotKey.left; height: parent.height; }
CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: umlaut.left; height: parent.height; }
CharKey { id: umlaut; label: "ö"; shifted: "Ö"; anchors.right: enterKey.left; height: parent.height; }
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
}
} // column
}
97 changes: 97 additions & 0 deletions plugins/de@terminal/qml/Keyboard_de@terminal_url.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
* Copyright 2013 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 2.4

import MaliitKeyboard 2.0

import keys 1.0

KeyPad {
anchors.fill: parent

content: c1
symbols: "languages/Keyboard_symbols.qml"

Column {
id: c1
anchors.fill: parent
spacing: 0

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; }
CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] }
CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ë", "ê", ""]; extendedShifted: ["3", "È","É", "Ë", "Ê", ""] }
CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] }
CharKey { label: "t"; shifted: "T"; extended: ["5", "þ"]; extendedShifted: ["5", "Þ"] }
CharKey { label: "z"; shifted: "Z"; extended: ["6"]; extendedShifted: ["6"] }
CharKey { label: "u"; shifted: "U"; extended: ["7", "ü","ù","ú","û"]; extendedShifted: ["7", "Ü","Ù","Ú","Û"] }
CharKey { label: "i"; shifted: "I"; extended: ["8", "ì","í","î","ï","ı"]; extendedShifted: ["8", "Ì","Í","Î","Ï","İ"] }
CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ò","ó","ô","õ","ø"]; extendedShifted: ["9", "Ö","Ò","Ó","Ô","Õ","Ø"] }
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; }
}

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"]; leftSide: true; }
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["","Ş","$"] }
CharKey { label: "d"; shifted: "D"; }
CharKey { label: "f"; shifted: "F"; }
CharKey { label: "g"; shifted: "G"; extended: ["ğ"]; extendedShifted: ["Ğ"]; }
CharKey { label: "h"; shifted: "H"; }
CharKey { label: "j"; shifted: "J"; }
CharKey { label: "k"; shifted: "K"; }
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] }
CharKey { label: "ü"; shifted: "Ü"; rightSide: true; }
}

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

ShiftKey { padding: 0 }
CharKey { label: "y"; shifted: "Y"; extended: ["ÿ","¥"]; extendedShifted: ["Ÿ","¥"] }
CharKey { label: "x"; shifted: "X"; }
CharKey { label: "c"; shifted: "C"; extended: ["ç","¢"]; extendedShifted: ["Ç","¢"] }
CharKey { label: "v"; shifted: "V"; }
CharKey { label: "b"; shifted: "B"; }
CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] }
CharKey { label: "m"; shifted: "M"; }
CharKey { label: "ä"; shifted: "Ä"; }
BackspaceKey { padding: 0 }
}

Item {
anchors.left: parent.left
anchors.right: parent.right

height: panel.keyHeight + Device.row_margin;

SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
CharKey { id: slashKey; label: "/"; shifted: "/"; anchors.left: languageMenuButton.right; height: parent.height; }
UrlKey { id: urlKey; label: ".de"; extended: [".com", ".at", ".ch"]; anchors.right: dotKey.left; height: parent.height; }
CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: umlaut.left; height: parent.height; }
CharKey { id: umlaut; label: "ö"; shifted: "Ö"; anchors.right: enterKey.left; height: parent.height; }
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
}
} // column
}
Loading

0 comments on commit abd6da3

Please sign in to comment.