Difference between revisions of "Metadata"

Jump to navigation Jump to search
1,093 bytes added ,  18:44, 11 November 2023
→‎Keys: Small precision how "Counter" Metdata is computed
(→‎Keys: Small precision how "Counter" Metdata is computed)
(7 intermediate revisions by 3 users not shown)
Line 14: Line 14:
! Title
! Title
| yes
| yes
| title of zim file
| title of zim file. 30 characters maximum recommended.
| ''English Wikipedia''
| ''English Wikipedia''
|-
|-
Line 29: Line 29:
! Date
! Date
| yes
| yes
| create date (ISO - YYYY-MM-DD)
| ZIM creation date (ISO - YYYY-MM-DD)
| ''2009-11-21''
| ''2009-11-21''
|-
|-
! Description  
! Description  
| yes
| yes
| description of content (one short sentence)
| description of content (one short sentence). 80 characters maximum recommended.
| ''All articles (without images) from the english Wikipedia''
| ''All articles (without images) from the english Wikipedia''
|-
|-
! LongDescription  
! LongDescription  
| no
| no
| description of content (small paragraph)
| extended description of content. Carriage return allowed. 4000 characters maximum recommended.
| ''This ZIM file contains all articles (without images) from the english Wikipedia by 2009-11-10. The topics are ...''
| ''This ZIM file contains all articles (without images) from the english Wikipedia by 2009-11-10. The topics are ...''
|-
|-
! Language
! Language
| yes
| yes
| [http://www.sil.org/iso639-3/codes.asp ISO639-3 language identifier] (if many, comma separated)
| [http://www.sil.org/iso639-3/codes.asp ISO639-3 language identifier]. If many, comma separated, and ordered by "importance" (which should be the number of entries, but in a edge case it can be ordered on an other criteria).
| ''eng''
| ''eng''
|-
|-
Line 74: Line 74:
! Counter
! Counter
| no
| no
| Number of non-redirect entries per mime-type
| Number of non-redirect entries per mime-type in the [[ZIM_file_format#Namespaces|C namespace]]
| image/jpeg=5;image/gif=3;image/png=2;...
| image/jpeg=5;image/gif=3;image/png=2;...
|-
|-
Line 81: Line 81:
| Details about the software used to scrape the content, with its version
| Details about the software used to scrape the content, with its version
| mwoffliner 1.2.3
| mwoffliner 1.2.3
|}
|-
!Illustration_[height]x[width]@[scale]
|yes
|A png image (resolution [height] by [width]) to illustrate the zim file.
This must be a binary content (png) with mimeytpe `image/png`.
 
We follow the same specification than freedesktop  https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html for the size and scale of the icon.
 
<code>height</code>, <code>width</code>, <code>scale</code> describe the '''target''' size (where the icon is intended to be displayed) :
 
- <code>Illustration_48x48@1</code> is a 48x48 pixels image to be displayed as a 48x48 icon on a scale 1 screen.
 
- <code>Illustration_48x48@2</code> is a 96x96 pixels image to be displayed as a 48x48 icon on a scale 2 screen.
 
- <code>Illustration_96x96@1</code> is a 96x96 pixels image to be displayes as a 96x96 icon on a scale 1 screen.


== Favicon ==


A favicon (48x48) is also mandatory and should be located at /-/favicon.
<code>Illustration_48x48@1</code> is mandatory. Others are optional.
!
|}


You can also provide ''n'' optional /-/favicon_[heigt]x[width] entries for high resolution version of the favicon.
== Favicon (Old zim file) ==


== Illustration ==
Old zim file may have a illustration in <code>-/favicon</code> (it can be a redirection to the real content).


A picture illustrating the content and should be located at /-/illustration
Reader must be able to read the illustration using this path.


You can provide ''n'' optional /-/illustration.*_[heigt]x[width] entries
Writer must not set a <code>-/favicon</code>


== See also ==
== See also ==
* [http://dublincore.org/documents/dces/ Dublin Core]
* [http://dublincore.org/documents/dces/ Dublin Core]

Navigation menu