[ 
https://issues.apache.org/jira/browse/TIKA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186948#comment-13186948
 ] 

Nick Burch commented on TIKA-86:
--------------------------------

Turning the file magic into a Tika xml match shouldn't be too hard, but there'd 
still have to be a manual step per entry to work out the mimetype for it. (The 
httpd magic gives mimetypes, whereas the file one almost always just have a 
description but no mimetype)

Potentially, the file magic could also be used to do some simple metadata 
extraction on some of the types. That's likely to have to be almost all manual 
though, as you'll need to map + convert things onto the keys+values that Tika 
expects (whereas File seems to be for human reading)
                
> Support magic(5) files
> ----------------------
>
>                 Key: TIKA-86
>                 URL: https://issues.apache.org/jira/browse/TIKA-86
>             Project: Tika
>          Issue Type: New Feature
>          Components: general
>            Reporter: Jukka Zitting
>
> Tika should have a parser for the magic(5) file format used by the file(1) 
> command. Then we could use existing magic rules from places like 
> http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/magic.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to