You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2023/05/24 17:40:36 UTC

[tika] 01/01: TIKA-4005 -- add magic and extension detectin for x-endnote-style

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch TIKA-4005
in repository https://gitbox.apache.org/repos/asf/tika.git

commit abe70651407a4a9e4d1fa106a4449700aeda0e2c
Author: tballison <ta...@apache.org>
AuthorDate: Wed May 24 13:40:25 2023 -0400

    TIKA-4005 -- add magic and extension detectin for x-endnote-style
---
 .../main/resources/org/apache/tika/mime/tika-mimetypes.xml    | 11 +++++++++++
 1 file changed, 11 insertions(+)

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 888c28aa0..244ab7039 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
@@ -3749,6 +3749,17 @@
     <glob pattern="*.enw"/>
     <glob pattern="*.enr"/>
   </mime-type>
+  <mime-type type="application/x-endnote-style">
+    <magic priority="50">
+      <match value="0x0008" type="string" offset="0">
+        <match value="0x0000" type="string" offset="4">
+          <match value="RSFTSTYL" type="string" offset="8"/>
+          <match value="RENDNENFT" type="string" offset="8"/>
+        </match>
+      </match>
+    </magic>
+    <glob pattern="*.ens"/>
+  </mime-type>
 
   <mime-type type="application/x-killustrator">
     <_comment>KIllustrator File</_comment>