Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Conversion of ZIM file

69 views
Skip to first unread message

SailorVenusFan

unread,
Jul 24, 2024, 5:36:07 PM7/24/24
to aarddict
Can you find some way to convert the ZIM file from Kiwix of this wiki, https://m.bulbapedia.bulbagarden.net/wiki/Main_Page but to convert the images to base 64 so the images can work offline?

SailorVenusFan

unread,
Jul 24, 2024, 5:36:21 PM7/24/24
to aarddict
I can't convert myself

Igor Tkach

unread,
Jul 25, 2024, 3:44:37 PM7/25/24
to aard...@googlegroups.com
You can use pyglossary (https://github.com/ilius/pyglossary) to do zim -> slob conversion, including offline images.

The following worked for me on Mac:
pipx install pyglossary --preinstall PyICU --preinstall libzim
pyglossary ./Downloads/bulbagarden_en_all_maxi_2022-02.zim bulbagarden_en_all_maxi_2022-02.slob

Conversion is successful, aside from these two errors:

[ERROR] Aard2 slob: unknown content type for 'favicon'
[ERROR] resource title: mw/skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|site.styles|mobile.app.pagestyles.android|mediawiki.page.gallery.styles|mediawiki.skinning.content.parsoid.css

and indeed, looks like some css and javascript didn't make it through (perhaps something pyglossary can improve), but text and pictures are there. Missing CSS can be added as user style as a workaround.

image.png



--
You received this message because you are subscribed to the Google Groups "aarddict" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aarddict+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aarddict/14944aeb-b094-4864-97b4-63636a9dfccbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages