-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Remove garbage alt text from images attached via Gboard #4068
Conversation
Steps to reproduce: 1. install Gboard (https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin) 2. open a direct link to any image in Firefox 3. long-press the image to get a "Copy Image" dialogue (and copy the image) 4. compose a new post in Tusky 5. Gboard will suggest to paste the image from clipboard 6. paste image, see that when opening alt text editor, it is filled out with this garbage string Why is this bad? It's not when I just fix the alt text. But it breaks every mechanism that is supposed to remind me of adding alt text.
See also tuskyapp/Tusky#4068 and https://crab.garden/@alice/111277442112844687 It's not clear where the image/png ones are coming from though.
Yes I agree this should be fixed, however your fix is only working for English. On my German device, it says "Bild aus der Gboard-Zwischenablage". No idea how we could handle all languages 😕. |
right. some ideas:
* extract all strings from gboard apk and paste them in here
* check for case-sensitive substring "Gboard" instead of the exact string value
happy to spend time making either one of those solutions work, or some other solution
…On Mon, Oct 23, 2023, at 07:54, Konrad Pozniak wrote:
Yes I agree this should be fixed, however your fix is only working for English. On my German device, it says "Bild aus der Gboard-Zwischenablage". No idea how we could handle all languages 😕.
—
Reply to this email directly, view it on GitHub <#4068 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAGMPROH3N2L4RUW62XNALLYAYBCDAVCNFSM6AAAAAA6LAYATKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGQ4DEMBYGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Just as a technical question: |
it seems to be explicitly coded this way (also in the official Android app) so I didn't question it
|
If "Gboard" occurs in all or most of the strings that is probably the best way. |
just checked, seems this way:
is empty updated the PR |
Thanks for your contribution, it will be available in the next release of Tusky Nightly |
See also: tuskyapp/Tusky#4068 ---- Steps to reproduce: 1. install Gboard (https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin) 2. open a direct link to any image in Firefox 3. long-press the image to get a "Copy Image" dialogue (and copy the image) 4. compose a new post in Tusky 5. Gboard will suggest to paste the image from clipboard 6. paste image, see that when opening alt text editor, it is filled out with this garbage string Why is this bad? It's not when I just fix the alt text. But it breaks every mechanism that is supposed to remind me of adding alt text. It's hard to argue that this is within scope of this app but I also don't see it getting fixed in Gboard, so here we go.
@Lakoja you got a real answer to your question over at mastodon/mastodon-android#722 (comment)
|
See also: tuskyapp/Tusky#4068 ---- Steps to reproduce: 1. install Gboard (https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin) 2. open a direct link to any image in Firefox 3. long-press the image to get a "Copy Image" dialogue (and copy the image) 4. compose a new post in Tusky 5. Gboard will suggest to paste the image from clipboard 6. paste image, see that when opening alt text editor, it is filled out with this garbage string Why is this bad? It's not when I just fix the alt text. But it breaks every mechanism that is supposed to remind me of adding alt text. It's hard to argue that this is within scope of this app but I also don't see it getting fixed in Gboard, so here we go.
Steps to reproduce:
install Gboard
(https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin)
open a direct link to any image in Firefox
long-press the image to get a "Copy Image" dialogue (and copy the
image)
compose a new post in Tusky
Gboard will suggest to paste the image from clipboard
paste image, see that when opening alt text editor, it is filled out
with this garbage string
Why is this bad? It's not when I just fix the alt text. But it breaks
every mechanism that is supposed to remind me of adding alt text.
It's hard to argue that this is within scope of Tusky but I also don't
see it getting fixed in Gboard, so here we go.