You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ma...@apache.org on 2015/03/19 07:03:30 UTC

svn commit: r1667661 - in /tika/trunk: CHANGES.txt tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml

Author: mattmann
Date: Thu Mar 19 06:03:29 2015
New Revision: 1667661

URL: http://svn.apache.org/r1667661
Log:
Adding EMF magic as per Microsoft's EMF specification, and thanks to Luis Filipe Nassif contributed by Matthias Krueger <mk...@mkr.io> this closes #34.

Modified:
    tika/trunk/CHANGES.txt
    tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml

Modified: tika/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/tika/trunk/CHANGES.txt?rev=1667661&r1=1667660&r2=1667661&view=diff
==============================================================================
--- tika/trunk/CHANGES.txt (original)
+++ tika/trunk/CHANGES.txt Thu Mar 19 06:03:29 2015
@@ -1,5 +1,8 @@
 Release 1.8 - Current Development
 
+  * Tika now supports MIME detection for Microsoft Extended 
+    Makefiles (EMF) (TIKA-1554).
+
   * Tika has improved delineation in XML and HTML MIME detection
     (TIKA-1365).
 

Modified: tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
URL: http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml?rev=1667661&r1=1667660&r2=1667661&view=diff
==============================================================================
--- tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml (original)
+++ tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml Thu Mar 19 06:03:29 2015
@@ -3025,9 +3025,12 @@
   <mime-type type="application/x-emf">
     <acronym>EMF</acronym>
     <_comment>Extended Metafile</_comment>
+    <tika:link>https://msdn.microsoft.com/en-us/library/cc230711.aspx</tika:link>
     <glob pattern="*.emf"/>
     <magic priority="50">
-      <match value="0x01000000" type="string" offset="0"/>
+      <match value="0x01000000" type="string" offset="0">
+        <match value="0x464D4520" type="little32" offset="40"/>
+      </match>
     </magic>
   </mime-type>