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)

Penguin 2014-03-31 14:53

Re: Keyboard layouts for Jolla's Sailfish OS
 
albloushi: Have you tested your layout? I tested and found some issues with it in accents. I am working to solve those issues with custom keyboard components to make for example popper work properly with characters currently having issues with stock keyboard components.

There has been posted sample SPEC file earlier in this thread. You need rpmbuild available in mersdk and various Linux distros to create the package. Very good rpm creation guides can be found by googling "How to create RPM package". For Arabic keyboard you need font files too with license allowing redistribution.

I took liberty to pack dvorak keyboard made by gitful and share it as rpm package at https://openrepos.net/content/pengui...vorak-keyboard

albloushi 2014-04-01 03:17

Re: Keyboard layouts for Jolla's Sailfish OS
 
Penguin: yes, I tested the keyboard layout, and don't have any issue, the popper of accent is quite big, I don't know how to change the size of it.

yes, also I changed the layout, if you like, then I can share it with you.

And thanks for your reply.

zlatko 2014-04-01 05:20

Re: Keyboard layouts for Jolla's Sailfish OS
 
@Bundyo
Do you experience issues with word prediction when using the letter "ь" in Bulgarian Cyrillic keyboard? For me when I start to type a word with "ь"(e.g. "вальор") it is normally suggested until I enter "ь" - after that word I am typing is no longer underlined and there is no word prediction in top row. The next letters I type are considered new word by the word prediction.

Bundyo 2014-04-01 17:31

Re: Keyboard layouts for Jolla's Sailfish OS
 
Sorry, didn't see it here. Still no, though. :)

Penguin 2014-04-02 01:13

Re: Keyboard layouts for Jolla's Sailfish OS
 
albloushi: size of popper is big because it can't handle correctly glyphs with negative or no advance as in Arabic. Sorry There is no other way to fix that issue than write new popper working properly as I have done with emoji keyboard.

Please sharee that modified layout, I will look that and see what can be done for the popper.

I do not know the correct wording for all of those Arabic glyphs but I find this Arabic writing facinating because it differs so much from writing with latin characters. That makes me interested to work with Arabic layout.

albloushi 2014-04-08 03:59

Re: Keyboard layouts for Jolla's Sailfish OS
 
1 Attachment(s)
Penguin: Sorry for the delay, and appreciate your support.

Kindly find attached the layout

Jordi 2014-04-12 06:31

Re: Keyboard layouts for Jolla's Sailfish OS
 
Since the last SW update (1.0.5.16) the word prediction is not working anymore when I use my custom keyboard.

Previously, when switching to a custom keyboard, the phone was keeping the word prediction of the last standard keyboard used (French in my case).

Any idea to have this working again?

zlatko 2014-04-12 07:04

Re: Keyboard layouts for Jolla's Sailfish OS
 
I have same problem as @Jordi. I am using Bulgarian&English setup, both keyboard layouts modified to my liking and using a custom layouts.conf file. Since 1.0.5.16 I am not getting any word predictions. According to TJC thread dictionaries are in /home/nemo/.local/share/xt9/ but there is no such directory on my device.

Leinad 2014-04-12 10:44

Re: Keyboard layouts for Jolla's Sailfish OS
 
I have this directory, but word prediction also does not work for me, with custom keyboard.

there are 2 files in it:
Code:

[nemo@Jolla xt9]$ ls -l
total 1236
-rw-r--r-- 1 nemo nemo  10240 Apr 10 08:23 cp_pinyin.udb
-rw-r--r-- 1 nemo nemo 1249856 Apr 12 12:25 xt9.dlm

i tried to open them with a text editor, but this does not work.

Jordi 2014-04-12 11:59

Re: Keyboard layouts for Jolla's Sailfish OS
 
I also have this directory and I open the file called xt9.dlm: it's big, almost empty but contains the typed words, I recognise some sentences I typed in Mitakuuluu.

mced 2014-04-12 12:28

Re: Keyboard layouts for Jolla's Sailfish OS
 
No problem for me. As with every update, I was forced to manually add an entry into the layouts.conf file. There's a new "handler" line, anyway:

