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)

cstom 2013-12-27 22:07

Re: Hungarian keyboard + English with cursor arrows
 
Quote:

Originally Posted by qwazix (Post 1400806)
Weird, I tried doing about the same, but in the second row, the keys appeared but the cursor didn't move...

Yep, that's why the InputHandler was patched as well ;)

Silwer 2013-12-27 22:13

Re: Keyboard layouts for Jolla's Sailfish OS
 
Can someone try to make a Estonian keyboard like this for Jolla:
http://www.upload.ee/image/2116526/2...8_00-19-43.png

Nikos Alexandris 2013-12-28 03:36

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

Originally Posted by gsalone (Post 1400327)
Kindly share how you moved el.qml from source path to target path and also how to edit the layouts.comf?
noob alert :)

Also there is a problem with this line:
Code:

        CharacterKey { caption: "τ"; captionShifted: "Τ"; symView: "5"; symView2: "₹" }
I get little square in notepad++ in place of character between quotes for
Code:

symView2: "₹"
. Will this show as character or little square in Jolla? In notepad++ I used Encoding in UTF-8 Without BOM to create the el.qml. Which encoding should be used?

Apologies, I've just seen this now!

1) I 've scp-ied the el.qml file over from my main system to the phone, i.e.
Code:

scp el.qml nemo@192.168.xx.x:/home/nemo
2) Connected via ssh to the phone, became root and copied the file over to the directory of interest:
Code:

devel-su
cp /home/nemo/el.qml /usr/share/maliit/plugins/com/jolla/layouts

This means that Developer mode is already active and a password has been set. Otherwise, I think it won't work out.

3) I edited the file layouts.conf (using nano
Code:

nano layouts.conf
) and added the following (before EN):
Code:

[el.qml]
name=Hellenic
languageCode=EL

Of course, use Ctrl + X to save the edit.

4) Finally, I've followed the example in the first post and ran (as nemo, not as root)
Code:

exit
systemctl --user restart maliit-server.service


As for the strange character, I need more time to investigate as I am not an expert on the subject.

Nikos Alexandris 2013-12-28 03:40

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

Originally Posted by qwazix (Post 1400646)
It's late so I can't write an advanced guide but here's a quick overview. You have to enter the following commands in terminal. Stuff after # are comments, you don't need to type them (not that it does any harm if you do)
Code:

devel-su
You will be asked for password. Nothing will show up when you type the password but don't worry. The password is the one which you entered when you enabled developer mode

After successfully entering password, press enter and the terminal prompt should change from bash-3.2$ to bash-3.2#

Code:

cd /usr/share/maliit/plugins/com/jolla/layouts
curl -O http://play.qwazix.com/jolla_layouts/el.qml
curl http://play.qwazix.com/jolla_layouts/layoutsappend.conf >> layouts.conf

If you want to be able to switch between greek and english with the touch of a button, do the following instead of the above (all other languages will be disabled)

Code:

cd /usr/share/maliit/plugins/com/jolla/layouts
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/el.qml
mv en.qml en.qml.bak #back up old english layout
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/en.qml
mv layouts.conf layouts.conf.bak #back up old layout configuration
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/layouts.conf
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/globe.png

For the changes to be applied exit root and restart the keyboard server
Code:

systemctl --user restart maliit-server.service
or just
Code:

killall maliit-server
Enjoy

So sorry, you already posted the steps. Too late...

ajajaij 2013-12-28 14:13

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

Originally Posted by sponka (Post 1400791)
So what I did -- instead of modifying original "layouts.conf" with additional definitions I made new "custom-layouts.conf" file and filled with custom keyboards.

I did the same -- added custom layout file and the new layouts were not deleted after the system update.
I would suggest to keep any modifications in a seperate layout file. And remove these modifications when/if Jolla adds them.

mgbler 2013-12-28 18:31

Re: Keyboard layouts for Jolla's Sailfish OS
 
Any documentation about the possible properties and values for key objects?
Would be nice to know which values for example "width" could have.

fotis 2013-12-29 13:42

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

Originally Posted by qwazix (Post 1400646)
It's late so I can't write an advanced guide but here's a quick overview. You have to enter the following commands in terminal. Stuff after # are comments, you don't need to type them (not that it does any harm if you do)
Code:

devel-su
You will be asked for password. Nothing will show up when you type the password but don't worry. The password is the one which you entered when you enabled developer mode

After successfully entering password, press enter and the terminal prompt should change from bash-3.2$ to bash-3.2#

Code:

cd /usr/share/maliit/plugins/com/jolla/layouts
curl -O http://play.qwazix.com/jolla_layouts/el.qml
curl http://play.qwazix.com/jolla_layouts/layoutsappend.conf >> layouts.conf

If you want to be able to switch between greek and english with the touch of a button, do the following instead of the above (all other languages will be disabled)

Code:

cd /usr/share/maliit/plugins/com/jolla/layouts
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/el.qml
mv en.qml en.qml.bak #back up old english layout
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/en.qml
mv layouts.conf layouts.conf.bak #back up old layout configuration
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/layouts.conf
curl -O http://play.qwazix.com/jolla_layouts/quick_switch/globe.png

For the changes to be applied exit root and restart the keyboard server
Code:

systemctl --user restart maliit-server.service
or just
Code:

killall maliit-server
Enjoy

Followed instructions to the letter.
Ελληνικά appears at keyboard long press as an option,
also at settings->text input->active keyboard.

However, I cannot select the greek keyboard, it just reverts back to EN.

Whenever you have a minute to spare, help would be much appreciated.

SOLVED: my mistake,not sure what was it though, started from the top, qwazix's solution works like a charm :)

Again, many thanks to Qwazix!

fotis 2013-12-31 06:12

Re: Keyboard layouts for Jolla's Sailfish OS
 
something interesting

using GR plugin

maliit no longer appears when using android apps (opera, firefox is what I tried).

does that happen with other layouts as well?

Bundyo 2013-12-31 10:00

Re: Keyboard layouts for Jolla's Sailfish OS
 
Looks like that happens after restarting maliit. Restarting aliendalvik afterwards seems to fix it.

cstom 2014-01-01 16:36

Re: Keyboard layouts for Jolla's Sailfish OS
 
1 Attachment(s)
Quote:

Originally Posted by Silwer (Post 1401263)
Can someone try to make a Estonian keyboard like this for Jolla:
http://www.upload.ee/image/2116526/2...8_00-19-43.png

Here you go :)
Estonian keyboard with 4 arrows.
(however, when you press 'up' in the first row, it exists from editing mode... If I'll have some time, I'll check if there is anything available to prevent this.)

Cheers!


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

vBulletin® Version 3.8.8