# EDE mimetypes description
#
# Format:
# id|description|handler program|icon|wildcard for filename (extension)|wildcard for file command output|classic mime type
#
# - id - short string; to setup subtypes, just use slash (/) as separator in ID
# - description - what is shown in gui
# - handler program - filename will be appended, specify any needed parameters for opening - THIS WILL BE MOVED INTO SEPARATE FILE (for handling multiple programs etc.)
# - icon - just name, don't give extension or path
# - extension - will be used only if multiple types have same file command match. You don't need to give asterisk (*) i.e. .png. If there are multiple extensions, separate them with slash (/). Actually, "extension" can be any part of filename, but I can't think of use for this
# - file output - relevant part of output from `file -bLnNp $filename`
# - classic mime type - what is used for interchange i.e. text/plain - may be used for matching if other methods fail
#
# This is how mimetype resolving is supposed to work: if there is exactly one match for `file`
# output, this is what we use. If there are multiple, the largest match is used. If there are
# no results or several results with same size we look at extension, then at classic mime type 
# (using -i parameter to `file`).
#
bitmap|Picture (Unknown)|eimage|image|||
bitmap/bmp|Picture (BMP)|eimage|image|.bmp|PC bitmap data|image/bmp
bitmap/gif|Picture (GIF)|eimage|image|.gif|GIF image data|image/gif
bitmap/jpeg|Picture (JPEG)|eimage|image|.jpg/.jpeg|JPEG image data|image/png
bitmap/png|Picture (PNG)|eimage|image|.png|PNG image data|image/png
bitmap/psd|Picture (Adobe PhotoShop)||image|.psd|Adobe Photoshop Image|image/x-photoshop
text|Plain text|enotepad|txt|.txt/|text|text/plain
#text/unicode|Plain text|enotepad|txt|.txt|Unicode * text|text/plain # we need wildcard support in file output :(
text/c|C code|enotepad|source_c|.c/.h|C program text|text/x-c
text/config|Program configuration|enotepad|ascii|.conf/rc|text|text/plain
text/config/xml|Program configuration (XML)|enotepad|ascii|.conf/rc|XML document text|text/xml
text/cpp|C++ code|enotepad|source_cpp|.cpp/.cxx/.h|C++ program text|text/x-c++
text/cpp/lame|Plain text|enotepad|txt||C++ program text|text/plain
text/desktop|Shortcut|elauncher|exec|.desktop/.directory|text|text/plain
text/diff|File difference|fldiff|kmultiple|.diff/.patch|'diff' output text|
text/html|Web page (HTML)|konqueror|html|.html/.htm|HTML document text|text/html
text/html/lame|Web page (HTML)|konqueror|html|.html/.htm|text|text/html  # for pages that dont have the proper headers, and are so detected as simple ascii text
text/java|Java code|enotepad|source_java|.java|Perl5 module source text|text/x-java  # misdetection in find
text/php|PHP code|enotepad|source_php|.php/.php3|PHP script text|text/plain
text/po|Program translation resource|kbabel|ascii|.po|PO (gettext message catalogue) text|text/x-po
text/readme|Read this first!|enotepad|txt2|README|text|text/plain
text/script|Program (shell script)|elauncher|empty|.sh|script text|application/x-shellscript
text/script/perl|Program (Perl script)|elauncher|empty|.pl|perl script text|application/x-perl
text/xml|XML text|enotepad|txt|.xml/|XML document text|text/xml
office|Office document|ooffice2.0|document||Document|
office/db|Database|ooffice2.0|empty|||  # find icon for database!
office/db/sqlite|Database (SQLite)|ooffice2.0|empty|.db|SQLite database|
office/ms|Microsoft Office document|ooffice2.0|document||Microsoft Office Document|
office/odf|Open Document Format (ODF) document|ooffice2.0|document||
office/pdf|PDF document|xpdf|pdf|.pdf|PDF document|application/pdf
office/spread|Spreadsheet|ooffice2.0|spreadsheet|||
office/spread/ods|Spreadsheet (OpenOffice.org 2.0)|ooffice2.0|spreadsheet|.ods|Zip archive data|
office/spread/sxc|Spreadsheet (OpenOffice.org 1.x)|ooffice2.0|spreadsheet|.sxc|Zip archive data|
office/spread/xls|Spreadsheet (MS Excel)|ooffice2.0|spreadsheet|.xls|Microsoft Office Document|application/msexcel
office/word|Word document|ooffice2.0|wordprocessing|||
office/word/doc|Word document (MS Word)|ooffice2.0|wordprocessing|.doc|Microsoft Office Document|application/msword
office/word/odt|Word document (OpenOffice.org 2.0)|ooffice2.0|wordprocessing|.odt|Zip archive data|
office/word/sxw|Word document (OpenOffice.org 1.x)|ooffice2.0|wordprocessing|.sxw|Zip archive data|
empty|Empty file|enotepad|mimetypes/misc||empty|
archive|Archive||tar||archive| # Consider using the term "Compressed file(s)"
archive/bz2|Archive (BZ2)||tar|.bz2|bzip2 compressed data|application/x-gzip
archive/gz|Archive (GZ)||tar|.gz|gzip compressed data|application/x-gzip
archive/rar|Archive (RAR)||tar|.rar|RAR archive data|application/x-rar
archive/tar|Archive (TAR)||tar|.tar|tar archive|application/x-tar
archive/targz|Archive (TAR.GZ)||tar|.tar.gz|gzip compressed data|application/x-gzip
archive/tarbz2|Archive (TAR.BZ2)||tar|.tar.bz2|bzip2 compressed data|application/x-bzip2
archive/zip|Archive (ZIP)||tar|.zip|Zip archive data|application/x-zip
install|Program installation|efiler|tgz|||
install/makefile|Program instalation (source)|einstaller|make||make commands text|text/x-makefile
install/rpm|Program installation (RPM)|einstaller|rpm|.rpm|RPM|application/x-rpm
program|Program|elauncher|empty|||
program/elf|Program|elauncher|empty||ELF 32-bit LSB executable|application/x-executable
program/elf/o|Program part||mimetypes/misc||ELF 32-bit LSB relocatable|application/x-object
program/jar|Java program|java -jar|empty|.jar|Zip archive data|application/x-zip
program/java-class|Java program|java|empty|.class|compiled Java class data|
program/swf|Macromedia Flash program|mozilla-firefox|empty|.swf|Macromedia Flash data|
video|Video|mplayer|video||video|
video/qt|Video (QuickTime)|mplayer|video|.mov|Apple QuickTime movie|video/quicktime
video/xvid|Video (XviD)|mplayer|video|.avi|video: XviD|video/x-msvideo
audio|Audio|xmms|sound||audio|
audio/mp3|Audio (MP3)|xmms|sound|.mp3|MPEG ADTS, layer III|audio/mpeg
audio/ogg|Audio (OGG)|xmms|sound|.ogg|Ogg data, Vorbis audio|application/ogg
image|Filesystem image||binary|.img|filesystem data|
image/ext2|Filesystem image (ext2)||binary|.img|ext2 filesystem data|
image/boot|Boot floppy image||3floppy_unmount|.img|x86 boot sector|
vector|Drawing (unknown)|inkscape|vectorgfx|||
vector/svg|Drawing (SVG)|inkscape|vectorgfx|.svg|XML document text|  # hope they fix file to detect this properly
font|Font||font||font|
font/ttf|Font (TrueType)||font_truetype|.ttf|TrueType font data|
