9 0
Contact Author Sign in to rate

CC-CEDICT for Anki (Chinese dictionary)

4.77MB. Updated 2022-03-23.
The author has shared 2 other item(s).

Description

This add-on allows you to search the CC-CEDICT dictionary and automatically add cards to your decks. Go to Tools>CC-CEDICT for Anki to start the add-on (Ctrl+D). Change log: v1.4.1 (23.03.2022): - fixed bug when there are no results v1.4 (21.03.2022): - added tag auto complete + save - added support for future Anki versions - changed double click select to single click - fixed no commas on card bug - fixed cursor not in search field - updated dictionary v1.3 (03.09.2021): - added support to search for multiple words at once (separated by a comma) - added auto detections for input (Simplified, Traditional, or English) - added option to add tags - added option to color pinyin - updated dictionary v1.2 (14.02.2020): - Save config bug fix - Removed update-checker, because Anki 2.1.20 does it automatically - Dictionary update v1.1 (21.01.2020): - Customization for adding cards - Settings are automatically saved - Results are selectable (e.g. Ctrl+C) - Minor UI changes - Minor bug fixes The code for the add-on is available on GitHub. It is licensed under the MIT License.

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:

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

on 1646214699
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).
on 1636660191
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
on 1635003861
I got an error of each field can be only used once. May I know how to fix this?
on 1632125356
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.
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.
on 1631649366
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.
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?
on 1627465661
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.
on 1611145594
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!
on 1606851709
It worked only with 3 words and it doesn't work anymore.
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?
on 1585754811
Fantastic add on! Would be even better if there was an option to select tags when creating cards.