Home > Archive > PERL Beginners > October 2005 > Mycroft for perldoc and cpan
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Mycroft for perldoc and cpan
|
|
| PerlPanda 2005-10-20, 9:55 pm |
| I noticed there's a mycroft plugin for perldoc that points to
perldoc.com or .org which is pretty slow or down. Before I write one,
is there a Mycroft out there for these?
PerlPanda
| |
| Paul Lalli 2005-10-21, 6:56 pm |
| PerlPanda wrote:
> I noticed there's a mycroft plugin for perldoc that points to
> perldoc.com or .org which is pretty slow or down. Before I write one,
> is there a Mycroft out there for these?
By "these", I assume you mean http://perldoc.perl.org. The problem
with creating a plugin for this site is that the search results are all
generated via javascript. You could create a simplistic plugin to just
use the search form and get returned to the page [1], but you wouldn't
be able to use the <interpret> tag to parse out the individual search
results (for, for example, the Firefox sidebar) [2].
Paul Lalli
[1] For example, the one I wrote for myself:
search
version="7.1"
name="perldoc search"
description="perldoc.perl.org: Search All Perl Documentation"
action="http://perldoc.perl.org/search.html"
searchForm="http://perldoc.perl.org/"
method="GET" >
<input name="sourceid" value="Mozilla-search">
<input name="q" user>
<browser
update="http://mycroft.mozdev.org/update.php/id0/perldoc.src"
updateIcon="http://mycroft.mozdev.org/update.php/id0/perldoc.gif"
updateCheckDays="3"
>
[2] Unless I have a massive misunderstanding of the entire procedure,
which I freely admit is a distinct possibility.
| |
| PerlPanda 2005-10-21, 6:56 pm |
| I admit at the time of writing I had only found the Mycroft plugin at
Mozdev and it was using perldoc.com and it was unsuitable. I simply
rewrote it to use perldoc.perl.org instead and re-uploaded the src as a
replacement. I did notice the same thing you did -- that it would not
be possible to parse the individual search results.
Nevertheless, it is done. And I am happy!
(O_o)
|
|
|
|
|