Perhaps a simple declaration in the XML? ie <line1returned="dc:author"> <line2returned="dc:date">
while this would require that most users write an extra shell script to extract that information and return it in that order, then return the contents of the file, it does make is possible. On another note, do you think we should add a simple timeout parameter that defaults to like 15 seconds (should a program hang) but can be changed if the admin knows that the helper program is going to hang for a while before results etc. Cheers, Kevin Kubasik On 3/10/06, David Coeurjolly <[EMAIL PROTECTED]> wrote: > > > D Bera writes: > > Writing beagle filters became even easier. Joe checked in FilterExternal > with > > which the output of any program can be indexed. (As of now only text output > > can be indexed, metadata/properties can not be indexed). > > > > For e.g. to index the text content of tex files, find any tex2ascii or > tex2txt > > program which outputs the txt content to stdout and create an entry in > > external-filters.xml (its in the prefix/etc/beagle) like this: > > > > <filter> > > <mimetype>text/x-tex</mimetype> > > <extension>.tex</extension> > > <command>tex2ascii</command> > > <arguments>%s</arguments> > > </filter> > > > > The next time beagle crawler finds .tex files, it will run tex2ascii on the > > file and index the text of the output. For more information, see the file > > beagle/Filters/external-filters.xml . > > > > You dont even need to know C# ... some command-line tools, maybe a little > bit > > scripting and you can index any file on your computer (beagle already > covers > > the major formats ... whatever rest isnt yet covered can be covered via > > this). Isnt it cool ? > > Yep... really cool.... > > Would it be possible to define in the XML language simple regexps to > recognize basic metadata such as authors, title, date,... ? > > -dav > > _______________________________________________ > Dashboard-hackers mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/dashboard-hackers >
_______________________________________________ Dashboard-hackers mailing list [email protected] http://mail.gnome.org/mailman/listinfo/dashboard-hackers
