New Post: Opportunistic Word Completion

It works quite fine in english but what about other languages for completion (french for me)?
SOLVED:
Source: doc/phosh-osk-stub.rst · main · Guido Günther / phosh-osk-stub · GitLab
Thanks to Guido Gunther

gsettings set sm.puri.phosh.osk.Completers default hunspell
sudo apt install hunspell-fr hundspell-de-de
4 Likes

Sorry for the late reply, I don’t come to the forums very often. The thai layout uses 5 rows and p-o-s layout was limited in that regard. After seeing this I made it a bit more flexible. Maybe you want to try Making sure you're not a bot! ?

4 Likes

I’ll take a look into it, thanks for the reply @guido.gunther

1 Like

Thanks, if possible please reply in the merge-request as I might miss your message here.

1 Like

I don’t understand. I have Crimson, but I don’t have the possibility to select the « auto correct » button… And if I speak french, the auto correct will work??

This feature is only offered in Stevia (formerly phosh-osk-stub).

On Crimson, you can install this by:

  1. Open Console.
  2. Run sudo apt install phosh-osk-stub.
  3. Change the default OSK software with: sudo update-alternatives --config Phosh-OSK. Select the option ending with sm.puri.Phosh.OskStub.desktop.
  4. Reboot your phone.

Edit: GNOME has moved away from Squeekboard to Stevia and I think Mobian uses Stevia as the default. PureOS will probably switch to Stevia at some point.

3 Likes

Cool it work! Thanks! 1) But how can I have the word completion in french? 2) And do you think that I can put the keyboard in purple like I did for the other? (I did that with copy/past some command line in a forum but I am affraid to break something if it’s not possible with this keyboard). 3) there is no row in this terminal keyboard… so we must rewrite each command everytime?

I don’t like this behaviour in Stevia: you need to press and hold the Space key until the key labels are removed, then you swipe in a direction to emit the corresponding arrow keys.

2 Likes

Please see this blog post and their documentation on word completion.

In short, you will need a word completion library such as hunspell (default) or presage.

I tried looking for this feature but couldn’t find any feature requests for “color” or “theme” in https://gitlab.gnome.org/World/Phosh/stevia/-/work_items?sort=created_date&state=all&first_page_size=20

1 Like

Wow… I think that I will keep the old keyboard… :confused:

You can add arrow keys to the Terminal layout shortcuts: https://gitlab.gnome.org/World/Phosh/stevia/-/blob/main/doc/phosh-osk-stevia.rst#:~:text=TERMINAL%20SHORTCUTS

For example:

gsettings set mobi.phosh.osk.Terminal shortcuts "['Up', 'Down', 'Left', 'Right', '<ctrl>a', '<ctrl>e', '<ctrl>r']"

The full list is here (omit the GDK_KEY_KP_ prefix): https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gdk/gdkkeysyms.h

If you want to revert to the default, they are defined here: https://gitlab.gnome.org/World/Phosh/stevia/-/blob/main/data/mobi.phosh.osk.gschema.xml?ref_type=heads#L75

gsettings set mobi.phosh.osk.Terminal shortcuts "['<ctrl>', '<alt>', '<ctrl>r', 'Home', 'End', '<ctrl>w', '<alt>b', '<alt>f', '<ctrl>v', '<ctrl>c', '<ctrl><shift>v', '<ctrl><shift>c', 'Menu']"

Edit: The domain should be sm.puri.phosh.osk, not mobi.phosh.osk (for now).

gsettings set sm.puri.phosh.osk.Terminal shortcuts "['Up', 'Down', 'Left', 'Right', '<ctrl>a', '<ctrl>e', '<ctrl>r']"
gsettings set sm.puri.phosh.osk.Terminal shortcuts "['<ctrl>', '<alt>', '<ctrl>r', 'Home', 'End', '<ctrl>w', '<alt>b', '<alt>f', '<ctrl>v', '<ctrl>c', '<ctrl><shift>v', '<ctrl><shift>c', 'Menu']"

3 Likes

Do you know how to add a Ctrl or Alt key? I tried ‘Control_L’ and ‘Alt_L’ with no luck. I guess a custom keyboard layout?

1 Like

It’s possible that only later versions of Stevia has this feature as I don’t see standalone Ctrl or Alt keys. Maybe it’ll be fixed by Dawn but until then, you will need to set your own custom key combination manually.

1 Like