answered
2015-12-24 19:08:59 +0200
Now I tried to get okboard running for german. And: It works (sort of). Because this is only a POC I try to explain what I did. You need to clone the source of the okb-engine:
git clone git://git.tuxfamily.org/gitroot/okboard/okb-engine.git
you also need a german corpus file. You can find some german and other languages at the same place as the french ones at http://corpora2.informatik.uni-leipzig.de/download.html enter the captcha at "Download Corpora". I took the latest Wikipedia one. Gunzip the file and bzip2 it. Rename the file to corpus-de.txt.bz2 (yes it is a tarball but do not think about it) and put it into some new created corpus directory. Define the environment variable CORPUS_DIR pointing to your corpus directory. Define another environment variable WORK_DIR pointing to some temporary directory.
Debian: you need some packages. For me it was minimum: lbzip2, qtbase5-dev, qt5-qmake, python3-dev. Because I had some trouble on compile time I changed two symbolic links: /usr/bin/qmake -> /usr/lib/x86_64-linux-gnu/qt5/bin/qmake and /bin/sh > /bin/bash. Please remember to set the original links after running!! qmake -> qtchooser and sh -> dash!
Change to your okb-engine folder. Run
cp db/lang-en.cf db/lang-de.cf
db/build.sh de
and wait. If everything works fine you will find the following files in your WORK_DIR:
de.tre, predict-de.ng and predict-de.db. Gzip these files and put the .gz files to Jolla's /usr/share/okboard.
Try the german keyboard. BUT: it is not perfect. It would be better to combine more than one corpus tarball. But I do not know how this works. Any suggestions?
What about licenses? Questions over questions...
Coming from N900 & Communicator series I found Swype to be absolutely essential on N9.
Faz ( 2013-12-24 19:11:52 +0200 )editI could not live without it at this point. I find myself swyping all the time on Jolla's keyboard, only to realise that it doesn't work :( It's become second nature to me.
Orologiaio ( 2013-12-24 19:39:57 +0200 )editSurely a swype keyboard would be a natural fit for the entirely gesture-based Sailfish interface. I have to say I was surprised that it was not included.
strongm ( 2013-12-24 21:39:55 +0200 )editThere's an existing thread at Swype's official forums here. Would recommend adding to it to show level of interest & support.
Faz ( 2013-12-24 23:36:31 +0200 )editI'm also swyping all the time on My Jolla. Can't wait to get it on My Precious!!! On N9 it was working perfectly!
matimilko ( 2013-12-25 21:17:59 +0200 )edit