GoldenDict is an excellent dictionary management software. It can handle most dictionary formats, some of these dictionaries contain audios and/or images. This addon can import the images and audios pasted from Goldendict when adding new cards in Anki
Every dictionary containing audios or images in goldendict comes with a media folder, the filename of the media file often ends with
.files.zip. The size of the file is usually huge, 100MB+ or even 1GB+. Unzip the file, and you will get a directory containing all the audios and images a dictionary need. You have to do this for every dictionary you need.
The addon cannot paste images from goldendict if you turn on Strip-HTML. If you only want to import audios from goldendict, then you can skip this step.
Open Anki, go to
Tools --> Preferences and uncheck
Strip HTML when pasting text to turn it off.
Go to goldendict, copy something containing audios / images in a dictionary. Go to Anki, adding new cards, then paste it. GoldenDictMedia will notice that the text is pasted from a GoldenDict dictionary, and it will ask you for the media path of it, like this:
Click on the
... button, find the media directory you unzipped earlier from the
zip file, and select it. Notice that selecting the directory is fine, you don’t need go in the directory. Click on
OK, and GoldenDictMedia will import the dictionary media for you. You only need to do this once for each dictionary. Copy another audios / images from this dictionary, GoldenDictMedia will import the media automatically.
If there are any of the dictionaries you don’t want the addon to process, check
ignore the dictionary and never prompt for it again, GoldenDictMedia will not process it. If you only want to ignore it once, just click on
Cancel will do the trick.
By default GoldenDictMedia will check if there’s any new dictionary added when pasting, if you have added enough dictionaries and you don’t want GoldenDictMedia to detect it again, you can turn it off by uncheck
Check goldendict media everytime it pastes in
Tools --> GoldenDictMedia. Usually you don’t have to turn it off unless there’s something wrong with it.
Reset will delete all the dictionary data and configurations in GoldenDictMedia, it will make the addon just as the when you install it the first time. You can do a reset by clicking on
Tools --> GoldenDictMedia.
- Images cannot imported when Strip-HTML is on.
- I didn’t look through the source code of GoldenDict. But I think that this process should be totally automatic. The file path used in GoldenDict should be reversible, the addon should be able to reverse GoldenDict file path to the real file path in system and get the media from the
zipfile. So anyone with a good knowledge of how GoldenDict media works is welcomed to improve the addon to make it automatic.
There are two ways to report a bug or offering a suggestion.