krassowski / Anki-Night-Mode

Enabling studying at night with Anki - without eye strain
https://ankiweb.net/shared/info/1496166067
GNU General Public License v3.0
72 stars 13 forks source link

Korean words disappear in the typing box after deleting a word #12

Open MasterHowToLearn opened 7 years ago

MasterHowToLearn commented 7 years ago

Hello guys! This is a great addon but I have found a bug. When I am typing Korean while reviewing, the Hangul disappears after deleting a word. To illustrate this problem more clearly, I will use English as as example: Type: " I am learning Korean.", after deleting the word "Korean", the whole sentence disppears unless I click away from the texting box and click back again. Then the sentence is shown. This problem happens in Chinese as well. I would highly appreciate your effort and help Thank you very much:)

krassowski commented 7 years ago

Hi, I tried to reproduce the problem, but it did not appear. I used following sentence retrieved from Google Translator: "나는 한국어를 배우고". Could you give more details (you operating system, Anki version, qt version, version of the extension that you are using) and the exact sentence which causes the problem?

MasterHowToLearn commented 7 years ago

I am very sorry for such a late reply. I finally got to get home and record it with my computer. Please accept my apology! Operating system: problem appears in both Windows 10 and 7 Anki version: Version 2.0.33 Qt 4.8.4 PyQt 4.10 Extension Version: 1.1.4 (March 4, 2016) I have recorded a few videos to illustrate such problem. https://drive.google.com/file/d/0B9zZYJ7bv4weTnFkelJWaEF1bE0/view?usp=sharing https://drive.google.com/file/d/0B9zZYJ7bv4weYnJzSTl5WnY0NTQ/view?usp=sharing https://drive.google.com/file/d/0B9zZYJ7bv4web0o2QmR6ZUM4aHM/view?usp=sharing

Thank you very much for looking into my case. I don't know whether this happens to others or if it happens exclusively to me. It's fine if you don't want to fix it because I'm already very grateful for this wonderful addon. It's not an unbearable bug. Have a great day:)

MasterHowToLearn commented 7 years ago

Hello guys! I have a found a workaround for this problem.

Before deleting a word, click away from the text box, then click back to it, and delete the word you desire.

This is a bit troublesome but at least you can still enjoy using this very awesome addon. Even when I am not using this addon, typing Korean seems to be having a bit of problem. For example, when the text box is blinking, and you edit the card, then go back to the text box, what you type would not appear until you click away from the text box. I think this is an issue of Anki, not related to this addon.

If you are facing similar issue with typing Korean (or other languages), I hope this works.

MasterHowToLearn commented 7 years ago

It has been a while. I've found another workaround by changing the color of the input box. Under C:\Users\XXXX\Documents\Anki\addons, open the python file with a editor (I use Geany). Then change the code as shown. It's not pretty but it is better than the method above. I suspect this problem persists in some Asian languages. Really love this addon. Hope this helps. Cheers:)

2017-02-26 3
JunjieLi91 commented 7 years ago

A great addon.My eyes fell better. But I also met a similar problem: When I type Chinese,the first line is OK. When the second line was typed,the word in the box will become black .unless I click away from the texting box and click back again.

Operating system: problem appears in both Windows 7 Anki version: Version 2.0.41 Qt 4.8.4 PyQt 4.10 Extension Version: 1.1.4 (March 4, 2016) 1

krassowski commented 7 years ago

Thank you for additional information. Could you check out the alpha11 of Anki 2.1 with the newest version of add-on (from this repository, not published yet) and see if the problem still occurs?

JunjieLi91 commented 7 years ago

Thanks for you reply. It took me some time to find and install anki 2.1(a11&12), but the anki doesn't run correctly on my computer(win7 ,x64). It is a pity. On alpha 11,When I run the program,some command line come up and vanish after about 1 second. On alpha 12,When I run the program,it come up a error:failed to execute script pyi_rth_qt5plugins.

Again.Thanks for you reply !

krassowski commented 7 years ago

Hi, there are new alpha builds (a14 & a15). Could you try these?