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)

Nikos Alexandris 2013-12-24 10:37

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

Originally Posted by qwazix (Post 1397706)
Ελληνικά

Hi! I need some help. I have placed the code under

Code:

/usr/share/maliit/plugins/com/jolla/layouts
named as

Code:

ls -l el.qml
-rw-r--r-- 1 root root 4041 2013-12-24 11:28 el.qml

Then, in layouts.conf I have introduced the following 2 lines:

Code:

[el.qml]
name=Hellenic
languageCode=EL

I have restarted Sailfish. I can't see a way to identify the "EL" under the languages in the settings. What am I doing wrong?

Thanks for any hint.

Nikos Alexandris 2013-12-24 13:23

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

Originally Posted by Nikos Alexandris (Post 1400246)
Hi! I need some help. I have placed the code under

Code:

/usr/share/maliit/plugins/com/jolla/layouts
named as

Code:

ls -l el.qml
-rw-r--r-- 1 root root 4041 2013-12-24 11:28 el.qml

Then, in layouts.conf I have introduced the following 2 lines:

Code:

[el.qml]
name=Hellenic
languageCode=EL

UpDate: I changed that to Greek, although it should not be important, right?

I have restarted Sailfish. I can't see a way to identify the "EL" under the languages in the settings. What am I doing wrong?

Thanks for any hint.


I got it now: it only concerns the keyboard, not the "Language" settings. Sorry. It works :-).

gsalone 2013-12-24 15:50

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

Originally Posted by Nikos Alexandris (Post 1400246)
Hi! I need some help. I have placed the code under

Code:

/usr/share/maliit/plugins/com/jolla/layouts
named as

Code:

ls -l el.qml
-rw-r--r-- 1 root root 4041 2013-12-24 11:28 el.qml

Then, in layouts.conf I have introduced the following 2 lines:

Code:

[el.qml]
name=Hellenic
languageCode=EL


I have restarted Sailfish. I can't see a way to identify the "EL" under the languages in the settings. What am I doing wrong?

Thanks for any hint.

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?

dcihlar 2013-12-24 17:24

Re: Keyboard layouts for Jolla's Sailfish OS
 
And here is the Croatian qwertz layout:
http://zirconium.zrs.hr/~dcihlar/jolla/hr.qml (Screenshot)

After adding a new layout, it's possible to restart only the maliit server instead of the whole device:
Code:

systemctl --user restart maliit-server.service
Btw, I was looking through the sources and it looks like there is no way to add layouts into the user directory without modifying system files (LayoutLoader.qml for example).

sponka 2013-12-24 22:42

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


Quote:

Originally Posted by dcihlar (Post 1400354)
And here is the Croatian qwertz layout:
http://zirconium.zrs.hr/~dcihlar/jolla/hr.qml (Screenshot)

After adding a new layout, it's possible to restart only the maliit server instead of the whole device:
Code:

systemctl --user restart maliit-server.service
Btw, I was looking through the sources and it looks like there is no way to add layouts into the user directory without modifying system files (LayoutLoader.qml for example).


Kaacz 2013-12-24 23:07

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

Originally Posted by czdosi (Post 1399435)
Hi Kaacz! :-) I think that original idea was to store accents like key => value array. So accent should be before accented char.

Yes, i have both version of code. But I use second. Wrong code (index*2) is more close this.

This is big question. :)
Now I put question to Mer people on together.jolla.com.

qwazix 2013-12-25 01:06

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?

Probably it's just a limitation of your display font in N++
UTF8 without bom is the right encoding. Try it on your Jolla and see, or just change the symbol with something more useful.

juiceme 2013-12-25 02:09

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

Originally Posted by Bundyo (Post 1392116)
Yeah, would probably help :D (also the arrows should be able to work with shift pressed). This however is a browser bug and would probably be fixed. Actually the browser does have quite a few bugs, I wonder if they have a public bug tracker for it...

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?

Bundyo 2013-12-25 21:28

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

Originally Posted by tiempjuuh (Post 1400242)
At least I think, because of many references I found in /usr/share/maliit/, it uses Nuances XT9 prediction. XT9 is available in many languages, so that's good, but it's closed source and I can't find the place where the dictionaries are stored... :(

Maybe it's a good start to find out in which format they're stored, where they are located and if it is possible to add other languages, like Dutch. It could be doable since we've got an open source dictionary team, found here.

I found them, but it doesn't get any better - the languages are embedded in the QT5 plugin - a stripped so library... in /usr/lib/qt5/qml/com/jolla/xt9/libjollaxt9plugin.so

fotis 2013-12-25 21:57

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

Originally Posted by Nikos Alexandris (Post 1400246)
Hi! I need some help. I have placed the code under

Code:

/usr/share/maliit/plugins/com/jolla/layouts
named as

Code:

ls -l el.qml
-rw-r--r-- 1 root root 4041 2013-12-24 11:28 el.qml

Then, in layouts.conf I have introduced the following 2 lines:

Code:

[el.qml]
name=Hellenic
languageCode=EL

I have restarted Sailfish. I can't see a way to identify the "EL" under the languages in the settings. What am I doing wrong?

Thanks for any hint.

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

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


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

vBulletin® Version 3.8.8