maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Keyboard layouts for Jolla's Sailfish OS (https://talk.maemo.org/showthread.php?t=91917)

abyzthomas 2014-12-26 18:38

Re: Keyboard layouts for Jolla's Sailfish OS
 
For some Indian Languages requires non-printing-characters like zwnj, zwj and zwsp.

I can put those unicode characters on keyboard and have maliit send it, but they are all blank keys. I would like to display some characters on the key so the user know which key is which.

Is there a way to have maliit send a different character/string than what is displayed on the key?

Dave999 2014-12-26 18:42

Re: Keyboard layouts for Jolla's Sailfish OS
 
Any way to add arrow keys?

pichlo 2014-12-26 19:13

Re: Keyboard layouts for Jolla's Sailfish OS
 
@Dave999,
http://talk.maemo.org/showthread.php...89#post1446089
Just two pages back!

@abyzthomas,
Not sure but I would start by looking at Czech or similar keyboards with dead keys

Thaodan 2015-01-04 19:39

has someone a smaler german keyboard? (50% or 75% of the size) ?

Morpog 2015-01-26 12:41

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by llelectronics (Post 1453475)
Yeah I left the default here as it is also with other keyboards on other plattforms.

It seems to be not possible to replace the default key with an own unfortunately, so I went ahead and put all Umlaute one place right of the default character. So at least I don't have to search the correct one each time. Maybe you like that idea and put it in an update.

Code:

/*
 * Author: Leszek Lesner
 *
 * Original Copyright (C) 2013 Jolla ltd and/or its subsidiary(-ies). All rights reserved.
 *
 * Original Contact: Pekka Vuorela <pekka.vuorela@jollamobile.com>
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list
 * of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list
 * of conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 * Neither the name of Jolla Ltd nor the names of its contributors may be
 * used to endorse or promote products derived from this software without specific
 * prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
 * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */

import QtQuick 2.0
import ".."

KeyboardLayout {
    KeyboardRow {
        CharacterKey { caption: "q"; captionShifted: "Q"; symView: "1"; symView2: "€" }
        CharacterKey { caption: "w"; captionShifted: "W"; symView: "2"; symView2: "£" }
        CharacterKey { caption: "e"; captionShifted: "E"; symView: "3"; symView2: "$"; accents: "eèéëê€"; accentsShifted: "EÈÉÊË€" }
        CharacterKey { caption: "r"; captionShifted: "R"; symView: "4"; symView2: "¥" }
        CharacterKey { caption: "t"; captionShifted: "T"; symView: "5"; symView2: "₹"; accents: "t"; accentsShifted: "T" }
        CharacterKey { caption: "z"; captionShifted: "Z"; symView: "6"; symView2: "%" }
        CharacterKey { caption: "u"; captionShifted: "U"; symView: "7"; symView2: "<"; accents: "uùúüû"; accentsShifted: "UÙÚÜÛ" }
        CharacterKey { caption: "i"; captionShifted: "I"; symView: "8"; symView2: ">"; accents: "iîïì*"; accentsShifted: "IÎÏÌÍ" }
        CharacterKey { caption: "o"; captionShifted: "O"; symView: "9"; symView2: "["; accents: "oòóôõøö"; accentsShifted: "OÒÓÔÕØÖ" }
        CharacterKey { caption: "p"; captionShifted: "P"; symView: "0"; symView2: "]" }
        //CharacterKey { caption: "ü"; captionShifted: "Ü"; symView: "%"; symView2: "‰" }
    }

    KeyboardRow {
        CharacterKey { caption: "a"; captionShifted: "A"; symView: "*"; symView2: "`"; accents: "aä*áãâåæ"; accentsShifted: "AÄÀÁÃÂÅÆ"}
        CharacterKey { caption: "s"; captionShifted: "S"; symView: "#"; symView2: "^"; accents: "sßş$"; accentsShifted: "SŞ$" }
        CharacterKey { caption: "d"; captionShifted: "D"; symView: "+"; symView2: "|"; accents: "dð"; accentsShifted: "DÐ" }
        CharacterKey { caption: "f"; captionShifted: "F"; symView: "-"; symView2: "_" }
        CharacterKey { caption: "g"; captionShifted: "G"; symView: "="; symView2: "§"; accents: "gğ"; accentsShifted: "GĞ" }
        CharacterKey { caption: "h"; captionShifted: "H"; symView: "("; symView2: "{" }
        CharacterKey { caption: "j"; captionShifted: "J"; symView: ")"; symView2: "}" }
        CharacterKey { caption: "k"; captionShifted: "K"; symView: "!"; symView2: "°" }
        CharacterKey { caption: "l"; captionShifted: "L"; symView: "?"; symView2: "·" }
        //CharacterKey { caption: "ö"; captionShifted: "Ö"; symView: "÷"; symView2: "¡" }
        //CharacterKey { caption: "ä"; captionShifted: "Ä"; symView: "×"; symView2: "¿" }
    }

    KeyboardRow {
        ShiftKey {}

        CharacterKey { caption: "y"; captionShifted: "Y"; symView: "@"; symView2: "«"; accents: "yý¥"; accentsShifted: "YÝ¥" }
        CharacterKey { caption: "x"; captionShifted: "X"; symView: "&"; symView2: "»" }
        CharacterKey { caption: "c"; captionShifted: "C"; symView: "/"; symView2: "\""; accents: "cç"; accentsShifted: "CÇ" }
        CharacterKey { caption: "v"; captionShifted: "V"; symView: "\\"; symView2: "“" }
        CharacterKey { caption: "b"; captionShifted: "B"; symView: "'"; symView2: "”" }
        CharacterKey { caption: "n"; captionShifted: "N"; symView: ";"; symView2: "„"; accents: "nñ"; accentsShifted: "NÑ" }
        CharacterKey { caption: "m"; captionShifted: "M"; symView: ":"; symView2: "~" }

        BackspaceKey {}
    }

    SpacebarRow {}
}


llelectronics 2015-01-26 13:01

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by Morpog (Post 1458239)
It seems to be not possible to replace the default key with an own unfortunately, so I went ahead and put all Umlaute one place right of the default character. So at least I don't have to search the correct one each time. Maybe you like that idea and put it in an update.

If you can send me a patch file in UTF-8 please (as here it looks like the encoding is broken) I can test it and update the keyboard as you wish.

Morpog 2015-01-26 14:05

Re: Keyboard layouts for Jolla's Sailfish OS
 
There you go:
https://www.dropbox.com/s/tqqj5fjrp5...wertz.qml?dl=0

llelectronics 2015-01-31 19:36

Re: Keyboard layouts for Jolla's Sailfish OS
 
Updated the qwertz custom layout with your changes. Thanks for contributing.

tmi 2015-04-17 03:06

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by tmi (Post 1446089)
Quote:

Originally Posted by vistaus (Post 1446069)
Would be great if someone could make an English QWERTY layout (like the default English one from Jolla) with arrow keys (at least left and right arrow keys) :)

Here's one. It's not the default Jolla one in number/symbol view but shouldn't be too hard to modify to your liking.

For anyone still interested, I updated the keyboard to work in 1.1.4.28 and to support the split keyboard mode.

The 'g' is after the separator on purpose. That way the left side of the second row felt more usable to me. If this annoys someone too much, then just adjust the splitIndex value from "4" to "5" in layouts/en_ios.qml.

vistaus 2015-04-17 07:35

Re: Keyboard layouts for Jolla's Sailfish OS
 
That's great news! Hopefully the arrow bug is solved though... Will try it out asap, although an RPM would be nice to have :)

Edit: the arrow bug seems solved at first sight, will try out some more later on :)


All times are GMT. The time now is 12:56.

vBulletin® Version 3.8.8