ZIM Reader for Anki

This add-on allows you to import ZIM files and access their data inside Anki.

AnkiWeb page: ZIM Reader - AnkiWeb
GitHub: GitHub - abdnh/anki-zim-reader: Anki add-on to view and extract info from ZIM files

The add-on is in beta. I appreciate testing with different files and platforms!

3 Likes

Hi, the add-on does not work on the latest anki version.

Add-on Startup Failed

The following add-ons failed to load: ⁨

  • [ZIM Reader - Look up words in Wiktionary]

They may need to be updated to support this version of Anki. Click the Check for Updates button to see if any updates are available.

You can use the Copy Debug Info button to get information that you can paste in a report to the add-on author.

For add-ons that don’t have an update available, you can disable or delete the add-on to prevent this message from appearing.

Please copy and paste the debug info.

I keep getting the message ‘Example_Word was not found in the dictionary.’ Does it only parse German words in the German version, or can I, for example, get bulk entries for Russian, Czech, or other languages from the German version?
I tested your ‘Wiktionary’ add-on, and it works just fine, but I need the entries for the German version.

That depends on the ZIM file used. Can you link to the file? If it’s saying the word was not found then it’s probably true.

Thanks for your reply! :slight_smile:

I tried both ([1](https: // download . kiwix . org / zim / wiktionary_de_all_maxi . zim)) and ([2](https: // download . kiwix .org / zim / wiktionary_de_all_nopic . zim)) and it won’t find words that are definitely in Wiktionary.

Might special characters (like á, č, ď, é, …) be a problem?

Still, in the other add on, with entries from the English Wiktionary it works.

(I had to include spaces as links seem not permitted here)

Can you give some examples of failing words?

I cannot run the “wiktionary_de_all_maxi . zim” at all.

I can run and browse “wiktionary_de_all_nopic . zim”. Even though it gives an error, debug info says the following:

“”"
"Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):
File “C:\Users****\AppData\Roaming\Anki2\addons21\951350249\gui\browser.py”, line 106, in on_search
url = self.server.url + search
AttributeError: ‘NoneType’ object has no attribute ‘url’
“”

The only word I could retrieve information for was one that also exists in German and I had to choose “Parser: German”, obviously not giving the desired information. Every other word failed completely.

The German parser only parses German words. It doesn’t recognize other languages’ entries. This is the case for other parsers too; they only parse native words. This might change in the future: Extract non-native entries from Wiktionary files too · Issue #11 · abdnh/anki-zim-reader · GitHub

Will look into reproducing the error with wiktionary_de_all_nopic.zim.

Thanks for the clarification! I think it isn’t mentioned (explicitly) in the documentation

Is parsing entries for other languages a big obstacle? Before I found your add ons, I tried to find a solution to scrape or parse Wiktionary, but found my basic programming knowledge is not sufficient for it - the code of wiktionary is a mess

It’s not difficult to parse (basically the same process for native words) but UI design and bulk processing needs some thinking and work. I don’t personally use the add-on so this is not a high priority.