General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Pages: 12Next
Current Page: 1 of 2
Search *Field* in KM?
Posted by: K
Date: February 08, 2003 04:22PM

Searching the forums, I've found a plethora of search macros, some bound to keys others working from the URL bar. But I didn't manage to find what I was looking for: A separate search *field*, similar to what e.g. Phoenix and Opera implement.

Is this possible to do in KM? If so... well, how? ;-)

TIA,

-K

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: jsnj
Date: February 08, 2003 04:42PM

Not really. There are two URL toolbars available and both can be viewed simultaneously but neither will respond to a search macro via the enter button which is what I assume you want. You can have a button similar to the go button but which is tied to a search macro that will enable you to search for the text written in the URL bar. So if you put that button next to the original URL bar and put the go button next to the other URL bar, you may have something similar to what you want, but without being able to use the enter button it hardly seems practical.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: MonkeeSage
Date: February 08, 2003 04:57PM

I think that with not too much trouble, someone who knows C++ could alter Ulf's URL bar code ( http://kmeleon.freewebsites.com/rebar_url.cpp ) so that it has a configuration option to enter the base search engine URL, like "http://search.com/search?q=";, then have it add that to the front of whatever is entered in the entrybox, with the result that you can type "cheese" and it will go to "http://search.com/search?q=cheese.";

I'll ask my brother if he will do it when I see him. I have no clue about C++, so I can't do it myself, but I think it would be very easy. smiling smiley


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: K
Date: February 08, 2003 04:58PM

Unless I could "tab" to that button... But I'm assuming KM doesn't allow adding a button to the tab order (currently, only the URL bar is included in the tab order).

-K

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: jsnj
Date: February 08, 2003 04:58PM

Actually, I don't think the new URL bar responds to any macro or accelerator key combo. So scratch that idea.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: jsnj
Date: February 08, 2003 04:59PM

I was responding to my original idea when I said scratch that idea. :-)

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: asmpgmr
Date: February 08, 2003 06:54PM

I find the idea of a separate plugin for the URL bar troubling. The URL bar is an intergral part of the browser and should not be externalized. It would be nice if there was option URL autocompletion and possibly Mozilla bookmark keywords and custom keywords but these features shouldn't require a special URL bar plugin. Would the existence of such a plugin mean there was no URL bar without it being loaded ?? That would be bad.

As for a search field, you can bind a search macro to ctrl-g and replace the default search function. That should suffice. There are search macros on the forums which use keycodes to specify what engine to use for the search, I even wrote one of them.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: MonkeeSage
Date: February 08, 2003 07:13PM

asmpgmr:

I think they want something like this:

http://monkeesage.d2g.com/search_field.png


I think a mod could be done to Ulf's URL plugin to make a new search plugin, fairly easily, and achieve this effect by loading it with the url plugin and positioning it next to it.


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: asmpgmr
Date: February 08, 2003 07:33PM

MonkeeSage,

I don't see how that's better than a search macro, in fact it's worse since it reduces the size of the URL bar. Mozilla's bookmark keywords/custom keywords would be a better solution where you can enter something like "g k-meleon" in the URL bar and it does a Google search. It works similar to the way the search macros do but it's a bookmark with a replacable parameter specification (%s) and a bookmark keyword that specifies the shortcut.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: jsnj
Date: February 08, 2003 08:16PM

I don't see how that's better than a search macro, in fact it's worse since it reduces the size of the URL bar. Mozilla's bookmark keywords/custom keywords would be a better solution

I agree and it's what I use, but to each his own. Obviously Author K is more comfortable with that other method.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 08, 2003 09:24PM

How about adding a rt.click url bar drop down menu to include a search field. Or is that st00pid

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: jsnj
Date: February 09, 2003 12:41AM

I don't know about it being stupid, but it's not more efficient than the Quicksearch/keyword method. Why would you wanna type what you are searching for, then put your hand back on the mouse or have to use the down arrow key and scroll through a menu to find your search engine when you can get the same result just typing and extra letter or two in front of the text that you wanna search for or an accelerator key after the text? Seems alot easier and quicker to me.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 12:46AM

I use a rt.click to google myself. How about a highlight word - search too.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: jsnj
Date: February 09, 2003 12:58AM

The following is from a recent thread I posted to:

In macros

Define{
menu = Define Word
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.dictionary.com/search?q="; . getclipboard());
setclipboard($tmp);
}


In Menus under DocumentPopup & FrameDocumentPopup:

macros(Define)


Replace macro name, menu name and url address within macro for other searches.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 02:12AM

Hey thanks! that's great. I'll probably add a spell check too. I'm using this now.

Search{
menu = Google
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.google.com/search?q="; . getclipboard());
setclipboard($tmp);
}

