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

"Add Pronunciation" function is not available. #6

Open
pqnhan opened this issue Sep 30, 2022 · 4 comments
Open

"Add Pronunciation" function is not available. #6

pqnhan opened this issue Sep 30, 2022 · 4 comments

Comments

@pqnhan
Copy link

pqnhan commented Sep 30, 2022

I have tried many times on my Anki 2.1.54 (b6a7760c), but it doesn't seem to work.
Peek 2022-09-30

And according to the author of the Free Dictionary API you use, they have switched to Wikitionary API from 8/2021.
Leaving the addon name as Google Dictionary will no longer be accurate and confusing.

[IMPORTANT] Moved to Wiktionary - Non english languages removed · Issue #102 · meetDeveloper/freeDictionaryAPI

@1goodday
Copy link
Owner

Hello,
Thanks @pqnhan for using the add-on and for your feedback.

  • I should check what I should do about the Wikitionary update. Thanks for letting me know about it.
  • About the pronunciation adding problem, please take the below steps sequentially (sorry if the first looks too obvious):
  1. Make sure you are using the updated version of the add-on (in Anki, Tools -> Add ons-> Google Dictionary -> Check for Updates). Then restart Anki.
  2. Change the User Agent to your current real one. It is explained in https://youtu.be/qOV1ym2IhzY. Then restart Anki.
  3. Tell me what is your Operating System, and whether you are using Anki 2.1.54 Qt5 or Qt6?

@pqnhan
Copy link
Author

pqnhan commented Oct 1, 2022

@1goodday
Hi,
(1) and (2) I have both tried but the error still occurs.
(3) I use Ubuntu 20.04.5 LTS, Anki version is 2.1.54 (b6a7760c)
Python 3.9.10 Qt 5.15.2 PyQt 5.15.5

I guess it might be because the Python library to download and write files to the card desk directory you use on Windows doesn't work on Linux.
I tried to debug but couldn't find any error message (probably because I'm not familiar with debugging on Anki).

Thank you for the utility you wrote, it's really great for learning vocabulary with Anki.

@pqnhan
Copy link
Author

pqnhan commented Oct 1, 2022

Aha, I think the error only appears when I use Anki in the dark theme.
I just switched to the light theme and it's working now!
I don't understand why the dark theme affects the addon.

@1goodday
Copy link
Owner

1goodday commented Oct 1, 2022

You found the criminal! Thanks!

I will work on that. Most probably it's related to text formatting. I should add an "Unformatted field texts" option in the Config, so that when it is selected "Yes", all the formatting Config fields (colour, bold/not bold, ...) would be disabled and you'd see a plain text.

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

2 participants