From b2f6265992d3c7bcc5b93f99da1dbe991ce75c7e Mon Sep 17 00:00:00 2001 From: ju1ius <218404+ju1ius@users.noreply.github.com> Date: Mon, 22 Apr 2024 00:56:07 +0000 Subject: [PATCH] [bot] updates mime-info database from upstream --- src/Resources/db/aliases.php | 8 +- src/Resources/db/globs.php | 33 +-- src/Resources/db/icons.php | 24 ++- src/Resources/db/magic.php | 64 +++++- src/Resources/db/subclasses.php | 32 ++- src/Resources/mime-info/freedesktop.org.xml | 223 ++++++++++++++++---- 6 files changed, 302 insertions(+), 82 deletions(-) diff --git a/src/Resources/db/aliases.php b/src/Resources/db/aliases.php index 73637a0..e110308 100644 --- a/src/Resources/db/aliases.php +++ b/src/Resources/db/aliases.php @@ -57,8 +57,8 @@ 'application/x-msword' => 'application/msword', 'zz-application/zz-winassoc-doc' => 'application/msword', 'application/ms-tnef' => 'application/vnd.ms-tnef', - 'application/vnd.stardivision.writer-global' => 'application/vnd.stardivision.writer', 'application/vnd.sun.xml.base' => 'application/vnd.oasis.opendocument.database', + 'application/x-parquet' => 'application/vnd.apache.parquet', 'application/x-pcap' => 'application/vnd.tcpdump.pcap', 'application/pcap' => 'application/vnd.tcpdump.pcap', 'application/x-wordperfect' => 'application/vnd.wordperfect', @@ -81,6 +81,7 @@ 'application/x-dbase' => 'application/vnd.dbf', 'application/x-dbf' => 'application/vnd.dbf', 'text/ecmascript' => 'application/ecmascript', + 'application/x-nx-xci' => 'application/x-nintendo-switch-xci', 'application/x-wii-iso-image' => 'application/x-wii-rom', 'application/x-wbfs' => 'application/x-wii-rom', 'application/x-wia' => 'application/x-wii-rom', @@ -222,8 +223,8 @@ 'image/x-panasonic-raw2' => 'image/x-panasonic-rw2', 'image/vnd.mozilla.apng' => 'image/apng', 'image/vnd.ms-photo' => 'image/jxr', - 'application/docbook+xml' => 'application/x-docbook+xml', - 'application/vnd.oasis.docbook+xml' => 'application/x-docbook+xml', + 'application/x-docbook+xml' => 'application/docbook+xml', + 'application/vnd.oasis.docbook+xml' => 'application/docbook+xml', 'image/x-djvu' => 'image/vnd.djvu', 'image/x.djvu' => 'image/vnd.djvu', 'image/x-fits' => 'application/fits', @@ -267,6 +268,7 @@ 'text/rdf' => 'application/rdf+xml', 'text/rss' => 'application/rss+xml', 'text/x-opml' => 'text/x-opml+xml', + 'text/spreadsheet' => 'application/x-sylk', 'text/x-comma-separated-values' => 'text/csv', 'text/x-csv' => 'text/csv', 'text/x-c' => 'text/x-csrc', diff --git a/src/Resources/db/globs.php b/src/Resources/db/globs.php index 21c6d2b..1bc7d6b 100644 --- a/src/Resources/db/globs.php +++ b/src/Resources/db/globs.php @@ -137,16 +137,17 @@ 'gnd' => [new GlobLiteral('application/gnunet-directory', 50, 5)], 'tnef' => [new GlobLiteral('application/vnd.ms-tnef', 50, 6)], 'tnf' => [new GlobLiteral('application/vnd.ms-tnef', 50, 5)], - 'sdc' => [new GlobLiteral('application/vnd.stardivision.calc', 50, 5)], - 'sds' => [new GlobLiteral('application/vnd.stardivision.chart', 50, 5)], - 'sda' => [new GlobLiteral('application/vnd.stardivision.draw', 50, 5)], - 'sdd' => [new GlobLiteral('application/vnd.stardivision.impress', 50, 5)], - 'sdp' => [new GlobLiteral('application/vnd.stardivision.impress', 50, 5), new GlobLiteral('application/sdp', 50, 5)], - 'smd' => [new GlobLiteral('application/x-genesis-rom', 50, 5), new GlobLiteral('application/vnd.stardivision.mail', 10, 5)], - 'smf' => [new GlobLiteral('application/vnd.stardivision.math', 50, 5)], - 'sdw' => [new GlobLiteral('application/vnd.stardivision.writer', 50, 5)], - 'vor' => [new GlobLiteral('application/vnd.stardivision.writer', 50, 5)], - 'sgl' => [new GlobLiteral('application/vnd.stardivision.writer', 50, 5)], + 'sdc' => [new GlobLiteral('application/vnd.stardivision.calc', 50, 5), new GlobLiteral('application/x-starcalc', 40, 5)], + 'sds' => [new GlobLiteral('application/vnd.stardivision.chart', 50, 5), new GlobLiteral('application/x-starchart', 40, 5)], + 'sda' => [new GlobLiteral('application/vnd.stardivision.draw', 50, 5), new GlobLiteral('application/x-stardraw', 40, 5)], + 'sdd' => [new GlobLiteral('application/vnd.stardivision.impress', 50, 5), new GlobLiteral('application/x-starimpress', 40, 5)], + 'smd' => [new GlobLiteral('application/x-genesis-rom', 50, 5), new GlobLiteral('application/x-starmail', 10, 5)], + 'smf' => [new GlobLiteral('application/vnd.stardivision.math', 50, 5), new GlobLiteral('application/x-starmath', 40, 5)], + 'sdw' => [new GlobLiteral('application/vnd.stardivision.writer', 50, 5), new GlobLiteral('application/x-starwriter', 40, 5)], + 'vor' => [new GlobLiteral('application/vnd.stardivision.writer', 50, 5), new GlobLiteral('application/x-starwriter', 40, 5)], + 'sgl' => [new GlobLiteral('application/vnd.stardivision.writer-global', 50, 5), new GlobLiteral('application/x-starwriter-global', 40, 5)], + 'sdp' => [new GlobLiteral('application/sdp', 50, 5), new GlobLiteral('application/vnd.stardivision.impress-packed', 10, 5)], + 'sdm' => [new GlobLiteral('application/vnd.stardivision.mail', 50, 5)], 'sxc' => [new GlobLiteral('application/vnd.sun.xml.calc', 50, 5)], 'stc' => [new GlobLiteral('application/vnd.sun.xml.calc.template', 50, 5)], 'sxd' => [new GlobLiteral('application/vnd.sun.xml.draw', 50, 5)], @@ -178,6 +179,7 @@ 'odb' => [new GlobLiteral('application/vnd.oasis.opendocument.database', 50, 5)], 'odi' => [new GlobLiteral('application/vnd.oasis.opendocument.image', 50, 5)], 'oxt' => [new GlobLiteral('application/vnd.openofficeorg.extension', 50, 5)], + 'parquet' => [new GlobLiteral('application/vnd.apache.parquet', 50, 9)], 'apk' => [new GlobLiteral('application/vnd.android.package-archive', 50, 5)], 'sis' => [new GlobLiteral('application/vnd.symbian.install', 50, 5)], 'sisx' => [new GlobLiteral('x-epoc/x-sisx-app', 50, 6)], @@ -270,6 +272,7 @@ '3ds' => [new GlobLiteral('application/x-nintendo-3ds-rom', 50, 5), new GlobLiteral('image/x-3ds', 50, 5)], 'cci' => [new GlobLiteral('application/x-nintendo-3ds-rom', 50, 5)], '3dsx' => [new GlobLiteral('application/x-nintendo-3ds-executable', 50, 6)], + 'xci' => [new GlobLiteral('application/x-nintendo-switch-xci', 50, 5)], 'pce' => [new GlobLiteral('application/x-pc-engine-rom', 50, 5)], 'wad' => [new GlobLiteral('application/x-doom-wad', 80, 5), new GlobLiteral('application/x-wii-wad', 50, 5)], 'm7' => [new GlobLiteral('application/x-thomson-cartridge-memo7', 50, 4)], @@ -736,6 +739,7 @@ 'srf' => [new GlobLiteral('image/x-sony-srf', 50, 5)], 'sr2' => [new GlobLiteral('image/x-sony-sr2', 50, 5)], 'arw' => [new GlobLiteral('image/x-sony-arw', 50, 5)], + 'lrf' => [new GlobLiteral('application/x-sony-bbeb', 50, 5)], 'png' => [new GlobLiteral('image/png', 50, 5), new GlobLiteral('image/apng', 40, 5)], 'apng' => [new GlobLiteral('image/apng', 50, 6)], 'rle' => [new GlobLiteral('image/rle', 50, 5)], @@ -759,8 +763,8 @@ 'xcf.gz' => [new GlobLiteral('image/x-compressed-xcf', 50, 8)], 'xcf.bz2' => [new GlobLiteral('image/x-compressed-xcf', 50, 9)], 'dcm' => [new GlobLiteral('application/dicom', 50, 5)], - 'dbk' => [new GlobLiteral('application/x-docbook+xml', 50, 5)], - 'docbook' => [new GlobLiteral('application/x-docbook+xml', 50, 9)], + 'dbk' => [new GlobLiteral('application/docbook+xml', 50, 5)], + 'docbook' => [new GlobLiteral('application/docbook+xml', 50, 9)], 'djvu' => [new GlobLiteral('image/vnd.djvu', 50, 6), new GlobLiteral('image/vnd.djvu+multipage', 50, 6)], 'djv' => [new GlobLiteral('image/vnd.djvu', 50, 5), new GlobLiteral('image/vnd.djvu+multipage', 50, 5)], 'eps' => [new GlobLiteral('image/x-eps', 50, 5)], @@ -844,8 +848,8 @@ 'opml' => [new GlobLiteral('text/x-opml+xml', 50, 6)], 'sgml' => [new GlobLiteral('text/sgml', 50, 6)], 'sgm' => [new GlobLiteral('text/sgml', 50, 5)], - 'sylk' => [new GlobLiteral('text/spreadsheet', 50, 6)], - 'slk' => [new GlobLiteral('text/spreadsheet', 50, 5)], + 'sylk' => [new GlobLiteral('application/x-sylk', 50, 6)], + 'slk' => [new GlobLiteral('application/x-sylk', 50, 5)], 'tsv' => [new GlobLiteral('text/tab-separated-values', 50, 5)], 'gv' => [new GlobLiteral('text/vnd.graphviz', 50, 4)], 'jad' => [new GlobLiteral('text/vnd.sun.j2me.app-descriptor', 50, 5)], @@ -1104,6 +1108,7 @@ 'openvpn' => [new GlobLiteral('application/x-openvpn-profile', 50, 9)], 'ovpn' => [new GlobLiteral('application/x-openvpn-profile', 50, 6)], 'mrpack' => [new GlobLiteral('application/x-modrinth-modpack+zip', 50, 8)], + 'qbrew' => [new GlobLiteral('application/x-qbrew', 50, 7)], 'cbor' => [new GlobLiteral('application/cbor', 50, 6)], 'eris' => [new GlobLiteral('application/x-eris-link+cbor', 50, 6)], 'gbrjob' => [new GlobLiteral('application/x-gerber-job', 50, 8)], diff --git a/src/Resources/db/icons.php b/src/Resources/db/icons.php index 063806b..21e0749 100644 --- a/src/Resources/db/icons.php +++ b/src/Resources/db/icons.php @@ -14,7 +14,7 @@ 'application/illustrator' => 'image-x-generic', 'application/mac-binhex40' => 'package-x-generic', 'application/mathematica' => 'x-office-document', - 'application/mbox' => 'text-x-generic', + 'application/mbox' => 'emblem-mail', 'application/x-partial-download' => 'package-x-generic', 'application/oda' => 'x-office-document', 'application/x-wwf' => 'x-office-document', @@ -72,12 +72,23 @@ 'application/vnd.visio' => 'x-office-document', 'application/msword' => 'x-office-document', 'application/msword-template' => 'x-office-document', + 'application/x-starcalc' => 'x-office-spreadsheet', + 'application/x-starchart' => 'x-office-spreadsheet', + 'application/x-stardraw' => 'image-x-generic', + 'application/x-starimpress' => 'x-office-presentation', + 'application/x-starmail' => 'emblem-mail', + 'application/x-starmath' => 'x-office-document', + 'application/x-starwriter' => 'x-office-document', + 'application/x-starwriter-global' => 'x-office-document', 'application/vnd.stardivision.calc' => 'x-office-spreadsheet', 'application/vnd.stardivision.chart' => 'x-office-spreadsheet', 'application/vnd.stardivision.draw' => 'image-x-generic', 'application/vnd.stardivision.impress' => 'x-office-presentation', + 'application/vnd.stardivision.impress-packed' => 'x-office-presentation', + 'application/vnd.stardivision.mail' => 'emblem-mail', 'application/vnd.stardivision.math' => 'x-office-document', 'application/vnd.stardivision.writer' => 'x-office-document', + 'application/vnd.stardivision.writer-global' => 'x-office-document', 'application/vnd.sun.xml.calc' => 'x-office-spreadsheet', 'application/vnd.sun.xml.calc.template' => 'x-office-spreadsheet', 'application/vnd.sun.xml.draw' => 'image-x-generic', @@ -109,6 +120,7 @@ 'application/vnd.oasis.opendocument.database' => 'x-office-document', 'application/vnd.oasis.opendocument.image' => 'image-x-generic', 'application/vnd.openofficeorg.extension' => 'x-office-document', + 'application/vnd.apache.parquet' => 'x-office-spreadsheet', 'application/vnd.symbian.install' => 'package-x-generic', 'x-epoc/x-sisx-app' => 'package-x-generic', 'application/vnd.wordperfect' => 'x-office-document', @@ -379,8 +391,9 @@ 'application/zip' => 'package-x-generic', 'application/vnd.rn-realmedia' => 'video-x-generic', 'application/x-ufraw' => 'image-x-generic', + 'application/x-sony-bbeb' => 'x-office-document', 'application/dicom' => 'image-x-generic', - 'application/x-docbook+xml' => 'x-office-document', + 'application/docbook+xml' => 'x-office-document', 'image/vnd.djvu+multipage' => 'x-office-document', 'image/x-photo-cd' => 'media-optical', 'inode/directory' => 'folder', @@ -389,23 +402,26 @@ 'message/external-body' => 'text-x-generic', 'message/news' => 'text-x-generic', 'message/partial' => 'text-x-generic', - 'message/rfc822' => 'text-x-generic', - 'message/x-gnu-rmail' => 'text-x-generic', + 'message/rfc822' => 'emblem-mail', + 'message/x-gnu-rmail' => 'emblem-mail', 'model/iges' => 'x-office-document', 'model/gltf-binary' => 'image-x-generic', 'model/gltf+json' => 'image-x-generic', 'model/vrml' => 'x-office-document', 'model/obj' => 'image-x-generic', 'model/mtl' => 'image-x-generic', + 'text/calendar' => 'x-office-calendar', 'application/rss+xml' => 'text-html', 'application/atom+xml' => 'text-html', 'text/x-opml+xml' => 'text-html', + 'application/x-sylk' => 'x-office-spreadsheet', 'text/vnd.graphviz' => 'x-office-document', 'application/x-ace' => 'package-x-generic', 'application/xml-dtd' => 'text-x-generic', 'text/x-genie' => 'text-x-generic', 'application/hta' => 'text-html', 'text/x-component' => 'text-html', + 'text/x-ldif' => 'x-office-address-book', 'text/markdown' => 'x-office-document', 'text/x-sass' => 'text-x-generic', 'text/x-scss' => 'text-x-generic', diff --git a/src/Resources/db/magic.php b/src/Resources/db/magic.php index 197e2d4..6bceed1 100644 --- a/src/Resources/db/magic.php +++ b/src/Resources/db/magic.php @@ -11,15 +11,24 @@ return new MagicDatabase( lookupBufferSize: 18730, rules: [ + new MagicRule('application/docbook+xml', 90, 126, [ + new MagicRegex('~(?n)\A(?(?=\<\?xml)(.{0,100}\-//OASIS//DTD DocBook XML|.{0,100}\-//KDE//DTD DocBook XML)|(*FAIL))~Ss'), + ]), new MagicRule('application/vnd.stardivision.writer', 90, 8209, [ - new MagicRegex('~(?n)\A((?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}@\~\\\\\xDC\\\\\xB3\x1B\x10\x99a\x04\x02\x1C\x00p\x02|.{592}.{0,7600}\xB0\xE9\x04\x8B\x0EB\xD0\x11\xA4\^\x00\xA0\$\x9DW\xB1|.{592}.{0,7600}\xD1\xF9\f\xC2\xAE\x85\xD1\x11\xAA\xB4\x00\x06\t\}V\x1A)|(*FAIL))|.{2089}StarWriter)~Ss'), + new MagicRegex('~(?n)\A((?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}\xD1\xF9\f\xC2\xAE\x85\xD1\x11\xAA\xB4\x00\x06\t\}V\x1A|(*FAIL))|.{2089}StarWriter)~Ss'), ]), - new MagicRule('application/x-docbook+xml', 90, 126, [ - new MagicRegex('~(?n)\A(?(?=\<\?xml)(.{0,100}\-//OASIS//DTD DocBook XML|.{0,100}\-//KDE//DTD DocBook XML)|(*FAIL))~Ss'), + new MagicRule('application/vnd.stardivision.writer-global', 90, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}\xD3\xF9\f\xC2\xAE\x85\xD1\x11\xAA\xB4\x00`\x97\xDAV\x1A|(*FAIL))~Ss'), ]), new MagicRule('application/x-eris-link+cbor', 90, 10, [ new MagicMatch(0, 1, "\xD9\xD9\xF7\x84\xD9\x01\x14XB", '', 0), ]), + new MagicRule('application/x-starwriter', 90, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}@\~\\\\\xDC\\\\\xB3\x1B\x10\x99a\x04\x02\x1C\x00p\x02|.{592}.{0,7600}\xB0\xE9\x04\x8B\x0EB\xD0\x11\xA4\^\x00\xA0\$\x9DW\xB1)|(*FAIL))~Ss'), + ]), + new MagicRule('application/x-starwriter-global', 90, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}p\xC9\n4\r\xE3\xD0\x11\xA5\?\x00\xA0\$\x9DW\xB1|(*FAIL))~Ss'), + ]), new MagicRule('image/x-eps', 90, 20, [ new MagicRegex('~(?n)\A((?(?=%\!).{15}EPS|(*FAIL))|(?(?=\x04%\!).{16}EPS|(*FAIL))|\xC5\xD0\xD3\xC6)~Ss'), ]), @@ -165,7 +174,7 @@ new MagicRegex('~(?n)\A(?(?=PK\x03\x04)(?(?=.{30}mimetype).{38}application/vnd\.oasis\.opendocument\.text\-web|(*FAIL))|(*FAIL))~Ss'), ]), new MagicRule('application/vnd.stardivision.impress', 70, 8209, [ - new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}\!r\\\\V\xBC\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}\xC0\<\-\x01\x16B\xD0\x11\x89\xCB\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}\xE0\xAA\x10\xAFm\xB3\x1B\x10\x99a\x04\x02\x1C\x00p\x02)|(*FAIL))~Ss'), + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}\!r\\\\V\xBC\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|(*FAIL))~Ss'), ]), new MagicRule('application/vnd.sun.xml.calc', 70, 67, [ new MagicRegex('~(?n)\A(?(?=PK\x03\x04)(?(?=.{30}mimetype).{38}application/vnd\.sun\.xml\.calc|(*FAIL))|(*FAIL))~Ss'), @@ -200,6 +209,9 @@ new MagicRule('application/x-ms-ne-executable', 70, 259, [ new MagicRegex('~(?n)\A(?(?=MZ).{64}.{0,192}NE|(*FAIL))~Ss'), ]), + new MagicRule('application/x-starimpress', 70, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}\xC0\<\-\x01\x16B\xD0\x11\x89\xCB\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}\xE0\xAA\x10\xAFm\xB3\x1B\x10\x99a\x04\x02\x1C\x00p\x02)|(*FAIL))~Ss'), + ]), new MagicRule('application/x-zip-compressed-fb2', 70, 261, [ new MagicRegex('~(?n)\A(?(?=PK\x03\x04).{30}.{0,226}\.fb2|(*FAIL))~Ss'), ]), @@ -249,16 +261,19 @@ new MagicMatch(0, 1, 'Rar!', '', 0), ]), new MagicRule('application/vnd.stardivision.calc', 60, 8209, [ - new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}A\xD4ac5B\xD0\x11\x89\xCB\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}a\xB8\xA5\xC6\xD6\x85\xD1\x11\x89\xCB\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}\xA0\?T\?\xA6\xB6\x1B\x10\x99a\x04\x02\x1C\x00p\x02)|(*FAIL))~Ss'), + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}a\xB8\xA5\xC6\xD6\x85\xD1\x11\x89\xCB\x00\x80\)\xE4\xB0\xB1|(*FAIL))~Ss'), ]), new MagicRule('application/vnd.stardivision.chart', 60, 8209, [ - new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}\!C\x88\xBF\xDD\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}\xE0\x99\x9C\xFBm,\x1C\x10\x8E,\x00\x00\x1BL\xC7\x11|.{592}.{0,7600}\xE0\xB7\xB3\x02%B\xD0\x11\x89\xCA\x00\x80\)\xE4\xB0\xB1)|(*FAIL))~Ss'), + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}\!C\x88\xBF\xDD\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|(*FAIL))~Ss'), ]), new MagicRule('application/vnd.stardivision.draw', 60, 8209, [ - new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}\xA0\x05\x89\.\xBD\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}\xE0\xAA\x10\xAFm\xB3\x1B\x10\x99a\x04\x02\x1C\x00p\x02)|(*FAIL))~Ss'), + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}\xA0\x05\x89\.\xBD\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|(*FAIL))~Ss'), + ]), + new MagicRule('application/vnd.stardivision.mail', 60, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}\xE0\xC4L\xC2\xDFs\x1B\x10\x80L\xFD\xFD\xFD\xFD\xFD\xFD|(*FAIL))~Ss'), ]), new MagicRule('application/vnd.stardivision.math', 60, 8209, [ - new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}@\xE6\xB5\xFF\xDE\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}`\x04Y\xD4\xFD5\x1C\x10\xB1\*\x04\x02\x1C\x00p\x02|.{592}.{0,7600}\xE1\xB7\xB3\x02%B\xD0\x11\x89\xCA\x00\x80\)\xE4\xB0\xB1)|(*FAIL))~Ss'), + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}@\xE6\xB5\xFF\xDE\x85\xD1\x11\x89\xD0\x00\x80\)\xE4\xB0\xB1|(*FAIL))~Ss'), ]), new MagicRule('application/vnd.visio', 60, 8209, [ new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}\x13\x1A\x02\x00\x00\x00\x00\x00\xC0\x00\x00\x00\x00\x00\x00F|.{592}.{0,7600}\x14\x1A\x02\x00\x00\x00\x00\x00\xC0\x00\x00\x00\x00\x00\x00F)|(*FAIL))~Ss'), @@ -352,6 +367,18 @@ new MagicRule('application/x-sega-cd-rom', 60, 277, [ new MagicRegex('~(?n)\A((?(?=SEGADISCSYSTEM).{256}SEGA|(*FAIL))|(?(?=.{16}SEGADISCSYSTEM).{272}SEGA|(*FAIL)))~Ss'), ]), + new MagicRule('application/x-starcalc', 60, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}A\xD4ac5B\xD0\x11\x89\xCB\x00\x80\)\xE4\xB0\xB1|.{592}.{0,7600}\xA0\?T\?\xA6\xB6\x1B\x10\x99a\x04\x02\x1C\x00p\x02)|(*FAIL))~Ss'), + ]), + new MagicRule('application/x-starchart', 60, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}\xE0\x99\x9C\xFBm,\x1C\x10\x8E,\x00\x00\x1BL\xC7\x11|.{592}.{0,7600}\xE0\xB7\xB3\x02%B\xD0\x11\x89\xCA\x00\x80\)\xE4\xB0\xB1)|(*FAIL))~Ss'), + ]), + new MagicRule('application/x-stardraw', 60, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1).{592}.{0,7600}\xE0\xAA\x10\xAFm\xB3\x1B\x10\x99a\x04\x02\x1C\x00p\x02|(*FAIL))~Ss'), + ]), + new MagicRule('application/x-starmath', 60, 8209, [ + new MagicRegex('~(?n)\A(?(?=\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1)(.{592}.{0,7600}`\x04Y\xD4\xFD5\x1C\x10\xB1\*\x04\x02\x1C\x00p\x02|.{592}.{0,7600}\xE1\xB7\xB3\x02%B\xD0\x11\x89\xCA\x00\x80\)\xE4\xB0\xB1)|(*FAIL))~Ss'), + ]), new MagicRule('application/x-stuffit', 60, 9, [ new MagicRegex('~(?n)\A(StuffIt |SIT\!)~Ss'), ]), @@ -475,6 +502,9 @@ new MagicRule('application/vnd.adobe.flash.movie', 50, 4, [ new MagicRegex('~(?n)\A(FWS|CWS)~Ss'), ]), + new MagicRule('application/vnd.apache.parquet', 50, 5, [ + new MagicRegex('~(?n)\A(PAR1|PARE)~Ss'), + ]), new MagicRule('application/vnd.appimage', 50, 12, [ new MagicRegex('~(?n)\A(?(?=.{1}ELF)(?(?=.{8}A)(?(?=.{9}I).{10}\x02|(*FAIL))|(*FAIL))|(*FAIL))~Ss'), ]), @@ -538,6 +568,9 @@ new MagicRule('application/vnd.squashfs', 50, 5, [ new MagicRegex('~(?n)\A(sqsh|hsqs)~Ss'), ]), + new MagicRule('application/vnd.stardivision.impress-packed', 50, 5, [ + new MagicMatch(0, 1, 'PIZS', '', 0), + ]), new MagicRule('application/vnd.symbian.install', 50, 13, [ new MagicMatch(8, 1, "\x19\x04\x00\x10", '', 0), ]), @@ -839,6 +872,9 @@ new MagicRule('application/x-nintendo-3ds-rom', 50, 261, [ new MagicMatch(256, 1, 'NCSD', '', 0), ]), + new MagicRule('application/x-nintendo-switch-xci', 50, 271, [ + new MagicRegex('~(?n)\A(?(?=.{256}HEAD)(.{269}\xFA|.{269}\xF8|.{269}\xF0|.{269}\xE0|.{269}\xE1|.{269}\xE2)|(*FAIL))~Ss'), + ]), new MagicRule('application/x-nuscript', 50, 28, [ new MagicRegex('~(?n)\A.{2}.{0,14}/bin/env nu~Ss'), ]), @@ -914,6 +950,9 @@ new MagicRule('application/x-shorten', 50, 5, [ new MagicMatch(0, 1, 'ajkg', '', 0), ]), + new MagicRule('application/x-sony-bbeb', 50, 9, [ + new MagicMatch(0, 1, "L\x00R\x00F\x00\x00\x00", '', 0), + ]), new MagicRule('application/x-spss-por', 50, 61, [ new MagicMatch(40, 1, 'ASCII SPSS PORT FILE', '', 0), ]), @@ -923,9 +962,15 @@ new MagicRule('application/x-sqlite2', 50, 32, [ new MagicMatch(0, 1, '** This file contains an SQLite', '', 0), ]), + new MagicRule('application/x-starmail', 50, 5, [ + new MagicMatch(0, 1, 'ANCH', '', 0), + ]), new MagicRule('application/x-subrip', 50, 262, [ new MagicRegex('~(?n)\A(?(?=1).{0,256} \-\-\> |(*FAIL))~Ss'), ]), + new MagicRule('application/x-sylk', 50, 4, [ + new MagicMatch(0, 1, 'ID;', '', 0), + ]), new MagicRule('application/x-t602', 50, 6, [ new MagicRegex('~(?n)\A(@CT 0|@CT 1|@CT 2)~Ss'), ]), @@ -1310,9 +1355,6 @@ new MagicRule('text/plain', 50, 18, [ new MagicRegex('~(?n)\A(This is TeX,|This is METAFONT,)~Ss'), ]), - new MagicRule('text/spreadsheet', 50, 4, [ - new MagicMatch(0, 1, 'ID;', '', 0), - ]), new MagicRule('text/troff', 50, 5, [ new MagicRegex('~(?n)\A(\.\\\\"|\'\\\\"|\'\.\\\\"|\\\\")~Ss'), ]), diff --git a/src/Resources/db/subclasses.php b/src/Resources/db/subclasses.php index 9c2dd2e..1a481cc 100644 --- a/src/Resources/db/subclasses.php +++ b/src/Resources/db/subclasses.php @@ -57,12 +57,21 @@ 'application/msword' => ['application/x-ole-storage'], 'application/msword-template' => ['application/msword'], 'application/gml+xml' => ['application/xml'], + 'application/x-starcalc' => ['application/x-ole-storage'], + 'application/x-starchart' => ['application/x-ole-storage'], + 'application/x-stardraw' => ['application/x-ole-storage'], + 'application/x-starimpress' => ['application/x-ole-storage'], + 'application/x-starmath' => ['application/x-ole-storage'], + 'application/x-starwriter' => ['application/x-ole-storage'], + 'application/x-starwriter-global' => ['application/x-ole-storage'], 'application/vnd.stardivision.calc' => ['application/x-ole-storage'], 'application/vnd.stardivision.chart' => ['application/x-ole-storage'], 'application/vnd.stardivision.draw' => ['application/x-ole-storage'], 'application/vnd.stardivision.impress' => ['application/x-ole-storage'], + 'application/vnd.stardivision.mail' => ['application/x-ole-storage'], 'application/vnd.stardivision.math' => ['application/x-ole-storage'], 'application/vnd.stardivision.writer' => ['application/x-ole-storage'], + 'application/vnd.stardivision.writer-global' => ['application/x-ole-storage'], 'application/vnd.sun.xml.calc' => ['application/zip'], 'application/vnd.sun.xml.calc.template' => ['application/zip'], 'application/vnd.sun.xml.draw' => ['application/zip'], @@ -146,7 +155,7 @@ 'application/x-gzpdf' => ['application/gzip'], 'application/x-gzpostscript' => ['application/gzip'], 'application/java-archive' => ['application/zip'], - 'text/x-groovy' => ['text/x-csrc'], + 'text/x-groovy' => ['text/plain'], 'text/x-gradle' => ['text/x-groovy'], 'application/x-java-jnlp-file' => ['application/xml'], 'text/javascript' => ['application/x-executable', 'text/plain'], @@ -283,7 +292,7 @@ 'image/svg+xml-compressed' => ['application/gzip'], 'image/x-tiff-multipage' => ['image/tiff'], 'image/x-bzeps' => ['application/x-bzip2'], - 'application/x-docbook+xml' => ['application/xml'], + 'application/docbook+xml' => ['application/xml'], 'image/vnd.djvu+multipage' => ['image/vnd.djvu'], 'image/x-eps' => ['application/postscript'], 'image/x-gzeps' => ['application/gzip'], @@ -322,7 +331,7 @@ 'application/atom+xml' => ['application/xml'], 'text/x-opml+xml' => ['application/xml'], 'text/sgml' => ['text/plain'], - 'text/spreadsheet' => ['text/plain'], + 'application/x-sylk' => ['text/plain'], 'text/tab-separated-values' => ['text/plain'], 'text/vnd.graphviz' => ['text/plain'], 'text/vnd.sun.j2me.app-descriptor' => ['text/plain'], @@ -334,7 +343,7 @@ 'text/x-bibtex' => ['text/plain'], 'text/x-blueprint' => ['text/plain'], 'text/x-c++hdr' => ['text/x-chdr'], - 'text/x-c++src' => ['text/x-csrc'], + 'text/x-c++src' => ['text/x-objc++src'], 'text/x-changelog' => ['text/plain'], 'text/x-chdr' => ['text/x-csrc'], 'text/x-cmake' => ['text/plain'], @@ -343,13 +352,13 @@ 'text/csv-schema' => ['text/plain'], 'text/x-copying' => ['text/plain'], 'text/x-credits' => ['text/plain'], - 'text/x-csrc' => ['text/plain'], - 'text/x-csharp' => ['text/x-csrc'], - 'text/x-vala' => ['text/x-csrc'], + 'text/x-csrc' => ['text/x-c++src', 'text/x-objcsrc'], + 'text/x-csharp' => ['text/plain'], + 'text/x-vala' => ['text/plain'], 'text/x-ooc' => ['text/x-csrc'], 'text/x-dcl' => ['text/plain'], 'text/x-dsl' => ['text/plain'], - 'text/x-dsrc' => ['text/x-csrc'], + 'text/x-dsrc' => ['text/plain'], 'application/xml-dtd' => ['text/plain'], 'text/x-eiffel' => ['text/plain'], 'text/x-emacs-lisp' => ['text/plain'], @@ -368,7 +377,7 @@ 'text/x-haskell' => ['text/plain'], 'text/x-idl' => ['text/plain'], 'text/x-install' => ['text/plain'], - 'text/x-java' => ['text/x-csrc'], + 'text/x-java' => ['text/plain'], 'text/x-ldif' => ['text/plain'], 'text/x-lilypond' => ['text/plain'], 'text/x-literate-haskell' => ['text/plain'], @@ -379,8 +388,8 @@ 'text/x-ms-regedit' => ['text/plain'], 'text/x-mof' => ['text/x-csrc'], 'text/x-mup' => ['text/plain'], - 'text/x-objcsrc' => ['text/x-csrc'], - 'text/x-objc++src' => ['text/x-c++src', 'text/x-objcsrc'], + 'text/x-objcsrc' => ['text/x-objc++src'], + 'text/x-objc++src' => ['text/plain'], 'text/x-ocaml' => ['text/plain'], 'text/x-opencl-src' => ['text/x-csrc'], 'text/x-matlab' => ['text/plain'], @@ -478,6 +487,7 @@ 'application/sparql-results+xml' => ['application/xml'], 'application/x-openvpn-profile' => ['text/plain'], 'application/x-modrinth-modpack+zip' => ['application/zip'], + 'application/x-qbrew' => ['application/xml'], 'application/x-eris-link+cbor' => ['application/cbor'], 'application/vnd.gerber' => ['text/plain'], 'application/x-gerber-job' => ['application/json'], diff --git a/src/Resources/mime-info/freedesktop.org.xml b/src/Resources/mime-info/freedesktop.org.xml index ee7c4c8..58a1f0f 100644 --- a/src/Resources/mime-info/freedesktop.org.xml +++ b/src/Resources/mime-info/freedesktop.org.xml @@ -22,7 +22,7 @@ - + @@ -170,7 +170,7 @@ command to generate the output files. Mailbox file - + @@ -951,91 +951,194 @@ command to generate the output files. - - StarCalc spreadsheet + + StarCalc 3-4 spreadsheet - + + + + StarChart 3-4 chart + + + + + + + + + + + + StarDraw 4 drawing + + + + + + + + + + + StarImpress 3-4 presentation + + + + + + + + + + + + StarMail 4 email + + + + + + + + StarMath 3-4 formula + + + + + + + + + + + + StarWriter 3-4 document + + + + + + + + + + + + + StarWriter 4 master document + + + + + + + + + + + StarCalc 5 spreadsheet + + + + + + + - StarChart chart + StarChart 5 chart - - - StarDraw drawing + StarDraw 5 drawing - - StarImpress presentation + StarImpress 5 presentation - - - + + + StarImpress packed presentation + + + + + - StarMail email - + StarMail 5 email + + + + + + + + - StarMath formula + StarMath 5 formula - - - StarWriter document + StarWriter 5 document - - - - + + + StarWriter 5 master document + + + + + + + + LibreOffice Calc spreadsheet @@ -1446,6 +1549,16 @@ command to generate the output files. + + Apache Parquet file + + + + + + + + Android package @@ -2117,6 +2230,21 @@ command to generate the output files. + + Nintendo Switch encrypted ROM + + + + + + + + + + + + + PC Engine ROM @@ -2752,7 +2880,7 @@ command to generate the output files. Groovy source code - + @@ -5652,6 +5780,14 @@ command to generate the output files. + + BroadBand eBook + + + + + + PNG image PNG @@ -5809,7 +5945,7 @@ command to generate the output files. - + DocBook document @@ -5821,7 +5957,7 @@ command to generate the output files. - + @@ -6303,7 +6439,7 @@ command to generate the output files. Email message - + @@ -6323,7 +6459,7 @@ command to generate the output files. GNU mail message - + @@ -6425,6 +6561,7 @@ command to generate the output files. + @@ -6587,9 +6724,11 @@ command to generate the output files. - + Spreadsheet interchange document + + @@ -6686,7 +6825,7 @@ command to generate the output files. C++ source code - + @@ -6745,7 +6884,8 @@ command to generate the output files. C source code - + + @@ -6756,12 +6896,12 @@ command to generate the output files. C# source code - + Vala source code - + @@ -6788,7 +6928,7 @@ command to generate the output files. D source code - + @@ -6954,7 +7094,7 @@ command to generate the output files. Java source code - + @@ -6962,6 +7102,7 @@ command to generate the output files. LDIF LDAP Data Interchange Format + @@ -7042,7 +7183,7 @@ command to generate the output files. Objective-C source code - + @@ -7050,8 +7191,7 @@ command to generate the output files. Objective-C++ source code - - + @@ -8628,6 +8768,11 @@ command to generate the output files. + + QBrew beer recipes + + + CBOR Data CBOR