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)

mced 2014-03-04 06:41

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

Originally Posted by Schturman (Post 1414328)

I need to move the "Enter" button to the corner and the spacebar should be stretched or just enlarged... In the portrait mode all is ok...

I've edited this file:

/usr/share/maliit/plugins/com/jolla/KeyboardGeometry.qml

Look for this line:

Code:

property int spacebarKeyWidthLandscape: 324*scaleRatio
And play with that number. Mine is 280. This is my Spanish layout now. I love those arrows at the sides. I know, that lower bar is not really centered...

http://i62.tinypic.com/5npxqr.jpg

You must make backups when modifiying files, both original and custom. I guess they will be overwritten in future updates.

Schturman 2014-03-04 07:18

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

Originally Posted by mced (Post 1415340)
I've edited this file:

/usr/share/maliit/plugins/com/jolla/KeyboardGeometry.qml

Look for this line:

Code:

property int spacebarKeyWidthLandscape: 324*scaleRatio
And play with that number. Mine is 280. This is my Spanish layout now. I love those arrows at the sides. I know, that lower bar is not really centered...

http://i62.tinypic.com/5npxqr.jpg

You must make backups when modifiying files, both original and custom. I guess they will be overwritten in future updates.

Thank you, I will try...

mced 2014-03-04 07:29

Re: Keyboard layouts for Jolla's Sailfish OS
 
Hint: when playing with those Maliit files, I use to have two SSH sesions opened:

-A root one (devel-su) for editing.
-A normal one (nemo) just for invoking:
systemctl --user restart maliit-server.service

Schturman 2014-03-04 09:03

Re: Keyboard layouts for Jolla's Sailfish OS
 
I know that , thanks ;)

EDIT: Thanks, it worked.. My vkb fixed :)

Penguin 2014-03-05 03:02

Re: Keyboard layouts for Jolla's Sailfish OS
 
Do not mess with system keyboard files. You can modify even the spacebar width for your keyboard layout only without messing other layouts.

Quote:

Originally Posted by Schturman (Post 1414381)
Ohh sorry, I forgot to add this:
Code:

import QtQuick 2.0

KeyboardRow {
    SymbolKey {}
    FunctionKey {
        icon.source: "image://theme/icon-s-sync"
        onClicked: {canvas.layoutRow.switchLayout(0); canvas.updateIMArea()}
        width: 64
    }
    LeftArrowKey {}
    SpacebarKey {
        fixedWidth: true
    }
    RightArrowKey {}
    EnterKey {}
}


I would say to this that define FunctionKey to be with fixed width when you have defined the exact width. Opposite for spacebarkey that if you defined it should be fixed width then define how wide it should be.

That way it may work nicely in Jolla, but not in other phones with other resolutions. IMO spacebar should always have flexible width to fill the row what is left from the other keys.

Schturman 2014-03-05 07:24

Re: Keyboard layouts for Jolla's Sailfish OS
 
OK, I have another problem, when In portrait mode the spacebar key is good, but in the landscape it is small, If I enlarge the spacebar key in spacebar row, it also enlarged in the portrait mode :(
Can I somehow add separated spacebarkey for portrait and for landscape in the spacebar row ?

igor_b 2014-03-08 18:52

Re: Keyboard layouts for Jolla's Sailfish OS
 
I created Croatian layout. It's just a QWERTZ layout with additional accented characters.

Download it here:As with other keyboard layouts, copy the qml files to /usr/share/maliit/plugins/com/jolla/layouts/ and restart keyboard service to apply changes:
Code:

systemctl --user restart maliit-server.service

Penguin 2014-03-08 19:19

Re: Keyboard layouts for Jolla's Sailfish OS
 
Better if you create your own "custom_hr.conf" file and system layouts.conf does not need to be changed. Less room for errors and less broken pieces after system update.

Penguin 2014-03-10 02:55

Re: Keyboard layouts for Jolla's Sailfish OS
 
After some amount of testing I created RPM packages for several keyboard layout announced on this thread and made those available from Openrepos:

I hope this is ok for authors of each keyboard layout.

To make sure nothing is conflicting with system keyboard files and each layout can be installed independently, I made few modifications to file names and QML and configuration files. I think this way these are more user friendly for not so advanced users and installation and uninstallation can be made nice and safe.

I also have Arabic keyboard layout ready for packaging but it is lacking proper font with arabic glyphs and licensed with applicable license for distributing it in keyboard package.

Edit (2014-03-10 14:43 CET):
Added Croatian layout (identical with Slovenian layout)

Edit (2014-03-10 15:25 CET):
Added Estonian layout

Edit (2014-03-28 21:58 CET):
Added Serbian cyrillic and latin layouts
Greek layout listed on same list as other layouts

Edit (2014-03-31 16:55 CET):
Added English Dvorak keyboard

Schturman 2014-03-10 05:45

Re: Keyboard layouts for Jolla's Sailfish OS
 
Thanks for you work , can you share the .spec file of one of this vkb's ?


All times are GMT. The time now is 23:38.

vBulletin® Version 3.8.8