1goodday / Google-Dictionary.ankiaddon

Anki Addon to add Google Dictionary results (American and/or British English accents + meanings + translation) to vocabulary entries
MIT License
0 stars 0 forks source link

"Add Pronunciation" function is not available. #6

Open pqnhan opened 1 year ago

pqnhan commented 1 year ago

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 commented 1 year ago

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

pqnhan commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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.