This page attempts to catalogue the list of files formats Nepomuk supports, and what formats are remaining.
|Implemented - Requires Testing||Exiv2Extractor||No Comments|
|application/pdf||Implemented - Requires Testing||PopplerExtractor||No Comments
File indexing solutions
The KDE software releases in version 4.9, currently use libstreamanalyzer to index the files. Current problems with strigi -
- Difficult to contribute to
- No documentation
- Does not reuse libraries
- Has its own huge parsers for archives, utf, etc.
Roll our own?
Maybe it would be better to roll our own file parsers which are just light wrappers over the existing libraries.
We list down all the different file formats, and which all are supported by the different file indexing solutions.
- JPEG - Use exiv - strigi also uses exiv - currently broken
- PNG - Strigi rolls its own - detects the application name, color depth and interlace mode as well
- GIF - there isn't much metadata
- SVG - Strigi stores them as plain text
We just use exiv2 and cover almost everything. Plus the code would be super simple.
Strigi uses ffmpeg except for ID3, vorbis and OggS. It also has to seek through the file. Not sure what that is for.
Overall, we could just use ffmpeg for everything. It's very fast and pretty much supports all the formats.
Strigi rolls its own for id3 metadata. We should use taglib or ffmpeg. It seems to handle flac and wav files pretty well.
PDF - Strigi uses their own which is crap. We should use poppler. ODF - Strigi inbuilt. We should
DOC - OLE 2 Compound Document and Office Open XML - Custom parser by Strigi. What can we use? <br\> XSL - http://qt-project.org/wiki/Handling_Microsoft_Excel_file_format <br\> spreadsheet formats <br\>
Maybe we can use some libreoffice or calligra libraries?
Open document formats
ODF? Custom analyzer by Strigi.
- epub - Strigi reuses their ODF parser for epub
We could use libepub. + Checkout what Okular uses. Try using that.
- cbz - Comic books
- whatever ..
Strigi has its own analyzers for each archive which doesn't really add any metadata. It just adds the type nfo:Archive. We can do the same based on the mimetype.
- mbox format - There was a bug report
- Text files
- Source Code
Add the type based on the mimetype