Re: [Tracker] chm mime type





On Mon, Mar 21, 2011 at 3:30 PM, Martyn Russell <martyn lanedo com> wrote:
On 21/03/11 08:26, ivan frade nokia com wrote:
Hi Rusi,

Hi,

Fairly easy. You need to implement a extractor module for that
mimetype. It means to implement a couple of mandatory functions,
build it and install it in the right location.
     <<snipped>>
Great advise from Ivan there. I just wanted to warn you, these APIs and examples have changed in master recently. So depending on where you're targeting, you might want to look at the source.

Thanks both for the answers.
I had a first look and see that it needs to be in glib/gdk etc.  I must admit this will be a bit of a learning curve.
On the other hand what needs to be done is (seems) quite trivial
1. Run extract_chmLib on the chm file (opening into /tmp/newdirname )
2. Run the tracker on the dir
3. Integrate the results of 2 back into the database

1 and 2 seem trivial and would likely be literally 1-liners in something like python
About 3 I dont know...

Anyhow I think its still too premature for me to talk before I can find my way around.
For example I have a man page for tracker-extract but
$ tracker-extract
gives command not found


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]