Use the shared-mime-info database for mime type support. #11

Closed
rhdunn opened this Issue Oct 29, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@rhdunn
Owner

rhdunn commented Oct 29, 2011

Replace the current mime-type support with the shared-mime-info database.

The idea here is to have a list of (mime-type-string => parser-function-pointer). The mime-type logic will then:
1/ build the RDF metadata for the supported document and audio mime-types using the mime-type database;
2/ use the magic detection logic from the mime-type database;
3/ use the XML namespace root and local-name from the mime-type database for XML documents.

Items 2 and 3 will be used as part of the handler lookup to get the parser function. The parser function will then be called to handle the data.

In some cases (email; mht; epub), this will involve recursive calls.

For the OCF handler, the information will need to be returned as RDF metadata to unify the parser interface.

@rhdunn rhdunn closed this Nov 3, 2011

@rhdunn

This comment has been minimized.

Show comment
Hide comment
@rhdunn

rhdunn Nov 3, 2011

Owner

This has now been implemented.

Owner

rhdunn commented Nov 3, 2011

This has now been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment