The Following 38 Users Say Thank You to martonmiklos For This Useful Post: | ||
acrux, ajalkane, Amboss, anapospastos, borghal, Bundyo, Cavalier, dcaliste, ejjoman, elastic, Feathers McGraw, imaginaryenemy, J4ZZ, jakibaki, Jordi, juiceme, Kabouik, kinggo, klinglerware, lal, maegon9y00, Manatus, mariusmssj, MartinK, max_power, meloferz, mrsellout, nieldk, olf, P@t, peterleinchen, santeira, Saturn, suicidal_orange, taixzo, tealc, wicozani, Wikiwide |
|
2018-03-23
, 06:02
|
Posts: 114 |
Thanked: 381 times |
Joined on Jan 2014
|
#2
|
The Following 10 Users Say Thank You to lal For This Useful Post: | ||
|
2018-03-23
, 06:14
|
Posts: 102 |
Thanked: 187 times |
Joined on Jan 2010
|
#3
|
A suggestion/request/expected behaviour
If i place the cursor on a word that is already typed and decides to replace it with one of the suggested words by presage, the new word gets inserted where the cursor is rather than replacing the existing word. I recall that was the same behaviour in Jolla C with xt9 as well. Could that be fixed?
Expected/desired behaviour is, when the cursor is placed on an already typed word and one of the suggested words is selected, the existing word gets replaced completely with the suggested word.
|
2018-03-31
, 13:34
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#4
|
|
2018-06-25
, 10:55
|
Posts: 177 |
Thanked: 427 times |
Joined on Sep 2017
|
#5
|
The Following 4 Users Say Thank You to suicidal_orange For This Useful Post: | ||
|
2018-06-25
, 17:53
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#6
|
First good work on this - I'm using it in preference to the paid prediction because I can.
I've made a keyboard for Colemak which doesn't make much sense given it's designed for keyboards where edge keys (A and ; on QWERTY) are easy to hit which isn't the case on a screen, but it works so may as well put it out there.
As there is no international version of Colemak and it's set to use English predictions not sure if it should be called en-colemak-presage or colemak-presage - any preference?
Next step will be to research/find a thumb optimised layout and en_GB-ise dictionary - will the script will handle a non four character languages or should it just be called en_GB?
The Following 4 Users Say Thank You to rinigus For This Useful Post: | ||
|
2018-06-26
, 15:23
|
Posts: 301 |
Thanked: 531 times |
Joined on Aug 2010
@ The Netherlands
|
#7
|
|
2018-06-26
, 20:21
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#8
|
|
2018-06-27
, 11:50
|
Posts: 177 |
Thanked: 427 times |
Joined on Sep 2017
|
#9
|
#!/bin/bash set -e PROGPATH=$(dirname "$0") if [ "$#" -lt 5 ]; then echo "Usage: $0 Language langcode version keyboard.qml keyboard.conf [layout name]" echo echo "Language: Specify language in English starting with the capital letter, ex 'Estonian'" echo "langcode: Specify language code, ex 'en_US'. Use the same notation as Hunspell dictionaries." echo "version: Version of the language package, ex '1.0.0'" echo "keyboard.qml: Keyboard QML file" echo "keyboard.conf: Keyboard Configuration file referencing the QML file" echo "layout name: Optional, for alternate layouts (BÉPO, Colemak, Dvorak...)" echo echo "When finished, the keyboard support will be packaged into RPM in the current directory" echo echo "The script requires rpmbuild to be installed. Note that rpmbuild can be installed on distributions that don't use RPM for packaging" echo exit 0 fi L=$1 CODE=$2 VERSION=$3 KQML=$4 KCONF=$5 if [ $6 != "" ]; then LAYOUT="-$6" fi NAME=keyboard-presage$LAYOUT-$CODE LAYOUT=" ${LAYOUT:1:50}" TMPDIR=`mktemp -d` mkdir -p $TMPDIR/$NAME-$VERSION/keyboard mkdir -p $TMPDIR/$NAME-$VERSION/rpm cp "$KQML" $TMPDIR/$NAME-$VERSION/keyboard cp "$KCONF" $TMPDIR/$NAME-$VERSION/keyboard echo "# Template for generation of keyboard RPMs # for Presage on Sailfish. This temlate is used # by package-keyboard.sh script # Prevent brp-python-bytecompile from running. %define __os_install_post %{___build_post} # \"Harbour RPM packages should not provide anything.\" %define __provides_exclude_from ^%{_datadir}/.*$ Name: "$NAME" Version: __version__ Release: 1 Summary: Keyboard layout for"$LAYOUT" __Language__ with Presage support License: MIT URL: https://github.com/martonmiklos/sailfishos-presage-predictor Source: %{name}-%{version}.tar.xz BuildArch: noarch Requires: presage-lang-__langcode__ Requires: hunspell-lang-__langcode__ Requires: maliit-plugin-presage %description Keyboard layout for"$LAYOUT" __Language__ language with Presage text predictions %prep %setup -q %install mkdir -p %{buildroot}/usr/share/maliit/plugins/com/jolla/layouts cp -r keyboard/* %{buildroot}/usr/share/maliit/plugins/com/jolla/layouts %files %defattr(-,root,root,-) %{_datadir}/maliit/plugins/com/jolla/layouts" > $TMPDIR/$NAME-$VERSION/rpm/$NAME.spec sed -i "s/__langcode__/$CODE/" $TMPDIR/$NAME-$VERSION/rpm/$NAME.spec sed -i "s/__Language__/$L/" $TMPDIR/$NAME-$VERSION/rpm/$NAME.spec sed -i "s/__version__/$VERSION/" $TMPDIR/$NAME-$VERSION/rpm/$NAME.spec tar -C $TMPDIR -cJf $TMPDIR/$NAME-$VERSION.tar.xz $NAME-$VERSION mkdir -p $HOME/rpmbuild/SOURCES mkdir -p $HOME/rpmbuild/SPECS cp $TMPDIR/$NAME-$VERSION.tar.xz $HOME/rpmbuild/SOURCES cp $TMPDIR/$NAME-$VERSION/rpm/$NAME.spec $HOME/rpmbuild/SPECS rm -rf $TMPDIR rm -rf $HOME/rpmbuild/BUILD/$NAME-$VERSION rpmbuild -ba --nodeps $HOME/rpmbuild/SPECS/$NAME.spec mkdir -p RPMS cp $HOME/rpmbuild/RPMS/noarch/$NAME-$VERSION-*.rpm .
The Following 6 Users Say Thank You to suicidal_orange For This Useful Post: | ||
|
2018-11-28
, 14:01
|
Posts: 36 |
Thanked: 118 times |
Joined on Nov 2018
|
#10
|
The Following 3 Users Say Thank You to FlyingAntero For This Useful Post: | ||
Tags |
predictive text, presage, text-prediction |
|
We have started a new sailfishos_keyboard development team at https://github.com/sailfish-keyboard. The team is happy to announce a new version from the presage based alternative text prediction solution.
Currently we offer the following keyboards for downloading at openrepos:
https://openrepos.net/content/sailfi...ext-prediction
https://openrepos.net/content/sailfi...nput-predictor
https://openrepos.net/content/sailfi...ext-prediction
https://openrepos.net/content/sailfi...nput-predictor
If you are using a community supported language pack or a ported device you should definitely try it out.
If you cannot find your language in the supported list please read through this documenation about how can you add support for your language:
* https://github.com/sailfish-keyboard...ased-predictor
* https://github.com/sailfish-keyboard...utils/keyboard
If you are having problems with the packaging or distribution at openrepos let us know (preferabliy in the form of a github issue), we are more than happy to help with it.
In this release we have been mainly focusing on performance improvements. We are satisfied with the results thanks to moving the internal database format from SQLite to MarisaDb and the asynchronous prediction handling.
Other than the performance improvements we have implemented the following:
* Added Hunspell based prediction engine: if you mistype a word the predictor will offer the corrected version in the predictions. (The plugin does not do any auto-correction, just predicts the corrected word.)
* Added ability to forgot the learned words: presage learns what you type to be able to make more accurate predictions. Now you can delete the mistyped which have been learned from your text input by long tapping on the predictions. (The forgot feature does not works on the words coming from the preinstalled database, but it is on our TODO list).
* We have renamed the plugin to make the naming more consistent, and we get rid from the external library dependencies by statically linking to them, and removed some unnecessary configuration packages.
**Important message to the users of the former revision**
Because of the structural changes please follow the instructions below before installing the new plugin:
* Deselect presage keyboards in Settings/Text input/Keyboards
* Uninstall in command line (pkcon or zypper) all presage packages. Use zypper se presage to see which packages are installed
* Refresh repositories (pkcon refresh or zypper ref)
* Reboot
* Enable sailfish_keyboard repository at OpenRepos
* Install keyboard(s) of interest
Please report back if you have any issues, problems!
Wishing you happy Sailing,
@ljo, @martonmiklos, and @rinigus