Commit a20166c3 by Daniel Mendler

update table

parent e3e99bec
...@@ -44,7 +44,7 @@ class MimeMagic ...@@ -44,7 +44,7 @@ class MimeMagic
'arw' => 'image/x-sony-arw', 'arw' => 'image/x-sony-arw',
'as' => 'application/x-applix-spreadsheet', 'as' => 'application/x-applix-spreadsheet',
'asc' => 'application/pgp-encrypted', 'asc' => 'application/pgp-encrypted',
'asf' => 'video/x-ms-asf', 'asf' => 'application/vnd.ms-asf',
'asp' => 'application/x-asp', 'asp' => 'application/x-asp',
'ass' => 'text/x-ssa', 'ass' => 'text/x-ssa',
'asx' => 'audio/x-ms-asx', 'asx' => 'audio/x-ms-asx',
...@@ -103,7 +103,6 @@ class MimeMagic ...@@ -103,7 +103,6 @@ class MimeMagic
'cs' => 'text/x-csharp', 'cs' => 'text/x-csharp',
'csh' => 'application/x-csh', 'csh' => 'application/x-csh',
'css' => 'text/css', 'css' => 'text/css',
'cssl' => 'text/css',
'csv' => 'text/csv', 'csv' => 'text/csv',
'cue' => 'application/x-cue', 'cue' => 'application/x-cue',
'cur' => 'image/x-win-bitmap', 'cur' => 'image/x-win-bitmap',
...@@ -178,6 +177,7 @@ class MimeMagic ...@@ -178,6 +177,7 @@ class MimeMagic
'f90' => 'text/x-fortran', 'f90' => 'text/x-fortran',
'f95' => 'text/x-fortran', 'f95' => 'text/x-fortran',
'fb2' => 'application/x-fictionbook+xml', 'fb2' => 'application/x-fictionbook+xml',
'fb2.zip' => 'application/x-zip-compressed-fb2',
'fig' => 'image/x-xfig', 'fig' => 'image/x-xfig',
'fits' => 'image/fits', 'fits' => 'image/fits',
'fl' => 'application/x-fluid', 'fl' => 'application/x-fluid',
...@@ -253,6 +253,8 @@ class MimeMagic ...@@ -253,6 +253,8 @@ class MimeMagic
'iff' => 'image/x-ilbm', 'iff' => 'image/x-ilbm',
'ilbm' => 'image/x-ilbm', 'ilbm' => 'image/x-ilbm',
'ime' => 'text/x-iMelody', 'ime' => 'text/x-iMelody',
'img' => 'application/x-raw-disk-image',
'img.xz' => 'application/x-raw-disk-image-xz-compressed',
'imy' => 'text/x-iMelody', 'imy' => 'text/x-iMelody',
'ins' => 'text/x-tex', 'ins' => 'text/x-tex',
'iptables' => 'text/x-iptables', 'iptables' => 'text/x-iptables',
...@@ -260,7 +262,6 @@ class MimeMagic ...@@ -260,7 +262,6 @@ class MimeMagic
'iso9660' => 'application/x-cd-image', 'iso9660' => 'application/x-cd-image',
'it' => 'audio/x-it', 'it' => 'audio/x-it',
'it87' => 'application/x-it87', 'it87' => 'application/x-it87',
'j2k' => 'image/jp2',
'jad' => 'text/vnd.sun.j2me.app-descriptor', 'jad' => 'text/vnd.sun.j2me.app-descriptor',
'jar' => 'application/x-java-archive', 'jar' => 'application/x-java-archive',
'java' => 'text/x-java', 'java' => 'text/x-java',
...@@ -269,7 +270,6 @@ class MimeMagic ...@@ -269,7 +270,6 @@ class MimeMagic
'jng' => 'image/x-jng', 'jng' => 'image/x-jng',
'jnlp' => 'application/x-java-jnlp-file', 'jnlp' => 'application/x-java-jnlp-file',
'jp2' => 'image/jp2', 'jp2' => 'image/jp2',
'jpc' => 'image/jp2',
'jpe' => 'image/jpeg', 'jpe' => 'image/jpeg',
'jpeg' => 'image/jpeg', 'jpeg' => 'image/jpeg',
'jpf' => 'image/jp2', 'jpf' => 'image/jp2',
...@@ -277,6 +277,8 @@ class MimeMagic ...@@ -277,6 +277,8 @@ class MimeMagic
'jpr' => 'application/x-jbuilder-project', 'jpr' => 'application/x-jbuilder-project',
'jpx' => 'application/x-jbuilder-project', 'jpx' => 'application/x-jbuilder-project',
'js' => 'application/javascript', 'js' => 'application/javascript',
'jsm' => 'application/javascript',
'json' => 'application/json',
'k25' => 'image/x-kodak-k25', 'k25' => 'image/x-kodak-k25',
'kar' => 'audio/midi', 'kar' => 'audio/midi',
'karbon' => 'application/x-karbon', 'karbon' => 'application/x-karbon',
...@@ -285,6 +287,7 @@ class MimeMagic ...@@ -285,6 +287,7 @@ class MimeMagic
'kexi' => 'application/x-kexiproject-sqlite2', 'kexi' => 'application/x-kexiproject-sqlite2',
'kexic' => 'application/x-kexi-connectiondata', 'kexic' => 'application/x-kexi-connectiondata',
'kexis' => 'application/x-kexiproject-shortcut', 'kexis' => 'application/x-kexiproject-shortcut',
'key' => 'application/x-iwork-keynote-sffkey',
'kfo' => 'application/x-kformula', 'kfo' => 'application/x-kformula',
'kil' => 'application/x-killustrator', 'kil' => 'application/x-killustrator',
'kino' => 'application/smil', 'kino' => 'application/smil',
...@@ -318,6 +321,7 @@ class MimeMagic ...@@ -318,6 +321,7 @@ class MimeMagic
'ly' => 'text/x-lilypond', 'ly' => 'text/x-lilypond',
'lyx' => 'application/x-lyx', 'lyx' => 'application/x-lyx',
'lz' => 'application/x-lzip', 'lz' => 'application/x-lzip',
'lz4' => 'application/x-lz4',
'lzh' => 'application/x-lha', 'lzh' => 'application/x-lha',
'lzma' => 'application/x-lzma', 'lzma' => 'application/x-lzma',
'lzo' => 'application/x-lzop', 'lzo' => 'application/x-lzop',
...@@ -354,6 +358,7 @@ class MimeMagic ...@@ -354,6 +358,7 @@ class MimeMagic
'mif' => 'application/x-mif', 'mif' => 'application/x-mif',
'minipsf' => 'audio/x-minipsf', 'minipsf' => 'audio/x-minipsf',
'mk' => 'text/x-makefile', 'mk' => 'text/x-makefile',
'mk3d' => 'video/x-matroska-3d',
'mka' => 'audio/x-matroska', 'mka' => 'audio/x-matroska',
'mkd' => 'text/x-markdown', 'mkd' => 'text/x-markdown',
'mkv' => 'video/x-matroska', 'mkv' => 'video/x-matroska',
...@@ -430,6 +435,7 @@ class MimeMagic ...@@ -430,6 +435,7 @@ class MimeMagic
'ooc' => 'text/x-ooc', 'ooc' => 'text/x-ooc',
'opml' => 'text/x-opml+xml', 'opml' => 'text/x-opml+xml',
'oprc' => 'application/vnd.palm', 'oprc' => 'application/vnd.palm',
'opus' => 'audio/ogg',
'ora' => 'image/openraster', 'ora' => 'image/openraster',
'orf' => 'image/x-olympus-orf', 'orf' => 'image/x-olympus-orf',
'otc' => 'application/vnd.oasis.opendocument.chart-template', 'otc' => 'application/vnd.oasis.opendocument.chart-template',
...@@ -458,6 +464,7 @@ class MimeMagic ...@@ -458,6 +464,7 @@ class MimeMagic
'pbm' => 'image/x-portable-bitmap', 'pbm' => 'image/x-portable-bitmap',
'pcap' => 'application/vnd.tcpdump.pcap', 'pcap' => 'application/vnd.tcpdump.pcap',
'pcd' => 'image/x-photo-cd', 'pcd' => 'image/x-photo-cd',
'pce' => 'application/x-pc-engine-rom',
'pcf' => 'application/x-font-pcf', 'pcf' => 'application/x-font-pcf',
'pcf.gz' => 'application/x-font-pcf', 'pcf.gz' => 'application/x-font-pcf',
'pcf.z' => 'application/x-font-pcf', 'pcf.z' => 'application/x-font-pcf',
...@@ -499,6 +506,7 @@ class MimeMagic ...@@ -499,6 +506,7 @@ class MimeMagic
'pnm' => 'image/x-portable-anymap', 'pnm' => 'image/x-portable-anymap',
'pntg' => 'image/x-macpaint', 'pntg' => 'image/x-macpaint',
'po' => 'text/x-gettext-translation', 'po' => 'text/x-gettext-translation',
'pod' => 'application/x-perl',
'por' => 'application/x-spss-por', 'por' => 'application/x-spss-por',
'pot' => 'application/vnd.ms-powerpoint', 'pot' => 'application/vnd.ms-powerpoint',
'potm' => 'application/vnd.ms-powerpoint.template.macroEnabled.12', 'potm' => 'application/vnd.ms-powerpoint.template.macroEnabled.12',
...@@ -523,10 +531,12 @@ class MimeMagic ...@@ -523,10 +531,12 @@ class MimeMagic
'psflib' => 'audio/x-psflib', 'psflib' => 'audio/x-psflib',
'psid' => 'audio/prs.sid', 'psid' => 'audio/prs.sid',
'psw' => 'application/x-pocket-word', 'psw' => 'application/x-pocket-word',
'pub' => 'application/vnd.ms-publisher',
'pw' => 'application/x-pw', 'pw' => 'application/x-pw',
'py' => 'text/x-python', 'py' => 'text/x-python',
'pyc' => 'application/x-python-bytecode', 'pyc' => 'application/x-python-bytecode',
'pyo' => 'application/x-python-bytecode', 'pyo' => 'application/x-python-bytecode',
'pyx' => 'text/x-python',
'qif' => 'application/x-qw', 'qif' => 'application/x-qw',
'qml' => 'text/x-qml', 'qml' => 'text/x-qml',
'qt' => 'video/quicktime', 'qt' => 'video/quicktime',
...@@ -541,6 +551,8 @@ class MimeMagic ...@@ -541,6 +551,8 @@ class MimeMagic
'rar' => 'application/x-rar', 'rar' => 'application/x-rar',
'ras' => 'image/x-cmu-raster', 'ras' => 'image/x-cmu-raster',
'raw' => 'image/x-panasonic-raw', 'raw' => 'image/x-panasonic-raw',
'raw-disk-image' => 'application/x-raw-disk-image',
'raw-disk-image.xz' => 'application/x-raw-disk-image-xz-compressed',
'rax' => 'audio/vnd.rn-realaudio', 'rax' => 'audio/vnd.rn-realaudio',
'rb' => 'application/x-ruby', 'rb' => 'application/x-ruby',
'rdf' => 'application/rdf+xml', 'rdf' => 'application/rdf+xml',
...@@ -579,6 +591,7 @@ class MimeMagic ...@@ -579,6 +591,7 @@ class MimeMagic
'sdp' => 'application/vnd.stardivision.impress', 'sdp' => 'application/vnd.stardivision.impress',
'sds' => 'application/vnd.stardivision.chart', 'sds' => 'application/vnd.stardivision.chart',
'sdw' => 'application/vnd.stardivision.writer', 'sdw' => 'application/vnd.stardivision.writer',
'sfc' => 'application/vnd.nintendo.snes.rom',
'sgf' => 'application/x-go-sgf', 'sgf' => 'application/x-go-sgf',
'sgi' => 'image/x-sgi', 'sgi' => 'image/x-sgi',
'sgl' => 'application/vnd.stardivision.writer', 'sgl' => 'application/vnd.stardivision.writer',
...@@ -590,6 +603,7 @@ class MimeMagic ...@@ -590,6 +603,7 @@ class MimeMagic
'shn' => 'application/x-shorten', 'shn' => 'application/x-shorten',
'siag' => 'application/x-siag', 'siag' => 'application/x-siag',
'sid' => 'audio/prs.sid', 'sid' => 'audio/prs.sid',
'sig' => 'application/pgp-signature',
'sik' => 'application/x-trash', 'sik' => 'application/x-trash',
'sis' => 'application/vnd.symbian.install', 'sis' => 'application/vnd.symbian.install',
'sisx' => 'x-epoc/x-sisx-app', 'sisx' => 'x-epoc/x-sisx-app',
...@@ -602,7 +616,7 @@ class MimeMagic ...@@ -602,7 +616,7 @@ class MimeMagic
'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
'slk' => 'text/spreadsheet', 'slk' => 'text/spreadsheet',
'smaf' => 'application/x-smaf', 'smaf' => 'application/x-smaf',
'smc' => 'application/x-snes-rom', 'smc' => 'application/vnd.nintendo.snes.rom',
'smd' => 'application/vnd.stardivision.mail', 'smd' => 'application/vnd.stardivision.mail',
'smf' => 'application/vnd.stardivision.math', 'smf' => 'application/vnd.stardivision.math',
'smi' => 'application/smil', 'smi' => 'application/smil',
...@@ -614,10 +628,10 @@ class MimeMagic ...@@ -614,10 +628,10 @@ class MimeMagic
'spc' => 'application/x-pkcs7-certificates', 'spc' => 'application/x-pkcs7-certificates',
'spd' => 'application/x-font-speedo', 'spd' => 'application/x-font-speedo',
'spec' => 'text/x-rpm-spec', 'spec' => 'text/x-rpm-spec',
'spl' => 'application/x-shockwave-flash', 'spl' => 'application/vnd.adobe.flash.movie',
'spm' => 'application/x-source-rpm', 'spm' => 'application/x-source-rpm',
'spx' => 'audio/x-speex', 'spx' => 'audio/x-speex',
'sql' => 'text/x-sql', 'sql' => 'application/sql',
'sr2' => 'image/x-sony-sr2', 'sr2' => 'image/x-sony-sr2',
'src' => 'application/x-wais-source', 'src' => 'application/x-wais-source',
'src.rpm' => 'application/x-source-rpm', 'src.rpm' => 'application/x-source-rpm',
...@@ -639,7 +653,7 @@ class MimeMagic ...@@ -639,7 +653,7 @@ class MimeMagic
'svg' => 'image/svg+xml', 'svg' => 'image/svg+xml',
'svgz' => 'image/svg+xml-compressed', 'svgz' => 'image/svg+xml-compressed',
'svh' => 'text/x-svhdr', 'svh' => 'text/x-svhdr',
'swf' => 'application/x-shockwave-flash', 'swf' => 'application/vnd.adobe.flash.movie',
'swm' => 'application/x-ms-wim', 'swm' => 'application/x-ms-wim',
'sxc' => 'application/vnd.sun.xml.calc', 'sxc' => 'application/vnd.sun.xml.calc',
'sxd' => 'application/vnd.sun.xml.draw', 'sxd' => 'application/vnd.sun.xml.draw',
...@@ -648,7 +662,7 @@ class MimeMagic ...@@ -648,7 +662,7 @@ class MimeMagic
'sxm' => 'application/vnd.sun.xml.math', 'sxm' => 'application/vnd.sun.xml.math',
'sxw' => 'application/vnd.sun.xml.writer', 'sxw' => 'application/vnd.sun.xml.writer',
'sylk' => 'text/spreadsheet', 'sylk' => 'text/spreadsheet',
't' => 'text/troff', 't' => 'application/x-perl',
't2t' => 'text/x-txt2tags', 't2t' => 'text/x-txt2tags',
'tar' => 'application/x-tar', 'tar' => 'application/x-tar',
'tar.bz' => 'application/x-bzip-compressed-tar', 'tar.bz' => 'application/x-bzip-compressed-tar',
...@@ -732,6 +746,7 @@ class MimeMagic ...@@ -732,6 +746,7 @@ class MimeMagic
'wcm' => 'application/vnd.ms-works', 'wcm' => 'application/vnd.ms-works',
'wdb' => 'application/vnd.ms-works', 'wdb' => 'application/vnd.ms-works',
'webm' => 'video/webm', 'webm' => 'video/webm',
'webp' => 'image/webp',
'wim' => 'application/x-ms-wim', 'wim' => 'application/x-ms-wim',
'wk1' => 'application/vnd.lotus-1-2-3', 'wk1' => 'application/vnd.lotus-1-2-3',
'wk3' => 'application/vnd.lotus-1-2-3', 'wk3' => 'application/vnd.lotus-1-2-3',
...@@ -809,6 +824,7 @@ class MimeMagic ...@@ -809,6 +824,7 @@ class MimeMagic
'zabw' => 'application/x-abiword', 'zabw' => 'application/x-abiword',
'zip' => 'application/zip', 'zip' => 'application/zip',
'zoo' => 'application/x-zoo', 'zoo' => 'application/x-zoo',
'zsav' => 'application/x-spss-sav',
} }
# @private # @private
# :nodoc: # :nodoc:
...@@ -824,7 +840,8 @@ class MimeMagic ...@@ -824,7 +840,8 @@ class MimeMagic
'application/gnunet-directory' => [%w(gnd), %w(), 'GNUnet search file'], 'application/gnunet-directory' => [%w(gnd), %w(), 'GNUnet search file'],
'application/gzip' => [%w(gz), %w(), 'Gzip archive'], 'application/gzip' => [%w(gz), %w(), 'Gzip archive'],
'application/illustrator' => [%w(ai), %w(), 'Adobe Illustrator document'], 'application/illustrator' => [%w(ai), %w(), 'Adobe Illustrator document'],
'application/javascript' => [%w(js), %w(text/x-csrc), 'JavaScript program'], 'application/javascript' => [%w(js jsm), %w(application/ecmascript), 'JavaScript program'],
'application/json' => [%w(json), %w(application/javascript), 'JSON document'],
'application/mathematica' => [%w(nb), %w(text/plain), 'Mathematica Notebook'], 'application/mathematica' => [%w(nb), %w(text/plain), 'Mathematica Notebook'],
'application/mathml+xml' => [%w(mml), %w(application/xml), 'MathML document'], 'application/mathml+xml' => [%w(mml), %w(application/xml), 'MathML document'],
'application/mbox' => [%w(mbox), %w(text/plain), 'mailbox file'], 'application/mbox' => [%w(mbox), %w(text/plain), 'mailbox file'],
...@@ -839,7 +856,8 @@ class MimeMagic ...@@ -839,7 +856,8 @@ class MimeMagic
'application/oxps' => [%w(oxps xps), %w(application/zip), 'XPS document'], 'application/oxps' => [%w(oxps xps), %w(application/zip), 'XPS document'],
'application/pdf' => [%w(pdf), %w(), 'PDF document'], 'application/pdf' => [%w(pdf), %w(), 'PDF document'],
'application/pgp-encrypted' => [%w(asc gpg pgp), %w(), 'PGP/MIME-encrypted message header'], 'application/pgp-encrypted' => [%w(asc gpg pgp), %w(), 'PGP/MIME-encrypted message header'],
'application/pgp-keys' => [%w(asc pkr skr), %w(text/plain), 'PGP keys'], 'application/pgp-keys' => [%w(asc gpg pgp pkr skr), %w(text/plain), 'PGP keys'],
'application/pgp-signature' => [%w(asc gpg pgp sig), %w(text/plain), 'detached OpenPGP signature'],
'application/pkcs10' => [%w(p10), %w(), 'PKCS#10 certification request'], 'application/pkcs10' => [%w(p10), %w(), 'PKCS#10 certification request'],
'application/pkcs7-mime' => [%w(p7c p7m), %w(), 'PKCS#7 Message or Certificate'], 'application/pkcs7-mime' => [%w(p7c p7m), %w(), 'PKCS#7 Message or Certificate'],
'application/pkcs7-signature' => [%w(p7s), %w(text/plain), 'detached S/MIME signature'], 'application/pkcs7-signature' => [%w(p7s), %w(text/plain), 'detached S/MIME signature'],
...@@ -856,6 +874,8 @@ class MimeMagic ...@@ -856,6 +874,8 @@ class MimeMagic
'application/sdp' => [%w(sdp), %w(), 'SDP multicast stream file'], 'application/sdp' => [%w(sdp), %w(), 'SDP multicast stream file'],
'application/sieve' => [%w(siv), %w(application/xml), 'Sieve mail filter script'], 'application/sieve' => [%w(siv), %w(application/xml), 'Sieve mail filter script'],
'application/smil' => [%w(kino smi smil sml), %w(application/xml), 'SMIL document'], 'application/smil' => [%w(kino smi smil sml), %w(application/xml), 'SMIL document'],
'application/sql' => [%w(sql), %w(text/plain), 'SQL code'],
'application/vnd.adobe.flash.movie' => [%w(spl swf), %w(), 'Shockwave Flash file'],
'application/vnd.android.package-archive' => [%w(apk), %w(application/x-java-archive), 'Android package'], 'application/vnd.android.package-archive' => [%w(apk), %w(application/x-java-archive), 'Android package'],
'application/vnd.apple.mpegurl' => [%w(m3u m3u8), %w(), 'HTTP Live Streaming playlist'], 'application/vnd.apple.mpegurl' => [%w(m3u m3u8), %w(), 'HTTP Live Streaming playlist'],
'application/vnd.corel-draw' => [%w(cdr), %w(), 'Corel Draw drawing'], 'application/vnd.corel-draw' => [%w(cdr), %w(), 'Corel Draw drawing'],
...@@ -869,6 +889,7 @@ class MimeMagic ...@@ -869,6 +889,7 @@ class MimeMagic
'application/vnd.lotus-wordpro' => [%w(lwp), %w(), 'Lotus Word Pro'], 'application/vnd.lotus-wordpro' => [%w(lwp), %w(), 'Lotus Word Pro'],
'application/vnd.mozilla.xul+xml' => [%w(xul), %w(application/xml), 'XUL interface document'], 'application/vnd.mozilla.xul+xml' => [%w(xul), %w(application/xml), 'XUL interface document'],
'application/vnd.ms-access' => [%w(mdb), %w(), 'JET database'], 'application/vnd.ms-access' => [%w(mdb), %w(), 'JET database'],
'application/vnd.ms-asf' => [%w(asf), %w(), 'ASF video'],
'application/vnd.ms-cab-compressed' => [%w(cab), %w(), 'Microsoft Cabinet archive'], 'application/vnd.ms-cab-compressed' => [%w(cab), %w(), 'Microsoft Cabinet archive'],
'application/vnd.ms-excel' => [%w(xla xlc xld xll xlm xls xlt xlw), %w(), 'Excel spreadsheet'], 'application/vnd.ms-excel' => [%w(xla xlc xld xll xlm xls xlt xlw), %w(), 'Excel spreadsheet'],
'application/vnd.ms-excel.addin.macroEnabled.12' => [%w(xlam), %w(application/vnd.openxmlformats-officedocument.spreadsheetml.sheet), 'Excel add-in'], 'application/vnd.ms-excel.addin.macroEnabled.12' => [%w(xlam), %w(application/vnd.openxmlformats-officedocument.spreadsheetml.sheet), 'Excel add-in'],
...@@ -882,11 +903,13 @@ class MimeMagic ...@@ -882,11 +903,13 @@ class MimeMagic
'application/vnd.ms-powerpoint.slide.macroEnabled.12' => [%w(sldm), %w(application/vnd.openxmlformats-officedocument.presentationml.slide), 'PowerPoint macro-enabled slide'], 'application/vnd.ms-powerpoint.slide.macroEnabled.12' => [%w(sldm), %w(application/vnd.openxmlformats-officedocument.presentationml.slide), 'PowerPoint macro-enabled slide'],
'application/vnd.ms-powerpoint.slideshow.macroEnabled.12' => [%w(ppsm), %w(application/vnd.openxmlformats-officedocument.presentationml.slideshow), 'PowerPoint macro-enabled presentation'], 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12' => [%w(ppsm), %w(application/vnd.openxmlformats-officedocument.presentationml.slideshow), 'PowerPoint macro-enabled presentation'],
'application/vnd.ms-powerpoint.template.macroEnabled.12' => [%w(potm), %w(application/vnd.openxmlformats-officedocument.presentationml.template), 'PowerPoint macro-enabled presentation template'], 'application/vnd.ms-powerpoint.template.macroEnabled.12' => [%w(potm), %w(application/vnd.openxmlformats-officedocument.presentationml.template), 'PowerPoint macro-enabled presentation template'],
'application/vnd.ms-publisher' => [%w(pub), %w(application/x-ole-storage), 'Microsoft Publisher document'],
'application/vnd.ms-tnef' => [%w(tnef tnf), %w(), 'TNEF message'], 'application/vnd.ms-tnef' => [%w(tnef tnf), %w(), 'TNEF message'],
'application/vnd.ms-word.document.macroEnabled.12' => [%w(docm), %w(application/vnd.openxmlformats-officedocument.wordprocessingml.document), 'Word macro-enabled document'], 'application/vnd.ms-word.document.macroEnabled.12' => [%w(docm), %w(application/vnd.openxmlformats-officedocument.wordprocessingml.document), 'Word macro-enabled document'],
'application/vnd.ms-word.template.macroEnabled.12' => [%w(dotm), %w(application/vnd.openxmlformats-officedocument.wordprocessingml.template), 'Word macro-enabled document template'], 'application/vnd.ms-word.template.macroEnabled.12' => [%w(dotm), %w(application/vnd.openxmlformats-officedocument.wordprocessingml.template), 'Word macro-enabled document template'],
'application/vnd.ms-works' => [%w(wcm wdb wks wps xlr), %w(application/x-ole-storage), 'Microsoft Works document'], 'application/vnd.ms-works' => [%w(wcm wdb wks wps xlr), %w(application/x-ole-storage), 'Microsoft Works document'],
'application/vnd.ms-wpl' => [%w(wpl), %w(), 'WPL playlist'], 'application/vnd.ms-wpl' => [%w(wpl), %w(), 'WPL playlist'],
'application/vnd.nintendo.snes.rom' => [%w(sfc smc), %w(), 'Super NES ROM'],
'application/vnd.oasis.opendocument.chart' => [%w(odc), %w(application/zip), 'ODC chart'], 'application/vnd.oasis.opendocument.chart' => [%w(odc), %w(application/zip), 'ODC chart'],
'application/vnd.oasis.opendocument.chart-template' => [%w(otc), %w(application/zip), 'ODC template'], 'application/vnd.oasis.opendocument.chart-template' => [%w(otc), %w(application/zip), 'ODC template'],
'application/vnd.oasis.opendocument.database' => [%w(odb), %w(application/zip), 'ODB database'], 'application/vnd.oasis.opendocument.database' => [%w(odb), %w(application/zip), 'ODB database'],
...@@ -966,7 +989,7 @@ class MimeMagic ...@@ -966,7 +989,7 @@ class MimeMagic
'application/x-cbt' => [%w(cbt), %w(application/x-tar), 'comic book archive'], 'application/x-cbt' => [%w(cbt), %w(application/x-tar), 'comic book archive'],
'application/x-cbz' => [%w(cbz), %w(application/zip), 'comic book archive'], 'application/x-cbz' => [%w(cbz), %w(application/zip), 'comic book archive'],
'application/x-ccmx' => [%w(ccmx), %w(text/plain), 'CCMX color correction file'], 'application/x-ccmx' => [%w(ccmx), %w(text/plain), 'CCMX color correction file'],
'application/x-cd-image' => [%w(iso iso9660), %w(), 'raw CD image'], 'application/x-cd-image' => [%w(iso iso9660), %w(application/x-raw-disk-image), 'raw CD image'],
'application/x-cdrdao-toc' => [%w(toc), %w(text/plain), 'CD Table Of Contents'], 'application/x-cdrdao-toc' => [%w(toc), %w(text/plain), 'CD Table Of Contents'],
'application/x-chess-pgn' => [%w(pgn), %w(text/plain), 'PGN chess game notation'], 'application/x-chess-pgn' => [%w(pgn), %w(text/plain), 'PGN chess game notation'],
'application/x-cisco-vpn-settings' => [%w(pcf), %w(), 'Cisco VPN Settings'], 'application/x-cisco-vpn-settings' => [%w(pcf), %w(), 'Cisco VPN Settings'],
...@@ -1000,6 +1023,7 @@ class MimeMagic ...@@ -1000,6 +1023,7 @@ class MimeMagic
'application/x-font-ttx' => [%w(ttx), %w(text/xml), 'TrueType XML font'], 'application/x-font-ttx' => [%w(ttx), %w(text/xml), 'TrueType XML font'],
'application/x-font-type1' => [%w(gsf pfa pfb), %w(application/postscript), 'Postscript type-1 font'], 'application/x-font-type1' => [%w(gsf pfa pfb), %w(application/postscript), 'Postscript type-1 font'],
'application/x-gameboy-rom' => [%w(gb), %w(), 'Game Boy ROM'], 'application/x-gameboy-rom' => [%w(gb), %w(), 'Game Boy ROM'],
'application/x-gamecube-rom' => [%w(iso), %w(), 'GameCube disc image'],
'application/x-gba-rom' => [%w(gba), %w(), 'Game Boy Advance ROM'], 'application/x-gba-rom' => [%w(gba), %w(), 'Game Boy Advance ROM'],
'application/x-gedcom' => [%w(ged gedcom), %w(), 'GEDCOM family history'], 'application/x-gedcom' => [%w(ged gedcom), %w(), 'GEDCOM family history'],
'application/x-genesis-rom' => [%w(gen), %w(), 'Genesis ROM'], 'application/x-genesis-rom' => [%w(gen), %w(), 'Genesis ROM'],
...@@ -1020,6 +1044,7 @@ class MimeMagic ...@@ -1020,6 +1044,7 @@ class MimeMagic
'application/x-hwt' => [%w(hwt), %w(), 'Haansoft Hangul document template'], 'application/x-hwt' => [%w(hwt), %w(), 'Haansoft Hangul document template'],
'application/x-ica' => [%w(ica), %w(text/plain), 'Citrix ICA settings file'], 'application/x-ica' => [%w(ica), %w(text/plain), 'Citrix ICA settings file'],
'application/x-it87' => [%w(it87), %w(text/plain), 'IT 8.7 color calibration file'], 'application/x-it87' => [%w(it87), %w(text/plain), 'IT 8.7 color calibration file'],
'application/x-iwork-keynote-sffkey' => [%w(key), %w(application/zip), 'Apple Keynote 5 presentation'],
'application/x-java' => [%w(class), %w(), 'Java class'], 'application/x-java' => [%w(class), %w(), 'Java class'],
'application/x-java-archive' => [%w(jar), %w(application/zip), 'Java archive'], 'application/x-java-archive' => [%w(jar), %w(application/zip), 'Java archive'],
'application/x-java-jce-keystore' => [%w(jceks), %w(), 'Java JCE keystore'], 'application/x-java-jce-keystore' => [%w(jceks), %w(), 'Java JCE keystore'],
...@@ -1048,6 +1073,7 @@ class MimeMagic ...@@ -1048,6 +1073,7 @@ class MimeMagic
'application/x-lrzip' => [%w(lrz), %w(), 'Lrzip archive'], 'application/x-lrzip' => [%w(lrz), %w(), 'Lrzip archive'],
'application/x-lrzip-compressed-tar' => [%w(tar.lrz tlrz), %w(application/x-lrzip), 'Tar archive (lrzip-compressed)'], 'application/x-lrzip-compressed-tar' => [%w(tar.lrz tlrz), %w(application/x-lrzip), 'Tar archive (lrzip-compressed)'],
'application/x-lyx' => [%w(lyx), %w(text/plain), 'LyX document'], 'application/x-lyx' => [%w(lyx), %w(text/plain), 'LyX document'],
'application/x-lz4' => [%w(lz4), %w(), 'LZ4 archive'],
'application/x-lzip' => [%w(lz), %w(), 'Lzip archive'], 'application/x-lzip' => [%w(lz), %w(), 'Lzip archive'],
'application/x-lzma' => [%w(lzma), %w(), 'LZMA archive'], 'application/x-lzma' => [%w(lzma), %w(), 'LZMA archive'],
'application/x-lzma-compressed-tar' => [%w(tar.lzma tlz), %w(application/x-lzma), 'Tar archive (LZMA-compressed)'], 'application/x-lzma-compressed-tar' => [%w(tar.lzma tlz), %w(application/x-lzma), 'Tar archive (LZMA-compressed)'],
...@@ -1068,14 +1094,15 @@ class MimeMagic ...@@ -1068,14 +1094,15 @@ class MimeMagic
'application/x-navi-animation' => [%w(ani), %w(), 'Windows animated cursor'], 'application/x-navi-animation' => [%w(ani), %w(), 'Windows animated cursor'],
'application/x-nes-rom' => [%w(nes), %w(), 'NES ROM'], 'application/x-nes-rom' => [%w(nes), %w(), 'NES ROM'],
'application/x-netcdf' => [%w(cdf nc), %w(), 'Unidata NetCDF document'], 'application/x-netcdf' => [%w(cdf nc), %w(), 'Unidata NetCDF document'],
'application/x-netshow-channel' => [%w(nsc), %w(video/x-ms-asf), 'Windows Media Station file'], 'application/x-netshow-channel' => [%w(nsc), %w(application/vnd.ms-asf), 'Windows Media Station file'],
'application/x-nintendo-ds-rom' => [%w(nds), %w(), 'Nintendo DS ROM'], 'application/x-nintendo-ds-rom' => [%w(nds), %w(), 'Nintendo DS ROM'],
'application/x-nzb' => [%w(nzb), %w(application/xml), 'NewzBin usenet index'], 'application/x-nzb' => [%w(nzb), %w(application/xml), 'NewzBin usenet index'],
'application/x-object' => [%w(o), %w(), 'object code'], 'application/x-object' => [%w(o), %w(), 'object code'],
'application/x-oleo' => [%w(oleo), %w(), 'GNU Oleo spreadsheet'], 'application/x-oleo' => [%w(oleo), %w(), 'GNU Oleo spreadsheet'],
'application/x-pak' => [%w(pak), %w(), 'PAK archive'], 'application/x-pak' => [%w(pak), %w(), 'PAK archive'],
'application/x-par2' => [%w(par2 par2), %w(), 'Parchive archive'], 'application/x-par2' => [%w(par2 par2), %w(), 'Parchive archive'],
'application/x-perl' => [%w(al perl pl pm), %w(application/x-executable text/plain), 'Perl script'], 'application/x-pc-engine-rom' => [%w(pce), %w(), 'PC Engine ROM'],
'application/x-perl' => [%w(al perl pl pl pm pod t), %w(application/x-executable text/plain), 'Perl script'],
'application/x-php' => [%w(php php3 php4 php5 phps), %w(text/plain), 'PHP script'], 'application/x-php' => [%w(php php3 php4 php5 phps), %w(text/plain), 'PHP script'],
'application/x-pkcs12' => [%w(p12 pfx), %w(), 'PKCS#12 certificate bundle'], 'application/x-pkcs12' => [%w(p12 pfx), %w(), 'PKCS#12 certificate bundle'],
'application/x-pkcs7-certificates' => [%w(p7b spc), %w(), 'PKCS#7 certificate bundle'], 'application/x-pkcs7-certificates' => [%w(p7b spc), %w(), 'PKCS#7 certificate bundle'],
...@@ -1088,6 +1115,8 @@ class MimeMagic ...@@ -1088,6 +1115,8 @@ class MimeMagic
'application/x-quicktime-media-link' => [%w(qtl), %w(video/quicktime), 'QuickTime metalink playlist'], 'application/x-quicktime-media-link' => [%w(qtl), %w(video/quicktime), 'QuickTime metalink playlist'],
'application/x-qw' => [%w(qif), %w(), 'Quicken document'], 'application/x-qw' => [%w(qif), %w(), 'Quicken document'],
'application/x-rar' => [%w(rar), %w(), 'RAR archive'], 'application/x-rar' => [%w(rar), %w(), 'RAR archive'],
'application/x-raw-disk-image' => [%w(img raw-disk-image), %w(), 'Raw disk image'],
'application/x-raw-disk-image-xz-compressed' => [%w(img.xz raw-disk-image.xz), %w(application/x-xz), 'Raw disk image (XZ-compressed)'],
'application/x-rpm' => [%w(rpm), %w(), 'RPM package'], 'application/x-rpm' => [%w(rpm), %w(), 'RPM package'],
'application/x-ruby' => [%w(rb), %w(application/x-executable text/plain), 'Ruby script'], 'application/x-ruby' => [%w(rb), %w(application/x-executable text/plain), 'Ruby script'],
'application/x-sami' => [%w(sami smi), %w(text/plain), 'SAMI subtitles'], 'application/x-sami' => [%w(sami smi), %w(text/plain), 'SAMI subtitles'],
...@@ -1095,15 +1124,13 @@ class MimeMagic ...@@ -1095,15 +1124,13 @@ class MimeMagic
'application/x-shared-library-la' => [%w(la), %w(text/plain), 'libtool shared library'], 'application/x-shared-library-la' => [%w(la), %w(text/plain), 'libtool shared library'],
'application/x-sharedlib' => [%w(so), %w(), 'shared library'], 'application/x-sharedlib' => [%w(so), %w(), 'shared library'],
'application/x-shellscript' => [%w(sh), %w(application/x-executable text/plain), 'shell script'], 'application/x-shellscript' => [%w(sh), %w(application/x-executable text/plain), 'shell script'],
'application/x-shockwave-flash' => [%w(spl swf), %w(), 'Shockwave Flash file'],
'application/x-shorten' => [%w(shn), %w(), 'Shorten audio'], 'application/x-shorten' => [%w(shn), %w(), 'Shorten audio'],
'application/x-siag' => [%w(siag), %w(), 'Siag spreadsheet'], 'application/x-siag' => [%w(siag), %w(), 'Siag spreadsheet'],
'application/x-smaf' => [%w(mmf smaf), %w(), 'SMAF audio'], 'application/x-smaf' => [%w(mmf smaf), %w(), 'SMAF audio'],
'application/x-sms-rom' => [%w(gg sms), %w(), 'Sega Master System/Game Gear ROM'], 'application/x-sms-rom' => [%w(gg sms), %w(), 'Sega Master System/Game Gear ROM'],
'application/x-snes-rom' => [%w(smc), %w(), 'Super NES ROM'],
'application/x-source-rpm' => [%w(spm src.rpm), %w(application/x-rpm), 'Source RPM package'], 'application/x-source-rpm' => [%w(spm src.rpm), %w(application/x-rpm), 'Source RPM package'],
'application/x-spss-por' => [%w(por), %w(), 'SPSS Portable Data File'], 'application/x-spss-por' => [%w(por), %w(), 'SPSS Portable Data File'],
'application/x-spss-sav' => [%w(sav), %w(), 'SPSS Data File'], 'application/x-spss-sav' => [%w(sav zsav), %w(), 'SPSS Data File'],
'application/x-stuffit' => [%w(sit), %w(), 'StuffIt archive'], 'application/x-stuffit' => [%w(sit), %w(), 'StuffIt archive'],
'application/x-subrip' => [%w(srt), %w(text/plain), 'SubRip subtitles'], 'application/x-subrip' => [%w(srt), %w(text/plain), 'SubRip subtitles'],
'application/x-sv4cpio' => [%w(sv4cpio), %w(), 'SV4 CPIO archive'], 'application/x-sv4cpio' => [%w(sv4cpio), %w(), 'SV4 CPIO archive'],
...@@ -1122,6 +1149,7 @@ class MimeMagic ...@@ -1122,6 +1149,7 @@ class MimeMagic
'application/x-ufraw' => [%w(ufraw), %w(text/xml), 'UFRaw ID image'], 'application/x-ufraw' => [%w(ufraw), %w(text/xml), 'UFRaw ID image'],
'application/x-ustar' => [%w(ustar), %w(), 'Ustar archive'], 'application/x-ustar' => [%w(ustar), %w(), 'Ustar archive'],
'application/x-wais-source' => [%w(src), %w(), 'WAIS source code'], 'application/x-wais-source' => [%w(src), %w(), 'WAIS source code'],
'application/x-wii-rom' => [%w(iso), %w(), 'Wii disc image'],
'application/x-windows-themepack' => [%w(themepack), %w(application/vnd.ms-cab-compressed), 'Microsoft Windows theme pack'], 'application/x-windows-themepack' => [%w(themepack), %w(application/vnd.ms-cab-compressed), 'Microsoft Windows theme pack'],
'application/x-wpg' => [%w(wpg), %w(), 'WordPerfect/Drawperfect image'], 'application/x-wpg' => [%w(wpg), %w(), 'WordPerfect/Drawperfect image'],
'application/x-wwf' => [%w(wwf), %w(application/pdf), 'WWF document'], 'application/x-wwf' => [%w(wwf), %w(application/pdf), 'WWF document'],
...@@ -1133,6 +1161,7 @@ class MimeMagic ...@@ -1133,6 +1161,7 @@ class MimeMagic
'application/x-xz-compressed-tar' => [%w(tar.xz txz), %w(application/x-xz), 'Tar archive (XZ-compressed)'], 'application/x-xz-compressed-tar' => [%w(tar.xz txz), %w(application/x-xz), 'Tar archive (XZ-compressed)'],
'application/x-xzpdf' => [%w(pdf.xz), %w(application/x-xz), 'PDF document (XZ-compressed)'], 'application/x-xzpdf' => [%w(pdf.xz), %w(application/x-xz), 'PDF document (XZ-compressed)'],
'application/x-yaml' => [%w(yaml yml), %w(text/plain), 'YAML document'], 'application/x-yaml' => [%w(yaml yml), %w(text/plain), 'YAML document'],
'application/x-zip-compressed-fb2' => [%w(fb2.zip), %w(application/zip), 'Compressed FictionBook document'],
'application/x-zoo' => [%w(zoo), %w(), 'Zoo archive'], 'application/x-zoo' => [%w(zoo), %w(), 'Zoo archive'],
'application/xhtml+xml' => [%w(xhtml), %w(application/xml), 'XHTML page'], 'application/xhtml+xml' => [%w(xhtml), %w(application/xml), 'XHTML page'],
'application/xml' => [%w(rng xbl xml xsd), %w(text/plain), 'XML document'], 'application/xml' => [%w(rng xbl xml xsd), %w(text/plain), 'XML document'],
...@@ -1152,7 +1181,7 @@ class MimeMagic ...@@ -1152,7 +1181,7 @@ class MimeMagic
'audio/mp2' => [%w(mp2), %w(), 'MP2 audio'], 'audio/mp2' => [%w(mp2), %w(), 'MP2 audio'],
'audio/mp4' => [%w(f4a m4a), %w(), 'MPEG-4 audio'], 'audio/mp4' => [%w(f4a m4a), %w(), 'MPEG-4 audio'],
'audio/mpeg' => [%w(mp3 mpga), %w(), 'MP3 audio'], 'audio/mpeg' => [%w(mp3 mpga), %w(), 'MP3 audio'],
'audio/ogg' => [%w(oga ogg), %w(application/ogg), 'Ogg Audio'], 'audio/ogg' => [%w(oga ogg opus), %w(application/ogg), 'Ogg Audio'],
'audio/prs.sid' => [%w(psid sid), %w(), 'Commodore 64 audio'], 'audio/prs.sid' => [%w(psid sid), %w(), 'Commodore 64 audio'],
'audio/vnd.dts' => [%w(dts), %w(), 'DTS audio'], 'audio/vnd.dts' => [%w(dts), %w(), 'DTS audio'],
'audio/vnd.dts.hd' => [%w(dtshd), %w(audio/vnd.dts), 'DTSHD audio'], 'audio/vnd.dts.hd' => [%w(dtshd), %w(audio/vnd.dts), 'DTSHD audio'],
...@@ -1172,8 +1201,9 @@ class MimeMagic ...@@ -1172,8 +1201,9 @@ class MimeMagic
'audio/x-mod' => [%w(669 m15 med mod mtm ult uni), %w(), 'Amiga SoundTracker audio'], 'audio/x-mod' => [%w(669 m15 med mod mtm ult uni), %w(), 'Amiga SoundTracker audio'],
'audio/x-mpegurl' => [%w(m3u m3u8 vlc), %w(text/plain), 'MP3 audio (streamed)'], 'audio/x-mpegurl' => [%w(m3u m3u8 vlc), %w(text/plain), 'MP3 audio (streamed)'],
'audio/x-ms-asx' => [%w(asx wax wmx wvx), %w(), 'Microsoft ASX playlist'], 'audio/x-ms-asx' => [%w(asx wax wmx wvx), %w(), 'Microsoft ASX playlist'],
'audio/x-ms-wma' => [%w(wma), %w(video/x-ms-asf), 'Windows Media audio'], 'audio/x-ms-wma' => [%w(wma), %w(application/vnd.ms-asf), 'Windows Media audio'],
'audio/x-musepack' => [%w(mp+ mpc mpp), %w(), 'Musepack audio'], 'audio/x-musepack' => [%w(mp+ mpc mpp), %w(), 'Musepack audio'],
'audio/x-opus+ogg' => [%w(opus), %w(audio/ogg), 'Opus audio'],
'audio/x-psf' => [%w(psf), %w(), 'PSF audio'], 'audio/x-psf' => [%w(psf), %w(), 'PSF audio'],
'audio/x-psflib' => [%w(psflib), %w(audio/x-psf), 'PSFlib audio library'], 'audio/x-psflib' => [%w(psflib), %w(audio/x-psf), 'PSFlib audio library'],
'audio/x-s3m' => [%w(s3m), %w(), 'Scream Tracker 3 audio'], 'audio/x-s3m' => [%w(s3m), %w(), 'Scream Tracker 3 audio'],
...@@ -1196,7 +1226,7 @@ class MimeMagic ...@@ -1196,7 +1226,7 @@ class MimeMagic
'image/fits' => [%w(fits), %w(), 'FITS document'], 'image/fits' => [%w(fits), %w(), 'FITS document'],
'image/gif' => [%w(gif), %w(), 'GIF image'], 'image/gif' => [%w(gif), %w(), 'GIF image'],
'image/ief' => [%w(ief), %w(), 'IEF image'], 'image/ief' => [%w(ief), %w(), 'IEF image'],
'image/jp2' => [%w(j2k jp2 jpc jpf jpx), %w(), 'JPEG-2000 image'], 'image/jp2' => [%w(jp2 jpf jpx), %w(), 'JPEG-2000 image'],
'image/jpeg' => [%w(jpe jpeg jpg), %w(), 'JPEG image'], 'image/jpeg' => [%w(jpe jpeg jpg), %w(), 'JPEG image'],
'image/openraster' => [%w(ora), %w(), 'OpenRaster archiving image'], 'image/openraster' => [%w(ora), %w(), 'OpenRaster archiving image'],
'image/png' => [%w(png), %w(), 'PNG image'], 'image/png' => [%w(png), %w(), 'PNG image'],
...@@ -1212,6 +1242,7 @@ class MimeMagic ...@@ -1212,6 +1242,7 @@ class MimeMagic
'image/vnd.ms-modi' => [%w(mdi), %w(), 'Microsoft Document Imaging format'], 'image/vnd.ms-modi' => [%w(mdi), %w(), 'Microsoft Document Imaging format'],
'image/vnd.rn-realpix' => [%w(rp), %w(), 'RealPix document'], 'image/vnd.rn-realpix' => [%w(rp), %w(), 'RealPix document'],
'image/vnd.wap.wbmp' => [%w(wbmp), %w(), 'WBMP image'], 'image/vnd.wap.wbmp' => [%w(wbmp), %w(), 'WBMP image'],
'image/webp' => [%w(webp), %w(), 'WebP image'],
'image/x-3ds' => [%w(3ds), %w(), '3D Studio image'], 'image/x-3ds' => [%w(3ds), %w(), '3D Studio image'],
'image/x-adobe-dng' => [%w(dng), %w(image/tiff image/x-dcraw), 'Adobe DNG negative'], 'image/x-adobe-dng' => [%w(dng), %w(image/tiff image/x-dcraw), 'Adobe DNG negative'],
'image/x-apple-ios-png' => [%w(png), %w(), 'Apple optimised PNG image'], 'image/x-apple-ios-png' => [%w(png), %w(), 'Apple optimised PNG image'],
...@@ -1271,7 +1302,7 @@ class MimeMagic ...@@ -1271,7 +1302,7 @@ class MimeMagic
'model/vrml' => [%w(vrm vrml wrl), %w(text/plain), 'VRML document'], 'model/vrml' => [%w(vrm vrml wrl), %w(text/plain), 'VRML document'],
'text/cache-manifest' => [%w(manifest), %w(text/plain), 'Web application cache manifest'], 'text/cache-manifest' => [%w(manifest), %w(text/plain), 'Web application cache manifest'],
'text/calendar' => [%w(ics vcs), %w(text/plain), 'VCS/ICS calendar'], 'text/calendar' => [%w(ics vcs), %w(text/plain), 'VCS/ICS calendar'],
'text/css' => [%w(css cssl), %w(text/x-csrc), 'CSS stylesheet'], 'text/css' => [%w(css), %w(text/plain), 'CSS stylesheet'],
'text/csv' => [%w(csv), %w(text/plain), 'CSV document'], 'text/csv' => [%w(csv), %w(text/plain), 'CSV document'],
'text/html' => [%w(htm html), %w(text/plain), 'HTML document'], 'text/html' => [%w(htm html), %w(text/plain), 'HTML document'],
'text/plain' => [%w(asc txt), %w(), 'plain text document'], 'text/plain' => [%w(asc txt), %w(), 'plain text document'],
...@@ -1337,14 +1368,13 @@ class MimeMagic ...@@ -1337,14 +1368,13 @@ class MimeMagic
'text/x-opml+xml' => [%w(opml), %w(application/xml), 'OPML syndication feed'], 'text/x-opml+xml' => [%w(opml), %w(application/xml), 'OPML syndication feed'],
'text/x-pascal' => [%w(p pas), %w(text/plain), 'Pascal source code'], 'text/x-pascal' => [%w(p pas), %w(text/plain), 'Pascal source code'],
'text/x-patch' => [%w(diff patch), %w(text/plain), 'differences between files'], 'text/x-patch' => [%w(diff patch), %w(text/plain), 'differences between files'],
'text/x-python' => [%w(py wsgi), %w(application/x-executable text/plain), 'Python script'], 'text/x-python' => [%w(py pyx wsgi), %w(application/x-executable text/plain), 'Python script'],
'text/x-qml' => [%w(qml), %w(), 'Qt Markup Language file'], 'text/x-qml' => [%w(qml), %w(), 'Qt Markup Language file'],
'text/x-reject' => [%w(rej), %w(text/plain), 'rejected patch'], 'text/x-reject' => [%w(rej), %w(text/plain), 'rejected patch'],
'text/x-rpm-spec' => [%w(spec), %w(text/plain), 'RPM spec file'], 'text/x-rpm-spec' => [%w(spec), %w(text/plain), 'RPM spec file'],
'text/x-scala' => [%w(scala), %w(text/plain), 'Scala source code'], 'text/x-scala' => [%w(scala), %w(text/plain), 'Scala source code'],
'text/x-scheme' => [%w(scm ss), %w(text/plain), 'Scheme source code'], 'text/x-scheme' => [%w(scm ss), %w(text/plain), 'Scheme source code'],
'text/x-setext' => [%w(etx), %w(text/plain), 'Setext document'], 'text/x-setext' => [%w(etx), %w(text/plain), 'Setext document'],
'text/x-sql' => [%w(sql), %w(text/plain), 'SQL code'],
'text/x-ssa' => [%w(ass ssa), %w(text/plain), 'SSA subtitles'], 'text/x-ssa' => [%w(ass ssa), %w(text/plain), 'SSA subtitles'],
'text/x-subviewer' => [%w(sub), %w(text/plain), 'SubViewer subtitles'], 'text/x-subviewer' => [%w(sub), %w(text/plain), 'SubViewer subtitles'],
'text/x-svhdr' => [%w(svh), %w(text/x-verilog), 'SystemVerilog header'], 'text/x-svhdr' => [%w(svh), %w(text/x-verilog), 'SystemVerilog header'],
...@@ -1380,14 +1410,14 @@ class MimeMagic ...@@ -1380,14 +1410,14 @@ class MimeMagic
'video/x-flv' => [%w(flv), %w(), 'Flash video'], 'video/x-flv' => [%w(flv), %w(), 'Flash video'],
'video/x-javafx' => [%w(fxm), %w(video/x-flv), 'JavaFX video'], 'video/x-javafx' => [%w(fxm), %w(video/x-flv), 'JavaFX video'],
'video/x-matroska' => [%w(mkv), %w(application/x-matroska), 'Matroska video'], 'video/x-matroska' => [%w(mkv), %w(application/x-matroska), 'Matroska video'],
'video/x-matroska-3d' => [%w(mk3d), %w(application/x-matroska), 'Matroska 3D video'],
'video/x-mng' => [%w(mng), %w(), 'MNG animation'], 'video/x-mng' => [%w(mng), %w(), 'MNG animation'],
'video/x-ms-asf' => [%w(asf), %w(), 'ASF video'], 'video/x-ms-wmv' => [%w(wmv), %w(application/vnd.ms-asf), 'Windows Media video'],
'video/x-ms-wmv' => [%w(wmv), %w(video/x-ms-asf), 'Windows Media video'],
'video/x-msvideo' => [%w(avf avi divx), %w(), 'AVI video'], 'video/x-msvideo' => [%w(avf avi divx), %w(), 'AVI video'],
'video/x-nsv' => [%w(nsv), %w(), 'NullSoft video'], 'video/x-nsv' => [%w(nsv), %w(), 'NullSoft video'],
'video/x-ogm+ogg' => [%w(ogm), %w(video/ogg), 'OGM video'], 'video/x-ogm+ogg' => [%w(ogm), %w(video/ogg), 'OGM video'],
'video/x-sgi-movie' => [%w(movie), %w(), 'SGI video'], 'video/x-sgi-movie' => [%w(movie), %w(), 'SGI video'],
'video/x-theora+ogg' => [%w(ogg ogv), %w(video/ogg), 'Ogg Theora video'], 'video/x-theora+ogg' => [%w(ogg), %w(video/ogg), 'Ogg Theora video'],
'x-epoc/x-sisx-app' => [%w(sisx), %w(), 'SISX package'], 'x-epoc/x-sisx-app' => [%w(sisx), %w(), 'SISX package'],
} }
# @private # @private
...@@ -1405,7 +1435,9 @@ class MimeMagic ...@@ -1405,7 +1435,9 @@ class MimeMagic
['application/x-pak', [[0, 'PACK']]], ['application/x-pak', [[0, 'PACK']]],
['application/x-php', [[0..64, '<?php']]], ['application/x-php', [[0..64, '<?php']]],
['application/x-xliff', [[0..256, '<xliff']]], ['application/x-xliff', [[0..256, '<xliff']]],
['application/x-zip-compressed-fb2', [[0, "PK\003\004", [[30..256, '.fb2']]]]],
['audio/x-flac+ogg', [[0, 'OggS', [[28, 'fLaC']]], [0, 'OggS', [[28, "\177FLAC"]]]]], ['audio/x-flac+ogg', [[0, 'OggS', [[28, 'fLaC']]], [0, 'OggS', [[28, "\177FLAC"]]]]],
['audio/x-opus+ogg', [[0, 'OggS', [[28, 'OpusHead']]]]],
['audio/x-speex+ogg', [[0, 'OggS', [[28, 'Speex ']]]]], ['audio/x-speex+ogg', [[0, 'OggS', [[28, 'Speex ']]]]],
['audio/x-vorbis+ogg', [[0, 'OggS', [[28, "\001vorbis"]]]]], ['audio/x-vorbis+ogg', [[0, 'OggS', [[28, "\001vorbis"]]]]],
['image/svg+xml', [[0..256, '<!DOCTYPE svg'], [0..256, '<svg']]], ['image/svg+xml', [[0..256, '<!DOCTYPE svg'], [0..256, '<svg']]],
...@@ -1439,7 +1471,7 @@ class MimeMagic ...@@ -1439,7 +1471,7 @@ class MimeMagic
['audio/x-ms-asx', [[0, 'ASF '], [0..64, '<ASX'], [0..64, '<asx'], [0..64, '<Asx']]], ['audio/x-ms-asx', [[0, 'ASF '], [0..64, '<ASX'], [0..64, '<asx'], [0..64, '<Asx']]],
['application/annodex', [[0, 'OggS', [[28, "fishead\000", [[56..512, "CMML\000\000\000\000"]]]]]]], ['application/annodex', [[0, 'OggS', [[28, "fishead\000", [[56..512, "CMML\000\000\000\000"]]]]]]],
['application/dicom', [[128, 'DICM']]], ['application/dicom', [[128, 'DICM']]],
['application/epub+zip', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/epub+zip']]]]]]], ['application/epub+zip', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/epub+zip'], [43, 'application/epub+zip']]]]]]],
['application/font-woff', [[0, 'wOFF']]], ['application/font-woff', [[0, 'wOFF']]],
['application/gnunet-directory', [[0, "\211GND\r\n\032\n"]]], ['application/gnunet-directory', [[0, "\211GND\r\n\032\n"]]],
['application/gzip', [[0, "\037\213"]]], ['application/gzip', [[0, "\037\213"]]],
...@@ -1452,15 +1484,17 @@ class MimeMagic ...@@ -1452,15 +1484,17 @@ class MimeMagic
['application/pdf', [[0..1024, '%PDF-']]], ['application/pdf', [[0..1024, '%PDF-']]],
['application/pgp-encrypted', [[0, '-----BEGIN PGP MESSAGE-----']]], ['application/pgp-encrypted', [[0, '-----BEGIN PGP MESSAGE-----']]],
['application/pgp-keys', [[0, '-----BEGIN PGP PUBLIC KEY BLOCK-----'], [0, '-----BEGIN PGP PRIVATE KEY BLOCK-----'], [0, "\225\001"], [0, "\225\000"], [0, "\231\000"], [0, "\231\001"]]], ['application/pgp-keys', [[0, '-----BEGIN PGP PUBLIC KEY BLOCK-----'], [0, '-----BEGIN PGP PRIVATE KEY BLOCK-----'], [0, "\225\001"], [0, "\225\000"], [0, "\231\000"], [0, "\231\001"]]],
['application/pgp-signature', [[0, '-----BEGIN PGP SIGNED MESSAGE-----'], [0, '-----BEGIN PGP SIGNATURE-----']]], ['application/pgp-signature', [[0, '-----BEGIN PGP SIGNATURE-----']]],
['application/postscript', [[0, "\004%!"], [0, '%!']]], ['application/postscript', [[0, "\004%!"], [0, '%!']]],
['application/rtf', [[0, "{\\rtf"]]], ['application/rtf', [[0, "{\\rtf"]]],
['application/sdp', [[0, 'v=', [[0..256, 's=']]]]], ['application/sdp', [[0, 'v=', [[0..256, 's=']]]]],
['application/vnd.adobe.flash.movie', [[0, 'FWS'], [0, 'CWS']]],
['application/vnd.emusic-emusic_package', [[0, 'nF7YLao']]], ['application/vnd.emusic-emusic_package', [[0, 'nF7YLao']]],
['application/vnd.iccprofile', [[36, 'acsp']]], ['application/vnd.iccprofile', [[36, 'acsp']]],
['application/vnd.lotus-1-2-3', [[0, "\000\000\002\000\006\004\006\000\b\000\000\000\000\000"]]], ['application/vnd.lotus-1-2-3', [[0, "\000\000\002\000\006\004\006\000\b\000\000\000\000\000"]]],
['application/vnd.lotus-wordpro', [[0, 'WordPro']]], ['application/vnd.lotus-wordpro', [[0, 'WordPro']]],
['application/vnd.ms-access', [[0, "\000\001\000\000Standard Jet DB"]]], ['application/vnd.ms-access', [[0, "\000\001\000\000Standard Jet DB"]]],
['application/vnd.ms-asf', [[0, "0&\262u"], [0, '[Reference]']]],
['application/vnd.ms-cab-compressed', [[0, "MSCF\000\000\000\000"]]], ['application/vnd.ms-cab-compressed', [[0, "MSCF\000\000\000\000"]]],
['application/vnd.ms-excel', [[2080, 'Microsoft Excel 5.0 Worksheet']]], ['application/vnd.ms-excel', [[2080, 'Microsoft Excel 5.0 Worksheet']]],
['application/vnd.ms-tnef', [[0, "x\237>\""]]], ['application/vnd.ms-tnef', [[0, "x\237>\""]]],
...@@ -1525,6 +1559,7 @@ class MimeMagic ...@@ -1525,6 +1559,7 @@ class MimeMagic
['application/x-font-ttx', [[0..256, "<ttFont sfntVersion=\"\\000\\001\\000\\000\" ttLibVersion=\""]]], ['application/x-font-ttx', [[0..256, "<ttFont sfntVersion=\"\\000\\001\\000\\000\" ttLibVersion=\""]]],
['application/x-font-vfont', [[0, 'FONT']]], ['application/x-font-vfont', [[0, 'FONT']]],
['application/x-frame', [[0, '<MakerFile'], [0, '<MIFFile'], [0, '<MakerDictionary'], [0, '<MakerScreenFon'], [0, '<MML'], [0, '<Book'], [0, '<Maker']]], ['application/x-frame', [[0, '<MakerFile'], [0, '<MIFFile'], [0, '<MakerDictionary'], [0, '<MakerScreenFon'], [0, '<MML'], [0, '<Book'], [0, '<Maker']]],
['application/x-gamecube-rom', [[28, "\3023\237="]]],
['application/x-gdbm', [[0, "\023W\232\316"], [0, "\316\232W\023"], [0, 'GDBM']]], ['application/x-gdbm', [[0, "\023W\232\316"], [0, "\316\232W\023"], [0, 'GDBM']]],
['application/x-gedcom', [[0, '0 HEAD']]], ['application/x-gedcom', [[0, '0 HEAD']]],
['application/x-genesis-rom', [[256, 'SEGA'], [640, 'EAGN'], [640, 'EAMG']]], ['application/x-genesis-rom', [[256, 'SEGA'], [640, 'EAGN'], [640, 'EAMG']]],
...@@ -1539,6 +1574,7 @@ class MimeMagic ...@@ -1539,6 +1574,7 @@ class MimeMagic
['application/x-hwp', [[0, 'HWP Document File']]], ['application/x-hwp', [[0, 'HWP Document File']]],
['application/x-ipod-firmware', [[0, 'S T O P']]], ['application/x-ipod-firmware', [[0, 'S T O P']]],
['application/x-it87', [[0, 'IT8.7']]], ['application/x-it87', [[0, 'IT8.7']]],
['application/x-iwork-keynote-sffkey', [[0, "PK\003\004", [[30, 'index.apxl']]]]],
['application/x-java', [[0, "\312\376\272\276"]]], ['application/x-java', [[0, "\312\376\272\276"]]],
['application/x-java-jce-keystore', [[0, "\316\316\316\316"]]], ['application/x-java-jce-keystore', [[0, "\316\316\316\316"]]],
['application/x-java-jnlp-file', [[0..256, '<jnlp']]], ['application/x-java-jnlp-file', [[0..256, '<jnlp']]],
...@@ -1550,6 +1586,7 @@ class MimeMagic ...@@ -1550,6 +1586,7 @@ class MimeMagic
['application/x-lha', [[2, '-lh -'], [2, '-lh0-'], [2, '-lh1-'], [2, '-lh2-'], [2, '-lh3-'], [2, '-lh4-'], [2, '-lh5-'], [2, '-lh40-'], [2, '-lhd-'], [2, '-lz4-'], [2, '-lz5-'], [2, '-lzs-']]], ['application/x-lha', [[2, '-lh -'], [2, '-lh0-'], [2, '-lh1-'], [2, '-lh2-'], [2, '-lh3-'], [2, '-lh4-'], [2, '-lh5-'], [2, '-lh40-'], [2, '-lhd-'], [2, '-lz4-'], [2, '-lz5-'], [2, '-lzs-']]],
['application/x-lrzip', [[0, 'LRZI']]], ['application/x-lrzip', [[0, 'LRZI']]],
['application/x-lyx', [[0, '#LyX']]], ['application/x-lyx', [[0, '#LyX']]],
['application/x-lz4', [[0, "\004\"M\030"], [0, "\002!L\030"]]],
['application/x-lzip', [[0, 'LZIP']]], ['application/x-lzip', [[0, 'LZIP']]],
['application/x-lzop', [[0, "\211LZO\000\r\n\032\n"]]], ['application/x-lzop', [[0, "\211LZO\000\r\n\032\n"]]],
['application/x-macbinary', [[102, 'mBIN']]], ['application/x-macbinary', [[102, 'mBIN']]],
...@@ -1564,7 +1601,7 @@ class MimeMagic ...@@ -1564,7 +1601,7 @@ class MimeMagic
['application/x-oleo', [[31, 'Oleo']]], ['application/x-oleo', [[31, 'Oleo']]],
['application/x-par2', [[0, 'PAR2']]], ['application/x-par2', [[0, 'PAR2']]],
['application/x-pef-executable', [[0, 'Joy!']]], ['application/x-pef-executable', [[0, 'Joy!']]],
['application/x-perl', [[0, "eval \"exec /usr/local/bin/perl"], [1..16, '/bin/perl'], [1..16, '/bin/env perl']]], ['application/x-perl', [[0, "eval \"exec /usr/local/bin/perl"], [2..16, '/bin/perl'], [2..16, '/bin/env perl'], [0..256, 'use strict'], [0..256, 'use warnings'], [0..256, 'use diagnostics'], [0..256, 'use Test::'], [0..256, 'BEGIN {']]],
['application/x-pocket-word', [[0, "{\\pwi"]]], ['application/x-pocket-word', [[0, "{\\pwi"]]],
['application/x-python-bytecode', [[0, "\231N\r\n"]]], ['application/x-python-bytecode', [[0, "\231N\r\n"]]],
['application/x-qtiplot', [[0, 'QtiPlot']]], ['application/x-qtiplot', [[0, 'QtiPlot']]],
...@@ -1573,17 +1610,17 @@ class MimeMagic ...@@ -1573,17 +1610,17 @@ class MimeMagic
['application/x-sami', [[0..256, '<SAMI>']]], ['application/x-sami', [[0..256, '<SAMI>']]],
['application/x-sc', [[38, 'Spreadsheet']]], ['application/x-sc', [[38, 'Spreadsheet']]],
['application/x-sharedlib', [[0, "\177ELF", [[5, "\001", [[16, "\003\000"]]]]], [0, "\177ELF", [[5, "\002", [[16, "\000\003"]]]]], [0, "\203\001"]]], ['application/x-sharedlib', [[0, "\177ELF", [[5, "\001", [[16, "\003\000"]]]]], [0, "\177ELF", [[5, "\002", [[16, "\000\003"]]]]], [0, "\203\001"]]],
['application/x-shellscript', [[10, '# This is a shell archive'], [1..16, '/bin/bash'], [1..16, '/bin/nawk'], [1..16, '/bin/zsh'], [1..16, '/bin/sh'], [1..16, '/bin/ksh'], [1..16, '/bin/dash'], [0, '#!/usr/bin/env sh'], [0, '#!/usr/bin/env bash'], [0, '#!/usr/bin/env zsh'], [0, '#!/usr/bin/env ksh']]], ['application/x-shellscript', [[10, '# This is a shell archive'], [2..16, '/bin/bash'], [2..16, '/bin/nawk'], [2..16, '/bin/zsh'], [2..16, '/bin/sh'], [2..16, '/bin/ksh'], [2..16, '/bin/dash'], [2..16, '/bin/env sh'], [2..16, '/bin/env bash'], [2..16, '/bin/env zsh'], [2..16, '/bin/env ksh']]],
['application/x-shockwave-flash', [[0, 'FWS'], [0, 'CWS']]],
['application/x-shorten', [[0, 'ajkg']]], ['application/x-shorten', [[0, 'ajkg']]],
['application/x-smaf', [[0, 'MMMD']]], ['application/x-smaf', [[0, 'MMMD']]],
['application/x-spss-por', [[40, 'ASCII SPSS PORT FILE']]], ['application/x-spss-por', [[40, 'ASCII SPSS PORT FILE']]],
['application/x-spss-sav', [[0, '$FL2']]], ['application/x-spss-sav', [[0, '$FL2'], [0, '$FL3']]],
['application/x-stuffit', [[0, 'StuffIt '], [0, 'SIT!']]], ['application/x-stuffit', [[0, 'StuffIt '], [0, 'SIT!']]],
['application/x-subrip', [[0, '1', [[0..256, ' --> ']]]]], ['application/x-subrip', [[0, '1', [[0..256, ' --> ']]]]],
['application/x-t602', [[0, '@CT 0'], [0, '@CT 1'], [0, '@CT 2']]], ['application/x-t602', [[0, '@CT 0'], [0, '@CT 1'], [0, '@CT 2']]],
['application/x-tar', [[257, "ustar\000"], [257, "ustar \000"]]], ['application/x-tar', [[257, "ustar\000"], [257, "ustar \000"]]],
['application/x-tgif', [[0, '%TGIF']]], ['application/x-tgif', [[0, '%TGIF']]],
['application/x-wii-rom', [[24, "]\034\236\243"], [0, 'WBFS'], [0, "WII\001DISC"]]],
['application/x-xbel', [[0..256, '<!DOCTYPE xbel']]], ['application/x-xbel', [[0..256, '<!DOCTYPE xbel']]],
['application/x-xz', [[0, "\3757zXZ\000"]]], ['application/x-xz', [[0, "\3757zXZ\000"]]],
['application/x-zoo', [[20, "\334\247\304\375"]]], ['application/x-zoo', [[20, "\334\247\304\375"]]],
...@@ -1626,7 +1663,7 @@ class MimeMagic ...@@ -1626,7 +1663,7 @@ class MimeMagic
['image/dpx', [[0, 'SDPX']]], ['image/dpx', [[0, 'SDPX']]],
['image/fits', [[0, 'SIMPLE =']]], ['image/fits', [[0, 'SIMPLE =']]],
['image/gif', [[0, 'GIF8']]], ['image/gif', [[0, 'GIF8']]],
['image/jp2', [[4, 'jP'], [0, "\377O\377Q\000"], [3, "\fjP "]]], ['image/jp2', [[0, "\377O\377Q\000"], [3, "\fjP "], [20, 'jp2']]],
['image/jpeg', [[0, "\377\330\377"], [0, "\377\330"]]], ['image/jpeg', [[0, "\377\330\377"], [0, "\377\330"]]],
['image/openraster', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'image/openraster']]]]]]], ['image/openraster', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'image/openraster']]]]]]],
['image/png', [[0, "\211PNG"]]], ['image/png', [[0, "\211PNG"]]],
...@@ -1636,6 +1673,7 @@ class MimeMagic ...@@ -1636,6 +1673,7 @@ class MimeMagic
['image/vnd.dxf', [[0..64, "\nHEADER\n"], [0..64, "\r\nHEADER\r\n"]]], ['image/vnd.dxf', [[0..64, "\nHEADER\n"], [0..64, "\r\nHEADER\r\n"]]],
['image/vnd.microsoft.icon', [[0, "\000\000\001\000", [[5, "\000"]]]]], ['image/vnd.microsoft.icon', [[0, "\000\000\001\000", [[5, "\000"]]]]],
['image/vnd.ms-modi', [[0, "EP*\000"]]], ['image/vnd.ms-modi', [[0, "EP*\000"]]],
['image/webp', [[0, 'RIFF', [[8, 'WEBP']]]]],
['image/x-applix-graphics', [[0, '*BEGIN', [[7, 'GRAPHICS']]]]], ['image/x-applix-graphics', [[0, '*BEGIN', [[7, 'GRAPHICS']]]]],
['image/x-canon-crw', [[0, "II\032\000\000\000HEAPCCDR"]]], ['image/x-canon-crw', [[0, "II\032\000\000\000HEAPCCDR"]]],
['image/x-dds', [[0, 'DDS']]], ['image/x-dds', [[0, 'DDS']]],
...@@ -1684,20 +1722,20 @@ class MimeMagic ...@@ -1684,20 +1722,20 @@ class MimeMagic
['text/x-iMelody', [[0, 'BEGIN:IMELODY']]], ['text/x-iMelody', [[0, 'BEGIN:IMELODY']]],
['text/x-iptables', [[0..256, '/etc/sysconfig/iptables'], [0..256, '*filter', [[0..256, ':INPUT', [[0..256, ':FORWARD', [[0..256, ':OUTPUT']]]]]]], [0..256, '-A INPUT', [[0..256, '-A FORWARD', [[0..256, '-A OUTPUT']]]]], [0..256, '-P INPUT', [[0..256, '-P FORWARD', [[0..256, '-P OUTPUT']]]]]]], ['text/x-iptables', [[0..256, '/etc/sysconfig/iptables'], [0..256, '*filter', [[0..256, ':INPUT', [[0..256, ':FORWARD', [[0..256, ':OUTPUT']]]]]]], [0..256, '-A INPUT', [[0..256, '-A FORWARD', [[0..256, '-A OUTPUT']]]]], [0..256, '-P INPUT', [[0..256, '-P FORWARD', [[0..256, '-P OUTPUT']]]]]]],
['text/x-ldif', [[0, 'dn: cn='], [0, 'dn: mail=']]], ['text/x-ldif', [[0, 'dn: cn='], [0, 'dn: mail=']]],
['text/x-lua', [[0, '/bin/lua'], [0, '/bin/env lua']]], ['text/x-lua', [[2..16, '/bin/lua'], [2..16, '/bin/luajit'], [2..16, '/bin/env lua'], [2..16, '/bin/env luajit']]],
['text/x-makefile', [[0, '#!/usr/bin/make'], [0, '#! /usr/bin/make']]], ['text/x-makefile', [[0, '#!/usr/bin/make'], [0, '#! /usr/bin/make']]],
['text/x-matlab', [[0, 'function']]], ['text/x-matlab', [[0, 'function']]],
['text/x-microdvd', [[0, '{1}'], [0, '{0}'], [0..6, '}{']]], ['text/x-microdvd', [[0, '{1}'], [0, '{0}'], [0..6, '}{']]],
['text/x-modelica', [[0, 'record']]],
['text/x-modelica', [[0, 'model']]], ['text/x-modelica', [[0, 'model']]],
['text/x-modelica', [[0, 'class']]], ['text/x-modelica', [[0, 'class']]],
['text/x-modelica', [[0, 'record']]],
['text/x-modelica', [[0, 'function']]], ['text/x-modelica', [[0, 'function']]],
['text/x-mpsub', [[0..256, 'FORMAT=']]], ['text/x-mpsub', [[0..256, 'FORMAT=']]],
['text/x-mrml', [[0, '<mrml ']]], ['text/x-mrml', [[0, '<mrml ']]],
['text/x-ms-regedit', [[0, 'REGEDIT'], [0, 'Windows Registry Editor Version 5.00'], [0, "\377\376W\000i\000n\000d\000o\000w\000s\000 \000R\000e\000g\000i\000s\000t\000r\000y\000 \000E\000d\000i\000t\000o\000r\000"]]], ['text/x-ms-regedit', [[0, 'REGEDIT'], [0, 'Windows Registry Editor Version 5.00'], [0, "\377\376W\000i\000n\000d\000o\000w\000s\000 \000R\000e\000g\000i\000s\000t\000r\000y\000 \000E\000d\000i\000t\000o\000r\000"]]],
['text/x-mup', [[0, '//!Mup']]], ['text/x-mup', [[0, '//!Mup']]],
['text/x-patch', [[0, "diff\t"], [0, 'diff '], [0, "***\t"], [0, '*** '], [0, '=== '], [0, '--- '], [0, "Only in\t"], [0, 'Only in '], [0, 'Common subdirectories: '], [0, 'Index:']]], ['text/x-patch', [[0, "diff\t"], [0, 'diff '], [0, "***\t"], [0, '*** '], [0, '=== '], [0, '--- '], [0, "Only in\t"], [0, 'Only in '], [0, 'Common subdirectories: '], [0, 'Index:']]],
['text/x-python', [[0, '#!/bin/python'], [0, '#! /bin/python'], [0, "eval \"exec /bin/python"], [0, '#!/usr/bin/python'], [0, '#! /usr/bin/python'], [0, "eval \"exec /usr/bin/python"], [0, '#!/usr/local/bin/python'], [0, '#! /usr/local/bin/python'], [0, "eval \"exec /usr/local/bin/python"], [1..16, '/bin/env python']]], ['text/x-python', [[0, '#!/bin/python'], [0, '#! /bin/python'], [0, "eval \"exec /bin/python"], [0, '#!/usr/bin/python'], [0, '#! /usr/bin/python'], [0, "eval \"exec /usr/bin/python"], [0, '#!/usr/local/bin/python'], [0, '#! /usr/local/bin/python'], [0, "eval \"exec /usr/local/bin/python"], [2..16, '/bin/env python']]],
['text/x-rpm-spec', [[0, 'Summary: '], [0, '%define ']]], ['text/x-rpm-spec', [[0, 'Summary: '], [0, '%define ']]],
['text/x-ssa', [[0..256, '[Script Info]'], [0..256, 'Dialogue: ']]], ['text/x-ssa', [[0..256, '[Script Info]'], [0..256, 'Dialogue: ']]],
['text/x-subviewer', [[0, '[INFORMATION]']]], ['text/x-subviewer', [[0, '[INFORMATION]']]],
...@@ -1718,15 +1756,15 @@ class MimeMagic ...@@ -1718,15 +1756,15 @@ class MimeMagic
['video/x-flic', [[0, "\021\257"], [0, "\022\257"]]], ['video/x-flic', [[0, "\021\257"], [0, "\022\257"]]],
['video/x-flv', [[0, 'FLV']]], ['video/x-flv', [[0, 'FLV']]],
['video/x-mng', [[0, "\212MNG\r\n\032\n"]]], ['video/x-mng', [[0, "\212MNG\r\n\032\n"]]],
['video/x-ms-asf', [[0, "0&\262u"], [0, '[Reference]']]],
['video/x-msvideo', [[0, 'RIFF', [[8, 'AVI ']]], [0, 'AVF0', [[8, 'AVI ']]]]], ['video/x-msvideo', [[0, 'RIFF', [[8, 'AVI ']]], [0, 'AVF0', [[8, 'AVI ']]]]],
['video/x-nsv', [[0, 'NSVf']]], ['video/x-nsv', [[0, 'NSVf']]],
['video/x-sgi-movie', [[0, 'MOVI']]], ['video/x-sgi-movie', [[0, 'MOVI']]],
['x-epoc/x-sisx-app', [[0, "z\032 \020"]]], ['x-epoc/x-sisx-app', [[0, "z\032 \020"]]],
['application/x-archive', [[0, '<ar>'], [0, '!<arch>']]], ['application/x-archive', [[0, '<ar>'], [0, '!<arch>']]],
['audio/x-riff', [[0, 'RIFF']]], ['application/x-riff', [[0, 'RIFF']]],
['application/x-executable', [[0, "\177ELF", [[5, "\001", [[16, "\002\000"]]]]], [0, "\177ELF", [[5, "\002", [[16, "\000\002"]]]]], [0, 'MZ'], [0, "\034R"], [0, "\020\001"], [0, "\021\001"], [0, "\203\001"]]], ['application/x-executable', [[0, "\177ELF", [[5, "\001", [[16, "\002\000"]]]]], [0, "\177ELF", [[5, "\002", [[16, "\000\002"]]]]], [0, 'MZ'], [0, "\034R"], [0, "\020\001"], [0, "\021\001"], [0, "\203\001"]]],
['application/x-iff', [[0, 'FORM']]], ['application/x-iff', [[0, 'FORM']]],
['application/x-perl', [[0..256, "\n=pod"], [0..256, "\n=head1 NAME"], [0..256, "\n=head1 DESCRIPTION"]]],
['application/xml', [[0, '<?xml'], [0, '<!--']]], ['application/xml', [[0, '<?xml'], [0, '<!--']]],
['application/zip', [[0, "PK\003\004"]]], ['application/zip', [[0, "PK\003\004"]]],
['audio/basic', [[0, '.snd']]], ['audio/basic', [[0, '.snd']]],
...@@ -1750,11 +1788,11 @@ class MimeMagic ...@@ -1750,11 +1788,11 @@ class MimeMagic
['application/vnd.sun.xml.writer', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/vnd.sun.xml.writer']]]]]]], ['application/vnd.sun.xml.writer', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/vnd.sun.xml.writer']]]]]]],
['application/vnd.sun.xml.writer.global', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/vnd.sun.xml.writer']]]]]]], ['application/vnd.sun.xml.writer.global', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/vnd.sun.xml.writer']]]]]]],
['application/vnd.sun.xml.writer.template', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/vnd.sun.xml.writer']]]]]]], ['application/vnd.sun.xml.writer.template', [[0, "PK\003\004", [[30, 'mimetype', [[38, 'application/vnd.sun.xml.writer']]]]]]],
['application/x-csh', [[1..16, '/bin/tcsh'], [1..16, '/bin/csh'], [0, '#!/usr/bin/env csh'], [0, '#!/usr/bin/env tcsh']]], ['application/x-csh', [[2..16, '/bin/tcsh'], [2..16, '/bin/csh'], [2..16, '/bin/env csh'], [2..16, '/bin/env tcsh']]],
['application/x-dar', [[0, "\000\000\000{"]]], ['application/x-dar', [[0, "\000\000\000{"]]],
['application/x-designer', [[0..256, '<ui '], [0..256, '<UI ']]], ['application/x-designer', [[0..256, '<ui '], [0..256, '<UI ']]],
['application/x-ms-wim', [[0, "MSWIM\000\000\000"]]], ['application/x-ms-wim', [[0, "MSWIM\000\000\000"]]],
['application/x-ruby', [[1..16, '/bin/env ruby'], [1..16, '/bin/ruby']]], ['application/x-ruby', [[2..16, '/bin/env ruby'], [2..16, '/bin/ruby']]],
['application/x-sqlite2', [[0, '** This file contains an SQLite']]], ['application/x-sqlite2', [[0, '** This file contains an SQLite']]],
['application/x-sqlite3', [[0, 'SQLite format 3']]], ['application/x-sqlite3', [[0, 'SQLite format 3']]],
['application/x-yaml', [[0, '%YAML']]], ['application/x-yaml', [[0, '%YAML']]],
......
...@@ -153,6 +153,7 @@ ...@@ -153,6 +153,7 @@
<match value="PK\003\004" type="string" offset="0"> <match value="PK\003\004" type="string" offset="0">
<match value="mimetype" type="string" offset="30"> <match value="mimetype" type="string" offset="30">
<match value="application/epub+zip" type="string" offset="38"/> <match value="application/epub+zip" type="string" offset="38"/>
<match value="application/epub+zip" type="string" offset="43"/>
</match> </match>
</match> </match>
</magic> </magic>
...@@ -966,7 +967,7 @@ ...@@ -966,7 +967,7 @@
</magic> </magic>
<glob pattern="*.pgp"/> <glob pattern="*.pgp"/>
<glob pattern="*.gpg"/> <glob pattern="*.gpg"/>
<glob pattern="*.asc"/> <glob weight="10" pattern="*.asc"/>
<alias type="application/pgp"/> <alias type="application/pgp"/>
</mime-type> </mime-type>
<mime-type type="application/pgp-keys"> <mime-type type="application/pgp-keys">
...@@ -1032,7 +1033,9 @@ ...@@ -1032,7 +1033,9 @@
</magic> </magic>
<glob pattern="*.skr"/> <glob pattern="*.skr"/>
<glob pattern="*.pkr"/> <glob pattern="*.pkr"/>
<glob pattern="*.asc"/> <glob weight="10" pattern="*.asc"/>
<glob pattern="*.pgp"/>
<glob pattern="*.gpg"/>
</mime-type> </mime-type>
<mime-type type="application/pgp-signature"> <mime-type type="application/pgp-signature">
<comment>detached OpenPGP signature</comment> <comment>detached OpenPGP signature</comment>
...@@ -1084,9 +1087,12 @@ ...@@ -1084,9 +1087,12 @@
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<generic-icon name="text-x-generic"/> <generic-icon name="text-x-generic"/>
<magic priority="50"> <magic priority="50">
<match value="-----BEGIN PGP SIGNED MESSAGE-----" type="string" offset="0"/>
<match value="-----BEGIN PGP SIGNATURE-----" type="string" offset="0"/> <match value="-----BEGIN PGP SIGNATURE-----" type="string" offset="0"/>
</magic> </magic>
<glob weight="10" pattern="*.asc"/>
<glob pattern="*.sig"/>
<glob pattern="*.pgp"/>
<glob pattern="*.gpg"/>
</mime-type> </mime-type>
<mime-type type="application/pkcs7-mime"> <mime-type type="application/pkcs7-mime">
...@@ -3675,6 +3681,7 @@ ...@@ -3675,6 +3681,7 @@
<magic priority="90"> <magic priority="90">
<match value="StarWriter" type="string" offset="2089"/> <match value="StarWriter" type="string" offset="2089"/>
</magic> </magic>
<alias type="application/vnd.stardivision.writer-global"/>
</mime-type> </mime-type>
<mime-type type="application/vnd.sun.xml.calc"> <mime-type type="application/vnd.sun.xml.calc">
<comment>OpenOffice Calc spreadsheet</comment> <comment>OpenOffice Calc spreadsheet</comment>
...@@ -5254,6 +5261,7 @@ ...@@ -5254,6 +5261,7 @@
<sub-class-of type="application/zip"/> <sub-class-of type="application/zip"/>
<generic-icon name="x-office-document"/> <generic-icon name="x-office-document"/>
<glob pattern="*.odb"/> <glob pattern="*.odb"/>
<alias type="application/vnd.sun.xml.base"/>
</mime-type> </mime-type>
<mime-type type="application/vnd.oasis.opendocument.image"> <mime-type type="application/vnd.oasis.opendocument.image">
<comment>ODI image</comment> <comment>ODI image</comment>
...@@ -5687,8 +5695,10 @@ ...@@ -5687,8 +5695,10 @@
<alias type="application/x-spss-savefile"/> <alias type="application/x-spss-savefile"/>
<magic priority="50"> <magic priority="50">
<match value="$FL2" type="string" offset="0"/> <match value="$FL2" type="string" offset="0"/>
<match value="$FL3" type="string" offset="0"/>
</magic> </magic>
<glob pattern="*.sav"/> <glob pattern="*.sav"/>
<glob pattern="*.zsav"/>
</mime-type> </mime-type>
<mime-type type="application/x-xbel"> <mime-type type="application/x-xbel">
<comment>XBEL bookmarks</comment> <comment>XBEL bookmarks</comment>
...@@ -7128,6 +7138,17 @@ ...@@ -7128,6 +7138,17 @@
<comment xml:lang="zh_TW">Apple 磁碟映像</comment> <comment xml:lang="zh_TW">Apple 磁碟映像</comment>
<glob pattern="*.dmg"/> <glob pattern="*.dmg"/>
</mime-type> </mime-type>
<mime-type type="application/x-raw-disk-image">
<comment>Raw disk image</comment>
<glob pattern="*.raw-disk-image"/>
<glob pattern="*.img"/>
</mime-type>
<mime-type type="application/x-raw-disk-image-xz-compressed">
<comment>Raw disk image (XZ-compressed)</comment>
<sub-class-of type="application/x-xz"/>
<glob pattern="*.raw-disk-image.xz"/>
<glob pattern="*.img.xz"/>
</mime-type>
<mime-type type="application/x-cd-image"> <mime-type type="application/x-cd-image">
<comment>raw CD image</comment> <comment>raw CD image</comment>
<comment xml:lang="ar">صورة CD خامة</comment> <comment xml:lang="ar">صورة CD خامة</comment>
...@@ -7174,6 +7195,7 @@ ...@@ -7174,6 +7195,7 @@
<comment xml:lang="vi">ảnh đĩa CD thô</comment> <comment xml:lang="vi">ảnh đĩa CD thô</comment>
<comment xml:lang="zh_CN">原始 CD 映像</comment> <comment xml:lang="zh_CN">原始 CD 映像</comment>
<comment xml:lang="zh_TW">原生 CD 映像</comment> <comment xml:lang="zh_TW">原生 CD 映像</comment>
<sub-class-of type="application/x-raw-disk-image"/>
<alias type="application/x-iso9660-image"/> <alias type="application/x-iso9660-image"/>
<glob pattern="*.iso"/> <glob pattern="*.iso"/>
<glob pattern="*.iso9660"/> <glob pattern="*.iso9660"/>
...@@ -7716,10 +7738,10 @@ ...@@ -7716,10 +7738,10 @@
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<generic-icon name="text-x-script"/> <generic-icon name="text-x-script"/>
<magic> <magic>
<match value="/bin/tcsh" type="string" offset="1:16"/> <match value="/bin/tcsh" type="string" offset="2:16"/>
<match value="/bin/csh" type="string" offset="1:16"/> <match value="/bin/csh" type="string" offset="2:16"/>
<match value="#!/usr/bin/env csh" type="string" offset="0"/> <match value="/bin/env csh" type="string" offset="2:16"/>
<match value="#!/usr/bin/env tcsh" type="string" offset="0"/> <match value="/bin/env tcsh" type="string" offset="2:16"/>
</magic> </magic>
<glob pattern="*.csh"/> <glob pattern="*.csh"/>
</mime-type> </mime-type>
...@@ -7921,6 +7943,33 @@ ...@@ -7921,6 +7943,33 @@
<generic-icon name="application-x-executable"/> <generic-icon name="application-x-executable"/>
<glob pattern="*.nds"/> <glob pattern="*.nds"/>
</mime-type> </mime-type>
<mime-type type="application/x-pc-engine-rom">
<comment>PC Engine ROM</comment>
<generic-icon name="application-x-executable"/>
<glob pattern="*.pce"/>
</mime-type>
<mime-type type="application/x-wii-rom">
<comment>Wii disc image</comment>
<alias type="application/x-wii-iso-image"/>
<alias type="application/x-wbfs"/>
<alias type="application/x-wia"/>
<generic-icon name="application-x-executable"/>
<glob pattern="*.iso"/>
<magic priority="50">
<match value="0x5d1c9ea3" type="big32" offset="24"/>
<match value="WBFS" type="string" offset="0"/>
<match value="WII\001DISC" type="string" offset="0"/>
</magic>
</mime-type>
<mime-type type="application/x-gamecube-rom">
<comment>GameCube disc image</comment>
<generic-icon name="application-x-executable"/>
<alias type="application/x-gamecube-iso-image"/>
<glob pattern="*.iso"/>
<magic priority="50">
<match value="0xc2339f3d" type="big32" offset="28"/>
</magic>
</mime-type>
<mime-type type="application/x-deb"> <mime-type type="application/x-deb">
<comment>Debian package</comment> <comment>Debian package</comment>
<comment xml:lang="ar">حزمة ديبيان</comment> <comment xml:lang="ar">حزمة ديبيان</comment>
...@@ -8178,6 +8227,17 @@ ...@@ -8178,6 +8227,17 @@
<alias type="application/x-fictionbook"/> <alias type="application/x-fictionbook"/>
<root-XML namespaceURI="http://www.gribuser.ru/xml/fictionbook/2.0" localName="FictionBook"/> <root-XML namespaceURI="http://www.gribuser.ru/xml/fictionbook/2.0" localName="FictionBook"/>
</mime-type> </mime-type>
<mime-type type="application/x-zip-compressed-fb2">
<comment>Compressed FictionBook document</comment>
<sub-class-of type="application/zip"/>
<glob pattern="*.fb2.zip"/>
<magic priority="80">
<match value="PK\003\004" type="string" offset="0">
<match value=".fb2" type="string" offset="30:256"/>
</match>
</magic>
</mime-type>
<mime-type type="application/x-dia-diagram"> <mime-type type="application/x-dia-diagram">
<comment>Dia diagram</comment> <comment>Dia diagram</comment>
<comment xml:lang="ar">خطاطة Dia</comment> <comment xml:lang="ar">خطاطة Dia</comment>
...@@ -10856,9 +10916,18 @@ ...@@ -10856,9 +10916,18 @@
<comment xml:lang="zh_TW">JavaScript 程式</comment> <comment xml:lang="zh_TW">JavaScript 程式</comment>
<alias type="application/x-javascript"/> <alias type="application/x-javascript"/>
<alias type="text/javascript"/> <alias type="text/javascript"/>
<sub-class-of type="text/x-csrc"/> <sub-class-of type="application/ecmascript"/>
<generic-icon name="text-x-script"/> <generic-icon name="text-x-script"/>
<glob pattern="*.js"/> <glob pattern="*.js"/>
<glob pattern="*.jsm"/>
</mime-type>
<mime-type type="application/json">
<comment>JSON document</comment>
<acronym>JSON</acronym>
<expanded-acronym>JavaScript Object Notation</expanded-acronym>
<sub-class-of type="application/javascript"/>
<generic-icon name="text-x-script"/>
<glob pattern="*.json"/>
</mime-type> </mime-type>
<mime-type type="application/x-jbuilder-project"> <mime-type type="application/x-jbuilder-project">
<comment>JBuilder project</comment> <comment>JBuilder project</comment>
...@@ -12174,6 +12243,15 @@ ...@@ -12174,6 +12243,15 @@
<glob pattern="*.lyx"/> <glob pattern="*.lyx"/>
<alias type="text/x-lyx"/> <alias type="text/x-lyx"/>
</mime-type> </mime-type>
<mime-type type="application/x-lz4">
<comment>LZ4 archive</comment>
<generic-icon name="package-x-generic"/>
<magic priority="50">
<match value="0x184d2204" type="little32" offset="0"/>
<match value="0x184c2102" type="little32" offset="0"/>
</magic>
<glob pattern="*.lz4"/>
</mime-type>
<mime-type type="application/x-lzip"> <mime-type type="application/x-lzip">
<comment>Lzip archive</comment> <comment>Lzip archive</comment>
<comment xml:lang="ar">أرشيف Lzip</comment> <comment xml:lang="ar">أرشيف Lzip</comment>
...@@ -12583,6 +12661,11 @@ ...@@ -12583,6 +12661,11 @@
<glob pattern="*.mkv"/> <glob pattern="*.mkv"/>
<sub-class-of type="application/x-matroska"/> <sub-class-of type="application/x-matroska"/>
</mime-type> </mime-type>
<mime-type type="video/x-matroska-3d">
<comment>Matroska 3D video</comment>
<glob pattern="*.mk3d"/>
<sub-class-of type="application/x-matroska"/>
</mime-type>
<mime-type type="audio/x-matroska"> <mime-type type="audio/x-matroska">
<comment>Matroska audio</comment> <comment>Matroska audio</comment>
<comment xml:lang="ar">سمعي Matroska</comment> <comment xml:lang="ar">سمعي Matroska</comment>
...@@ -13826,6 +13909,7 @@ ...@@ -13826,6 +13909,7 @@
</magic> </magic>
<glob pattern="*.oga"/> <glob pattern="*.oga"/>
<glob pattern="*.ogg"/> <glob pattern="*.ogg"/>
<glob pattern="*.opus"/>
<alias type="audio/x-ogg"/> <alias type="audio/x-ogg"/>
</mime-type> </mime-type>
<mime-type type="video/ogg"> <mime-type type="video/ogg">
...@@ -13995,6 +14079,16 @@ ...@@ -13995,6 +14079,16 @@
<glob pattern="*.oga"/> <glob pattern="*.oga"/>
<glob pattern="*.ogg"/> <glob pattern="*.ogg"/>
</mime-type> </mime-type>
<mime-type type="audio/x-opus+ogg">
<comment>Opus audio</comment>
<sub-class-of type="audio/ogg"/>
<magic priority="80">
<match value="OggS" type="string" offset="0">
<match value="OpusHead" type="string" offset="28"/>
</match>
</magic>
<glob pattern="*.opus"/>
</mime-type>
<mime-type type="audio/x-speex+ogg"> <mime-type type="audio/x-speex+ogg">
<comment>Ogg Speex audio</comment> <comment>Ogg Speex audio</comment>
<comment xml:lang="ar">Ogg Speex سمعي</comment> <comment xml:lang="ar">Ogg Speex سمعي</comment>
...@@ -14145,7 +14239,6 @@ ...@@ -14145,7 +14239,6 @@
<match value="\x80theora" type="string" offset="28"/> <match value="\x80theora" type="string" offset="28"/>
</match> </match>
</magic> </magic>
<glob pattern="*.ogv"/>
<glob pattern="*.ogg"/> <glob pattern="*.ogg"/>
</mime-type> </mime-type>
<mime-type type="video/x-ogm+ogg"> <mime-type type="video/x-ogm+ogg">
...@@ -14255,6 +14348,11 @@ ...@@ -14255,6 +14348,11 @@
<match value="0xe011cfd0" type="little32" offset="0"/> <match value="0xe011cfd0" type="little32" offset="0"/>
</magic> </magic>
</mime-type> </mime-type>
<mime-type type="application/vnd.ms-publisher">
<comment>Microsoft Publisher document</comment>
<sub-class-of type="application/x-ole-storage"/>
<glob pattern="*.pub"/>
</mime-type>
<mime-type type="application/x-msi"> <mime-type type="application/x-msi">
<comment>Windows Installer package</comment> <comment>Windows Installer package</comment>
<comment xml:lang="ar">حزمة مثبّت ويندوز</comment> <comment xml:lang="ar">حزمة مثبّت ويندوز</comment>
...@@ -14618,13 +14716,26 @@ ...@@ -14618,13 +14716,26 @@
<generic-icon name="text-x-script"/> <generic-icon name="text-x-script"/>
<magic priority="50"> <magic priority="50">
<match value='eval \"exec /usr/local/bin/perl' type="string" offset="0"/> <match value='eval \"exec /usr/local/bin/perl' type="string" offset="0"/>
<match value="/bin/perl" type="string" offset="1:16"/> <match value="/bin/perl" type="string" offset="2:16"/>
<match value="/bin/env perl" type="string" offset="1:16"/> <match value="/bin/env perl" type="string" offset="2:16"/>
<match value="use strict" type="string" offset="0:256"/>
<match value="use warnings" type="string" offset="0:256"/>
<match value="use diagnostics" type="string" offset="0:256"/>
<match value="use Test::" type="string" offset="0:256"/>
<match value="BEGIN {" type="string" offset="0:256"/>
</magic>
<magic priority="40">
<match value="\n=pod" type="string" offset="0:256"/>
<match value="\n=head1 NAME" type="string" offset="0:256"/>
<match value="\n=head1 DESCRIPTION" type="string" offset="0:256"/>
</magic> </magic>
<glob pattern="*.pl"/> <glob pattern="*.pl"/>
<glob pattern="*.PL"/>
<glob pattern="*.pm"/> <glob pattern="*.pm"/>
<glob pattern="*.al"/> <glob pattern="*.al"/>
<glob pattern="*.perl"/> <glob pattern="*.perl"/>
<glob pattern="*.pod"/>
<glob weight="10" pattern="*.t"/>
</mime-type> </mime-type>
<mime-type type="application/x-php"> <mime-type type="application/x-php">
<comment>PHP script</comment> <comment>PHP script</comment>
...@@ -15518,8 +15629,8 @@ ...@@ -15518,8 +15629,8 @@
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<generic-icon name="text-x-script"/> <generic-icon name="text-x-script"/>
<magic> <magic>
<match value="/bin/env ruby" type="string" offset="1:16"/> <match value="/bin/env ruby" type="string" offset="2:16"/>
<match value="/bin/ruby" type="string" offset="1:16"/> <match value="/bin/ruby" type="string" offset="2:16"/>
</magic> </magic>
<glob pattern="*.rb"/> <glob pattern="*.rb"/>
</mime-type> </mime-type>
...@@ -15843,20 +15954,20 @@ ...@@ -15843,20 +15954,20 @@
<generic-icon name="text-x-script"/> <generic-icon name="text-x-script"/>
<magic priority="50"> <magic priority="50">
<match value="# This is a shell archive" type="string" offset="10"/> <match value="# This is a shell archive" type="string" offset="10"/>
<match value="/bin/bash" type="string" offset="1:16"/> <match value="/bin/bash" type="string" offset="2:16"/>
<match value="/bin/nawk" type="string" offset="1:16"/> <match value="/bin/nawk" type="string" offset="2:16"/>
<match value="/bin/zsh" type="string" offset="1:16"/> <match value="/bin/zsh" type="string" offset="2:16"/>
<match value="/bin/sh" type="string" offset="1:16"/> <match value="/bin/sh" type="string" offset="2:16"/>
<match value="/bin/ksh" type="string" offset="1:16"/> <match value="/bin/ksh" type="string" offset="2:16"/>
<match value="/bin/dash" type="string" offset="1:16"/> <match value="/bin/dash" type="string" offset="2:16"/>
<match value="#!/usr/bin/env sh" type="string" offset="0"/> <match value="/bin/env sh" type="string" offset="2:16"/>
<match value="#!/usr/bin/env bash" type="string" offset="0"/> <match value="/bin/env bash" type="string" offset="2:16"/>
<match value="#!/usr/bin/env zsh" type="string" offset="0"/> <match value="/bin/env zsh" type="string" offset="2:16"/>
<match value="#!/usr/bin/env ksh" type="string" offset="0"/> <match value="/bin/env ksh" type="string" offset="2:16"/>
</magic> </magic>
<glob pattern="*.sh"/> <glob pattern="*.sh"/>
</mime-type> </mime-type>
<mime-type type="application/x-shockwave-flash"> <mime-type type="application/vnd.adobe.flash.movie">
<comment>Shockwave Flash file</comment> <comment>Shockwave Flash file</comment>
<comment xml:lang="ar">ملف Shockwave Flash</comment> <comment xml:lang="ar">ملف Shockwave Flash</comment>
<comment xml:lang="be@latin">Fajł Shockwave Flash</comment> <comment xml:lang="be@latin">Fajł Shockwave Flash</comment>
...@@ -15903,6 +16014,7 @@ ...@@ -15903,6 +16014,7 @@
<comment xml:lang="vi">Tập tin Flash Shockwave</comment> <comment xml:lang="vi">Tập tin Flash Shockwave</comment>
<comment xml:lang="zh_CN">Shockwave Flash 文件</comment> <comment xml:lang="zh_CN">Shockwave Flash 文件</comment>
<comment xml:lang="zh_TW">Shockwave Flash 檔</comment> <comment xml:lang="zh_TW">Shockwave Flash 檔</comment>
<alias type="application/x-shockwave-flash"/>
<alias type="application/futuresplash"/> <alias type="application/futuresplash"/>
<generic-icon name="video-x-generic"/> <generic-icon name="video-x-generic"/>
<magic priority="50"> <magic priority="50">
...@@ -16162,7 +16274,7 @@ ...@@ -16162,7 +16274,7 @@
<glob pattern="*.sms"/> <glob pattern="*.sms"/>
<glob pattern="*.gg"/> <glob pattern="*.gg"/>
</mime-type> </mime-type>
<mime-type type="application/x-snes-rom"> <mime-type type="application/vnd.nintendo.snes.rom">
<comment>Super NES ROM</comment> <comment>Super NES ROM</comment>
<comment xml:lang="ar">Super NES ROM</comment> <comment xml:lang="ar">Super NES ROM</comment>
...@@ -16207,6 +16319,8 @@ ...@@ -16207,6 +16319,8 @@
<comment xml:lang="zh_CN">Super NES ROM</comment> <comment xml:lang="zh_CN">Super NES ROM</comment>
<comment xml:lang="zh_TW">超級任天堂 ROM</comment> <comment xml:lang="zh_TW">超級任天堂 ROM</comment>
<generic-icon name="application-x-executable"/> <generic-icon name="application-x-executable"/>
<alias type="application/x-snes-rom"/>
<glob pattern="*.sfc"/>
<glob pattern="*.smc"/> <glob pattern="*.smc"/>
</mime-type> </mime-type>
<mime-type type="application/x-stuffit"> <mime-type type="application/x-stuffit">
...@@ -17419,7 +17533,7 @@ ...@@ -17419,7 +17533,7 @@
</magic> </magic>
<glob pattern="*.tr"/> <glob pattern="*.tr"/>
<glob pattern="*.roff"/> <glob pattern="*.roff"/>
<glob pattern="*.t"/> <glob weight="10" pattern="*.t"/>
</mime-type> </mime-type>
<mime-type type="application/x-troff-man"> <mime-type type="application/x-troff-man">
<comment>Troff document (with manpage macros)</comment> <comment>Troff document (with manpage macros)</comment>
...@@ -19779,7 +19893,7 @@ ...@@ -19779,7 +19893,7 @@
<comment xml:lang="vi">Âm thanh Windows Media</comment> <comment xml:lang="vi">Âm thanh Windows Media</comment>
<comment xml:lang="zh_CN">Windows Media 音频</comment> <comment xml:lang="zh_CN">Windows Media 音频</comment>
<comment xml:lang="zh_TW">Windows Media 音訊</comment> <comment xml:lang="zh_TW">Windows Media 音訊</comment>
<sub-class-of type="video/x-ms-asf"/> <sub-class-of type="application/vnd.ms-asf"/>
<glob pattern="*.wma"/> <glob pattern="*.wma"/>
<alias type="audio/wma"/> <alias type="audio/wma"/>
</mime-type> </mime-type>
...@@ -20170,6 +20284,9 @@ ...@@ -20170,6 +20284,9 @@
<comment xml:lang="vi">Âm thanh RIFF</comment> <comment xml:lang="vi">Âm thanh RIFF</comment>
<comment xml:lang="zh_CN">RIFF 音频</comment> <comment xml:lang="zh_CN">RIFF 音频</comment>
<comment xml:lang="zh_TW">RIFF 音訊</comment> <comment xml:lang="zh_TW">RIFF 音訊</comment>
</mime-type>
<mime-type type="application/x-riff">
<comment>RIFF container</comment>
<magic priority="45"> <magic priority="45">
<match value="RIFF" type="string" offset="0"/> <match value="RIFF" type="string" offset="0"/>
...@@ -21083,16 +21200,17 @@ ...@@ -21083,16 +21200,17 @@
<comment xml:lang="zh_TW">JPEG-2000 影像</comment> <comment xml:lang="zh_TW">JPEG-2000 影像</comment>
<alias type="image/jpeg2000"/> <alias type="image/jpeg2000"/>
<alias type="image/jpx"/> <alias type="image/jpx"/>
<alias type="image/jpeg2000-image"/>
<alias type="image/x-jpeg2000-image"/>
<magic priority="50"> <magic priority="50">
<match value="jP" type="string" offset="4"/>
<match value="\xFF\x4F\xFF\x51\x00" type="string" offset="0"/> <match value="\xFF\x4F\xFF\x51\x00" type="string" offset="0"/>
<match value="0x0c6a5020" type="big32" offset="3"/> <match value="0x0c6a5020" type="big32" offset="3"/>
<match value="jp2" type="string" offset="20"/>
</magic> </magic>
<glob pattern="*.jp2"/> <glob pattern="*.jp2"/>
<glob pattern="*.jpc"/>
<glob pattern="*.jpx"/> <glob pattern="*.jpx"/>
<glob pattern="*.j2k"/>
<glob pattern="*.jpf"/> <glob pattern="*.jpf"/>
</mime-type> </mime-type>
<mime-type type="image/openraster"> <mime-type type="image/openraster">
<comment>OpenRaster archiving image</comment> <comment>OpenRaster archiving image</comment>
...@@ -22344,7 +22462,7 @@ ...@@ -22344,7 +22462,7 @@
<match value="CgBI" type="string" offset="12"/> <match value="CgBI" type="string" offset="12"/>
</match> </match>
</magic> </magic>
<glob pattern="*.png"/> <glob weight="10" pattern="*.png"/>
</mime-type> </mime-type>
<mime-type type="image/rle"> <mime-type type="image/rle">
<comment>Run Length Encoded bitmap image</comment> <comment>Run Length Encoded bitmap image</comment>
...@@ -22699,6 +22817,15 @@ ...@@ -22699,6 +22817,15 @@
<match value="\x45\x50\x2A\x00" type="string" offset="0"/> <match value="\x45\x50\x2A\x00" type="string" offset="0"/>
</magic> </magic>
</mime-type> </mime-type>
<mime-type type="image/webp">
<comment>WebP image</comment>
<magic priority="50">
<match value="RIFF" type="string" offset="0">
<match value="WEBP" type="string" offset="8"/>
</match>
</magic>
<glob pattern="*.webp"/>
</mime-type>
<mime-type type="image/x-3ds"> <mime-type type="image/x-3ds">
<comment>3D Studio image</comment> <comment>3D Studio image</comment>
<comment xml:lang="ar">صورة استديو ثلاثية الأبعاد</comment> <comment xml:lang="ar">صورة استديو ثلاثية الأبعاد</comment>
...@@ -24307,7 +24434,12 @@ ...@@ -24307,7 +24434,12 @@
<match value="8BPS \000\000\000\000" type="string" offset="0" mask="0xffffffff0000ffffffff"/> <match value="8BPS \000\000\000\000" type="string" offset="0" mask="0xffffffff0000ffffffff"/>
</magic> </magic>
<glob pattern="*.psd"/> <glob pattern="*.psd"/>
<alias type="image/psd"/>
<alias type="image/x-psd"/> <alias type="image/x-psd"/>
<alias type="image/photoshop"/>
<alias type="image/x-photoshop"/>
<alias type="application/photoshop"/>
<alias type="application/x-photoshop"/>
</mime-type> </mime-type>
<mime-type type="image/x-rgb"> <mime-type type="image/x-rgb">
<comment>RGB image</comment> <comment>RGB image</comment>
...@@ -26337,9 +26469,8 @@ ...@@ -26337,9 +26469,8 @@
<comment xml:lang="zh_TW">CSS 樣式表</comment> <comment xml:lang="zh_TW">CSS 樣式表</comment>
<acronym>CSS</acronym> <acronym>CSS</acronym>
<expanded-acronym>Cascading Style Sheets</expanded-acronym> <expanded-acronym>Cascading Style Sheets</expanded-acronym>
<sub-class-of type="text/x-csrc"/> <sub-class-of type="text/plain"/>
<glob pattern="*.css"/> <glob pattern="*.css"/>
<glob pattern="*.CSSL"/>
</mime-type> </mime-type>
<mime-type type="text/vcard"> <mime-type type="text/vcard">
<comment>electronic business card</comment> <comment>electronic business card</comment>
...@@ -29973,9 +30104,10 @@ ...@@ -29973,9 +30104,10 @@
<match value="#!/usr/local/bin/python" type="string" offset="0"/> <match value="#!/usr/local/bin/python" type="string" offset="0"/>
<match value="#! /usr/local/bin/python" type="string" offset="0"/> <match value="#! /usr/local/bin/python" type="string" offset="0"/>
<match value='eval \"exec /usr/local/bin/python' type="string" offset="0"/> <match value='eval \"exec /usr/local/bin/python' type="string" offset="0"/>
<match value='/bin/env python' type="string" offset="1:16"/> <match value='/bin/env python' type="string" offset="2:16"/>
</magic> </magic>
<glob pattern="*.py"/> <glob pattern="*.py"/>
<glob pattern="*.pyx"/>
<glob pattern="*.wsgi"/> <glob pattern="*.wsgi"/>
</mime-type> </mime-type>
<mime-type type="text/x-lua"> <mime-type type="text/x-lua">
...@@ -30025,8 +30157,10 @@ ...@@ -30025,8 +30157,10 @@
<sub-class-of type='application/x-executable'/> <sub-class-of type='application/x-executable'/>
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<magic priority="50"> <magic priority="50">
<match value="/bin/lua" type="string" offset="0"/> <match value="/bin/lua" type="string" offset="2:16"/>
<match value="/bin/env lua" type="string" offset="0"/> <match value="/bin/luajit" type="string" offset="2:16"/>
<match value="/bin/env lua" type="string" offset="2:16"/>
<match value="/bin/env luajit" type="string" offset="2:16"/>
</magic> </magic>
<glob pattern="*.lua"/> <glob pattern="*.lua"/>
</mime-type> </mime-type>
...@@ -30323,7 +30457,7 @@ ...@@ -30323,7 +30457,7 @@
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<glob pattern="*.etx"/> <glob pattern="*.etx"/>
</mime-type> </mime-type>
<mime-type type="text/x-sql"> <mime-type type="application/sql">
<comment>SQL code</comment> <comment>SQL code</comment>
<comment xml:lang="ar">شفرة SQL</comment> <comment xml:lang="ar">شفرة SQL</comment>
<comment xml:lang="az">SQL kodu</comment> <comment xml:lang="az">SQL kodu</comment>
...@@ -30375,6 +30509,7 @@ ...@@ -30375,6 +30509,7 @@
<comment xml:lang="zh_TW">SQL 代碼</comment> <comment xml:lang="zh_TW">SQL 代碼</comment>
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<glob pattern="*.sql"/> <glob pattern="*.sql"/>
<alias type="text/x-sql"/>
</mime-type> </mime-type>
<mime-type type="text/x-tcl"> <mime-type type="text/x-tcl">
<comment>Tcl script</comment> <comment>Tcl script</comment>
...@@ -31914,7 +32049,7 @@ ...@@ -31914,7 +32049,7 @@
</magic> </magic>
<glob pattern="*.mng"/> <glob pattern="*.mng"/>
</mime-type> </mime-type>
<mime-type type="video/x-ms-asf"> <mime-type type="application/vnd.ms-asf">
<comment>ASF video</comment> <comment>ASF video</comment>
<comment xml:lang="ar">ASF مرئي</comment> <comment xml:lang="ar">ASF مرئي</comment>
<comment xml:lang="be@latin">Videa ASF</comment> <comment xml:lang="be@latin">Videa ASF</comment>
...@@ -31962,7 +32097,7 @@ ...@@ -31962,7 +32097,7 @@
<acronym>ASF</acronym> <acronym>ASF</acronym>
<expanded-acronym>Advanced Streaming Format</expanded-acronym> <expanded-acronym>Advanced Streaming Format</expanded-acronym>
<alias type="video/x-ms-wm"/> <alias type="video/x-ms-wm"/>
<alias type="application/vnd.ms-asf"/> <alias type="video/x-ms-asf"/>
<glob pattern="*.asf"/> <glob pattern="*.asf"/>
<magic priority="50"> <magic priority="50">
<match value="0x3026b275" type="big32" offset="0"/> <match value="0x3026b275" type="big32" offset="0"/>
...@@ -32012,7 +32147,7 @@ ...@@ -32012,7 +32147,7 @@
<comment xml:lang="vi">Tập tin Windows Media Station</comment> <comment xml:lang="vi">Tập tin Windows Media Station</comment>
<comment xml:lang="zh_CN">Windows 媒体工作站文件</comment> <comment xml:lang="zh_CN">Windows 媒体工作站文件</comment>
<comment xml:lang="zh_TW">Windows Media Station 檔</comment> <comment xml:lang="zh_TW">Windows Media Station 檔</comment>
<sub-class-of type="video/x-ms-asf"/> <sub-class-of type="application/vnd.ms-asf"/>
<generic-icon name="video-x-generic"/> <generic-icon name="video-x-generic"/>
<glob pattern="*.nsc"/> <glob pattern="*.nsc"/>
<magic priority="50"> <magic priority="50">
...@@ -32062,7 +32197,7 @@ ...@@ -32062,7 +32197,7 @@
<comment xml:lang="vi">Ảnh động Windows Media</comment> <comment xml:lang="vi">Ảnh động Windows Media</comment>
<comment xml:lang="zh_CN">Windows Media 视频</comment> <comment xml:lang="zh_CN">Windows Media 视频</comment>
<comment xml:lang="zh_TW">Windows Media 視訊</comment> <comment xml:lang="zh_TW">Windows Media 視訊</comment>
<sub-class-of type="video/x-ms-asf"/> <sub-class-of type="application/vnd.ms-asf"/>
<glob pattern="*.wmv"/> <glob pattern="*.wmv"/>
</mime-type> </mime-type>
<mime-type type="video/x-msvideo"> <mime-type type="video/x-msvideo">
...@@ -33696,6 +33831,10 @@ ...@@ -33696,6 +33831,10 @@
<comment xml:lang="uk">пристрій для читання електронних книг</comment> <comment xml:lang="uk">пристрій для читання електронних книг</comment>
<comment xml:lang="zh_CN">电子书阅读器</comment> <comment xml:lang="zh_CN">电子书阅读器</comment>
<comment xml:lang="zh_TW">e-book 閱讀器</comment> <comment xml:lang="zh_TW">e-book 閱讀器</comment>
<treemagic>
<treematch type="directory" path=".kobo" non-empty="true"/>
<treematch path="system/com.amazon.ebook.booklet.reader" non-empty="false"/>
</treemagic>
</mime-type> </mime-type>
<mime-type type="x-content/image-picturecd"> <mime-type type="x-content/image-picturecd">
...@@ -33940,4 +34079,17 @@ ...@@ -33940,4 +34079,17 @@
<glob pattern="*.trig"/> <glob pattern="*.trig"/>
</mime-type> </mime-type>
<mime-type type="application/x-iwork-keynote-sffkey">
<comment>Apple Keynote 5 presentation</comment>
<sub-class-of type="application/zip"/>
<generic-icon name="x-office-presentation"/>
<magic priority="50">
<match value="PK\003\004" type="string" offset="0">
<match value="index.apxl" type="string" offset="30"/>
</match>
</magic>
<glob pattern="*.key"/>
<alias type="application/vnd.apple.keynote"/>
</mime-type>
</mime-info> </mime-info>
\ No newline at end of file
#!/usr/bin/ruby #!/usr/bin/env ruby
require 'nokogiri' require 'nokogiri'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment