aboutsummaryrefslogtreecommitdiffstats
path: root/src/layouts/hi_IN
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts/hi_IN')
-rw-r--r--src/layouts/hi_IN/dialpad.fallback0
-rw-r--r--src/layouts/hi_IN/digits.fallback0
-rw-r--r--src/layouts/hi_IN/handwriting.fallback0
-rw-r--r--src/layouts/hi_IN/main.qml191
-rw-r--r--src/layouts/hi_IN/numbers.fallback0
-rw-r--r--src/layouts/hi_IN/symbols.qml368
6 files changed, 559 insertions, 0 deletions
diff --git a/src/layouts/hi_IN/dialpad.fallback b/src/layouts/hi_IN/dialpad.fallback
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/layouts/hi_IN/dialpad.fallback
diff --git a/src/layouts/hi_IN/digits.fallback b/src/layouts/hi_IN/digits.fallback
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/layouts/hi_IN/digits.fallback
diff --git a/src/layouts/hi_IN/handwriting.fallback b/src/layouts/hi_IN/handwriting.fallback
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/layouts/hi_IN/handwriting.fallback
diff --git a/src/layouts/hi_IN/main.qml b/src/layouts/hi_IN/main.qml
new file mode 100644
index 00000000..c9512cc9
--- /dev/null
+++ b/src/layouts/hi_IN/main.qml
@@ -0,0 +1,191 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import QtQuick
+import QtQuick.VirtualKeyboard
+import QtQuick.VirtualKeyboard.Components
+import QtQuick.Layouts
+
+KeyboardLayout {
+ inputMode: InputEngine.InputMode.Latin
+ keyWeight: 160
+ smallTextVisible: true
+ readonly property real normalKeyWidth: normalKey.width
+ readonly property real functionKeyWidth: mapFromItem(normalKey, normalKey.width / 2, 0).x
+ KeyboardRow {
+ Key {
+ text: "\u0914"
+ alternativeKeys: "\u0914\u094C\u0967"
+ }
+ Key {
+ id: normalKey
+ text: "\u0910"
+ alternativeKeys: "\u0910\u0948\u0968"
+ }
+ Key {
+ text: "\u0906"
+ alternativeKeys: "\u0906\u093E\u0969"
+ }
+ Key {
+ text: "\u0908"
+ alternativeKeys: "\u0908\u0940\u096A"
+ }
+ Key {
+ text: "\u090A"
+ alternativeKeys: "\u090A\u0942\u096B"
+ }
+ Key {
+ text: "\u092C"
+ alternativeKeys: "\u092C\u092D\u096C"
+ }
+ Key {
+ text: "\u0939"
+ alternativeKeys: "\u0939\u096D"
+ }
+ Key {
+ text: "\u0917"
+ alternativeKeys: "\u0917\u0918\u096E"
+ }
+ Key {
+ text: "\u0926"
+ alternativeKeys: "\u0926\u0927\u096F"
+ }
+ Key {
+ text: "\u091C"
+ alternativeKeys: "\u0966\u091E\u091D\u091C"
+ }
+ Key {
+ text: "\u0921"
+ alternativeKeys: "\u0921\u0922"
+ }
+ }
+ KeyboardRow {
+ Key {
+ text: "\u0913"
+ alternativeKeys: "\u0913\u094B"
+ }
+ Key {
+ text: "\u090F"
+ alternativeKeys: "\u090F\u0947"
+ }
+ Key {
+ text: "\u0905"
+ }
+ Key {
+ text: "\u0907"
+ alternativeKeys: "\u0907\u093F"
+ }
+ Key {
+ text: "\u0909"
+ alternativeKeys: "\u0909\u0941"
+ }
+ Key {
+ text: "\u092A"
+ alternativeKeys: "\u092A\u092B"
+ }
+ Key {
+ text: "\u0930"
+ alternativeKeys: "\u0930\u090B\u0943"
+ }
+ Key {
+ text: "\u0915"
+ alternativeKeys: "\u0915\u0916"
+ }
+ Key {
+ text: "\u0924"
+ alternativeKeys: ["\u0924", "\u0925", "\u0924\u094D\u0930"]
+ }
+ Key {
+ text: "\u091A"
+ alternativeKeys: "\u091A\u091B"
+ }
+ Key {
+ text: "\u091F"
+ alternativeKeys: "\u091F\u0920"
+ }
+ }
+ KeyboardRow {
+ Key {
+ text: "\u200C"
+ alternativeKeys: "\u200C\u200D"
+ displayText: "\u25C2\u205E\u25B8"
+ displayAlternativeKeys: ["\u25B8\u205E\u25C2"]
+ highlighted: true
+ }
+ Key {
+ text: "\u0911"
+ alternativeKeys: "\u0911\u0949"
+ }
+ Key {
+ text: "\u094D"
+ alternativeKeys: "\u094D\u0945\u090D"
+ }
+ Key {
+ text: "\u0902"
+ alternativeKeys: "\u093C\u0902\u0903\u0901\u093D"
+ }
+ Key {
+ text: "\u092E"
+ alternativeKeys: "\u092E\u0950"
+ }
+ Key {
+ text: "\u0928"
+ alternativeKeys: "\u0919\u0928\u0923\u091E"
+ }
+ Key {
+ text: "\u0935"
+ }
+ Key {
+ text: "\u0932"
+ alternativeKeys: "\u0932\u0933"
+ }
+ Key {
+ text: "\u0938"
+ alternativeKeys: ["\u0936\u094D\u0930", "\u0938", "\u0936", "\u0937"]
+ }
+ Key {
+ text: "\u092F"
+ alternativeKeys: "\u0943"
+ }
+ BackspaceKey {
+ }
+ }
+ KeyboardRow {
+ SymbolModeKey {
+ displayText: "&\u0967\u0968\u0969"
+ weight: functionKeyWidth
+ Layout.fillWidth: false
+ }
+ ChangeLanguageKey {
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ }
+ Key {
+ key: Qt.Key_Comma
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ text: ","
+ smallText: "\u2699"
+ smallTextVisible: keyboard.isFunctionPopupListAvailable()
+ highlighted: true
+ }
+ SpaceKey {
+ }
+ Key {
+ key: Qt.Key_Period
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ text: "."
+ alternativeKeys: "!.?"
+ highlighted: true
+ }
+ HideKeyboardKey {
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ }
+ EnterKey {
+ weight: functionKeyWidth
+ Layout.fillWidth: false
+ }
+ }
+}
diff --git a/src/layouts/hi_IN/numbers.fallback b/src/layouts/hi_IN/numbers.fallback
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/layouts/hi_IN/numbers.fallback
diff --git a/src/layouts/hi_IN/symbols.qml b/src/layouts/hi_IN/symbols.qml
new file mode 100644
index 00000000..15e46e8a
--- /dev/null
+++ b/src/layouts/hi_IN/symbols.qml
@@ -0,0 +1,368 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.VirtualKeyboard
+import QtQuick.VirtualKeyboard.Components
+
+KeyboardLayoutLoader {
+ property bool secondPage
+ onVisibleChanged: if (!visible) secondPage = false
+ sourceComponent: secondPage ? page2 : page1
+ Component {
+ id: page1
+ KeyboardLayout {
+ keyWeight: 160
+ readonly property real normalKeyWidth: normalKey.width
+ readonly property real functionKeyWidth: mapFromItem(normalKey, normalKey.width / 2, 0).x
+ KeyboardRow {
+ Key {
+ key: Qt.Key_1
+ text: "\u0967"
+ alternativeKeys: "\u09671"
+ }
+ Key {
+ id: normalKey
+ key: Qt.Key_2
+ text: "\u0968"
+ alternativeKeys: "\u09682"
+ }
+ Key {
+ key: Qt.Key_3
+ text: "\u0969"
+ alternativeKeys: "\u09693"
+ }
+ Key {
+ key: Qt.Key_4
+ text: "\u096A"
+ alternativeKeys: "\u096A4"
+ }
+ Key {
+ key: Qt.Key_5
+ text: "\u096B"
+ alternativeKeys: "\u096B5"
+ }
+ Key {
+ key: Qt.Key_6
+ text: "\u096C"
+ alternativeKeys: "\u096C6"
+ }
+ Key {
+ key: Qt.Key_7
+ text: "\u096D"
+ alternativeKeys: "\u096D7"
+ }
+ Key {
+ key: Qt.Key_8
+ text: "\u096E"
+ alternativeKeys: "\u096E8"
+ }
+ Key {
+ key: Qt.Key_9
+ text: "\u096F"
+ alternativeKeys: "\u096F9"
+ }
+ Key {
+ key: Qt.Key_0
+ text: "\u0966"
+ alternativeKeys: "\u09660"
+ }
+ }
+ KeyboardRow {
+ Key {
+ key: Qt.Key_At
+ text: "@"
+ }
+ Key {
+ key: Qt.Key_NumberSign
+ text: "#"
+ }
+ Key {
+ key: Qt.Key_Percent
+ text: "%"
+ }
+ Key {
+ key: Qt.Key_Ampersand
+ text: "&"
+ }
+ Key {
+ key: Qt.Key_Asterisk
+ text: "*"
+ }
+ Key {
+ key: Qt.Key_Underscore
+ text: "_"
+ }
+ Key {
+ key: Qt.Key_Minus
+ text: "-"
+ }
+ Key {
+ key: Qt.Key_Plus
+ text: "+"
+ }
+ Key {
+ key: Qt.Key_ParenLeft
+ text: "("
+ }
+ Key {
+ key: Qt.Key_ParenRight
+ text: ")"
+ }
+ }
+ KeyboardRow {
+ Key {
+ displayText: "1/2"
+ functionKey: true
+ onClicked: secondPage = !secondPage
+ highlighted: true
+ }
+ Key {
+ key: Qt.Key_QuoteDbl
+ text: '"'
+ }
+ Key {
+ key: Qt.Key_Less
+ text: "<"
+ }
+ Key {
+ key: Qt.Key_Greater
+ text: ">"
+ }
+ Key {
+ key: Qt.Key_Apostrophe
+ text: "'"
+ }
+ Key {
+ key: Qt.Key_Colon
+ text: ":"
+ }
+ Key {
+ key: Qt.Key_Slash
+ text: "/"
+ }
+ Key {
+ key: Qt.Key_Exclam
+ text: "!"
+ }
+ Key {
+ key: Qt.Key_Question
+ text: "?"
+ }
+ BackspaceKey {
+ }
+ }
+ KeyboardRow {
+ SymbolModeKey {
+ weight: functionKeyWidth
+ Layout.fillWidth: false
+ displayText: "\u0915\u0916\u0917"
+ }
+ ChangeLanguageKey {
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ }
+ Key {
+ key: Qt.Key_Comma
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ text: ","
+ smallText: "\u2699"
+ smallTextVisible: keyboard.isFunctionPopupListAvailable()
+ highlighted: true
+ }
+ SpaceKey {
+ }
+ Key {
+ key: Qt.Key_Period
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ text: "."
+ highlighted: true
+ }
+ HideKeyboardKey {
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ }
+ EnterKey {
+ weight: functionKeyWidth
+ Layout.fillWidth: false
+ }
+ }
+ }
+ }
+ Component {
+ id: page2
+ KeyboardLayout {
+ keyWeight: 160
+ readonly property real normalKeyWidth: normalKey.width
+ readonly property real functionKeyWidth: mapFromItem(normalKey, normalKey.width / 2, 0).x
+ KeyboardRow {
+ Key {
+ key: Qt.Key_AsciiTilde
+ text: "~"
+ }
+ Key {
+ id: normalKey
+ key: Qt.Key_Agrave
+ text: "`"
+ }
+ Key {
+ key: Qt.Key_Bar
+ text: "|"
+ }
+ Key {
+ key: 0x7B
+ text: "·"
+ }
+ Key {
+ key: 0x221A
+ text: "√"
+ }
+ Key {
+ key: Qt.Key_division
+ text: "÷"
+ }
+ Key {
+ key: Qt.Key_multiply
+ text: "×"
+ }
+ Key {
+ key: Qt.Key_onehalf
+ text: "½"
+ alternativeKeys: "¼⅓½¾⅞"
+ }
+ Key {
+ key: Qt.Key_BraceLeft
+ text: "{"
+ }
+ Key {
+ key: Qt.Key_BraceRight
+ text: "}"
+ }
+ }
+ KeyboardRow {
+ Key {
+ key: Qt.Key_Dollar
+ text: "$"
+ }
+ Key {
+ key: 0x20AC
+ text: "€"
+ }
+ Key {
+ key: 0xC2
+ text: "£"
+ }
+ Key {
+ key: 0xA2
+ text: "¢"
+ }
+ Key {
+ key: 0x20B9
+ text: "\u20B9"
+ }
+ Key {
+ key: Qt.Key_AsciiCircum
+ text: "^"
+ }
+ Key {
+ key: Qt.Key_Equal
+ text: "="
+ }
+ Key {
+ key: Qt.Key_section
+ text: "§"
+ }
+ Key {
+ key: Qt.Key_BracketLeft
+ text: "["
+ }
+ Key {
+ key: Qt.Key_BracketRight
+ text: "]"
+ }
+ }
+ KeyboardRow {
+ Key {
+ displayText: "2/2"
+ functionKey: true
+ onClicked: secondPage = !secondPage
+ highlighted: true
+ }
+ Key {
+ key: 0x2122
+ text: '™'
+ }
+ Key {
+ key: 0x00AE
+ text: '®'
+ }
+ Key {
+ key: Qt.Key_guillemotleft
+ text: '«'
+ }
+ Key {
+ key: Qt.Key_guillemotright
+ text: '»'
+ }
+ Key {
+ key: Qt.Key_Semicolon
+ text: ";"
+ }
+ Key {
+ key: 0x201C
+ text: '“'
+ }
+ Key {
+ key: 0x201D
+ text: '”'
+ }
+ Key {
+ key: Qt.Key_Backslash
+ text: "\\"
+ }
+ BackspaceKey {
+ }
+ }
+ KeyboardRow {
+ SymbolModeKey {
+ weight: functionKeyWidth
+ Layout.fillWidth: false
+ displayText: "\u0915\u0916\u0917"
+ }
+ ChangeLanguageKey {
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ }
+ Key {
+ key: Qt.Key_Comma
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ text: ","
+ smallText: "\u2699"
+ smallTextVisible: keyboard.isFunctionPopupListAvailable()
+ highlighted: true
+ }
+ SpaceKey {
+ }
+ Key {
+ key: 0x2026
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ text: "\u2026"
+ highlighted: true
+ }
+ HideKeyboardKey {
+ weight: normalKeyWidth
+ Layout.fillWidth: false
+ }
+ EnterKey {
+ weight: functionKeyWidth
+ Layout.fillWidth: false
+ }
+ }
+ }
+ }
+}