summaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
2024-10-31Add PFM, PXR and SCT image formatsHEADmasterMirco Miranda1-3/+31
2024-06-16Recognize *.sfs, *.sqfs, and *.squashfs as application/vnd.squashfsAlex Henrie1-0/+3
https://github.com/plougher/squashfs-tools/issues/259
2024-06-16Remove "sqsh" magic from application/vnd.squashfsAlex Henrie1-1/+0
All SquashFS files begin with "hsqs". None have "sqsh". https://dr-emann.github.io/squashfs/
2024-06-16Remove redundant "MZ" magic from application/x-executableAlex Henrie1-1/+0
The same magic with higher priority already belongs to application/x-msdownload, which is a subset of application/x-executable.
2024-06-16Remove the office document icon from application/x-objectAlex Henrie1-1/+0
An object file is a collection of compiled machine code which is not at all like an office document.
2024-06-16Recognize *.lib as application/x-archiveAlex Henrie1-1/+1
Putting the *.lib glob in application/vnd.microsoft.portable-executable was a mistake: Windows actually uses the same container format as Unix for static libraries.
2024-06-16Remove the relationship between AppImage and SquashFSAlex Henrie1-1/+0
AppImages contain SquashFS images, but a generic program that opens or mounts SquashFS files won't be able to find and extract the filesystem embedded in an AppImage.
2024-06-16Rename back legacy OOoXML file formatsMichael Stahl1-11/+11
"application/vnd.sun.xml.*" formats are StarOffice 6 / OpenOffice 1.0 XML documents - these are legacy and replaced by ODF. There is no LibreOffice version 1.0, hence they are called "OpenOffice.org 1.0 Text Document" etc. by LO itself: https://git.libreoffice.org/core/+/refs/heads/master/filter/source/config/fragments/types/writer_StarOffice_XML_Writer.xcu However rename the extension type to "LibreOffice extension", as that is still actively developed and users will most likely use them with LO now. Fixes: #141
2024-06-09text/calendar: add *.ifb and *.icalendar globsVille Skyttä1-0/+2
- *.ifb: https://www.iana.org/assignments/media-types/text/calendar - *.icalendar: https://en.wikipedia.org/w/index.php?title=ICalendar&oldid=1218030400
2024-06-02Add application/x-pcapngJohn Thacker1-0/+13
https://gitlab.com/wireshark/wireshark/-/blob/master/resources/freedesktop/org.wireshark.Wireshark-mime.xml https://www.ietf.org/archive/id/draft-ietf-opsawg-pcapng-01.html
2024-06-02Add text/x-nixBobby Rong1-0/+5
https://github.com/search?q=lang:nix&type=code
2024-06-02Combine unnecessarily split magic elementsVille Skyttä1-8/+0
2024-06-01Add text/x-asmAlex Henrie1-0/+15
helloworld.s was compiled from helloworld.c with GCC. https://github.com/file/file/blob/be5fac4b0ea34091096c6477c1ed98946c2e7fd2/magic/Magdir/assembler
2024-06-01Remove relationship between text/x-ooc and text/x-csrcAlex Henrie1-1/+1
OOC is far too different from C for either language to be considered a subset of the other.
2024-06-01Add image/x-kiss-celAlex Henrie1-0/+10
GIMP supports this image file format. "Cel" is short for "celluloid" and is not a typo. The test suite already had a KiSS cel file and says that it is supposed to be image/x-cel, but I could not find any examples of anyone using image/x-cel in practice. On the other hand, I did find an example of image/x-kiss-cel being used and it's a better name anyway because the .cel file extension is also used for Autodesk Animator cel image files and Lumena "cell outline" images. https://gitlab.gnome.org/GNOME/gimp/-/blob/GIMP_2_10_38/plug-ins/common/file-cel.c https://en.wikipedia.org/wiki/Cel https://snisurset.net/code/abydos/formats.html http://justsolve.archiveteam.org/wiki/KiSS_CEL http://justsolve.archiveteam.org/wiki/Animator_PIC/CEL http://justsolve.archiveteam.org/wiki/Lumena_CEL
2024-06-01Prefer image/vnd.fpx over image/x-fpx and improve its detectionAlex Henrie1-6/+9
0x46506978 is the ASCII string "FPix", which was the Macintosh file type code for FlashPix, but FlashPix files do not start with "FPix". Rather, they are OLE Compound Storage files that have the root class identifier {56616700-c154-11ce-8553-00aa00a1f95b}. https://www.iana.org/assignments/media-types/image/vnd.fpx http://fileformats.archiveteam.org/wiki/OLE http://fileformats.archiveteam.org/wiki/FlashPix
2024-06-01Remove text/htmlhAlex Henrie1-4/+0
It's not clear whether text/htmlh was meant to be a synonym of application/vnd.ms-htmlhelp or a subclass of text/html. In either case, a Google search turned up zero examples of anyone using it.
2024-06-01Blender: Remove redundant '*.BLEND' globFeRD (Frank Dana)1-1/+0
Globs are case-insensitive by default, so the glob is redundant with `*.blend`, and causes the globs files to contain two identical entries for `*.blend`. (Non-case-sensitive globs get lowercased when generating globs and globs2.)
2024-05-02Add text/x-python2 for Python 2 scriptsFeRD (Frank Dana)1-0/+18
Create a second subclass of `text/x-python`, which specifically identifies Python 2 scripts in the same way that `text/x-python3` does Python 3 scripts. Like `text/x-python3`, `text/x-python2` has more-specific magic strings at a higher priority than the ones in `text/x-python`. Both match the `*.py` glob at a lower priority than `text/x-python`. Basically, if we are able to concretely identify a file as "Python 2 script" or "Python 3 script", we do. Otherwise, it's just "Python script", version neither known nor assumed.
2024-04-24Separate text/x-cython from text/x-pythonAlex Henrie1-3/+8
Cython is a superset of Python that requires compilation; it cannot be directly executed by the Python interpreter. Cython files are identified by a .pyx, .pxd, or .pxi extension. I have not seen anyone using .py2x or .py3x to indicate which Python version the Cython module is compatible with. https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L1398 https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#cython-file-types
2024-04-23Add application/vnd.oasis.opendocument.text-master-templateAlex Henrie1-0/+15
https://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.text-master-template
2024-04-23Increase priority of application/vnd.oasis.opendocument.text-masterAlex Henrie1-1/+1
To avoid misdetection as application/vnd.oasis.opendocument.text.
2024-04-22Prefer vnd.oasis.opendocument.base over vnd.oasis.opendocument.databaseAlex Henrie1-1/+2
https://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.base
2024-04-22Add application/vnd.quark.quarkxpressAlex Henrie1-0/+14
https://www.iana.org/assignments/media-types/application/vnd.Quark.QuarkXPress
2024-04-21Add application/x-qbrew for qbrew recipesdevnewton1-0/+5
2024-04-21Add application/vnd.apache.parquetAlex Henrie1-0/+10
https://www.iana.org/assignments/media-types/application/vnd.apache.parquet
2024-04-20Give application/x-sylk the spreadsheet iconAlex Henrie1-0/+1
2024-04-20Prefer application/x-sylk over text/spreadsheetAlex Henrie1-1/+2
text/spreadsheet is not an official IANA media type, but if it were, it would be a generic type for plaintext spreadsheets such as CSVs and TSVs. The more specific name application/x-sylk is used by Gnumeric and others for SYLK files. https://help.gnome.org/users/gnumeric/stable/sect-file-formats.html.en
2024-04-20Give text/calendar the calendar iconAlex Henrie1-0/+1
2024-04-20Give text/x-ldif the address book iconAlex Henrie1-0/+1
2024-04-20Add application/x-sony-bbebAlex Henrie1-0/+8
https://web.archive.org/web/20110809071744/http://www.sven.de/librie/Librie/LrfFormat https://cgit.freedesktop.org/libreoffice/core/tree/filter/source/config/fragments/types/writer_BroadBand_eBook.xcu?h=libreoffice-24.2.3.1
2024-04-20Prefer application/docbook+xml over application/x-docbook+xmlAlex Henrie1-2/+2
application/docbook+xml is the correct type according to the OASIS standard, whereas application/x-docbook+xml is not part of any standard. https://docs.oasis-open.org/docbook/specs/docbook-5.0-spec-os.html#media-type-registration
2024-04-20Add Nintendo Switch encrypted ROMsBastien Nocera1-0/+15
Game card format adapted from: https://switchbrew.org/wiki/XCI
2024-04-20Remove relationships between C and C#, D, Groovy, Java, and ValaAlex Henrie1-5/+5
These languages are much too different for any one of them to be considered a subset of another.
2024-04-20Fix backwards relationships between C, C++, Objective-C, and Objective-C++Alex Henrie1-5/+5
Almost all C code is also C++ or Objective-C code, but the reverse is rarely true. All C++ and Objective-C code is also Objective-C++ code.
2024-04-18Add application/vnd.stardivision.impress-packedAlex Henrie1-2/+8
Since this is a legacy format, default to application/sdp when matching by file name. https://www.openoffice.org/framework/documentation/mimetypes/mimetypes.html
2024-04-17Separate StarOffice 3-4 types from StarOffice 5 typesAlex Henrie1-21/+117
Types that start with application/vnd.stardivision are for StarOffice 5 and types that start with application/x-star are for StarOffice 4. The StarOffice 3 formats are similar to the StarOffice 4 formats and I have not found any distinct MIME type for them. StarOffice 2 used the same file extensions but entirely different file formats that are not based on OLE Compound Storage. Also separate StarWriter master documents from ordinary StarWriter documents because the two have distinct file formats. https://www.openoffice.org/framework/documentation/mimetypes/mimetypes.html
2024-04-16Give email files the mail iconAlex Henrie1-4/+5
2024-04-06Add *.md as a possible glob for Sega Genesis/Megadrive ROMsBastien Nocera1-0/+1
And try not to conflict with Markdown files.
2024-04-06Fix detection of some Genesis ROMsBastien Nocera1-0/+1
ROMs that use the SSF mapper such as the Sega Channel Revival ROMs would not get detected by the current magic.
2024-04-06Prioritise Sega Genesis/Megadrive ROMs over StarOffice MailBastien Nocera1-1/+1
StarOffice Mail is unlikely to be used in modern contexts, so deprioritise *.smd as its glob.
2024-04-06Add STEP 3D model mime-typeBastien Nocera1-0/+10
Add mime-type for STEP 3D models as per Wikipedia page: https://en.wikipedia.org/wiki/ISO_10303-21 Note that this doesn't include support for STEP-XML files (https://en.wikipedia.org/wiki/ISO_10303-28) as it's a separate filetype. STEP+ZIP was ommitted because of the lack of information and examples about the format.
2024-02-15fix: updates glob weight for text/x-todo-txtju1ius1-1/+1
Closes #224
2024-01-28Add application/x-rzipIngo Brückl1-0/+15
https://rzip.samba.org/ Also add application/x-rzip-compressed-tar.
2024-01-28Add application/microsoftpatch and application/microsoftupdateAlex Henrie1-0/+17
These two are not official IANA media types, but they can be found in the wild. Wine currently supports .msp files and may gain support for .msu files in the future. https://forums.ivanti.com/s/sfsites/c/sfc/servlet.shepherd/document/download/0694O00000J7pyUQAR
2024-01-28Give Microsoft Publisher documents the document iconAlex Henrie1-0/+1
2024-01-28Improve detection of application/x-ole-storage subtypesAlex Henrie1-4/+97
Most OLE file formats include a 128-bit root class identifier somewhere after the 592nd byte. StarImpress files are essentially bundles of StarDraw files, hence the need to give the StarImpress magic higher priority. http://fileformats.archiveteam.org/wiki/OLE
2024-01-16Add alias for Wavefront OBJ mime-typeBastien Nocera1-0/+1
The application/prs.wavefront-obj mime-type is also used by applications like Cura and cargo-culted into other slicers. Declare this alias so it's equivalent to the canonical model/obj. See https://en.wikipedia.org/wiki/Wavefront_.obj_file
2023-12-13Add mimetype for HEJ2 formatDaniel Novomeský1-0/+7
2023-11-20mime-detection: whitespace fixLennart Poettering1-1/+1