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)

n950 2014-01-20 17:35

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

Originally Posted by youmeego (Post 1407727)
emoji keyboard is out at openrepos.net anyone has tried it?

yes it works.

notconfusing 2014-01-21 07:09

Re: Keyboard layouts for Jolla's Sailfish OS
 
And now for all the colemak users out there.

Colemak layout by notconfusing here

Keeper of the Keys 2014-01-21 07:54

Re: Keyboard layouts for Jolla's Sailfish OS
 
I downloaded the hebrew layout by Schturman but as he reports, just the 'no glyphs' squares...

Any way of adding a Hebrew font to the system fonts?

Schturman 2014-01-21 18:32

Re: Keyboard layouts for Jolla's Sailfish OS
 
I also tried Arabic of MSameer, but same result.. I can't see this languages in native app (mail, sms, Mitakuuluu etc...)
Very interesting in solution :)

Schturman 2014-01-22 12:09

Re: Keyboard layouts for Jolla's Sailfish OS
 
Guys someone know how to disable Auto-capitalization in qml file ?
Finally I got hebrew to work, but I need some small improvements like disable Auto-capitalization and adding RTL, that when you start to type, it will start from right to left and not like I have it now.
I already tried to add autocapitalization: false to each CharacterKey but vkb stop to work...

Please, someone can explain me how to do it ?

P.S. Also , why it looks so small, can I increase size somehow ?

Schturman 2014-01-22 16:54

Re: Keyboard layouts for Jolla's Sailfish OS
 
Here is 3 variations of Hebrew vkb :D

Thanks to cstom for examples of 4 arrows and 2 arrows+toggle.

1. Hebrew vkb with 4 arrows will install only hebrew with 4 arrows.
2. Hebrew vkb with 2 arrows & toggle (En-He) will install hebrew with 2 arrows and toggle for fast switching between English and Hebrew (included a little edited english vkb).
3. Hebrew vkb with 2 arrows & toggle (En-He-Ru) will install hebrew with 2 arrows and toggle for switching between English, Hebrew & Russian (included a little edited English & Russian vkb).

In the version 1 & 2 you will see only English and Hebrew, all other languages is hidden.
In the version 3 you will see English,Hebrew and Russian, all other languages is hidden.

Installation will override some system files. Uninstallation will restore all original files.

Beware, use it on your own risk !!!

http://imageshack.com/a/img571/6070/zt9a.jpg


Files for manual installation with full explanation how to install in README file (included in zip).
Download all needed file in ZIP

;)


Changelog:

v0.4
* Fixed applying font

v0.2
* Fixed applying font

Penguin 2014-01-22 17:33

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

Originally Posted by Schturman (Post 1408179)
Guys someone know how to disable Auto-capitalization in qml file ?
Finally I got hebrew to work, but I need some small improvements like disable Auto-capitalization and adding RTL, that when you start to type, it will start from right to left and not like I have it now.
I already tried to add autocapitalization: false to each CharacterKey but vkb stop to work...

Please, someone can explain me how to do it ?

Standard keyboard layouts expect that you have always caption, shiftedCaption and if you have symView defined it expects symView2 also. You can bypass these restrictions by copying CharacterKey.qml and creating own version of it which implements exactly what you need for Hebrew keyboard.

Popper may also cause unwanted issues with custom keyboards not having all layers of characters and symbols in it.

Be warned that messing with layouts.conf may break software updates (SSU). Jolla should creates a method how to select which keyboards are available in selection list and officially support third party keyboard layouts. Until then you should create you own keyboard specific .conf file to layouts directory and live with all those languages in the list. You can however define same keyboards even multiple times and thus list you favorite ones easily accessible in the beginning on keyboard list before the system list.

Schturman 2014-01-22 18:05

Re: Keyboard layouts for Jolla's Sailfish OS
 
Thanks for pointing me about SSU, I can restore original one before system update.
I will try to play with CharacterKey.qml..
Also I like the option of shift, in this case I can use hebrew and english without switching vkb, but I need to cancel auto-capitalization if it passable.

P.S. I updated my previous post and reuploaded zip with updated README file.

Schturman 2014-01-22 23:33

Re: Keyboard layouts for Jolla's Sailfish OS
 
Ok, tried to play a few hours with many files, but without success :(

this is a ShiftKey.qml file, if it possible to disable here auto-capitalization ?
Code:

import QtQuick 2.0
import com.jolla.keyboard 1.0
import Sailfish.Silica 1.0

FunctionKey {
    id: shiftKey

    property int _charactersWhenPressed
    property bool _quickPicking

    width: shiftKeyWidth
    icon.source: attributes.inSymView ? ""
                                      : (attributes.isShifted && !attributes.isShiftLocked ? "image://theme/icon-m-autocaps"
                                                                                          : "image://theme/icon-m-capslock")
                                      + (pressed ? ("?" + Theme.highlightColor) : "")

    // dim normal shift mode
    icon.opacity: (!attributes.inSymView && !attributes.isShiftLocked && !attributes.isShifted) ? 0.2 : 1.0
    caption: attributes.inSymView ? (attributes.inSymView2 ? "2/2" : "1/2") : ""
    key: Qt.Key_Shift
    keyType: KeyType.ShiftKey

    onPressedChanged: {
        if (!keyboard.inSymView) {
            if (pressed && !keyboard.isShifted && keyboard.lastInitialKey === shiftKey) {
                _quickPicking = true
                keyboard.shiftState = ShiftState.LatchedShift
            } else {
                _quickPicking = false
            }

            _charactersWhenPressed = keyboard.characterKeyCounter
            keyboard.shiftKeyPressed = pressed
            keyboard.updatePopper()
        }
    }

    onClicked: {
        if (keyboard.characterKeyCounter > _charactersWhenPressed) {
            keyboard.shiftState = ShiftState.NoShift
        } else if (!_quickPicking) {
            if (keyboard.inSymView) {
                keyboard.inSymView2 = !keyboard.inSymView2
            } else {
                keyboard.cycleShift()
            }
        }
    }
}

Thanks

Bundyo 2014-01-23 07:18

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

Originally Posted by Penguin (Post 1408257)
Be warned that messing with layouts.conf may break software updates (SSU). Jolla should creates a method how to select which keyboards are available in selection list and officially support third party keyboard layouts. Until then you should create you own keyboard specific .conf file to layouts directory and live with all those languages in the list. You can however define same keyboards even multiple times and thus list you favorite ones easily accessible in the beginning on keyboard list before the system list.

I guess this is not certain, as the previous update just overwrote all changed files (including my custom Popper:)


All times are GMT. The time now is 10:27.

vBulletin® Version 3.8.8