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)

gsalone 2013-12-25 23:53

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

Originally Posted by fotis (Post 1400626)
Νικο ή Qwazix, αν καποιος απο τους δυο σας βρει χρονο, μια επεξηγηση της διαδικασιας βημα προς βημα (οδηγιες για ασχετους) θα ηταν ανεκτιμητη. Μεχρι στιγμης εχω βρει το directory και εχω βρει και τα αρχεια (στο τηλεφωνο, οχι ομως οταν συνδεθω με το pc). Εβαλα και τη συσκευη σε developer mode. Δεν εχω ιδεα τι πρεπει να κανω με τον κωδικα του qwazix ουτε εχω βρει τροπο να επεξεργαστω τα αρχεια qml.

ευχαριστω πολυ :)

mia apo ta idia :)

qwazix 2013-12-26 01:18

Re: Keyboard layouts for Jolla's Sailfish OS
 
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

Yoyocx 2013-12-26 04:16

Re: Keyboard layouts for Jolla's Sailfish OS
 
It's work..... Emoji Keyboard..
https://fbcdn-sphotos-d-a.akamaihd.n...95101507_n.jpg

Jordi 2013-12-26 07:33

Re: Keyboard layouts for Jolla's Sailfish OS
 
2 Attachment(s)
Here is a French-Swiss keyboard (clavier Suisse Romand), remove the .txt in the end.

(Click here for a French-Swiss keyboard with color emojis).

Add the following lines in the layouts.conf file or create a new file as explained in this thread:

[fr_ch.qml]
name=Francais Suisse
languageCode=FR
handler=Xt9InputHandler.qml

Restart your Jolla afterwards or restart maliit server as explained by dcihlar:

systemctl --user restart maliit-server.service


Edit: new version, modified the position of accents for the letter "U".
Edit 2: modified .conf file valid for FW 1.0.05.16, remove the .txt in the end.
Edit 3: new version, valid for FW 1.1.4, remove the .txt in the end.
Edit 4: add link for the French-Swiss keyboard with color emojis.

milad ghusn 2013-12-26 11:26

Re: Keyboard layouts for Jolla's Sailfish OS
 
is there any arabic layout ??

PeterSmurffiPan 2013-12-26 11:53

Re: Keyboard layouts for Jolla's Sailfish OS
 
Is is possible to add web site suffix button?

cstom 2013-12-26 13:48

Hungarian keyboard + English with cursor arrows
 
2 Attachment(s)
Quote:

Originally Posted by juiceme (Post 1400442)
Still waiting for the keyboard layout with arrows...

Will it be possible to implement with just schema change or does it need patching of binaries?

I was able to add the left-right buttons, but it requires changes in a few qml files...

Make sure you have a backup of /usr/share/maliit/plugins/com/jolla and /usr/share/maliit/plugins/com/jolla/layouts.

There are two layouts included, a modified English and a new Hungarian one. Both has cursor arrows.
There is a dedicated switch (or "toggle") button as well, which changes between this two languages with one click. You might want to change the target language or disable it althogether: you can do it in the SpacebarRowArrowHu.qml file (just remove the FunctionKey section to disable the toggle, or change the index to the appropriate language)

Put en.qml and hu.qml to the /usr/share/maliit/plugins/com/jolla/layouts, the rest to the /usr/share/maliit/plugins/com/jolla/ directory.

Oh, and don't forget to add this to the layouts.conf file:
Code:

[hu.qml]
name=Magyar
languageCode=HU

Attachment 34180

Bundyo 2013-12-26 15:30

Re: Keyboard layouts for Jolla's Sailfish OS
 
Updated Popper.qml to enable long click for character capitalization, goes in upper folder (make a backup of the original). Shouldn't break the accents and should work with other layouts too.

Video of the feature in action:
http://www.youtube.com/watch?v=JMOwuD8nr1M

Get it here

andrej_v 2013-12-26 15:52

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

Originally Posted by sponka (Post 1400409)
Nice, thanks! Can be used also for slovenain :) I made my own keyboard where šđčćž are directly accesible, but have some problem(s) with spacing and is not suitable for general use.

One note for "systemctl" command -- should be run us normal user, running as root will return an error "Failed to get D-Bus connection: Failed to verify owner of bus."

Indeed, we can use the Croatian one as a base for the Slovenian; the keyboard layouts for Slovenian and Croatian are usually the same (dates back to the late Yugoslavia...), our new standard (SIST 1044:2009) is not widely used ...

However, we could remove several accent chars which are not used in Slovene (ä, å, ñ,etc.) to make it simpler... I'll have a go at it.

Maybe I overlooked it in this thread, but how do we push these layouts upstream? I'd like to select the Slovenian keyboard from a menu in the default installation, not copy and edit files;)

sponka 2013-12-26 17:38

Re: Keyboard layouts for Jolla's Sailfish OS
 
Maybe everybody knows this, but I was not aware -- if you create backup of layouts.conf, rename and leave .conf suffix, keyboards starts to multiply and after few switches active keyboard dissappear.

This gave me idea that maalit will read all conf files in /usr/share/maliit/plugins/com/jolla/layouts/.

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 don't know if this is "proper" way, but it works. Usefull? Maybe :)


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

vBulletin® Version 3.8.8