Code:

[customkeyboard.qml]
name=CustomName
languageCode=ES
// Using ES dictionary in my case
handler=Xt9InputHandler.qml


Jordi 2014-04-12 13:09

Re: Keyboard layouts for Jolla's Sailfish OS
 
You are right mced, thanks a lot! :)

I was changing the language code to see - in the space key - which keyboard I was using: FR or FR-CH. By changing the language code I had no word prediction.

zlatko 2014-04-12 13:53

Re: Keyboard layouts for Jolla's Sailfish OS
 
My issue was using custom layouts.conf file, without the newly added line:
Code:

handler=Xt9InputHandler.qml
I just replaced the new one with mine, thus not having an idea this line was there.
Just adding it fixed it! Thanks for pointing it out!

Bundyo 2014-04-12 15:36

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

Originally Posted by zlatko (Post 1421095)
My issue was using custom layouts.conf file, without the newly added line:
Code:

handler=Xt9InputHandler.qml
I just replaced the new one with mine, thus not having an idea this line was there.
Just adding it fixed it! Thanks for pointing it out!

Probably needs to be added for external layout files too. That's why I was only missing the Bulgarian completion.

On the plus side - seems we can now use custom completion handlers :D

rob_kouw 2014-04-13 11:40

Re: Keyboard layouts for Jolla's Sailfish OS
 
(Edited)
My "Extended English" did not work anymore. The autocompletion didn't work, nor the extra characters I added. The extra line to use Xt9inputhandler didn't do the trick at first.
But something else changed as well. I use Bitvise for SFTP to download/upload the keyboard files and xterm for the bash shell. I used to be able to paste commands into the terminal, but that doesn't work anymore.

