CC-CEDICT for Anki (Chinese dictionary)
4.77MB. Updated 2022-03-23.
The author has shared 2 other
item(s).
Description
Download
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
Supported Anki versions:
- 2.1.0-2.1.49+ (Updated 2022-03-23)
To download this add-on, please copy and paste the following code into Anki 2.1:
418828045
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.
All Anki 2.1.x Add-Ons Contact Author
Reviews

Thanks for your work on this add-on, it is very useful.
Is it possible to preserve the field tag? for example, I would like to tag all notes added from the add-on with a specific tag, so that I can see which notes were added from it in the browser.
This would be useful as I found it sometimes add duplicates if at least one field is slightly different, for example the same word added from another app might have a different definition field/formatting, even if hanzi and pinyin are exactly the same.
Or else, is it possible to add the option to choose which fields to use for duplicates check? instead of all fields by default (not sure if it is this way).
Is it possible to preserve the field tag? for example, I would like to tag all notes added from the add-on with a specific tag, so that I can see which notes were added from it in the browser.
This would be useful as I found it sometimes add duplicates if at least one field is slightly different, for example the same word added from another app might have a different definition field/formatting, even if hanzi and pinyin are exactly the same.
Or else, is it possible to add the option to choose which fields to use for duplicates check? instead of all fields by default (not sure if it is this way).

Great and much needed addon, thanks!
Can the batch function be added to it?
I.e. when you have a list of words inside Anki (the cards with only headword available), to batch add to them translation, reading, examples etc from the Cedict.
Also the auto filling of the fields would be very handy, when you input the heading into the first field and the other fields are filled automatically.
Please also make it possible to input many words not only comma separated (as now, which works just terrific), but also separated by others signs like LF (new line symbol), tabs or colons
Can the batch function be added to it?
I.e. when you have a list of words inside Anki (the cards with only headword available), to batch add to them translation, reading, examples etc from the Cedict.
Also the auto filling of the fields would be very handy, when you input the heading into the first field and the other fields are filled automatically.
Please also make it possible to input many words not only comma separated (as now, which works just terrific), but also separated by others signs like LF (new line symbol), tabs or colons

I got an error of each field can be only used once. May I know how to fix this?

I just got this add-on and it looks perfect for what I want, but every time I get this error:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.38 (355e4cd5) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2021-09-19 12:14:51
Caught exception:
Traceback (most recent call last):
File "C:\Users\x\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 352, in init_add
self.add_note([simp, trad, pinyin, english], input_type, tags)
File "C:\Users\x\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 277, in add_note
n = col.new_note(nid)
AttributeError: 'Collection' object has no attribute 'new_note'
I would be grateful if you could let me know what I need to do to make it work.
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.38 (355e4cd5) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2021-09-19 12:14:51
Caught exception:
Traceback (most recent call last):
File "C:\Users\x\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 352, in init_add
self.add_note([simp, trad, pinyin, english], input_type, tags)
File "C:\Users\x\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 277, in add_note
n = col.new_note(nid)
AttributeError: 'Collection' object has no attribute 'new_note'
I would be grateful if you could let me know what I need to do to make it work.
Comment from author
Yes sorry, I realized that this version is not compatible with older Anki versions. So if you update to Anki 2.1.47 it should work. I'll update the add-on soon-ish to also support older versions.

Worked fine when first starting it however as soon as I used a different note type for the cards, the following error was generated.
"""
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.46 (94913ec2) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-09-13 16:04:03
Caught exception:
Traceback (most recent call last):
File "C:\Users\S###\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 352, in init_add
self.add_note([simp, trad, pinyin, english], input_type, tags)
File "C:\Users\S###\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 306, in add_note
note_ids = col.find_notes("{}:{}".format(english_field_name, english))
File "anki\collection.py", line 501, in find_notes
File "anki\_backend\generated.py", line 762, in search_notes
File "anki\_backend\__init__.py", line 131, in _run_command
anki.errors.SearchError: <p>Invalid search: a colon <code>:</code> was found, but there was no keyword preceding it. If you want to search for a literal <code>:</code>, prepend a backslash: <code>\:</code>.</p>
"""
Any ideas?
UPDATE: It's working fine again, once I changed the deck and started afresh with a new card there were no errors. Very helpful add-on, thank you.
"""
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.46 (94913ec2) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-09-13 16:04:03
Caught exception:
Traceback (most recent call last):
File "C:\Users\S###\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 352, in init_add
self.add_note([simp, trad, pinyin, english], input_type, tags)
File "C:\Users\S###\AppData\Roaming\Anki2\addons21\418828045\cedict\main.py", line 306, in add_note
note_ids = col.find_notes("{}:{}".format(english_field_name, english))
File "anki\collection.py", line 501, in find_notes
File "anki\_backend\generated.py", line 762, in search_notes
File "anki\_backend\__init__.py", line 131, in _run_command
anki.errors.SearchError: <p>Invalid search: a colon <code>:</code> was found, but there was no keyword preceding it. If you want to search for a literal <code>:</code>, prepend a backslash: <code>\:</code>.</p>
"""
Any ideas?
UPDATE: It's working fine again, once I changed the deck and started afresh with a new card there were no errors. Very helpful add-on, thank you.
Comment from author before post was edited
I'm not sure what the issue is at the moment and I can't reproduce it. Do you always get the error when adding cards? Or was it a specific card?

Works really well. I was getting sick of copying and pasting from online dictionaries to add new cards. This will save a lot of time.
Two things that would make it perfect: If the pinyin could be styled by tone like the HSK deck: https://ankiweb.net/shared/info/1855818143
and
If tags could be inserted from the card creation dialogue.
I'll make those feature requests on Github.
Two things that would make it perfect: If the pinyin could be styled by tone like the HSK deck: https://ankiweb.net/shared/info/1855818143
and
If tags could be inserted from the card creation dialogue.
I'll make those feature requests on Github.

This is a great help! thanks. Quick question, is it possible to select more than one result to add to a deck all at one time? Based on the notes above, I tried "Control+C" but that did not work. Again, thanks for your work on this!

It worked only with 3 words and it doesn't work anymore.
Can you please help me with this problem?
Can you please help me with this problem?
Comment from author
What exactly doesn't work? Does searching them doesn't work, or adding them...? Do you get an error message?

Fantastic add on! Would be even better if there was an option to select tags when creating cards.