After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687162 - support DVI documents
support DVI documents
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Extractor
0.14.x
Other Linux
: Normal normal
: ---
Assigned To: tracker-extractor
Depends on:
Blocks:
 
 
Reported: 2012-10-30 00:26 UTC by Matthias Clasen
Modified: 2012-10-31 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tracker-extract: add a simple extractor for DVI files (8.13 KB, patch)
2012-10-30 03:33 UTC, Cosimo Cecchi
committed Details | Review

Description Matthias Clasen 2012-10-30 00:26:47 UTC
These are also documents, and evince can view them just fine. Documents should too.
Comment 1 Cosimo Cecchi 2012-10-30 03:32:26 UTC
-> tracker

Tracker should mark these of type nfo:PaginatedTextDocument and provide a simple extractor; that way Documents gets compatibility for free.
Comment 2 Cosimo Cecchi 2012-10-30 03:33:24 UTC
Created attachment 227606 [details] [review]
tracker-extract: add a simple extractor for DVI files

Code to extract information from the headers is taken from Evince.
Comment 3 Martyn Russell 2012-10-31 16:50:18 UTC
Comment on attachment 227606 [details] [review]
tracker-extract: add a simple extractor for DVI files

Hello Cosimo,

>+#include <glib.h>
>+#include <gmodule.h>
>+#include <stdio.h>
>+#include <fcntl.h>
>+#include <string.h>
>+#include <unistd.h>

...

I've just pushed this upstream to master after a few code style clean ups and debug message clean ups in a fixup commit.

Thank you for the patch, works really well. Will try to get this out into the next 0.14. release.