Define{
menu = Define Word
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.dictionary.com/search?q="; . getclipboard());
setclipboard($tmp);
}

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 02:26AM

Apparently spell check needs to be set up differently. What is the proper parameters? Thank you.

Spell{
menu = Spell
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.spellcheck.net/search?q="; . getclipboard());
setclipboard($tmp);
}

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: boogomatic
Date: February 09, 2003 03:22AM

Lynchknot

I think this may be correct:

#--------------------------
Spell{
menu = Spell
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.spellcheck.net/cgi-bin/spell.exe?action=CHECKWORD&string="; . getclipboard());
setclipboard($tmp);
}
#--------------------------


Trenton

486DX4/100-PLUS-160Mhz, 48MB, 1.5GB
Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.3a) Gecko/20021212 K-Meleon 0.7

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: boogomatic
Date: February 09, 2003 03:25AM

Lynchknot

Looks like it broke the line

Just replace this:
"http://www.spellcheck.net/search?q=";
With this:
"http://www.spellcheck.net/cgi-bin/spell.exe?action=CHECKWORD&string=";


Trenton

486DX4/100-PLUS-160Mhz, 48MB, 1.5GB
Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.3a) Gecko/20021212 K-Meleon 0.7

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 03:36AM

That works but I don't like that online spell checker when checking a paragraph or sentence. What do I do, just change the url to some other one?

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 03:40AM

I tried this but no work

Spell{
menu = Spell
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.spellonline.com/cgi-bin/spell.exe?action=CHECKWORD&string="; . getclipboard());
setclipboard($tmp);
}

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: boogomatic
Date: February 09, 2003 03:43AM

That page was designed for single words.
Don't know if there is a site to spell check paragraphs. (probably somewhere)

Good Luck
Trenton

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 03:44AM

They both do paragraphs, but not from the clipboard very well

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: boogomatic
Date: February 09, 2003 03:47AM

"I tried this but no work"

The forum broke the line at the space.
If it does'nt end with ;
The line continues.

Trenton

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 03:59AM

There is no app, like IEspell that would work - is there?

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: MonkeeSage
Date: February 09, 2003 04:24PM

Spell{
menu = Spell
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.spellonline.com/cgi-bin/spell.exe?action=CHECKWORD&string="; . getclipboard());
setclipboard($tmp);
}

^ Check single words.


Spell{
menu = Spell
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.spellonline.com/cgi-bin/spell.exe?action=CHECKPG&string="; . getclipboard());
setclipboard($tmp);
}

^ Check paragraphs.


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: MonkeeSage
Date: February 09, 2003 04:30PM

Ummm, no that is wrong, I didn't see that someone had changed the url to one that doesn't work (from spellcheck.net to spellonline.com??????).

Here is the correct macros:

Spell{
menu = Spell
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.spellCHECK.NET/cgi-bin/spell.exe?action=CHECKWORD&string="; . getclipboard());
setclipboard($tmp);
}

^ Check single words.


Spell{
menu = Spell
$tmp = getclipboard();
id(ID_EDIT_COPY);
opennew("http://www.spellCHECK.NET/cgi-bin/spell.exe?action=CHECKPG&string="; . getclipboard());
setclipboard($tmp);
}

^ Check paragraphs.


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 04:45PM

I tried using both together and got an error on start up. Using just the paragraph check to single words work fine though. Thanks forum monkey.

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: lynchknot
Date: February 09, 2003 04:47PM

lol, it says no spelling errors were found in this text


hello how R you

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: MonkeeSage
Date: February 09, 2003 05:05PM

lol

Options: ReplyQuote
Re: Search *Field* in KM?
Posted by: MonkeeSage
Date: February 09, 2003 05:54PM

lynch:

Dict.org has a built in Levstein algorithm with a distnace of one letter left or right (or SOUNDEX), which is the same thing ispell uses. It's not perfect, but it seems as good or better than that spellcheck.net, though it can only do single words....

Example:

http://www.dict.org/bin/Dict?Form=Dict2&Strategy=lev&Database=*&Query=hockee
http://www.dict.org/bin/Dict?Form=Dict2&Strategy=soundex&Database=*&Query=hockee

Returns:

hackee, Hockle, Hockey

You can also list words br prefixes at Dict.org, for example, try:

http://www.dict.org/bin/Dict?Form=Dict1&Strategy=prefix&Database=*&Query=Eng

Or by suffixes:

http://www.dict.org/bin/Dict?Form=Dict1&Strategy=suffix&Database=*&Query=lish


I'm still looking for an external spellscheker for ya, but so far no luck, every one I've found only operates on a file, and doesn't work off of standard input...still looking, though. smiling smiley


Shelumi`El
Jordan

S.D.G


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


K-Meleon forum is powered by Phorum.