Filter writing becomes even easier
- From: D Bera <dbera web gmail com>
- To: dashboard-hackers gnome org
- Subject: Filter writing becomes even easier
- Date: Thu, 9 Mar 2006 14:02:03 -0500
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 ?
- dBera
--------------------------------------------------------
Debajyoti Bera @ http://dbera.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]