Difference between revisions of "ZIM file format"

Jump to navigation Jump to search
740 bytes added ,  20:22, 22 February 2009
no edit summary
(documentation updated)
Line 1: Line 1:
The ZIM file format is based on the zeno file format. It starts with a header, which is described here:
The ZIM file format is based on the zeno file format. It starts with a header, which is described here:
== Header ==


length in byte, all types are littlendian
length in byte, all types are littlendian
Line 32: Line 34:


Each article in the zim file has a directory entry. Since the directory entry has a variable size, we have a index pointerlist, which is a list of 4-byte offsets, which points to the directory  entries.
Each article in the zim file has a directory entry. Since the directory entry has a variable size, we have a index pointerlist, which is a list of 4-byte offsets, which points to the directory  entries.
== Namespaces ==
Namespaces seperate different types of data stored in the ZIM File Format.
They can be distinguished by prepending the article namespace before the article name in the URL path, eg. ''http://localhost/A/Articlename''.
{|{{Prettytable}}
! Namespace !! Description
|-
| - || template data
|-
| A || articles
|-
| I || images, files - see [[Image Handling]]
|-
| J || images, text - see [[Image Handling]]
|-
| U || categories, text - see [[Category Handling]]
|-
| V || categories, article list - see [[Category Handling]]
|-
| W || ''deprecated'' - see [[Zeno File Format]]
|-
| X || fulltext index
|-
| Y || ''deprecated'' - see [[Zeno File Format]]
|-
| Z || ''deprecated'' - see [[Zeno File Format]]
|}

Navigation menu