Data file formats: Difference between revisions

From OLPC
Jump to navigation Jump to search
(→‎List of supported formats: various improvements)
(→‎Introduction: fix command line)
Line 5: Line 5:
Because the OLPC has limited storage and limited RAM, it is not a good idea to support every data format used on regular PCs. It makes more sense to use our PCs to convert data than to put that burden on the OLPC.
Because the OLPC has limited storage and limited RAM, it is not a good idea to support every data format used on regular PCs. It makes more sense to use our PCs to convert data than to put that burden on the OLPC.


The libraries and packages in the build support various file formats. Some of this support is exposed through the various [[Activities]] and the files they load.
The libraries and packages in the build support various file formats. Some of this support is exposed through the various [[Activities]] and the files they are able to load.
Most activities list the mime types they support in their <tt>activity.info</tt> file.
Most activities list the mime types they support in their <tt>activity.info</tt> file.
In a [[Terminal activity]],
In a [[Terminal activity]],
cat ~olpc/''Activity name''.activity/activity/activity.info
cat ~olpc/Activities/''Activity name''.activity/activity/activity.info
and there will be a mime_types line.
and there will be a mime_types line.



Revision as of 00:40, 24 November 2008

This page is about the various file formats that the XO may encounter.

This article is a stub. You can help the OLPC project by expanding it.

Introduction

Because the OLPC has limited storage and limited RAM, it is not a good idea to support every data format used on regular PCs. It makes more sense to use our PCs to convert data than to put that burden on the OLPC.

The libraries and packages in the build support various file formats. Some of this support is exposed through the various Activities and the files they are able to load. Most activities list the mime types they support in their activity.info file. In a Terminal activity,

 cat ~olpc/Activities/Activity name.activity/activity/activity.info

and there will be a mime_types line.

On some activities' wiki pages the infobox lists some of the mime types they support, e.g. Browse.

List of supported formats

TODO: This should become a table of format - mime-type - activities supporting the format - a link to sample files for each file format.

  • General formats
    • XML
    • SQLite (a lightweight relational database that is included in Python 2.5)
    • Gnu gdbm (supported by Python's dbm module)
    • Berkeley db version 4.3.0.1 (supported by Python's bsddb module)
  • Compression formats
    • Uncompressed (this is listed because the JFFS2 filesystem on the OLPC will compress all compressable files)
    • GNU Zip (supported by Python's zlib module, and by Etoys)

See also