Reply
Thread Tools
mced's Avatar
Posts: 115 | Thanked: 185 times | Joined on Apr 2011 @ Spain
#171
Originally Posted by Schturman View Post

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...



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

The Following User Says Thank You to mced For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#172
Originally Posted by mced View Post
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's Avatar
Posts: 115 | Thanked: 185 times | Joined on Apr 2011 @ Spain
#173
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's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#174
I know that , thanks

EDIT: Thanks, it worked.. My vkb fixed

Last edited by Schturman; 2014-03-04 at 09:42.
 
Posts: 144 | Thanked: 242 times | Joined on Nov 2007 @ Finland
#175
Do not mess with system keyboard files. You can modify even the spacebar width for your keyboard layout only without messing other layouts.

Originally Posted by Schturman View Post
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.

Last edited by Penguin; 2014-03-05 at 03:08.
 

The Following User Says Thank You to Penguin For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#176
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 ?
 
Posts: 10 | Thanked: 2 times | Joined on Jan 2012 @ Zagreb, Croatia
#177
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

Last edited by igor_b; 2014-03-10 at 08:31. Reason: better way
 
Posts: 144 | Thanked: 242 times | Joined on Nov 2007 @ Finland
#178
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.
 

The Following 2 Users Say Thank You to Penguin For This Useful Post:
Posts: 144 | Thanked: 242 times | Joined on Nov 2007 @ Finland
#179
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

Last edited by Penguin; 2014-03-31 at 14:54.
 

The Following 8 Users Say Thank You to Penguin For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#180
Thanks for you work , can you share the .spec file of one of this vkb's ?
 
Reply


 
Forum Jump


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