-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to display images on .zim files #27
Comments
more likely dictionary's issue. you can use F12 to inspect the image element. or another way to check: |
I downloaded some English I think the possible cause is that Deutsche Wiktionary is using this English Wiktionary is using Perhaps Deutsche Wiktionary could use some update? Or the tool that convert that Wiktionary messed up the If the saved HTML as mentioned above works in chrome but not GD, then the issue belong to here. If it doesn't work, then exported |
Thanks for your kind help. The German Wiktionary .zim works perfectly on "Kiwix" on Android: The images for the word "Rahmen" in German Wiktionary appear properly on Kiwix but on GoldenDict those images are not shown correctly. The issue affects your improved version of GoldenDict. I guess that also affects the "Official" version maintained by @Abs62 . Several months ago I contacted the "Kiwix Team" by email and they said about GoldenDict and .zim files: "I'll be honest I had to ask about GoldenDict because I'd never heard of it. Turns out someone here had heard of it not too long ago but did not have time to investigate much. The only finding so far is that it uses Pylibzim for its own purpose, and thus probably can not fully read all the zim files we produce (as illustrated by the issue you refer to; I don't know about non mediawiki zim files). " So, probably GoldenDict just does not support .zim files properly. Maybe could we improve that with the @kiwix Team @Popolechien ? Thanks for your hard work ! |
NEW FINDING: 1) If the German Wiktionary is in a group ALONE, images are shown correctly. On the group there are HTML-based dictionaries (.mdx) and some of them might have a "bad" behaviour affecting the display of other dictionaries: Check: goldendict/goldendict#290 The issue of HTML dictionaries affecting global styles was supposedly fixed by @Abs62 on 2013 but it still alive ! On the other hand, the support for .zim files was added on 2013 on GoldenDict and some changes have happened since them on Python "libzim" and/or zim format. |
then it was affected by other dictionary's css style. dictionary hasn't have a standard css writing rule. and some dictionary use js to control the style. which is out of gd's ability to support. I can conculed that ,with the same dictionaries and settings ,the original gd also has this issue.
will investigate in the future ,but I think it has not related to this issue. |
Unfortunately, a single "bad" .mdx dictionary was affecting others (Forvo German Pronunciations: https://forum.freemdict.com/t/topic/7355/7 ) I am very sorry. It was difficult to pinpoint the issue. Thanks to everyone for their valuable help and insights ! |
gd seems do not use any libs to parse the zim format ,it just parse the file itself. |
Yes. Some time ago I proposed to use libzim in GD, but the author doesn't want it. |
gd is gpl3.0+ while libzim is gpl2.0 ,will there be any license issue to use the lib. |
@xiaoyifang Please open a ticket at openzim/libzim but we think that GPL 2.0 is more permissive so this should not be an issue. |
Actually, they explicitly changed from Plus this chart from gnu.org https://www.gnu.org/licenses/gpl-faq.en.html#AllCompatibility their previous discussion on this matter |
Images of the Wiktionary in .zim format are not shown properly:
To reproduce:
Download a Wiktionary/Wikipedia with images on https://wiki.kiwix.org/wiki/Content_in_all_languages
OS: Manjaro Linux KDE (Latest Stable)
Version: https://aur.archlinux.org/packages/goldendict-webengine-git
The text was updated successfully, but these errors were encountered: