| To: | "'namazu-users-en@namazu.org'" <namazu-users-en@namazu.org> |
|---|---|
| Subject: | How do i write a filter |
| From: | "Johansen, Vagn" <vagn.johansen@intel.com> |
| Date: | Tue, 28 Nov 2000 01:25:20 -0800 |
| Reply-to: | namazu-users-en@namazu.org |
| Message-id: | <CD4DE0181670D211AC5400A0C94BD1B801D8D9A6@dksmsx30.idk.intel.com> |
Are there any plans for updating the english documentation. if so
I would like to know how to write a filter. I have a few plugins I want to
convert
which I wrote for my own simple text indexer. They have the form seen below.
# input: a filename
# output: undef on failure, otherwise a hash ref with the keys: title, desc,
text
sub textualize_mp3
{
my $href = mp3_info($_[0]);
return undef unless (defined $href);
my $temp = "$href->{title}\n$href->{artist}\n$href->{album}";
return {
title => $href->{artist}.' "'.$href->{title}.'" ',
desc => $temp, # description
text => "$temp\n$href->{year}\n$href->{comment} music mp3",
};
}
Vagn Johansen
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Cant locate gettext, Johansen, Vagn |
|---|---|
| Next by Date: | Re: How do i write a filter, NOKUBI Takatsugu |
| Previous by Thread: | Cant locate gettext, Johansen, Vagn |
| Next by Thread: | Re: How do i write a filter, NOKUBI Takatsugu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |