Data file formats: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (→‎List of supported formats: DJVU bug and samples link)
(→‎List of supported formats: add Journal entry bundles)
Line 12: Line 12:
==List of supported formats==
==List of supported formats==


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


* [[choosing image formats|Image formats]]
* [[choosing image formats|Image formats]]
** [[JPEG 2000]] (? does not work in Browse). [[http://www.fnordware.com/j2k/relax.jp2 Sample file]]
** [[JPEG 2000]]
** [[GIF]]
** [[GIF]]
** [[JPEG]]
** [[JPEG]]
** [[PNG]]
** [[PNG]]
** [[SVG]] (supported by [[Xulrunner]] hence , also directly by [[Sugar]] for icons). [http://svg-whiz.com/samples.html#svg Sample files (not all work in Browse]
** [[SVG]] (in Browse, also directly by [[Sugar]] for icons). [http://svg-whiz.com/samples.html#svg Sample files (not all work in Browse]
** [[TIFF]] (in [[Read]] via [[Evince]])
** [[TIFF]] (in [[Read]] via [[Evince]])


* [[Ebooks|eBook formats]]
* [[Ebooks|eBook formats]]
** [[DJVU]] (coming to [[Read]], see {{ticket|6223}}). [http://djvu.org/docs/ Sample files]
** [[DJVU]] (coming some day to [[Read]], see {{ticket|6223}}). [http://djvu.org/docs/ Sample files]
** [[PDF]] (in [[Read]] via [[Evince]])
** [[PDF]] (in [[Read]] via [[Evince]])


Line 43: Line 43:
** Uncompressed (this is listed because the JFFS2 filesystem on the OLPC will compress all compressable files)
** 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]])
** GNU Zip (supported by [[Python]]'s zlib module, and by [[Etoys]])

* OLPC-specific formats
** [[Journal entry bundles]] (a zip file with the ".xoj" extension and mime type 'application/vnd.olpc-journal-entry')


[[Category:File formats]]
[[Category:File formats]]

Revision as of 08:08, 6 July 2008

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 load. Most activities list the mime types they support in their activity.info file. In a Terminal activity,

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

and there will be a mime_types line.

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.

  • Sound formats
    • Ogg Vorbis (supported by the Totem plugin for Browse). Sample file]
    • the Totem and Gnash plugins for Browse claim to support other formats, enter about:plugins in the Browse location field.
  • Video formats
    • Ogg Theora?
    • DV format ? (/usr/lib/libdv present)
  • 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)
  • OLPC-specific formats
    • Journal entry bundles (a zip file with the ".xoj" extension and mime type 'application/vnd.olpc-journal-entry')