summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* application/vnd.apple.numbers, /vnd.apple.pages: new typeswip/scop/vnd-apple-issue136Ville Skyttä2021-01-091-0/+24
| | | | | | | | | | Magic between the two seems indistinguishable, prioritize pages for (upcoming?) test stability. https://www.iana.org/assignments/media-types/application/vnd.apple.numbers https://www.iana.org/assignments/media-types/application/vnd.apple.pages Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/136
* xdgmime: configure as submoduleVille Skyttä2020-12-315-5/+12
| | | | | | | | | | | | | So that we can bind it to a specific revision, and help with keeping clones up to date. GitLab CI instructs to use a relative path to submodules on the same GitLab server [0], but doing so causes a meson/ninja dist failure [1]. Configure using a full https URL for now, as it appears to work with GitLab just fine. [0] https://docs.gitlab.com/ce/ci/git_submodules.html [1] https://github.com/mesonbuild/meson/issues/8144
* Mention more steps to making a release on gitlabDavid Faure2020-12-311-0/+3
|
* 2.1 release2.1David Faure2020-12-312-1/+25
|
* More instructions for releasing, based on previous commitsDavid Faure2020-12-311-1/+4
|
* Update translationsDavid Faure2020-12-3174-54161/+59130
|
* text/vnd.trolltech.linguist: require space or start tag closing > in magicVille Skyttä2020-12-311-1/+2
| | | | | | | | | | | | | | | | | | | https://doc.qt.io/qt-5/linguist-ts-file-format.html Avoids some more MPEG TS confusion. Hopefully that is -- I haven't been able to locate MPEG TS samples that would be misdetected as Linguist files in the first place. But because of that, I think it's fair to assume that the sequence `<TS` is not that common in them, and thus it followed by a space or the start tag closing `>` could be even less common. Not checking for `<TS/` as the root element may not be empty per the DTD. Per [0] checking other whitespace besides the common space isn't necessary either. Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/10 [0] https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/103#note_741219
* text/x-python: add text/x-modelica false positive test casework/scop/python-modelica-false-positiveVille Skyttä2020-12-312-0/+9
| | | | | | Fixed by https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/3 Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/127
* audio/mpeg: add layer 2, 2.5, and 1 protected magicsmasato2020-12-309-1/+19
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/46
* */*mpegurl: tweak comments towards playlistsVille Skyttä2020-12-301-3/+3
| | | | | | | | | | | The files/URLs these point to are not necessarily just MP3 or MPEG video, they're not necessarily streaming, and in particular not limited to HTTP streaming as the files can be e.g. local. RFC 8216 calls them "Media Playlists", too: https://tools.ietf.org/html/rfc8216#section-2 Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/121
* image/x-tga: add some aliases from Wikipedia and various file info sitesVille Skyttä2020-12-301-0/+6
|
* Adapt to xdgmime behaviour change.work/dfaure/adapt_to_xdgmime_changeDavid Faure2020-12-302-2/+4
| | | | | | | | | | | | | As the spec says, if the result from magic sniffing doesn't match one of the globs, ignore it and return one of the globs. With this change, test-garbage.key (which was already a doubtful testcase, see !5) no longer falls back to application/octet-stream but to one of the globs. test-really-html-not-xhtml.html is also fixed by this, it's detected as text/html. Closes: #138.
* meson: Use templated pkgconfig file rather than meson generatorCalvin Walton2020-12-282-8/+10
| | | | | | | | | | | | | | | | | | The meson pkgconfig generator was, in some circumstances, adding architecture-specific Cflags and libdir/includedir to the pkgconfig file. Since the pkgconfig file is installed in an architecture-independent path (e.g. /usr/share/pkgconfig) this was causing problems with cross-compile builds or builds on multilib/multiarch systems. The extra variables could be avoided by setting the "dataonly" option on the pkgconfig generator, but that causes the "prefix" variable to also be removed. I took a quick check and didn't see anything that used this variable... but there could be something I missed. So, in the interests of fixing the issue while preserving compatibility with the old autotools build, I've adjusted the meson build to use the pkgconfig template which was leftover from the autotools build system.
* audio/x-mod: magic match 669 Composer files' tempo tableVille Skyttä2020-12-282-16/+37
| | | | | | | | | | | | | According to mikmod, the tempo table is 128 bytes containing values ranging from 1 to 32, inclusive. We don't have good means to test all those 128 bytes, but look into the last one to make it rule out some short files. Also, accept 0 for the time being due to our match expression limitations. 0-31 being ASCII control characters gives this a better chance to avoid matching random ASCII files out there. Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
* audio/x-mod: add known false positive 669 Composer test caseVille Skyttä2020-12-282-0/+27
| | | | Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
* audio/x-mod: add 669 Composer loop order number to magicVille Skyttä2020-12-271-20/+22
| | | | | | | Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144 https://github.com/sezero/mikmod/blob/528ac65977222459f375af54f61933a1cb63c187/libmikmod/loaders/load_669.c#L91 https://github.com/Konstanty/libmodplug/blob/d7ba5efd5816696fba668a23194940f796d62b95/src/load_669.cpp#L48
* audio/x-mod: update 669 Composer commentaryVille Skyttä2020-12-271-8/+4
|
* text/markdown: add Pandoc flavored test caseVille Skyttä2020-12-262-0/+8
| | | | Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
* Add Khronos image texture format version 2Kai Uwe Broulik2020-12-263-0/+13
| | | | | | | Its draft specification [1] calls for a "*.ktx2" glob and "image/ktx2" type as it contains backwards-incompatible changes over version 1. [1] http://github.khronos.org/KTX-Specification/
* tests/compare_iana.py: cleanupsVille Skyttä2020-12-262-91/+98
|
* tests/test_case.py: new spelling case testVille Skyttä2020-12-262-0/+50
|
* application/*: point sub-class-of to main typeVille Skyttä2020-12-261-2/+2
|
* tests/test_sub_class_ofs.py: new sub-class-of sanity check testVille Skyttä2020-12-262-0/+51
|
* NEWS: fix 1.9+ release datestamps; yyyy-mm-dd instead of yyyy-dd-mmVille Skyttä2020-12-261-8/+8
|
* application/x-msaccess: remove duplicate aliasVille Skyttä2020-12-261-1/+0
|
* tests: implement duplicate type check with xpath, check aliases tooVille Skyttä2020-12-261-1/+9
|
* application/oxps, /vnd.ms-xpsdocument: add test casesVille Skyttä2020-12-263-0/+3
|
* application/oxps: differentiate from /vnd.ms-xpsdocumentVille Skyttä2020-12-261-3/+9
| | | | | | | | | Per ECMA 388 appendix E.1, OpenXPS docs must not use *.xps, and vnd.ms-xpsdocument should be be used to identify OpenXPS docs. The types are distinct top level ones in IANA, too. Keep /xps with /vnd.ms-xpsdocument per https://mailarchive.ietf.org/arch/msg/ietf-types/4uBulQrWj9uBBwWgw-LKaopgi58/
* tests/compare-iana.py: new script for comparing differences with IANAVille Skyttä2020-12-251-0/+91
| | | | Intended for manual maintainer use at least for now.
* image/g3fax: add test caseVille Skyttä2020-12-252-0/+2
|
* image/g3fax: swap main/alias with /fax-g3Ville Skyttä2020-12-251-2/+2
| | | | The former is the IANA registered type.
* text/vnd.trolltech.linguist: swap main/alias with /vnd.qt.linguistVille Skyttä2020-12-252-3/+3
| | | | The former is the IANA registered type.
* application/vnd.smaf: swap main/alias with /x-smafVille Skyttä2020-12-252-3/+3
| | | | The former is the IANA registered type.
* application/vnd.apple.keynote: swap main/alias with /x-iwork-keynote-sffkeyVille Skyttä2020-12-252-3/+3
| | | | | The latter is deprecated per https://www.iana.org/assignments/media-types/application/vnd.apple.keynote
* .gitignore: add .python-version, for local pyenv settingsVille Skyttä2020-12-241-0/+1
|
* .gitignore: mark dirs as such, anchor to top levelVille Skyttä2020-12-241-2/+2
|
* .gitignore: remove autotools relicsVille Skyttä2020-12-241-22/+0
|
* .gitignore: add _build and xdgmime dirsVille Skyttä2020-12-241-0/+2
|
* HACKING: update expected xdgmime source dir locationVille Skyttä2020-12-241-2/+2
|
* Prefer POSIX standard name for system shell.John Hein2020-12-031-1/+1
| | | | No non-POSIX bashism features are used in this shell script.
* Add image/astcKai Uwe Broulik2020-11-213-0/+11
| | | | Adaptive Scalable Texture Compression files
* Add application/x-mame-chdAdrien Plazas2020-11-083-0/+10
|
* Add application/nintendo-3ds-executableAlexander Mikhaylenko2020-11-083-0/+10
| | | | | According to https://3dbrew.org/wiki/3DSX_Format, they start from '3DSX' magic value and have .3dsx extension.
* Add application/x-nintendo-3ds-romAlexander Mikhaylenko2020-11-083-0/+11
| | | | | | | Nintendo 3DS ROMs can have *.3ds or *.cci extensions. According to https://3dbrew.org/wiki/CCI, they have 'NCSD' magic number at 0x100 offset.
* Add magic for image/x-3dsAlexander Mikhaylenko2020-11-083-0/+5
| | | | | The next commit will add another MIME type with the same glob, avoid breakage.
* Update freedesktop.org.xml.in : add .sage file format for SageMath script filesFrédéric Chapoton2020-11-073-0/+21
|
* Drop application/x-dc-romAdrien Plazas2020-11-061-5/+0
| | | | | I've never seen such a file format, ever, the Dreamcast scene only uses files like .gdi and .cdi, sometimes .chd and .iso, but never .dc.
* Add Kaitai Struct mime-typeBastien Nocera2020-11-063-0/+84
| | | | For use with the Kaitai Struct visualiser, or any text/YAML editors
* Add application/x-compressed-isoAdrien Plazas2020-11-063-0/+9
|
* Add application/x-discjuggler-cd-imageAdrien Plazas2020-11-023-0/+5
|