On Tue, Nov 22, 2005 at 06:55:53AM -0800, J. David Boyd wrote:
> Bill Moseley wrote:
> > On Mon, Nov 21, 2005 at 08:02:32AM -0800, J. David Boyd wrote:
> >>Is it possible to hook into the index generation code of swish-e, and
> >>insert my own translation code, such that when the indexer sees
> >>S2171_TABLE.pdf, I can look in my translation table, and stuff the value
> >>'Module 72 Tables' to be displayed in the hyperlink of the search
> >>result? Of course, the hyperlink still has to point to the original file.
> > Easily. It should already do that, but maybe you don't have titles in
> > your pdf docs.
> > Anyway, in SWISH::Filters::Pdf2HTML (assuming that's what you are
> > using just set the title:
> > $title ||= lookup_title( $file_name );
> I've been looking through SWISH::Filters::Pdf2HTML, and I just realize
> more and more all the time that I'm no Perl expert.
> I don't see any code that looks like what you have there. I see code in
> sub filter() that sets a title. Do I monkey around in there? That
> looks, to me, like a good way to break something.
I was saying, set $title to something you lookup based on file name if
the title is not set in the PDF document. Or whatever logic fits your
Gota catch a plane, so maybe someone else can help more.
Unsubscribe from or help with the swish-e list:
Help with Swish-e:
Received on Tue Nov 22 07:03:54 2005