Setting WWWJDIC as a Search Engine in Opera

Opera 6.01

The following information has been provided by Karl-Johan Karlsson:
Date: Sat, 19 Oct 2002 22:09:09 +0200
From: Karl-Johan Karlsson (email address removed)
Subject: WWWJDIC Bookmark/button generator and Opera

Dear Mr. Breen,

You state on the WWWJDIC button generator page that Opera doesn't support 
the JavaScript necessary to support the buttons. This may be true (I 
haven't tested it), but it's possible to achieve almost the same result by 
editing an (officially undocumented) configuration file: search.ini. This 
file, present in Opera 6.01 and later versions, defines what search engines 
are available in the right-click menu. It can be extended to include new 
search engines simply by appending their definitions to the end of the 
file, e.g. like this:

[Search Engine 30]
Is post=0
Has endseparator=0
Search Type=0

With the following field meanings:

[Search Engine #]: Consecutive, unique, increasing numbers.
Name: String to be displayed in the right-click menu. May contain special 
characters, e.g. spaces. The character following the & is a hotkey.
URL: Query URL to be sent. "%s" is replaced by the query string, i.e. 
whatever text was selected, properly escaped and encoded.  Of course the 
URL could be any of the WWWJDIC mirrors, and the parameter string could be 
any of the suitable back-door codes: 1MDE%s, 9MHG%s, etc.
Query: Data to be sent in a POST query.
Key: Hot-key-sequence to type in the search bar to select this search 
engine. Must be present, or this search engine will not be displayed.
Is post: 1 if query is sent with POST, 0 if with GET.
Has endseparator: 1 if a separator should be drawn in the right-click menu 
following this entry, 0 otherwise.
Encoding: Encoding of the query string.
Search type: Magic number saying e.g. which icon to use in the search bar 
and whether this search engine is accessed in magic ways (not through the 
right-click menu). 0 is safe to use.

While automating the addition of a search engine is probably (and 
hopefully) impossible due to Opera's security, just generating the  text 
and instructions on how to apply it would be a great improvement.


Karl-Johan Karlsson

Opera 7.11

Date: Tue, 21 Oct 2003 10:41:56 -0400
From: Daniel Fleisher (email address removed)
Subject: Opera 7 search.ini entry

Dear Mr. Breen,

I saw that you had instructions for adding WWWJDIC search to the Opera 
context menu but since that was for version 6.01 and it doesn't seem to 
work with more recent ones (in my case 7.11), so I'm sending an updated 

[Search Engine 39]
Is post=0
Has endseparator=0
Search Type=119

If you replace the currently existing search engine 39 with the lines above 
it will let you use WWWJDIC J->E functionality for the "Japanese to English" 
item under "Translate" on the Hotclick menu, replacing the (greatly 
inferior :) Infoseek default.

For more information about Opera's search.ini please see here:

WWWJDIC is a truly unique and invaluable service and I hope that you 
continue to develop and enhance it in the future.

Best regards,
Dan Fleisher