Skip to content
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

Add test zim files without v0 title listing. #13

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

mgautierfr
Copy link
Collaborator

Files are generated using PR openzim/libzim#949

Recent version zim-tools changes its API. We have to update our script.
Recent version of libzim reserves 2048 bytes for the mimetype.
Our generated file trying to break out of this 2048 must be adapted.
If we stay with 1024, we cannot break libzim.
Generated files are using the commands:
```
mkdir data/nov0
scripts/create_test_zimfiles --all src/small_zimfile_data/ data/nov0
zimrecreate data/withns/wikipedia_en_climate_change_mini_2024-06.zim data/nov0/wikipedia_en_climate_change_mini_2024-06.zim
zimrecreate data/withns/wikibooks_be_all_nopic_2017-02.zim data/nov0/wikibooks_be_all_nopic_2017-02.zim
zimsplit data/nov0/wikibooks_be_all_nopic_2017-02.zim --prefix data/nov0/wikibooks_be_all_nopic_2017-02_splitted.zim --size 51200
```

`zimwriterfs`, `zimrecreate`, `zimsplit` are localy build using
- commit b5127fc9 of libzim (commit in PR openzim/libzim#949)
- commit 482a6708 of zimtools (head of PR openzim/zim-tools#452)

Using non released version of libzim was necessary as we need test files
to test the PR and without the PR merged, we cannot release a libzim
generating such kind of files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant