Re: [Tracker] Tomboy note extractor
- From: Jamie McCracken <jamiemcc blueyonder co uk>
- To: Mikkel Kamstrup Erlandsen <mikkel kamstrup gmail com>
- Cc: Tracker List <tracker-list gnome org>
- Subject: Re: [Tracker] Tomboy note extractor
- Date: Thu, 16 Nov 2006 19:00:39 +0000
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
Anyway there is one "problem" . I want to extract a Note.Content field
that contains the exact markup and note contents that you see in Tomboy
(because I want to use that as storage in Daze).
For Example:
================
Note.Content=ImportantMathNote
Hey I just proved that 2+2=4; ain't that great?
I wrote a paper about it - I placed it here:
<link:url>~/Projects/RocketScience/bigstuff.pdf</link:url>
Never forget!
================
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!
--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]