Then I tried a second time. Uploaded the enx.conf file with the extra line to /home/nemo/Downloads, and from bash I copied the file to /usr/share/maliit/plugins/com/jolla/layouts as root. Restarted the service with killall maliit-server and it works. (First time I FTP'd the .conf file directly to /usr/share/maliit/plugins/com/jolla/layouts, probably with wrong user settings then.)

juiceme 2014-04-15 10:37

Re: Keyboard layouts for Jolla's Sailfish OS
 
Allright, this is a silly question, I know, but I tried for some time and could not find the correct way to do this thing, so maybe soembody can help me with this.

What I'd like to accomplish, is to have a different layout based on whether the device is in portrait or landscape mode. The reason for that is that I'd like to have full set of cursor keys (up, down, left, right) in landscape mode, but just left and right in portrait.

This is what I've accomplished: http://www.swagman.org/juice/arrowkeys_fi.png

As you can see, the layout is a bit tight in the rightmost portrait view, (marked with green...) so I'd like to have just 2 buttons there.

Now, I have tried various ways to do that, but for some reason I cannot put a simple "if(...)" statement in the QML code to any place it should seemingly affect the drawing of the layout.
I suppose that is because of the way the layout is drawn, it uses some funny iterative way to do that in updateSizes() of KeyboardLayout.qml, I guess??

Penguin 2014-04-15 16:45

Re: Keyboard layouts for Jolla's Sailfish OS
 
This is actually very good change so languages not supported by prediction won't poison the word prediction database and this also makes changing input handler much easier.

I will update RPM packages for English Dvorak, English Colemak, French-Swiss and French Bépo accordingly.

@juiceme: create two spacebar rows. One visible only when portraitMode is true and the other when portraitMode is false. I haven't tested with latest update but earlier it didn't work if visible was defined for individual keys but works for full row.

juiceme 2014-04-15 19:47

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

Originally Posted by Penguin (Post 1421500)
@juiceme: create two spacebar rows. One visible only when portraitMode is true and the other when portraitMode is false. I haven't tested with latest update but earlier it didn't work if visible was defined for individual keys but works for full row.

Thanks, that is something I already figured out, but where can I add the branching logic?
Now as I understand it, the QML files under the "layout" directory are data structure definitions, you cannot put if/else statements there.
There is actual running code in "KeyboardLayout.qml" for example, but it is a bit unclear to me on how that bit accesses the definition QML files that contain the actual kayboard model.

Bundyo 2014-04-15 20:22

Re: Keyboard layouts for Jolla's Sailfish OS
 
@Penguin: In some cases the prediction is not "poisoned", as with radically different languages, like English and Bulgarian, or Spanish and Hebrew, because the characters systems don't allow one showing predictions in the other.

That said, it will be a good feature the developer to be able to specify which prediction database should be used for a language. I went ahead and logged it in Together.
http://bit.ly/1m5TEfm

Stskeeps 2014-04-29 12:42

Re: Keyboard layouts for Jolla's Sailfish OS
 
By the way, we have a community meeting entry about also community keyboards, see https://lists.sailfishos.org/piperma...il/004098.html

Please show up to make your voice and thoughts heard!

cvp 2014-05-01 09:21

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

Originally Posted by anyone (Post 1411243)
Attached a German keyboard layout with
  • Arrow keys
  • Number keys in upper row accented characters
  • Reduced time until accented character list appears

Unpack and install in /usr/share/maliit/plugins/com/jolla

Warning: Overwrites
  • InputHandler.qml (to make cursor keys working)
  • Popper.qml (to reduce time til accented characters appear)

For more details see https://together.jolla.com/question/...#comment-24801

I try this version on 1.0.5.19, the arrwos still work, its faster, but no word suggestions on the top. have any one a German keyboard whats work on the newest update ?

Bundyo 2014-05-02 22:08

Re: Keyboard layouts for Jolla's Sailfish OS
 
@cvp, read the previous page.

TMavica 2014-05-16 16:18

Re: Keyboard layouts for Jolla's Sailfish OS
 
I got the chinese keyboard , I have code to hide the prediction word, but the copy and paste button is disappear also too, do you know how to make it appear?

source code: https://github.com/arthurartoria/jolla-quick-im

Mitrigol 2014-05-23 14:10

Re: Keyboard layouts for Jolla's Sailfish OS
 
Hello,

Thank you for all the custom keyboard.

I installed Penguin's Swiss French layout from Openrepo, and once enabled, the word prediction did not work.

So following Jordi's post n°52:
[fr_ch.qml]
name=Francais Suisse
languageCode=FR
handler=Xt9InputHandler.qml

I found that "handler=Xt9InputHandler.qml" was missing from /usr/share/maliit/plugins/com/jolla/layouts/custom_fr-ch.conf.

Once added, prediction is working fine.

For information :)

Thanks again.

Tarick 2014-06-01 09:32

Re: Keyboard layouts for Jolla's Sailfish OS
 
2 Attachment(s)
@Penguin , could you please put into rpms attached Ukrainian layout?
Thanks.

malkavian 2014-06-06 11:30

Re: Keyboard layouts for Jolla's Sailfish OS
 
I tried to comment the "handler=Xt9InputHandler.qml" line and I get no completion handler, ok... But The space is there yet, I would like to have a 3 lines keyboard and not a 4 one, wich eats more screen space.

Anybody knows how to do it?

Pakana 2014-06-08 17:55

Re: Keyboard layouts for Jolla's Sailfish OS
 
Thanks to cstom I did make my own keyboard:

https://www.dropbox.com/sh/siwaaczh5...a/Keyboard.png

dirkvl 2014-06-08 18:35

Re: Keyboard layouts for Jolla's Sailfish OS
 
HODOR HODOR hodor?

abyzthomas 2014-06-09 17:30

Re: Keyboard layouts for Jolla's Sailfish OS
 
Does anyone know if it is possible to reduce the font size for some character labels on the keyboard?

Some of the characters for my language are very wide and it would look much better if I can reduce the size.

If I can do that just for portrait mode only that will be even better, since the default size looks fine on landscape mode.

Penguin 2014-06-10 20:11

Re: Keyboard layouts for Jolla's Sailfish OS
 
It seems that there is a lot to update into custom keyboards after last two SailfishOS updates. I've been too busy with other activities to do anything in Sailfish for last month and a half. Currently working to fix installation scripts and updating Emoji Keyboard to work properly after latest update. I'll try to create Ukrainian layout RPM and update input handlers where applicable before traveling next week.

Quote:

Originally Posted by abyzthomas (Post 1428850)
Does anyone know if it is possible to reduce the font size for some character labels on the keyboard?

Yes, you can modify size of characters. Create a copy of CharacterKey.qml file with another name (for example CharacterKeySmall.qml) and modify font size in that file. Instead of defining a key or keys as CharacterKey { ... } in your layout file use that modified component name (CharacterKeySmall{ ... }) when you want to alter font size from system default.

nodevel 2014-06-11 21:06

Re: Keyboard layouts for Jolla's Sailfish OS
 
1 Attachment(s)
It looks like Jolla has finally included the Czech keyboard layout in the last update, but I've become used to my custom layout, which is better (of course :) ) in my opinion. It works quite well for me, so I decided to share it with others.

nodevel's Czech keyboard layout

Goodies:
  • text emoticons
  • special characters easier to access
  • both accent keys (´ˇ) are on the right side (inspired by the N900 keyboard layout)
  • wider spacebar, to prevent accidental misclicks
  • does not need any custom components (new!)
  • QWERTY layout (can create QWERTZ as well if needed)
  • Slovak-friendly Ľ key ;)


Enjoy.

http://i58.tinypic.com/bg9y1c.png
http://i59.tinypic.com/iz84dl.png
http://i59.tinypic.com/20v12bm.png

PS: Kaacz, feel free to include it in your post, so it is easier to find.

malkavian 2014-06-12 00:12

Re: Keyboard layouts for Jolla's Sailfish OS
 
@nodevel + @all

Would be great if you can add one/two screenshots...

TMavica 2014-06-12 02:02

Re: Keyboard layouts for Jolla's Sailfish OS
 
anyone got emoji keyboard working after factory reset and updated to 1.0716?
mine emoji keyboard show empty emoji

cvp 2014-06-12 07:12

Re: Keyboard layouts for Jolla's Sailfish OS
 
@TMaica, i dont have any problems with Emoji.

TMavica 2014-06-12 07:40

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

Originally Posted by cvp (Post 1429253)
@TMaica, i dont have any problems with Emoji.

have u reset factory, and install it?
i got these problem after i do it

malkavian 2014-06-12 09:11

Re: Keyboard layouts for Jolla's Sailfish OS
 
No problems here with Emoji, but I didn't have to reset.

nodevel 2014-06-13 01:39

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

Originally Posted by malkavian (Post 1429234)
@nodevel + @all

Would be great if you can add one/two screenshots...

Done. Plus I have updated my keyboard (I noticed it was unusable before, as I forgot to share my custom components, but I made some edits, so it doesn't need those anymore, while still keeping its original functionality).

cvp 2014-06-13 06:48

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

Originally Posted by TMavica (Post 1429261)
have u reset factory, and install it?
i got these problem after i do it

no, i still update only my device without reseting. Maybe reset again, and before you instal 1.0.7.16 , install first Emoji and than update

Venemo 2014-06-19 06:22

Re: Keyboard layouts for Jolla's Sailfish OS
 
Hey guys,

Since the way it works has chaned in 1.0.7.x, I've updated my posts.

Here's how you create accented characters with multiple dead keys:
http://talk.maemo.org/showpost.php?p...5&postcount=67

And here's my updated Hungarian (QWERTZ) layout:
http://talk.maemo.org/showpost.php?p...1&postcount=68

hana 2014-08-02 19:32

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

Originally Posted by malkavian (Post 1428483)
I tried to comment the "handler=Xt9InputHandler.qml" line and I get no completion handler, ok... But The space is there yet, I would like to have a 3 lines keyboard and not a 4 one, wich eats more screen space.

I would like to know how to do this too, especially for the landscape mode. Obviously the clipboard key needs to be moved to another row (in landscape there's plenty of space, in portrait not so much) if that remains the only way to copy and paste text.

So, where can we find the code that actually creates the top row?


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

vBulletin® Version 3.8.8