Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
https://github.com/search?q=lang:nix&type=code
|
|
|
|
helloworld.s was compiled from helloworld.c with GCC.
https://github.com/file/file/blob/be5fac4b0ea34091096c6477c1ed98946c2e7fd2/magic/Magdir/assembler
|
|
OOC is far too different from C for either language to be considered a
subset of the other.
|
|
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
|
|
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
|
|
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.
|
|
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.)
|
|
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.
|
|
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
|
|
https://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.text-master-template
|
|
To avoid misdetection as application/vnd.oasis.opendocument.text.
|
|
https://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.base
|
|
https://www.iana.org/assignments/media-types/application/vnd.Quark.QuarkXPress
|
|
|
|
https://www.iana.org/assignments/media-types/application/vnd.apache.parquet
|
|
|
|
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
|
|
|
|
|
|
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
|
|
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
|
|
Game card format adapted from:
https://switchbrew.org/wiki/XCI
|
|
These languages are much too different for any one of them to be
considered a subset of another.
|
|
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.
|
|
Since this is a legacy format, default to application/sdp when matching
by file name.
https://www.openoffice.org/framework/documentation/mimetypes/mimetypes.html
|
|
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
|
|
|
|
And try not to conflict with Markdown files.
|
|
ROMs that use the SSF mapper such as the Sega Channel Revival ROMs would
not get detected by the current magic.
|
|
StarOffice Mail is unlikely to be used in modern contexts, so
deprioritise *.smd as its glob.
|
|
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.
|
|
Closes #224
|
|
https://rzip.samba.org/
Also add application/x-rzip-compressed-tar.
|
|
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
|
|
|
|
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
|
|
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
|
|
|
|
|
|
|
|
The "HTML Application" format extended HTML with capabilities similar to
desktop applications. But given that this format requires the old
Internet Explorer rendering engine and HTML has grown many new features
since then, it's probably more accurate to say that application/hta is a
subset of text/html rather than a superset.
https://learn.microsoft.com/en-us/previous-versions/ms536496(v=vs.85)
|
|
application/json used to inherit from application/ecmascript because it
inherited from text/javascript which was incorrectly declared as a
subclass of application/ecmascript. After the relationship between
text/javascript and application/ecmascript was corrected (and
application/json was made to inherit from the new application/json5 type
instead), application/json's relationship to application/ecmascript was
accidentally broken.
|
|
The IANA type registration says that the file must begin with the string
"(This file must be converted with BinHex 4.0)", but the binhex utility
generates files that begin with "(This file must be converted; you knew
that already.)".
https://www.iana.org/assignments/media-types/application/mac-binhex40
https://datatracker.ietf.org/doc/html/rfc1741
http://fileformats.archiveteam.org/wiki/Binhex
https://github.com/VorpalBlade/macutils/blob/640782c6698a4d360711bbfb71a0d27dbd182d8f/binhex/dofile.c#L30
|
|
application/x-msdownload is what Microsoft Windows uses for EXE and DLL
files, so that type is commonly found on the WWW and in other contexts.
It is an umbrella type for anything with a .exe or .dll file extension,
among others.
application/x-dosexec is what the `file` utility uses for DOS
executables specifically. According to the File Format Problem wiki:
"It's not clear if there is any completely reliable way to identify a
file as strictly DOS EXE, except in the negative (i.e., it looks like
EXE, and is not a valid NE, PE, etc., file)...If the relocation table
offset is from 28 to 63...it is pretty certainly DOS EXE."
application/x-ms-ne-executable is what the `file` utility uses for
16-bit Windows libraries and executables.
application/vnd.microsoft.portable-executable is the IANA standard type
for 32-bit and 64-bit Windows libraries and executables, as well as EFI
executables.
With these changes, application/x-ms-dos-executable is considered
deprecated. For now it is an alias of application/x-msdownload, but in
the future it may change to be an alias of application/x-dosexec.
helloworld-*.exe was compiled with Open Watcom from the following C
source code:
#include <stdio.h>
int main(void)
{
puts("Hello World!");
return 0;
}
https://github.com/file/file/blob/171c73b67ca692550882e0b8ab3c2a1f16ab1e00/magic/Magdir/msdos
https://www.iana.org/assignments/media-types/application/vnd.microsoft.portable-executable
http://fileformats.archiveteam.org/wiki/MS-DOS_EXE
http://fileformats.archiveteam.org/wiki/New_Executable
http://fileformats.archiveteam.org/wiki/Portable_Executable
|
|
MSIX and APPX have the same descriptions because MSIX is essentially the
new version of APPX. For now, app store apps have to be unzipped before
running them in Wine, but I expect that a future version of Wine will
support double-click installation.
https://learn.microsoft.com/en-us/windows/msix/app-installer/web-install-iis#step-7---configure-the-web-app-for-app-package-mime-types
|
|
|
|
FORMAT= in the first 128 bytes is very unspecific magic, it happens
to match pcb-drillFile.drl too (which is a application/x-excellon file,
and can be detected as such because it starts with M48)
Found when porting QtCore to shared-mime-info 2.3
|
|
PowerShell is a cross-platform scripting language with implementations
for Windows, Mac, and Linux.
application/x-powershell is not an official IANA media type, but is used
by GitHub and others.
https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L5320
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_requires?view=powershell-7.3#-psedition-psedition-name
|