Presage based text predictor

Rating: 
5
Your rating: None Average: 5 (5 votes)

This package is a text prediction input handler plugin which is based on the open source presage library.

If you are an end user please take a look for your language between my arrowboard-[LANG]-presage packages and install those packages (it is just a dependency package of them).

It could be useful on ported devices or when using non-official keyboard layouts. (The Jolla's Xt9 text predictor is a properitary and license solution from Nuance).

To utilize this predictor you will need the following packages:

- libpresage1 (installed as dependency)

- presage-data (installed as dependency)

- A keyboard layouts file which uses the presage predictor:
  - Swedish keyboard layout

  - Hungarian keyboard layout

- If you want to have text prediction from the beginning you will need a word database for your language.

Source:

https://github.com/martonmiklos/sailfishos-presage-predictor

Special thanks to:

Matteo Vescovi (the author of the presage)

Pekka Vuorela (for the debugging tips)

Application versions: 
AttachmentSizeDate
File presage_predictor-1.0-1.armv7hl.rpm33.66 KB03/12/2017 - 19:49
File presage_predictor-1.0-2.armv7hl.rpm28.28 KB07/12/2017 - 01:34
File presage_predictor-1.0-4.armv7hl.rpm29.04 KB08/12/2017 - 00:29
File presage_predictor-1.0-5.armv7hl.rpm29.23 KB08/12/2017 - 23:14
File presage_predictor-1.0-6.armv7hl.rpm29.46 KB12/12/2017 - 00:17
File presage_predictor-1.0-7.armv7hl.rpm29.39 KB13/12/2017 - 01:55
Changelog: 

- Run maliit-service restart after the RPM installation/removal

Comments

Vieno's picture

It says nothing provides libpresage.so.1 while installing. What to do?

Ta_das's picture

I would like to use Presage based text predictor with my own Lithuanian keyboard layout. I've made custom Lithuanian keyboard layout from the official Jolla's English keyboard layout file. Have been using this layout succesfully both on Jolla C and Xperia X. Now I have installed Presage using Warehouse. Then I changed the Lithuanian keyboard .conf file (added line at the end handler=PresageInputHandler.qml), restarted the device (actually by now already several times). I do not see any signs of Presage activity. Is this due to the word database not yet built up, or is this due to Presage doesn't initialize with described configuration? If this is the latter case, I would like to ask if keyboard layout .qml file must be specific, or the Presage is configured to act only with the layout files you mention (Hungarian, Swedish and English, all with arrows)? This applies to Xperia X.

Thank you

martonmiklos's picture

Hey,

Sorry for the late reply, I have missed your comment.

No modifications needs to be done in the keyboard QML files other than changing the predictor in the conf file (as you did).

I think you were not getting predictions due to the lack of starting ngram database.

I am going to obsolete this package because with riginus and ljo we have created a group and reorganized some stuff thanks to their knowledge.

You can find the newer faster brighter version of this predictor here:

https://openrepos.net/content/sailfishkeyboard/maliit-plugin-presage

A sample english keyboard is here:

https://openrepos.net/content/sailfishkeyboard/keyboard-presage-enus

Let us know if you need any help preferably on Github in the form of an issue because we will get notification about it :

https://github.com/sailfish-keyboard/sailfishos-presage-predictor

Ta_das's picture

Thank you for the answer. I'll try the newer version in a couple of months, when I'll find time.

minitreintje's picture

So if I understand it right:
1) enable your repo
2) install english package

Is the keyboard then directlt ready or is extra configuration needed?

martonmiklos's picture

Engish keyoard was packaged by ellefj:  https://openrepos.net/content/ellefj/english-keyboard-presage-based-pred...

You need to enable my (martonmiklos) and tmi's repository.

After you have installed the keyboard layout you need to either restart the device or just restart the lipstick from the other tools -> restart home screen.

DameCENO's picture

Really handy, thanks man, this will surely benefit those on ported phones.