[doc/conf] resolve some mime type conflicts from debian buster, regenerate mime.conf

personal/stbuehler/fix-fdevent
Stefan Bühler 4 years ago committed by Glenn Strauss
parent a70cf6e5dc
commit 9b7a32ea70

@ -52,10 +52,8 @@ mimetype.assign = (
".dcm" => "application/dicom",
".tsp" => "application/dsptype",
".es" => "application/ecmascript",
".otf" => "application/font-sfnt",
".ttf" => "application/font-sfnt",
".epub" => "application/epub+zip",
".pfr" => "application/font-tdpfr",
".woff" => "application/font-woff",
".spl" => "application/futuresplash",
".gz" => "application/gzip",
".hta" => "application/hta",
@ -428,6 +426,11 @@ mimetype.assign = (
".vmd" => "chemical/x-vmd",
".xtel" => "chemical/x-xtel",
".xyz" => "chemical/x-xyz",
".ttc" => "font/collection",
".otf" => "font/ttf",
".ttf" => "font/ttf",
".woff" => "font/woff",
".woff2" => "font/woff2",
".gif" => "image/gif",
".ief" => "image/ief",
".jp2" => "image/jp2",

@ -45,6 +45,27 @@ my %manual_conflicts_resolve = (
'.ra' => {
'audio/x-pn-realaudio' => 'audio/x-realaudio',
},
# use font media types from iana registry
'.otf' => {
'application/font-sfnt' => 'font/ttf',
'font/sfnt' => 'font/ttf',
'font/ttf' => 'font/ttf',
},
'.ttf' => {
'application/font-sfnt' => 'font/ttf',
'font/otf' => 'font/ttf',
'font/sfnt' => 'font/ttf',
},
'.woff' => {
'application/font-woff' => 'font/woff',
},
# end of fonts
'.asn' => {
'chemical/x-ncbi-asn1-spec' => 'application/octet-stream',
},
'.ent' => {
'chemical/x-ncbi-asn1-ascii' => 'application/octet-stream',
},
);
open MIMETYPES, "/etc/mime.types" or die "Can't open /etc/mime.types: $!";

Loading…
Cancel
Save