Re: [Tracker] Tomboy note extractor



2006/11/16, Jamie McCracken <jamiemcc blueyonder co uk>:
Mikkel Kamstrup Erlandsen wrote:
> I created a small tomboy note extractor (attached)... It should run on
> any system with a Python installation - I think the XML parser I use is
> bundled with Python.


hmm would prefer it internal to tracker in C to be honest. The external
metadata extractors are driven by mime type so it would be tricky/hacky
to do them via that mechanism (this is the same as our email stuff - its
all internal)

It should be real easy to do this in C if anyone's willing

I could do that - I digged around the extraction code and it seemed fairly intuitive. Should I use libxml or just plain hardcoded grep-like hacks (or libXYZ)?
I think I just misunderstood, when I read somewhere that Tracker could use extractors written in any language since they are just g_spawn_async'ed?
 
>
> I read somewhere in tracker-extract.c that "=" and ";" where used for
> delimiters, so I guess I need to escape them somehow...? While we're at
> it why not use some non-printing ascii chars for delimiters and avoid
> escaping?

as far as metadata extraction goes that should not be a problem (these
symbols dont get indexed anyhow)

anyway at least you know what metadata you need!

Yeah, I guess I'm seeing problems where there are none...


Cheers,
Mikkel


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