-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Accents still not work in text tool on Linux #61
Comments
Now I get you, you would expect to type something like this |
The expected behavior is that the accents are typed over the letter, and for that to happen the default is 1st we type the accent key and then the letter key. For example: á à â ã ä But the strange thing is that on Windows and Linux the keyboard behavior was different |
I did the test with version 1.6.0 - 09/09/19. On Windows 7 and Windows 10 the accents are working correctly. Note: Windows 7 and Linux Mint are on the same hardware. |
Ok, that's something. I've just tested in a normal Linux text editor (Kate on OpenSUSE) and there I can't input accents too. Is it anywhere possible on Linux by default? Same here in this text on Github in a Firefox Browser, the usual way how I enter accents doesn't work. |
Thanks for testing that. Strange, I have a German Keyboard and should be able to type the |
Thanks for reporting. I still haven't had time to look into this. Any RP are welcome. |
Any idea on how to help you debug this? |
Well, we currently use a keyPressEvent detect every single key pressed and from that we extract the letters that we insert in the TextItem. We first need to figure out if we can get the correct letter (the one with the accent) from the event, if yes, we need to check why we don't write it then. If not, we have two options:
That's probably what I would do to investigate this. |
@antrrax you mentioned that its working on Windows but not on linux, right? This would mean or handling is not that incorrect, we need to find out where the difference between linux and windows come from. |
It looks like we have a solution for this, can you test again on your side? @raphaelh please test with latest version, not 1.5.0. The latest version you can find here https://github.com/ksnip/ksnip/releases/tag/continuous as soon as the build is done. |
I tested it on Mint and now it's working properly! |
It works perfectly, thanks a lot! |
I use Linux Mint 19.2 x64 Cinnamon
Git clone: September 06, 2019
I did the accent test and it's still not working. I tested on the same PC with Windows 7 and Linux Mint Cinnamon and tested on another PC with Windows 10
On both Windows 7 and 10 in the Ksnip textbox tool, the keyboard appears to be set up correctly, but does not accept accents above the letters.
In Windows if I type "Alt Gr" + "Third character keys", nothing appears in Ksnip
(In other Windows applications the keyboard is normal)
In Linux Mint Cinnamon in the Ksnip textbox tool, the keyboard does not appear to be configured for the Brazilian Portuguese layout, as no accent key works, but I noticed that if I type the {"Alt Gr" + "accent key"} or {"Alt Gr" + "Shift" + "accent key"} Ksnip displays the accent, however the accent is never above the letters. (In other applications the keyboard is normal)
$locale
LANG=pt_BR.UTF-8
LANGUAGE=pt_BR
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_ALL=
The text was updated successfully, but these errors were encountered: