Reply
Thread Tools
Posts: 231 | Thanked: 143 times | Joined on Feb 2012 @ Tallinn, Estonia
#181
Penguin - Could you also make Estonian keyboard rpm? http://talk.maemo.org/showpost.php?p...8&postcount=80

Thanks!
 
Posts: 10 | Thanked: 2 times | Joined on Jan 2012 @ Zagreb, Croatia
#182
Originally Posted by Penguin View Post
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.
 
Posts: 144 | Thanked: 242 times | Joined on Nov 2007 @ Finland
#183
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:
Originally Posted by cstom View Post
(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.

Last edited by Penguin; 2014-03-10 at 11:42.
 

The Following User Says Thank You to Penguin For This Useful Post:
Posts: 231 | Thanked: 143 times | Joined on Feb 2012 @ Tallinn, Estonia
#184
Originally Posted by Penguin View Post
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.
 
Posts: 10 | Thanked: 2 times | Joined on Jan 2012 @ Zagreb, Croatia
#185
Originally Posted by Penguin View Post
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 .

Originally Posted by Penguin View Post
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).
 
Posts: 144 | Thanked: 242 times | Joined on Nov 2007 @ Finland
#186
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.
 
Posts: 10 | Thanked: 2 times | Joined on Jan 2012 @ Zagreb, Croatia
#187
Originally Posted by Penguin View Post
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).
 
Posts: 144 | Thanked: 242 times | Joined on Nov 2007 @ Finland
#188
Originally Posted by igor_b View Post
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.

Originally Posted by Silwer View Post
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.
 

The Following User Says Thank You to Penguin For This Useful Post:
Posts: 144 | Thanked: 242 times | Joined on Nov 2007 @ Finland
#189
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.
Attached Files
File Type: txt custom_hr.qml.txt (3.2 KB, 71 views)
 
Posts: 10 | Thanked: 2 times | Joined on Jan 2012 @ Zagreb, Croatia
#190
Originally Posted by Penguin View Post
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".

Originally Posted by Penguin View Post
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.

Last edited by igor_b; 2014-03-10 at 15:36. Reason: ..
 
Reply

Thread Tools

 
Forum Jump


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