Difference between revisions of "ZIM file format"

Jump to navigation Jump to search
Line 16: Line 16:
| 4
| 4
| 2
| 2
| Major version of the ZIM archive format (6)
| Major version of the ZIM archive format. Major version is updated when an incompatible change is integrated in the format (a lib made for a version N will probably not be able to read a version N+1)
|-
|-
| [[#Major_.26_Minor_versions|minorVersion]] || integer || 6 || 2 || Minor version of the ZIM archive format (1 for new namespace usage, 0 for old namespace usage)                      
| [[#Major_.26_Minor_versions|minorVersion]] || integer || 6 || 2 || Minor version of the ZIM archive format. Minor version is updated when an compatible change is integrated (a lib made for a minor version n will be able to read a version n+1)                      
|-
|-
| uuid || integer || 8 || 16 || unique id of this zim archive                           
| uuid || integer || 8 || 16 || unique id of this zim archive                           
Line 45: Line 45:


=== Major & Minor versions ===
=== Major & Minor versions ===
Major version is updated when an incompatible change is integrated in the format (a lib made for a version N will probably not be able to read a version N+1)
Minor version is updated when an compatible change is integrated (a lib made for a minor version n will be able to read a version n+1)
The minor version can be :
* 0 : We use the old namespace usage (see [[ZIM file format old namespace]])
* 1 : We use the new namespace usage (describe here).
* 2 : Means that libzim (reference implementation) allow to create alias entries (Several entries pointing to the same cluster/blob). This was already allowed by specification, this is hint only.


{| class="wikitable"
{| class="wikitable"

Navigation menu