Repository: tika Updated Branches: refs/heads/master d011d708c -> aa448a3b7
TIKA-2224 Mime magic for OneNote Project: http://git-wip-us.apache.org/repos/asf/tika/repo Commit: http://git-wip-us.apache.org/repos/asf/tika/commit/df14f78e Tree: http://git-wip-us.apache.org/repos/asf/tika/tree/df14f78e Diff: http://git-wip-us.apache.org/repos/asf/tika/diff/df14f78e Branch: refs/heads/master Commit: df14f78e46feeae16cb6cbd2cb40c44ce497d53e Parents: aa2407a Author: Nick Burch <[email protected]> Authored: Thu Dec 22 01:11:06 2016 +0000 Committer: Nick Burch <[email protected]> Committed: Thu Dec 22 01:13:53 2016 +0000 ---------------------------------------------------------------------- .../org/apache/tika/mime/tika-mimetypes.xml | 33 ++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tika/blob/df14f78e/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml ---------------------------------------------------------------------- diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml index 30068da..a65fd03 100644 --- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml +++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml @@ -504,11 +504,40 @@ </mime-type> <mime-type type="application/onenote"> - <glob pattern="*.onetoc"/> - <glob pattern="*.onetoc2"/> + <acronym>OneNote</acronym> <glob pattern="*.onetmp"/> <glob pattern="*.onepkg"/> </mime-type> + <mime-type type="application/onenote;format=one"> + <glob pattern="*.one"/> + <magic priority="50"> + <!-- GUID {7B5C52E4-D88C-4DA7-AEB1-5378D02996D3} --> + <match value="0x7B5C52E4" type="little32" offset="0"> + <match value="0xD88C" type="little16" offset="4"> + <match value="0x4DA7" type="little16" offset="6"> + <match value="0xAEB15378D02996D3" offset="8" /> + </match> + </match> + </match> + </magic> + <sub-class-of type="application/onenote"/> + </mime-type> + <mime-type type="application/onenote;format=onetoc2"> + <glob pattern="*.onetoc"/> + <glob pattern="*.onetoc2"/> + <magic priority="50"> + <!-- GUID {43FF2FA1-EFD9-4C76-9EE2-10EA5722765F} --> + <match value="0x43FF2FA1" type="little32" offset="0"> + <match value="0xEFD9" type="little16" offset="4"> + <match value="0x4C76" type="little16" offset="6"> + <match value="0x9EE210EA5722765F" offset="8" /> + </match> + </match> + </match> + </magic> + <sub-class-of type="application/onenote"/> + </mime-type> + <mime-type type="application/parityfec"/> <mime-type type="application/patch-ops-error+xml"> <glob pattern="*.xer"/>
