View Single 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: