Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions assets/content_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@

"avif":
mime_type: "image/avif"
group: "video"
group: "image"
description: "AV1 Image File Format"
extensions: ["avif", "avifs"]
is_text: false
Expand Down Expand Up @@ -882,7 +882,7 @@

"fortran":
mime_type: "text/x-fortran"
group: "document"
group: "code"
description: "Fortran"
extensions: ["f90", "f95", "f03", "F90"]
is_text: true
Expand Down Expand Up @@ -1800,7 +1800,7 @@
"one":
mime_type: "application/msonenote"
group: "document"
description: "One Note"
description: "OneNote"
extensions: ["one"]
is_text: false

Expand Down Expand Up @@ -2451,7 +2451,7 @@
"swf":
mime_type: "application/x-shockwave-flash"
group: "executable"
description: "Small Web File"
description: "Small Web Format"
extensions: ["swf"]
is_text: false

Expand Down Expand Up @@ -2493,7 +2493,7 @@
"tcl":
mime_type: "application/x-tcl"
group: "code"
description: "Tickle"
description: "Tcl"
extensions: ["tcl"]
is_text: true

Expand Down
2 changes: 1 addition & 1 deletion assets/content_types_kb.min.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions rust/ffi/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ use crate::MagikaTypeInfo;
#[rustfmt::skip] pub(crate) static AVIF: MagikaTypeInfo = MagikaTypeInfo {
label: c"avif".as_ptr(),
mime_type: c"image/avif".as_ptr(),
group: c"video".as_ptr(),
group: c"image".as_ptr(),
description: c"AV1 Image File Format".as_ptr(),
extensions: [c"avif".as_ptr(), c"avifs".as_ptr(), ptr::null()].as_ptr(),
is_text: false,
Expand Down Expand Up @@ -760,7 +760,7 @@ use crate::MagikaTypeInfo;
#[rustfmt::skip] pub(crate) static FORTRAN: MagikaTypeInfo = MagikaTypeInfo {
label: c"fortran".as_ptr(),
mime_type: c"text/x-fortran".as_ptr(),
group: c"document".as_ptr(),
group: c"code".as_ptr(),
description: c"Fortran".as_ptr(),
extensions: [c"f90".as_ptr(), c"f95".as_ptr(), c"f03".as_ptr(), c"F90".as_ptr(), ptr::null()].as_ptr(),
is_text: true,
Expand Down Expand Up @@ -1589,7 +1589,7 @@ use crate::MagikaTypeInfo;
label: c"one".as_ptr(),
mime_type: c"application/msonenote".as_ptr(),
group: c"document".as_ptr(),
description: c"One Note".as_ptr(),
description: c"OneNote".as_ptr(),
extensions: [c"one".as_ptr(), ptr::null()].as_ptr(),
is_text: false,
};
Expand Down Expand Up @@ -2246,7 +2246,7 @@ use crate::MagikaTypeInfo;
label: c"swf".as_ptr(),
mime_type: c"application/x-shockwave-flash".as_ptr(),
group: c"executable".as_ptr(),
description: c"Small Web File".as_ptr(),
description: c"Small Web Format".as_ptr(),
extensions: [c"swf".as_ptr(), ptr::null()].as_ptr(),
is_text: false,
};
Expand Down Expand Up @@ -2282,7 +2282,7 @@ use crate::MagikaTypeInfo;
label: c"tcl".as_ptr(),
mime_type: c"application/x-tcl".as_ptr(),
group: c"code".as_ptr(),
description: c"Tickle".as_ptr(),
description: c"Tcl".as_ptr(),
extensions: [c"tcl".as_ptr(), ptr::null()].as_ptr(),
is_text: true,
};
Expand Down
16 changes: 8 additions & 8 deletions rust/lib/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ pub(crate) static AVI: TypeInfo = TypeInfo {
pub(crate) static AVIF: TypeInfo = TypeInfo {
label: "avif",
mime_type: "image/avif",
group: "video",
group: "image",
description: "AV1 Image File Format",
extensions: &["avif", "avifs"],
is_text: false,
Expand Down Expand Up @@ -928,7 +928,7 @@ pub(crate) static FLV: TypeInfo = TypeInfo {
pub(crate) static FORTRAN: TypeInfo = TypeInfo {
label: "fortran",
mime_type: "text/x-fortran",
group: "document",
group: "code",
description: "Fortran",
extensions: &["f90", "f95", "f03", "F90"],
is_text: true,
Expand Down Expand Up @@ -1941,7 +1941,7 @@ pub(crate) static ONE: TypeInfo = TypeInfo {
label: "one",
mime_type: "application/msonenote",
group: "document",
description: "One Note",
description: "OneNote",
extensions: &["one"],
is_text: false,
model_support: true,
Expand Down Expand Up @@ -2744,7 +2744,7 @@ pub(crate) static SWF: TypeInfo = TypeInfo {
label: "swf",
mime_type: "application/x-shockwave-flash",
group: "executable",
description: "Small Web File",
description: "Small Web Format",
extensions: &["swf"],
is_text: false,
model_support: true,
Expand Down Expand Up @@ -2788,7 +2788,7 @@ pub(crate) static TCL: TypeInfo = TypeInfo {
label: "tcl",
mime_type: "application/x-tcl",
group: "code",
description: "Tickle",
description: "Tcl",
extensions: &["tcl"],
is_text: true,
model_support: true,
Expand Down Expand Up @@ -3991,7 +3991,7 @@ pub enum ContentType {
Odt,
/// Ogg data
Ogg,
/// One Note
/// OneNote
One,
/// Open Neural Network Exchange
Onnx,
Expand Down Expand Up @@ -4137,13 +4137,13 @@ pub enum ContentType {
Sum,
/// SVG Scalable Vector Graphics image data
Svg,
/// Small Web File
/// Small Web Format
Swf,
/// Swift
Swift,
/// POSIX tar archive
Tar,
/// Tickle
/// Tcl
Tcl,
/// Text protocol buffer
Textproto,
Expand Down
Loading