Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glide typing #28

Closed
BabyOilJohnson opened this issue Jul 22, 2023 · 21 comments
Closed

Glide typing #28

BabyOilJohnson opened this issue Jul 22, 2023 · 21 comments

Comments

@BabyOilJohnson
Copy link

Adding a toggle on/off button for glide typing will be good for ux.
Like this Fork.

@Helium314
Copy link
Owner

Is the switch in Gesture Typing settings section in preferences bad ux?

@BabyOilJohnson
Copy link
Author

It will be nice.

@BabyOilJohnson
Copy link
Author

Thanks for added the feature 🙏, by the by can u also add the gesture typing library built-in with app so the users don't have to download 😅.

@Helium314
Copy link
Owner

I can, but as far as I know I have to add a closed-source library, or add one without any license. Both is not compatible with FOSS, and will not allow publishing the app on F-Droid.
Or adapt/develop some library, but that's nothing I want to spend my time on.

@BabyOilJohnson
Copy link
Author

BabyOilJohnson commented Aug 29, 2023

Oh ok, thanks for the reply.
Closing the issue

@BabyOilJohnson
Copy link
Author

BabyOilJohnson commented Aug 31, 2023

Florisboard also has inbuilt glide typing and this PR (I think so) is the one they used to implement it.

@BabyOilJohnson
Copy link
Author

Florisboard also has inbuilt glide typing and this PR (I think so) is the one they used to implement it.

@Helium314 can you check on their repo, how they are doing?

@Helium314
Copy link
Owner

Well, to actually make use of this it I would need to tranlsate it to C++ and add it to the library.
Should be doable, but likely a lot of work, especially since I haven't done much C++ programming.

Alternatively we could just take their approach in kotlin, but then the dictionaries need to be made accessible by glide typing (currently accessed via the C++ library only).

@Carter0108
Copy link

So how on earth do you enable glide typing? I've loaded the library but there's no toggle to enable. I've been searching for nearly an hour and losing my mind!

@BlackyHawky
Copy link
Contributor

So how on earth do you enable glide typing? I've loaded the library but there's no toggle to enable. I've been searching for nearly an hour and losing my mind!

Right here:

Screenshot_20231202_213935_edit_340598070459485.jpg

@Carter0108
Copy link

Interesting. I don't have that option.

@BlackyHawky
Copy link
Contributor

Interesting. I don't have that option.

What is your phone ?

@syphyr
Copy link
Contributor

syphyr commented Dec 2, 2023

You have to load google's glide typing library first, to get the glide typing option in openboard's settings. The library has to be the specific version mentioned in openboard's setup guide.

@Carter0108
Copy link

You have to load google's glide typing library first, to get the glide typing option in openboard's settings. The library has to be the specific version mentioned in openboard's setup guide.

Yes I've already done that but the only difference is I now have the option to delete that library.

Interesting. I don't have that option.

What is your phone ?

Pixel 7.

@BlackyHawky
Copy link
Contributor

BlackyHawky commented Dec 2, 2023

Try this file (for arm64 only) but I can't guarantee that it will work.

libjni_latinimegoogle.zip

@pixincreate
Copy link
Contributor

Well I did extract GBoard's gesture typing library today and I believe it is consistently updated as I found it to predict better than an year old version which is mentioned in the readme.

I also don't think you'll be publishing the app to f-droid anytime soon, so why not add the library? Also, there are many projects that use proprietary libs which are existent on f-droid, why would this project be an exception to not be considered?

libjni_latinimegoogle.so.zip

@syphyr
Copy link
Contributor

syphyr commented Dec 31, 2023

Well I did extract GBoard's gesture typing library today and I believe it is consistently updated as I found it to predict better than an year old version which is mentioned in the readme.

I was just looking for Google's gesture typing library in Android 14 and Android 13 Pixel images and I could not find it in there. I also looked in the latest Gboard apk files and it was not included in that either. Where can I find the latest library version?

@pixincreate
Copy link
Contributor

pixincreate commented Dec 31, 2023

Glad you asked. I extracted it from latest build of nikgapps (GBoard only addon).
If you've root access, you can grab from installed dir as well.

@syphyr
Copy link
Contributor

syphyr commented Dec 31, 2023

Yeah but I'm asking about the original source.

@Helium314
Copy link
Owner

libjni_latinimegoogle.so.zip

This file is identical to the arm64-v8a version linked in the readme, just try diffing.

Moreover, the version linked in the readme is likely to be considerably older than just one year. I can only speak for the armeabi-v7a version, but this one is identical to what I've had on my phone for (I guess) 5 years.

@pixincreate
Copy link
Contributor

Yeah but I'm asking about the original source.

Might have to did in through Google's codebase. But thou can easily get it extracted through nikgapps add-on.

This file is identical to the arm64-v8a version linked in the readme, just try diffing.

Yea, I uploaded arm64's gesture typing lib

Moreover, the version linked in the readme is likely to be considerably older than just one year. I can only speak for the armeabi-v7a version, but this one is identical to what I've had on my phone for (I guess) 5 years.

The reason why I bought this up is that after I loaded latest GBoard lib, I started getting better prediction. Yes, I do agree that the improvement is not too big of a difference given that GBoard has other ML stuff baked in that improves the experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants