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)

Silwer 2014-03-10 06:19

Re: Keyboard layouts for Jolla's Sailfish OS
 
Penguin - Could you also make Estonian keyboard rpm? http://talk.maemo.org/showpost.php?p...8&postcount=80

Thanks!

igor_b 2014-03-10 08:32

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

Originally Posted by Penguin (Post 1415935)
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.

i didn't knew that was possible. i edited the original post.

Penguin 2014-03-10 11:38

Re: Keyboard layouts for Jolla's Sailfish OS
 
SPEC file of a single custom keyboard layout as requested:

Code:

Name:          keyboard-custom-hu
Version:        0.1
Release:        1
Summary:        Hungarian keyboard layout
Group:          Qt
License:        BSD
Vendor:        Janne Edelman
URL:            https://openrepos.net/content/penguin/hungarian-keyboard
Source0:        %{name}-%{version}-%{release}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  jolla-keyboard
Requires:  jolla-xt9
Requires:  qt5-qtdeclarative-systeminfo

%description
Enables Hungarian keyboard layout in native SailfishOS applications in Jolla.

%prep
%setup -q
pwd
ls -l
echo prep done

%install
mkdir -p %{buildroot}/usr/share
cp -av . %{buildroot}/usr/share
pwd
ls -l

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,-)
%doc
/*

%post
fc-cache -r
su nemo -c "/bin/systemctl --user restart maliit-server.service"

%postun
su nemo -c "/bin/systemctl --user restart maliit-server.service"

and content of source tarball for above SPEC file:

Code:

keyboard-custom-hu-0.1/
keyboard-custom-hu-0.1/maliit/
keyboard-custom-hu-0.1/maliit/plugins/
keyboard-custom-hu-0.1/maliit/plugins/com/
keyboard-custom-hu-0.1/maliit/plugins/com/jolla/
keyboard-custom-hu-0.1/maliit/plugins/com/jolla/layouts/
keyboard-custom-hu-0.1/maliit/plugins/com/jolla/layouts/custom_hu.conf
keyboard-custom-hu-0.1/maliit/plugins/com/jolla/layouts/custom_hu.qml

I will still clean up my scripts before I will post all into Github.

Schturman: You could change your keyboard RPM's so that those do not overwrite any system files. You've wrote that those return original files when uninstalled, but that actually is real issue with them if system has been updated meanwhile and rpm uninstall will replace files updated by system update with files from earlier sailfish release.

Silwer: I will check that if there was some issue why I skipped Estonian keyboard.
EDIT:
Quote:

Originally Posted by cstom (Post 1402798)
(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.)

Have you solved this issue or is there any issue still?
igor_b: Is there difference in Slovenian and Croatian keyboard layouts except language code? I compared your Croation keyboard to what generally has been documented as "Hrvatska Tipkovnica" in Wikipedia (QWERTZ and Hrvatska nacionalna tastatura) and another virtual keyboard I found. This national keyboard is different of course but how about qwertz?

Generally I would say that this is excelled work and you who have contribited to these keyboards have earned the recognitition what Jolla spokes man gave this morning "Great work!".

However one thing I would like to comment regarding many of virtual keyboards. When you take that English or any other keyboard layout QML file as basis, please be brave and add more keys on the keyboard rows if your national keyboard insists that. Maxium of 12 keys can be put on single row and keyboard still remains usable, so you do not have to stick in the number of keys on English keyboard.

Silwer 2014-03-10 12:04

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

Originally Posted by Penguin (Post 1416060)
Silwer: I will check that if there was some issue why I skipped Estonian keyboard.
EDIT:


Have you solved this issue or is there any issue still?

I never had issue with "Up" arrow.

I used this keyboard only for a short period of time with last Sailfish OS version. After upgrading to newer OS version, keyboard arrows stopped working as during the upgrade part of the keyboard files were overwritten. I am using currently original Finnish keyboard. It is pretty close to Estonian one, however, sometimes I still miss the arrows I had in the custom Estonian keyboard.

igor_b 2014-03-10 12:15

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

Originally Posted by Penguin (Post 1416060)
igor_b: Is there difference in Slovenian and Croatian keyboard layouts except language code? I compared your Croation keyboard to what generally has been documented as "Hrvatska Tipkovnica" in Wikipedia (QWERTZ and Hrvatska nacionalna tastatura) and another virtual keyboard I found. This national keyboard is different of course but how about qwertz?

It seems that Croatian (QWERTZ) and Slovenian keyboard layouts are exactly the same (didn't kew that till now :)). That other (national) layout is something I've never seen before and I'm using Croatian keyboards for almost twenty years :D.

Quote:

Originally Posted by Penguin (Post 1416060)
When you take that English or any other keyboard layout QML file as basis, please be brave and add more keys on the keyboard rows if your national keyboard insists that. Maxium of 12 keys can be put on single row and keyboard still remains usable, so you do not have to stick in the number of keys on English keyboard.

I tried making full variant of the keyboard with additional keys but (at least for me) usability is much lower so I decided to use accents for extra characters (as it is on Android and iOS keyboards too).

Penguin 2014-03-10 13:48

Re: Keyboard layouts for Jolla's Sailfish OS
 
Ok, I copied existing Slovenian layout to be as Croatian layout and created own RPM for that. Any improvenets are welcome as you are the ones using those layouts not me and you know what works best.

igor_b 2014-03-10 14:08

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

Originally Posted by Penguin (Post 1416073)
Ok, I copied existing Slovenian layout to be as Croatian layout and created own RPM for that. Any improvenets are welcome as you are the ones using those layouts not me and you know what works best.

Slovenian layout, as shown here http://www.branah.com/slovenian is identical to Croatian (except letter "ž" is more often in the row below, after "ć"). But the one that you packaged is not the best one.. It has characters "š", "č" and "ž" on direct keys but "ć" and "đ" are hidden behind accented keys (in Slovenian those letters are maybe used more rarely but that's not the case for Croatian).

Penguin 2014-03-10 14:24

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

Originally Posted by igor_b (Post 1416077)
Slovenian layout, as shown here http://www.branah.com/slovenian is identical to Croatian (except letter "ž" is more often in the row below, after "ć"). But the one that you packaged is not the best one.. It has characters "š", "č" and "ž" on direct keys but "ć" and "đ" are hidden behind accented keys (in Slovenian those letters are maybe used more rarely but that's not the case for Croatian).

Thanks for your feedback! I will look those still today to make better layout available. I will study more that layout you have made and all additional input is also welcome.

Quote:

Originally Posted by Silwer (Post 1416036)
Penguin - Could you also make Estonian keyboard rpm? http://talk.maemo.org/showpost.php?p...8&postcount=80

Thanks!

Estonian keyboard is now available from OpenRepos too but without arrow keys as that would require modifying system files and I do not want to publish a single rpm package which mess with system files.

If someone has feasible solution to the arrow keys without modifying systems InputHandler.qml, please point it out so it could be adapted in custom keyboards.

Penguin 2014-03-10 15:04

Re: Keyboard layouts for Jolla's Sailfish OS
 
1 Attachment(s)
Would this be better croatian layout with direct keys "ć" and "đ" and "š", "č" and "ž" hidden behind accented keys.

I was also thinking to implement this http://www.branah.com/croatian as such, but it does not fit as is to portrait mode vkb and I am afraid people would feel even 12 keys on row too tight, although IMO it could be usable.

igor_b 2014-03-10 15:35

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

Originally Posted by Penguin (Post 1416083)
Would this be better croatian layout with direct keys "ć" and "đ" and "š", "č" and "ž" hidden behind accented keys.

No, it's actually the same. All those characters are of "same importance".

Quote:

Originally Posted by Penguin (Post 1416083)
I was also thinking to implement this http://www.branah.com/croatian as such, but it does not fit as is to portrait mode vkb and I am afraid people would feel even 12 keys on row too tight, although IMO it could be usable.

I tried putting all of them on direct keys and yes, it could be usable, but it's not :) - any typing without being very still is quite a challenge.

I personally don't think any of those characters should be on direct keys. Putting it all on accented keys is the way Android and iOS are doing it and it works well.


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

vBulletin® Version 3.8.8