Ancestors

Toot

Written by Guido Günther on 2024-10-10 at 18:48

The OSK panel in mobile settings is becoming more complete. After adding layout selection last cycle, selecting the default text completer is on its way now too. The data is provided by the OSK so new completers are picked up automatically.

[#]phosh #gtk #LinuxMobile

=> View attached media

=> More informations about this toot | More toots from agx@librem.one

Descendants

Written by Guido Günther on 2024-10-10 at 18:51

MR: https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings/-/merge_requests/161

Related p-o-s MR: https://gitlab.gnome.org/guidog/phosh-osk-stub/-/merge_requests/162

=> More informations about this toot | More toots from agx@librem.one

Written by razze on 2024-10-11 at 01:02

@agx swiping when? :)

=> More informations about this toot | More toots from razze@osna.social

Written by Guido Günther on 2024-10-11 at 08:00

@razze a bit more than a year ago: https://social.librem.one/@agx/110260534404795348 (hope it didn't get broken in the meantime by other changes 😃 ). Should we add that to the mobile settings options too? I was hesitant as I have no idea how much it is tested by people.

=> More informations about this toot | More toots from agx@librem.one

Written by razze on 2024-10-11 at 08:30

@agx I never realized - does it have to be turned or should it be on by default (I only have a phone flashed with gnome mobile right now)

=> More informations about this toot | More toots from razze@osna.social

Written by Guido Günther on 2024-10-11 at 09:33

Seems some of phosh's features could use some marketing 😃 . Anyway: I've just added how to use swipeGuess in the manpage: https://gitlab.gnome.org/guidog/phosh-osk-stub/-/merge_requests/162/diffs#735044ffff1f81fc8d896219ab2f1b22d6d09976_268_286

=> More informations about this toot | More toots from agx@librem.one

Written by Hippo 🍉 on 2024-10-11 at 12:13

@agx omg what we had swiping?? I was literally wishing for this feature! I'm going to enable it right away (so I guess at least one tester if you need one 😉)

=> More informations about this toot | More toots from badrihippo@fosstodon.org

Written by Guido Günther on 2024-10-11 at 13:06

@badrihippo Nice. Note that plugging in swipeGuess is the simplest approach. https://git.sr.ht/~earboxer/SwipeBehaviors has more elaborate setup. Nice thing is that p-o-s doesn't need to be changed, just the pipe configuration needs to be adjusted.

=> More informations about this toot | More toots from agx@librem.one

Written by Hippo 🍉 on 2024-10-11 at 13:08

@agx right, thanks for the tip! Maybe I should make it into a mini shell script for easier editing (otherwise looks like I have to restart the shell each time? Or can I just restart the keyboard somehow?) :terminal:

=> More informations about this toot | More toots from badrihippo@fosstodon.org

Written by Hippo 🍉 on 2024-10-11 at 13:08

@agx initial feedback with the simple setup: I tried with a re-sorted version of the wbritish dict (Debian repo). Unfortunately the key-drag is a bit too sensitive (either that, or swipeGuess is not skipping enough letters in its computation). Meaning that I get some random long word suggestions, but it's hard to type "hey" 😕

On the positive side, if I disable key-drag and type the ordinary way, swipeGuess is giving better suggestions than I've seen anywhere else. The fuzziness helps 😉

=> More informations about this toot | More toots from badrihippo@fosstodon.org

Written by Hippo 🍉 on 2024-10-11 at 13:09

@agx will report back after more experimentation

=> More informations about this toot | More toots from badrihippo@fosstodon.org

Written by Zach "earboxer" DeCook on 2024-10-12 at 02:54

@badrihippo @agx

I usually get 'hey' for hey swipes, but sometimes hwy/hgwy. Enable multiple suggestions, and maybe cull some words from your list.

gsettings set sm.puri.phosh.osk.Completers.Pipe command 'sh -c "swipeGuess /path/to/words-qwerty-en_gb 5 | tr "\t" "\n""'

=> More informations about this toot | More toots from zachdecook@librem.one

Written by Zach "earboxer" DeCook on 2024-10-12 at 03:03

@badrihippo @agx I've been mulling over an idea in my head for better accuracy: run swipeGuess multiple times with various letter hitbox sizes (matches from the run with the smallest hitbox are preferred). Would require deeper integration with the host keyboard than we currently have.

=> More informations about this toot | More toots from zachdecook@librem.one

Written by Zach "earboxer" DeCook on 2024-10-12 at 03:47

@badrihippo @agx But as far as I know, the android open-source keyboards with swiping either don't work, or require a proprietary binary dependency, so I'm very happy we at least have something that makes typing more convenient. The proprietary ones lean (sometimes too heavily) on context for prediction, which at this state we haven't factored into the selection.

=> More informations about this toot | More toots from zachdecook@librem.one

Written by Hippo 🍉 on 2024-10-14 at 09:11

@zachdecook yep, me too; I didn't know till a few days ago that it existed and I'm delighted to hear it does! Also the modularity of p-o-s (as well as wvkbd, I presume) makes it so convenient to tweak just the algorithm without worrying about designing the keyboard itself.

Just a thought: maybe the swipe input varies also depending on whether we're using p-o-s vs wvkbd? I just took your default qwerty keymap but maybe I should see if that needs tweaking.

@agx

=> More informations about this toot | More toots from badrihippo@fosstodon.org

Written by Zach "earboxer" DeCook on 2024-10-14 at 13:40

@badrihippo @agx technically the wordlist the makefile creates is not perfectly optimized for p-o-s or wvkbd (>= 0.14) because the bottom row is not staggered. (changes needed for mapScore). But right now, the two should work the same... aside from p-o-s reacting to text-input-unstable hints.

=> More informations about this toot | More toots from zachdecook@librem.one

Written by Hippo 🍉 on 2024-10-14 at 09:13

@zachdecook what's a hitbox? 😅

Side note, I've been meaning to sit with your algorithm to understand it; maybe I'll do that now. Not familiar with C unfortunately but this seems small enough I should be able to figure it out.

@agx

=> More informations about this toot | More toots from badrihippo@fosstodon.org

Written by Hippo 🍉 on 2024-10-14 at 09:07

@zachdecook @agx I think my problem is more like I'm getting too many letters as input to swipeGuess. But I could be mistaken. What are your raw "hey swipes" like (so that we can compare)?

For me, I just tried to swipe "hey" a few times and got hgrery, hgrery, hgfrewety, hgrewery, and hgre as raw input. Corresponding swipeGuess suggestions are: greenery, greenery, (nothing), brewery, and here/hire/hare (I'd say the last one is just a bad swipe though)

=> More informations about this toot | More toots from badrihippo@fosstodon.org

Written by Guido Günther on 2024-10-11 at 15:11

@badrihippo No need to restart the shell, just restart (kill) the keyboard (otherwise development would be way too cumbersome).

=> More informations about this toot | More toots from agx@librem.one

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113284618232076576
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
369.565294 milliseconds
Gemini-to-HTML Time
3.784607 milliseconds

This content has been proxied by September (3851b).