Tracker ignores contents of djvu files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tracker (Ubuntu) |
Confirmed
|
Low
|
Unassigned | ||
Bug Description
Binary package hint: tracker
Ubuntu 8.10 Intrepid Ibex
Tracker 0.6.6
Gnome Version: 2.24.1
I have a couple of djvu files. Their mime types are recognised as image/vnd.djvu. By default their content is not indexed by tracker search system, although there is filter text/djvu_filter in /usr/lib/
Then I made several other things: change mime definition for djvu type from image/vnd.djvu to application/djvu, and some other variants. This does not help.
Tracker still, and without any reason, uses always mime/vnd.djvu even if there is no such definition in the system ( both /etc/mime, gnome definitions, and also definitions in ~./local/share/mime directory. ). Gnome sees application/djvu, file -i sees application/djvu but TRACKER uses image/vnd.djvu.
Please: use some clear dependency when we talking about mime types or do not use it at all. When You trying use it, but in fact probably hardcode it, it has strange impacts.
djvu_filter from /usr/lib/
Changed in tracker (Ubuntu): | |
importance: | Undecided → Low |
This bug still exists for me in Ubuntu 10.04 Lucid Lynx using tracker 0.6.95-1ubuntu6. Tracker does not index text from djvu files out of the box, although djvu_filter is present in /usr/lib/ trackers/ filters/ text. The filter requires the package djvulibre-bin, which is installed on my system.
After much searching, I was able to get tracker to index my djvu files by following the instructions at http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 460260# 30 . In short, it is necessary to:
1. Create a symbolic link at /usr/lib/ trackers/ filters/ images/ vnd.djvu_ filter pointing to /usr/lib/ trackers/ filters/ text/djvu_ filter tracker/ services/ default. service to add "image/vnd.djvu;" to the "Mimes" line under the [Documents] section. share/tracker/ data/common. db
2. Edit the file /usr/share/
3. Remove the file at ~/.local/
4. Restart tracker and reindex.
DJVU is a good open alternative to PDF for scanned documents, so it would be nice if tracker could recognize text in djvu files by default — without the above procedure, the djvu_filter shipped with tracker does absolutely nothing.