-
Notifications
You must be signed in to change notification settings - Fork 280
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
Custom system's Unicode key labels confuse Plover's verbatim stroke output #991
Comments
I can't reproduce on Linux. It's hard to know with your report if it's a bug with Plover (Windows specific) output stage, or an issue with Qt. Stroking |
I have no such problem in non-plover programs. The problem seems to happen within any of Plover's text boxes. The paper tape and suggestions displays however are working perfectly. I played around some more and it seems that Plover chooses the first received Unicode character to represent all subsequent Unicode characters. It makes a choice again upon losing-then-regaining focus of any of Plover's windows. Screencast to demonstrate #991 (3.2 MB) |
OK, so the next question is: is it a font rendering bug with Qt (on Windows), or an issue with it's handling of key events? Probably 2 if the output is valid in other part of the UI. I suggest installing the development environment and updating PyQt5, to see if maybe that's a bug that was fixed in a newer release. |
One thing I want to add to this is that is it doesn't just happen with the verbatim stroke output, it actually happens with all non-ASCII output to a Plover window. For example, I have the following definition in my dictionary: "STPHEUGT": "⸢Signet⸣", In all applications outside of Plover, that stroke does in fact produce |
Fix #991: add keyup events for Unicode characters on Windows
Summary
I wrote a plugin to implement my own system for Plover. It uses Unicode's IPA symbols for its key labels:
Problem is that when I do
{PLOVER:ADD_TRANSLATION}
, the 'Strokes' text box consistently gets the IPA symbols wrong, whereas it works fine when programmed to use ASCII substitutes.For example I stroke
bʊg
in vim, then do{PLOVER:ADD_TRANSLATION}
, then I strokebɪgə
in the 'Strokes' text box but 'bʊgʊ' appears (I expect to see 'bɪgə' of course). So it seems to replace all Unicode characters with the one it last received outside of that dialogue box.Coming from chambln/plover-phenrsteno#5
Reproducing
plover-phenrsteno 0.1.19
from the Plugins managerbʊg
(SML
on QWERTY)bɪg
into the 'Strokes' text box (SNL
on QWERTY)You should expect to see
bɪg
appear in the text box, because that's what you stroked. However you actually seebʊg
. You could also stroke, for example,-ʃ
(O
on QWERTY) but again see that LATIN SMALL LETTER UPSILONʊ
character instead.Plover Version
Plover 4.0.0.dev8+66.g685bd33
System
Windows 10 Pro (build 17134.191)
The text was updated successfully, but these errors were encountered: